text stringlengths 3.12k 18.7k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../util.h"
#define BUF_SZ 1024
#define HIST_CNT 300
#define HIST_MIN 30
#define MAX_IFACES 10
struct ifacehist
{
unsigned long *ulhist[ HIST_CNT ];
unsigned long *dlhist[ HIST_CNT ];
char netsbuffer[ BUF_SZ ];
int histi... |
/*
Unix SMB/Netbios implementation.
Version 1.9.
NBT netbios routines and daemon - version 2
Copyright (C) <NAME> 1994-1998
Copyright (C) <NAME> 1994-1998
Copyright (C) <NAME> 1994-1998
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Genera... |
// Supplementary demo code for Anton's OpenGL 4 Tutorials
// Copyright <NAME> <<EMAIL>> 2019
// Article: http://antongerdelan.net/opengl/shader_hot_reload.html
// This code is C99.
// To compile on Windows with gcc:
// gcc -Wall -DGLEW_STATIC .\main.c ..\common\GL\glew.c ..\common\win64_gcc\libglfw3.a -I ..\common\ -I... |
#include <stdio.h>
#include <string.h>
#include "pico/stdlib.h"
#include "hardware/i2c.h"
#include "hardware/spi.h"
#include "hardware/irq.h"
#include "pico/binary_info.h"
#include "arducam.h"
#include "ov2640.h"
// Define sensor slave address
void picoSystemInit() {
// This example will use I2C0 on ... |
/* specfunc/bessel_K1.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) an... |
/*
ulockmgr_server: Userspace Lock Manager Server
Copyright (C) 2006 <NAME> <<EMAIL>>
This program can be distributed under the terms of the GNU GPL.
See the file COPYING.
*/
/* #define DEBUG 1 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dir... |
/*
The MIT License (MIT)
Copyright (c) 2014 UnicornRaceEngineering
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modif... |
#include <stddef.h>
#include <string.h>
#include <stdint.h>
#include <omp.h>
#include <mathimf.h>
#include <immintrin.h>
#include "geometry.h"
#include "bench.h"
#include "phy.h"
#include "core_kernel.h"
/*
Calculate a time step for each cell
Note that this routine assumes conservative variables
Local time step... |
// pubpriv.c
// 04-Nov-15 <NAME> <<EMAIL>>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bliss.h"
#include "distribution.h"
#include "ntt32.h"
#include "sha3.h"
#include "notrandom.h"
// == PUBKEY ==
// Free a public key.
void bliss_pubkey_free(bliss_pubkey_t *pub)
{
const bliss_param_t ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/**
* @src/enemies.c
*/
#include <GFraMe/GFraMe.h>
#include <GFraMe/GFraMe_animation.h>
#include <GFraMe/GFraMe_audio.h>
#include <GFraMe/GFraMe_sprite.h>
#include <GFraMe/GFraMe_util.h>
#include <stdio.h>
#include "global.h"
#include "player.h"
#include "multiplier.h"
#include "score.h"
#include "enemies.h"
#define... |
/***********************/
/* charset.c */
/* for Par 1.52-i18n.3 */
/* Copyright 2001 by */
/* <NAME> */
/* Modified by */
/* <NAME> */
/***********************/
/* This is ANSI C code (C89). */
/* Because this is ANSI C code, we can't assume that there are only 256 */
/* characters. Ther... |
#define _POSIX_C_SOURCE 2
#include <SDL2/SDL.h>
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
struct state {
int zoom;
bool color;
bool exiting;
bool* canvas;
char* filename;
int width;
int height;
bool drawing;
bool saving;
int scroll_x;
int scroll_y;
};
stru... |
/******************************************************************************
* Copyright © 2014-2018 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... |
/*
* libtcod 1.6.3
* Copyright (c) 2008,2009,2010,2012,2013,2016,2017 Jice & Mingos & rmtew
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retai... |
/*
*
* University of Luxembourg
* Laboratory of Algorithmics, Cryptology and Security (LACS)
*
* FELICS - Fair Evaluation of Lightweight Cryptographic Systems
*
* Copyright (C) 2015 University of Luxembourg
*
* Written in 2015 by <NAME> <<EMAIL>>
*
* This file is part of FELICS.
*
* FELICS is free software... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_image.h>
// Local includes
#include "map.h"
#include "tile.h"
#include "tiletypes.h"
#include "msg_module.h"
// Function declarations
void log_SDL_error(FILE *output, char *message);
void hand... |
/* Copyright (c) 2012 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distri... |
/* hgSanger22 - Load up database with Sanger 22 annotations. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "dystring.h"
#include "cheapcgi.h"
#include "obscure.h"
#include "jksql.h"
#include "sanger22extra.h"
#include "gff.h"
#include "genePred.h"
static char const rcsid[] = "$Id: hgSanger22.... |
/*
* Copyright (c) 2020 Bouffblfolab.
*
* This file is part of
* *** Bouffblfolab Software Dev Kit ***
* (see www.bouffblfolab.com).
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributio... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include "gdbserver_handler.h"
const char* _unix_path(const char* address) {
if(address[0] == '/') return addre... |
#include "zpl.h"
#include "modules/systems.h"
#include "modules/components.h"
#include "world/world.h"
#include "world/blocks.h"
#include "profiler.h"
#include "debug_draw.h"
#include "game.h"
#define PHY_BLOCK_COLLISION 1
#define PHY_WALK_DRAG 4.23f
#define PHY_LOOKAHEAD(x) (zpl_sign(x)*16.0f)
#include "source/syste... |
/* mnevpo.f -- translated by f2c (version 19961017).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
/* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc */
/* c ... |
/*
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
#include <stdio.h>
#include "list.c"
void
each_test_1 (subset *set) {
static int i=0;
int a[6][6] = {
{0},
{0,1},
{1,3,5},
{0,15,23},
{30,60,80,119},
{0,2,7,13,200,719}
};
int b[6] = {1,2,3,3,4,6};
subset *set1;
set1 = set_create_set (i+1,b[i],a[i]);
if (set_cmp (set, set1) != 0)... |
/* From <NAME> at PSRV. Thanks! */
/* If an event is countable but you've exhausted the counter resources
and you try to add an event, it seems subsequent PAPI_start and/or
PAPI_stop will causes a Seg. Violation.
I got around this by calling PAPI to get the # of countable events,
then making sure that I didn't try... |
/**
* \file
*
* \brief megaAVR STK600 UART interrupt example
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are... |
/*
* Copyright (c) 2012 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "../opencl.h"
#include "../input.h"
#include "../prior.h"
#include "objects.h"
#include "../kernel.h"
#include "../log.h"
static const char* WS = " \t\n\v\f\r";
void add_object(input* inp, const char* id, const char* name)
{
ob... |
#include "common/fmplayer_file.h"
#include <string.h>
#include <stdlib.h>
void fmplayer_file_free(const struct fmplayer_file *fmfileptr) {
struct fmplayer_file *fmfile = (struct fmplayer_file *)fmfileptr;
if (!fmfile) return;
free((void *)fmfile->filename_sjis);
free(fmfile->path);
free(fmfile->buf);
free(... |
/*******************************************************************************
License:
This software and/or related materials was developed at the National Institute
of Standards and Technology (NIST) by employees of the Federal Government
in the course of their official duties. Pursuant to title 17 Section 105
of... |
/* GStreamer
* Copyright (C) 2003 <NAME> <<EMAIL>>
*
* gsttypefind.c: typefinding subsystem
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, o... |
/******************************************************************************
*
* Copyright (C) 2018 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wit... |
// See copyright statement below
#include <stdlib.h>
#include <gtk/gtk.h>
// Char: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 1 1 1 1 1... |
/*
* Copyright (c) 2015, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice... |
/*=========================================================================
XML-RPC server method registry
Method services
===========================================================================
These are the functions that implement the method objects that
the XML-RPC method registry uses.
By <NAME>, De... |
/*
* Copyright (c) 2011-2014 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... |
# ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include <emscripten/html5.h>
# endif
#include <stdlib.h>
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include "../Structs/Entity.h"
#include "../Includes/Vector.h"
#include "../Includes/Log.h"
#include "../Includes/Engine.h... |
// SPDX-License-Identifier: GPL-2.0-or-later
/* Filesystem parameter parser.
*
* Copyright (C) 2018 Red Hat, Inc. All Rights Reserved.
* Written by <NAME> (<EMAIL>)
*/
#include <linux/export.h>
#include <linux/fs_context.h>
#include <linux/fs_parser.h>
#include <linux/slab.h>
#include <linux/security.h>
#include <... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#define Image IMAGE
#include <draw.h>
#include <memdraw.h>
#include <cursor.h>
#include "screen.h"
static Memimage* back;
static Memimage *conscol;
static Point curpos;
static Rectangle window;
stati... |
// SPDX-License-Identifier: GPL-2.0
/* Copyright 2019 NXP
*/
#include <linux/dsa/ocelot.h>
#include "dsa_priv.h"
/* If the port is under a VLAN-aware bridge, remove the VLAN header from the
* payload and move it into the DSA tag, which will make the switch classify
* the packet to the bridge VLAN. Otherwise, leave ... |
/*========================================*
* I N C L U D E S *
*=========================================*/
#include <string.h>
#include <stdio.h>
#include <ctosapi.h>
#include <stdlib.h>
#include <stdarg.h>
#include "wub_lib.h"
/*==========================================*
* D E F... |
#include <uwsgi.h>
#include <ares.h>
#include <arpa/nameser.h>
extern struct uwsgi_server uwsgi;
/*
--cares-server = [strlist]
--cares-timeout = <int>
--cares-cache = <cache_name>
--cares-cache-ttl = <cache_name>
${dns[HTTP_HOST]}
TODO
${dns_txt[HTTP_HOST]}
${dns_ptr[REMOTE_ADDR]}
*/
static struct uwsgi_c... |
unsigned int x;
/* TODO: Don't think that various of the counts work at FN level!
* Don't deal with dupes within fns (e.g. 2 fns with different variable
* instantiations)
*/
void empty(void) {
/* Deliberately empty */
}
inline int storage(void) /* Don't count function declaration part */
{ ... |
/*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/**
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
#include "geminc.h"
#include "gemprm.h"
#include "clocmn.h"
#define EXACT 1
#define FIRST 2
#define INDEX 3
extern CLO_t clo;
void clo_findstn ( char *locnam, char *xid, char *xstate, int srchtyp,
int maxlen, int *nret, char *info, int *iret )
/*******************************************************************... |
/*
* dma.c
*
* Created on: Dec 5, 2018
* Author: nachi
*/
#include "dma.h"
extern int16_t dma_buffer[64];
uint32_t dma_address;
uint32_t a=10;
//extern int16_t source_buffer[64];
void dma_init()
{
SIM_SCGC6 |= SIM_SCGC6_DMAMUX_MASK; // Clock to DMA mux
SIM_SCGC7 |= SIM_SCGC7_DMA_MAS... |
/************************************************************************
*
* libio - A CLI project
*
* Copyright (C) 2016 <NAME> (<EMAIL>)
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the use of this so... |
#include "bleLocalizador.h"
int fd;
int flag1=0,flag2=0;
double distCache1[5];
double distCache2[5];
/*
* @desc Esta funcao calcula a mediana de um vetor com tamanho n
* @param n: tamanho do vetor; x: vetor x que contem os valores
* @return Mediana calculada
*/
double median(int n, double x[]) {
doubl... |
#include <emscripten.h>
#include <emscripten/html5.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES3/gl3.h>
#include <GLES3/gl31.h>
#include <GLES3/gl32.h>
#define __gl2_h_
#include <GLES2/gl2ext.h>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdarg>
#include <cmath>
#include <c... |
/********************************************************************************
The MIT License(MIT)
Copyright(c) 2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction... |
/*
* Dump a NLS file
*
* Copyright 2020 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* ... |
/* OX: Open-Channel NVM Express SSD Controller
*
* - OX Administration Module
*
* Copyright 2016 IT University of Copenhagen
*
* Written by <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... |
/*
* Copyright (c) 2014, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of co... |
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... |
/**************************************************************************************************
Phyplus Microelectronics Limited confidential and proprietary.
All rights reserved.
IMPORTANT: All rights of this software belong to Phyplus Microelectronics
Limited ("Phyplus"). Your use of this Software is... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this sof... |
/*Daala video codec
Copyright (c) 2012 Daala project contributors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
list o... |
////////////////////////////////////////////////////////////////////////////
// Module : script_export_macroses.h
// Created : 24.06.2004
// Modified : 24.06.2004
// Author : <NAME>, <NAME>
// Description : XRay Script export macroses
////////////////////////////////////////////////////////////////////////////
#... |
/**********************************************************************************************/
/* The MIT License */
/* */
/* Copyright 2016-2016 Twitch... |
//By <NAME>
//
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <stdio.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <unistd.h>
#define OUT_BUFFER_LEN (513)
#define IN_BUFFER_LEN (1025)
#define USERAGENT "http_client.c 1.0"
int host_to_ip(c... |
/* $Id: sgui.c,v 1.2 2013/12/10 01:40:16 moonsdad Exp $ */
/******************************************************************************
* Warlords And Scumbags *
* sgui.c -- Server GUI Functions *
*******************... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h> /* needed for isspace */
#include <math.h> /* Required for sqrt */
#include <string.h> /* needed for string manipulation and memcpy */
#include "data.h"
static double **read_values(char *source_file, int *n_instances, int *n_values)
{
... |
#include "prophex_build.h"
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include "bwa_utils.h"
#include "bwt.h"
#include "klcp.h"
#include "prophex_utils.h"
#include "utils.h"
#define MAX_CHARACTERS_PER_LINE 100
typedef struct {
klcp_t* klcp;
bwt_t* bwt;
int kmer_length;
const char* prefix;
int sa... |
// 0x070039C0 - 0x070039D8
static const Lights1 bowser_3_seg7_lights_070039C0 = gdSPDefLights1(
0x22, 0x22, 0x22,
0x89, 0x89, 0x8a, 0x28, 0x28, 0x28
);
// 0x070039D8 - 0x070039F0
static const Lights1 bowser_3_seg7_lights_070039D8 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);... |
#define _XOPEN_SOURCE
#include <errno.h>
#include <getopt.h>
#include <glob.h>
#include <openssl/crypto.h>
#include <openssl/ocsp.h>
#include <openssl/pem.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "libsxg.h"
#include "libsxg/intern... |
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1987 <NAME>
**********/
#include "ngspice/ngspice.h"
#include "ngspice/ifsim.h"
#include "urcdefs.h"
#include "ngspice/cktdefs.h"
#include "ngspice/gendefs.h"
#include "ngspice/sperror.h"
#include "ngspice/suffix.h"
/* A... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "hash_table.h"
#include "record.h"
typedef struct bucketz *bucket;
typedef struct sRec {
long int custid;
listptr data_ptr;
} sRec;
struct bucketz {
//size of the bucket
int size;
//current number of records on the bucket
int count;
//r... |
/****************************************************************************
* Copyright (C) 1998 WIDE Project. All rights reserved.
* Copyright (C) 1999,2000,2001,2002 University of Tromso. All rights reserved.
* Copyright (C) 2002 Invenia Innovation AS. All rights reserved.
*
* Author: <NAME>, <EMAIL>.
* ... |
/**
* Copyright 2013 <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <sys/epoll.h>
#include <sys/signalfd.h>
#include <stdarg.h>
#define __USE_GNU
#def... |
/*
* WEB-CLIENT Sun JDK image parsing library ICC buffer overflow attempt
*
* Copyright (C) 2007 Sourcefire, Inc. All Rights Reserved
*
* Writen by <NAME> <<EMAIL>>
*
* This file may contain proprietary rules that were created, tested and
* certified by Sourcefire, Inc. (the "VRT Certified Rules") as well as
... |
#include "../include/parser.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "../lib/mpc/mpc.h"
#include "../include/assert.h"
#include "../include/util.h"
static mpc_parser_t* Integer;
static mpc_parser_t* FPoint;
static mpc_parser_t* Number;
static mpc_parser_t* Bool;
static mpc_parser_t* Stri... |
/*#include "/us1/user/julie/dmalloc/malloc.h"*/
/*********************CLUSTALW.H*********************************************/
/****************************************************************************/
/*
Main header file for ClustalW. Uncomment ONE of the following 4 lines
depending on which compi... |
/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */
/*
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restrict... |
/* Generated by CIL v. 1.3.7 */
/* print_CIL_Input is true */
int KernelMode ;
int Executive ;
int s ;
int UNLOADED ;
int NP ;
int DC ;
int SKIP1 ;
int SKIP2 ;
int MPR1 ;
int MPR3 ;
int IPC ;
int pended ;
int compFptr ;
int compRegistered ;
int lowerDriverReturn ;
int setEventCalled ;
int customIrp ;
... |
/***************************************************************************/
/* */
/* Copyright 2020 INTERSEC SA */
/* */
/* Licen... |
// Simple PIO-based (non-DMA) IDE driver code.
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"
#include "sleeplock.h"
#include "fs.h"
#include "buf.h"
#define SECTOR_SIZE 512
#define IDE_BSY ... |
/*
$Id$
Copyright 1989-2014 <NAME>.
This file is part of NewGen.
NewGen is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or any later version.
NewGen is distribut... |
/** _GNU_SOURCE for pthread_getname_np */
#define _GNU_SOURCE
#include <time.h>
#include <locale.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include "tinylogger.h"
#define TASK_COMM_LEN 16 /**< from kernel/sched.h */
#define NAME_LEN TASK_COMM_LEN /**< includes null... |
/**
* @file main.c
* @brief
*
* Copyright (c) 2021 Bouffalolab team
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses t... |
/*
* Copyright (C) 2013 Red Hat
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,... |
// Copyright 2018 Schibsted
#include <assert.h>
#include <string.h>
#include "rcycle.h"
#include <stdio.h>
static void lfsr_init(struct rcycle_lfsr *lfsr, unsigned int bits, uint32_t seed);
static const uint32_t lfsr_taps[33] = {
0, /* bits range taps */
0, /* Verboten. */
0x3, /* 2 3* [0,1] */
0x5, /* 3... |
/*
* linux/fs/nfs/nfs4namespace.c
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
* - Modified by <NAME> <<EMAIL>>
*
* NFSv4 namespace
*/
#include <linux/dcache.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/nfs_fs.h>
#include <linux/string.h>
#include <linux/sunrpc/clnt.h>
#include <linux/vfs.h>
... |
#define _BSD_SOURCE
#define _GNU_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#include <time.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/statvfs.h>
#include <X11/Xlib.h>
char *tzparis = "Europe/Par... |
#include <sys/types.h>
#include <xok/mmu.h>
#include <sys/mman.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#include <malloc.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <exos/tick.h>
static unsigned b,e;
static void B() { b = ae_gettick (); }
static void E() { e = ae_gettic... |
#include "global.h"
void bcs_list_init(bcs_list_t* list){
list->head = NULL;
list->tail = NULL;
}
void bcs_list_destroy(bcs_list_t* list){
bcs_node_t* p = list->head;
while(p!=NULL){
bcs_node_t* next = p->next;
free(p);
p = next;
}
}
void bcs_list_insert(bcs_list_t* list, ch... |
/*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... |
/*
* Phoenix-RTOS
*
* ping - ICMP request / response
*
* Copyright 2021 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <unistd.... |
/*!
\file
\brief Various functions from performing p2p send operations.
\date Started 4/6/2013
\author George
*/
#include "bdmprun.h"
/*************************************************************************/
/*! Response to a BDMPI_Send/BDMPI_Isend.
Copies the message from the slave, saves it on the disk, and... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../jsmn.h"
/*
* A small example of jsmn parsing when JSON structure is known and number of
* tokens is predictable.
*/
/*static const char *JSON_STRING =
"{\"user\": \"johndoe\", \"admin\": false, \"uid\": 1000,\n "
"\"groups\": [\"users\", \"... |
/* File: sv_h263_edge.c */
/*****************************************************************************
** Copyright (c) Digital Equipment Corporation, 1995, 1997 **
** **
** All Rights Reserved. Unpublished rights reserve... |
/*
* remote checksum server
*
* scan.c file scanning and checksum module
*
* server creates a named pipe and waits for connections. a client connects,
* and sends request packets to the server. One such request packet is
* the SSREQ_SCAN request: we are given a pathname, and we are to checksum
* e... |
/* GStreamer RTP KLV Payloader
* Copyright (C) 2014-2015 <NAME> <<EMAIL>>>
* Copyright (C) 2014-2015 Centricular Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* ver... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "compiler.h"
#include "memory.h"
#include "scanner.h"
#include "expressions.h"
#include "parser.h"
#ifdef DEBUG_PRINT_CODE
#include "debug.h"
#endif
typedef void (*ParseFn)(bool canAssign);
typedef struct {
ParseFn prefi... |
#include "Kernel.h"
#include <limits.h>
#include <math.h>
typedef struct {
ulong start;
ulong end;
Kernel *this;
double (*read)(ulong in, void *x);
void (*write)(ulong out, double v, void *x);
void *x;
} Info_;
static Kernel *new_(Kernel **pthis, ulong n_in, ulong n_out, bool periodic);
static void *apply... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction,
* including without... |
/*
* esx_util.c: utility functions for the VMware ESX driver
*
* Copyright (C) 2010-2012 Red Hat, Inc.
* Copyright (C) 2009-2011 <NAME> <<EMAIL>>
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
/*
* util_ike_certs.c
*
* Copyright:
* Copyright (c) 2002-2005 SFNT Finland Oy.
* All rights reserved.
*
* Certificate related IKE utility functions.
*
*/
#include "sshincludes.h"
#include "quicksecpm_internal.h"
#include "sshmatch.h"
#ifdef SSHDIST_CRYPT_ECP
#include "sshmp-integer.h"
#endif /* SS... |
#include "../log.h"
#include "peer.h"
#include "../net_utils/net_utils.h"
#include "../bencode/bencode.h"
#include "../bitfield/bitfield.h"
int peer_supports_ut_metadata(struct Peer *p) {
return (p->ut_metadata > 0 && p->status == PEER_HANDSHAKE_COMPLETE);
}
int peer_handle_ut_metadata_handshake(struct Peer * p, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.