text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright (C) <NAME>
* Copyright (C) NGINX, Inc.
*/
#include <nxt_router.h>
#include <nxt_http.h>
#include <nxt_upstream.h>
struct nxt_upstream_round_robin_server_s {
nxt_sockaddr_t *sockaddr;
int32_t current_weight;
int32_t ... |
#include "cpu.h"
#include "ap_init_payload.h"
#include "apic.h"
#include "../../util/memcpy.h"
#include "../mem_mgmt/pmm.h"
#include "../../display.h"
#include "../mem_mgmt/vmm/mem_mgmt.h"
#include "../system.h"
// {{{ Timing
static void _outb(uint16_t port, uint8_t val) {
__asm__ volatile(
"outb %0, %1"
... |
/* Copyright (c) 2017 <NAME> and <NAME>
*
* 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 agree... |
/*
* Copyright (C) 2017-2018 <NAME> <<EMAIL>>
*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, inclu... |
#pragma once
TSS_RESULT tcs_compute_auth(UINT32 locality, TPM_AUTH * auth, TPM_NONCE * h1, TPM_AUTHDATA * secret);
TSS_RESULT tcs_check_auth(TPM_AUTH * auth, TPM_NONCE * h1, TPM_AUTHDATA * secret);
TSS_RESULT tpm_rsp_parse(TPM_COMMAND_CODE ordinal, BYTE *b, UINT32 len, ...);
TSS_RESULT tpm_rqu_build(TPM_COMMAND_CODE ... |
/*
* Project Name: DHT11
* File: main.c
* Description: Display DHT11 on a 4 digit seven segment display
* Author: <NAME>.
* Complier: xc8 v2.05 compiler
* PIC: PIC16F1619
* IDE: MPLAB X v5.05
* Development board: Microchip Curiosity Board, PIC16F1619
* Created: March 2019
* URL: https://github.com/gavinlyo... |
/*
* Copyright (C) Tildeslash Ltd. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the impl... |
#include "network_extension.h"
/***********************************************************/
int main (int argc, char **argv) {
hwloc_topology_t child, parent;
hwloc_obj_t parent_root, child_root;
int i, j, opt, cns, costs, err, nb_pus;
float buffer;
int diff_input = FALSE;
int diff_output = FA... |
/* Handling of compile-time options that influence the library.
Copyright (C) 2005-2020 Free Software Foundation, Inc.
This file is part of the GNU Fortran runtime library (libgfortran).
Libgfortran is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
/*!\file
*\brief do a stat on a file or dir in HPSS
*/
/*
* helper
*/
#include "util.h"
#include "hpss_methods.h"
/*
* actually doing the job
*/
int
do_hpss_stat(struct evbuffer *out_evb, char *escaped_path, int enclosed_json)
{
int rc = 0;
char s64_str[256];
hpss_stat_t stat_info;
if (serverInfo.LogLevel... |
#include "region_layer.h"
#include "activations.h"
#include "blas.h"
#include "box.h"
#include "utils.h"
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#define DOABS 1
region_layer make_region_layer(int batch, int w, int h, int n, int classes, int coords, int max_boxes)
{
region_la... |
#include "types.h"
#include "stat.h"
#include "user.h"
// Funtion to reads characters from STDIN (1 byte at a time)
static void
getc(int fd, char ** buffer){
int i = 0;
char buf[256]; // read input into buffer
while(read(fd, &buf[i], 1)){
if((buf[i] == '\n' || buf[i] == ' ' || buf[i] == '\t' || buf[i] == '\r' |... |
/*
* Copyright 2021 Comcast Cable Communications Management, LLC
*
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define MAX(a,b) ( ((a) > (b)) ? (a) : (b) )
#define I2(n,i,j) ((i)*n+(j))
#define I4(n,i,j,k,l) ((i)*n*n*n + (j)*n*n + (k)*n + (l))
int pseudoknot (int, char *);
int pairs (char, char);
void filluv (char name, char *inp, int *t, i... |
#include <inc/lm3s9b96.h>
#include <inc/hw_memmap.h>
#include <inc/hw_types.h>
#include <driverlib/debug.h>
#include <driverlib/ethernet.h>
#include <driverlib/gpio.h>
#include <driverlib/rom.h>
#include <driverlib/uart.h>
#include <driverlib/sysctl.h>
#include <driverlib/systick.h>
#include <driverlib/flash.h>
#includ... |
/* This example showcases how to use a panel that uses JTUI_DETAIL_G8_C4 detail mode. This detail mode has 8 bits per glyph and 4 bits per color. This allows for up to 256 unique glyphs and for a palette of 16 colors. */
#include <gl/glew.h>
#include <GLFW/glfw3.h>
#include <TUIC/tuic.h>
#include <TUIC/backends/openg... |
/*
Authors:
- <NAME>
- <NAME>
File: pruebaMorfo.c
*/
#include <stdio.h>
#include <stdlib.h>
#include "tokens.h"
extern int yylex(void);
extern char *yytext;
extern size_t yyleng;
extern FILE *yyin;
extern size_t ncols;
extern size_t nlines;
#define ERROR -1
int main... |
/*
* packet.c -- low-level DNS packet encoding and decoding functions.
*
* Copyright (c) 2018 tiglabs All rights reserved.
*
* See LICENSE for the license.
*
*/
#include <string.h>
#include "packet.h"
#include "query.h"
#include "zone.h"
int round_robin = 1;
static void
do_dname_data_encode(kdns_query_st ... |
#include <sys/types.h>
#include <sys/select.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <netdb.h>
#include <errno.h>
#include <zlog.h>
#include <ares.h>
#include <ares_dns.h>
#include "proxy.h"
#define DEFAULT_CONFIG "sr-dnsproxy.conf"
pthread_... |
/* stack_trap.c - Catch HardFault generated by SP in protected region
Registers are saved in the report in the following order:
report[0] = SP
report[1] = R12 - From exception frame
report[2] = LR
report[3] = PC
report[4] = PSP
report[5] = R0
report[6] = R1
report[7] ... |
#include "usb3.h"
#include "usb3_drv.h"
#include "usb3_pcd.h"
#include "usb3_prot.h"
#include "onchiprom.h"
#include <common.h>
#include <linux/string.h>
#define USTART 0xFA
#define UHEAD 0xFE
#define UDATA 0xDA
#define UTAIL 0xED
#define UCMD 0XAB
#define UREQ 0XFB
char uACK[2] = {0xAA,'\0'};
char uNA... |
/*
* Copyright 2016, Intel Corporation
*
* 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 of conditions and the f... |
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "../c/crypto.h"
#include "../c/util.h"
const char* aes_key_1 = "603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4";
const char* aes_ivs_1 = "000102030405060708090A0B0C0D0E0F";
const char* aes_plain_1 = "6bc1bee22e409f96e93d7e11739... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/*
* Dictionary ADT - implementation
* Implements a dictionary using a hash table
* with linear probing
*/
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "Dictionary.h"
#define NOT_FOUND (-1)
typedef struct {
dictKey key;
dictValue value;
bool isEmpty;
} hashTableCell;
struc... |
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <utmp.h>
#include <fcntl.h>
#include <libgen.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <sys/signal.h>
#include <sys/wait.h>
#include <tlpi_hdr.h>
#include <time.h>
#include <signal.h>
#include "../../../t... |
/*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.... |
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*
* @(#)config.h 8.1 (Berkeley) 06/06/93
*/
/*
* Config.
*/
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#define NODEV ((dev_t)-1)
struct file_list {
struct file_... |
#include <stdio.h>
#include <stdlib.h>
//#include<time.h>//necessário p/ função time()
typedef struct sElemento{
struct sElemento *next;
struct sElemento *prev;
int dado; //Depende do tipo de dados que se deseja trabalhar
} Elemento;
//Representação de Lista encadeada Simples em C
typedef str... |
/*
Institute for Formal Models and Verification (FMV),
<NAME> Linz, Austria
Copyright (c) 2006, <NAME>
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 r... |
/*-
* Copyright (c) 2011 Varnish Software AS
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* 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... |
/*******************************************************************************
MIT License
Copyright (c) 2021 <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 restrictio... |
#include "sha1.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#define TRUE 1
#define FALSE 0
struct timeval start, end;
int isHashValid(char*);
void hexStr2uint(char*, cl_uint*, int);
double getExecutionTime();
int main(int argc, char** argv) {
// Check the ... |
/*
* Copyright (c) 2016-2019 <NAME>
* 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 ... |
#include "output.h" // dprintf
#include "string.h" // memcpy
#include "x86.h" // inb
#include "smx.h"
#include "sodium.h"
#include "microbench.h"
#define CONFIG_X86_32
#include "linux/asm/apicdef.h"
#include "apic.h"
#include <stdint.h>
#include <stdlib.h>
extern void *shmem_base;
/**
Since the native memset p... |
/*
* Copyright (c) 2011-2012, The Linux Foundation. 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 lis... |
//Day7b.c
//
//Question 2: Matching addresses now need an ABA sequence outside square
//brackets and a corresponding BAB sequence inside square brackets. For example,
//if we see "xyx" outside square brackets, then seeing "yxy" inside square
//brackets would count as a match. Note that there may be multiple ABA sequenc... |
/* HDMI Data Enable Tester
Board revision R2 of the MEGA65 uses an ADV7511 chip to convert the
natively generated VGA signal into an HDMI signal. The ADV7511 needs a
"data enable" signal that is high, when valid pixels are delivered.
This program can be used to find out default values that are better... |
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
/* ------------------------------------------------------------------------- */
/* smptest test11.c */
/* 2015-09-07 <NAME> */
/* function: random number address read write, from cpu0 and cpu1 */
/* no w/r data dependency b... |
/**
******************************************************************************
* @file USB_Device/MSC_Standalone/Src/usbd_storage.c
* @author MCD Application Team
* @version V1.4.1
* @date 09-October-2015
* @brief Memory management layer
*******************************************************... |
#include "BUZZ.h"
static volatile uint16_t TPM1_N = 0; //do modulacji - zeby zmieniac czestotliwosc odpowiednio rzadko
static volatile int8_t TPM1_direction = -1; //do modulacji - zeby chodzic po czestotliwosciach gora-dol-gora...
static volatile uint8_t consecutive_failures; //ile razy pod rzad przys... |
/*
Copyright (c) 2016, <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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the fo... |
/* JNativeHook: Global keyboard and mouse hooking for Java.
* Copyright (C) 2006-2016 <NAME>. All Rights Received.
* https://github.com/kwhat/jnativehook/
*
* JNativeHook 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 Fr... |
/**********************************************************
* Copyright 2009 VMware, 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 without
* restriction, ... |
/*
* Copyright 2020 Comcast Cable Communications Management, LLC
*
* 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 require... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
#include <ctype.h>
#define SEQUENCE_LENGTH 4
#define ROUNDS 12
#define ANSI_COLOR_RESET "\x1b[0m"
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_BOLD_GREEN "\x1b[1;32m"
#define ANSI_COLOR_BOLD "\x1b... |
/*
* Libstruct
* Copyright (C) 2012 <NAME> (<EMAIL>)
*
* 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) any later version.
*
... |
#include "shell.h"
/* Main Function */
int main(int argc, char const *argv[])
{
int isRunning = 1;
int commandId = 1;
char* command = malloc(sizeof(char) * MAX_CHARACTERS);
char** parsedCommand = malloc (sizeof(char *) * MAX_CHARACTERS);
char** parsedPipeCommand = malloc (sizeof(char *) * MAX_C... |
/*-
* Copyright (c) 2017 Taketsuru <<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 c... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXW 100
#define MAXL 51
#define MAXH 1013
#define MAXV MAXH
#define MAXINT 0X7FFFFFFF
typedef struct HashKey {
char str[MAXL];
int pos;
struct HashKey *next;
} hashKey;
typedef struct {
char str[MAXL];
int s;
} word;
int n;
w... |
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
// UMSATS 2018-2020
//
// License:
// Available under MIT license.
//
// Repository:
// Github: https://github.com/UMSATS/cdh-tsat5
//
// File Description:
//... |
/*Incluir los archivos: main.c, functions.h, list.txt. Antes de correr el programa: darle un enter al archivo "list.txt" para que el puntero inicie en la línea 5.
Si imprime las opciones 3 y 4 solo q es necesario darle scroll para arriba para poder visualizar el texto impreso. */
#include <stdio.h>
#include <stdlib.h>
... |
#include <stdio.h>
#include <vTAL.h>
int testSingleShot = 0x0;
int testPeriodicShot = 0x0;
void t1Event(void* arg);
void t2Event(void* arg);
void t3Event(void* arg);
void t4Event(void* arg);
void t5Event(void* arg);
void t6Event(void* arg);
void t7Event(void* arg);
void t8Event(void* arg);
void t9Event(void* arg);
... |
// Include MicroPython API.
#include "py/runtime.h"
#include "py/objstr.h"
// input pins
enum button_pin {
UP = 23,
DOWN = 20,
LEFT = 22,
RIGHT = 21,
A = 18,
B = 19,
X = 17,
Y = 16
};
enum blend_mode {
MODE_COPY = 0,
MODE_ALPHA,
MODE_MASK,
MODE_PEN,... |
/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... |
/* early prototype of the software renderer that will be built into WeebCore */
#include "WeebCore.c"
/* passing pt's by value can generate a lot of inefficient copying but it makes code nice */
typedef struct _Pt { float x, y; } Pt;
Pt SetPt(float x, float y) {
Pt pt;
pt.x = x; pt.y = y;
return pt;
}
Pt Add... |
/*
* Experiment decimation using FIR filter - Chapter 3
* decimationTest.c
*
* Description: This is the test file for the decimation FIR filter
*
* Created on: May 13, 2012
* Author: BLEE
*
* For the book "Real Time Digital Signal Processing:
* Fundamentals, Implementation and ... |
/**
* \brief Tasks implementation.
*
* \date 2021/08/22
*
* \addtogroup tasks
* \{
*/
#include <stdbool.h>
#include <FreeRTOS.h>
#include <task.h>
#include "../inc/tasks.h"
#include "../inc/controller.h"
#include "../inc/console.h"
#include "../inc/user_interface.h"
/* Task functions */
void task_temp_contr... |
/*----------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tel... |
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... |
/****************************************************************************
* Copyright (C) 2014 by <NAME>, <NAME>, *
* <NAME> *
* *
* This file is part of the glmgen library... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <unistd.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <utime.h>
// Error code
#define E_ARGS -1
#define E_FILETYPE -2
#define E_OPENFILE -3
#define E_READ_LNK -4
... |
#include "types.h"
#include "config.h"
#include <stdio.h>
#include <glib-2.0/glib.h>
#include <stdlib.h>
static GKeyFile *keyfile = NULL;
static GKeyFileFlags flags;
static char *currconfigfilename = NULL;
void config_writeconfigfile(void) {
GError *error = NULL;
FILE *f;
gsize size;
char *data;
if (currconfig... |
/****
Copyright (c) 2018 <NAME>
****/
/* functions to check email for new query */
#include "config.h"
#include <curl/curl.h>
#include <stdlib.h>
#include <string.h>
#include <systemd/sd-daemon.h>
#include "imap.h"
struct MemoryStruct {
char *memory;
size_t size;
};
struct MemoryStruct chunk;
CURLcode ret;
CURL ... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
*/
/********************************************************************... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FsLib project
//
// module: vfat.h
// $Revision: 39 $
// $Date: 2012-05-02 15:38:09 +0400 (Ср, 02 май 2012) $
// description:
// Virtual FAT partition driver.
#if DBG
#define TAG_VFAT 'taFv'
... |
#include <stddef.h>
#include <stdint.h>
// Packed struct which contains the GDT entry data in the format required by an
// x86 CPU.
struct __attribute__((__packed__)) gdt_entry {
// The lowest 16 bits of the limit value
uint16_t limit_low;
// The lowest 16 bits of the base value
uint16_t base_low;
// The mid... |
/************************************************************************************
* Copyright (c) 2015, University of Arkansas - Hybridthreads Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are... |
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <ctype.h>
typedef char * string;
// Check For Vowel
bool isvowel(char ch){
if(isalpha(ch))
switch(ch){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
ca... |
// Buffer cache.
//
// The buffer cache is a linked list of buf structures holding
// cached copies of disk block contents. Caching disk blocks
// in memory reduces the number of disk reads and also provides
// a synchronization point for disk blocks used by multiple processes.
//
// Interface:
// * To get a b... |
#include "../../../common/math/cenMath.h"
#include "../../../common/error/error.h"
#include "cenMathTest.h"
#include "../../../test/unity/unity.h"
// Forward Declaration
void test_absLong(void);
void test_limitLong(void);
void test_limitFloat(void);
void test_minInt(void);
void test_maxInt(void);
void... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2012 <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 software.
Permission is granted to anyone to use this software for any ... |
/*
Copyright (c) 2015, <NAME>
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 conditions and the following disclaim... |
/**
******************************************************************************
* @file stm32l4xx_hal_msp.c
* @author MCD Application Team
* @brief msp file for HAL
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2... |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2016 Imagination Technologies
*/
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "qemu/timer.h"... |
#include<stdio.h>
#include"version_rapide.h"
#include <unistd.h>
void init_Zsg(int dim,int nbcl,S_Zsg* Zone){
Zone -> dim = dim;
Zone -> nbcl = nbcl;
init_liste(&(Zone->Lzsg));
Zone -> B = (ListeCase *)malloc(nbcl * sizeof(ListeCase));
int j;
for(j=0;j<nbcl;j++){
init_liste((Zone->B... |
#include <minix/i2c.h>
#include <minix/com.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "eepromread.h"
static int __eeprom_read128(int fd, i2c_addr_t addr, uint16_t mem... |
/* drm_auth.h -- IOCTLs for authentication -*- linux-c -*-
* Created: Tue Feb 2 08:37:54 1999 by <EMAIL>
*/
/*-
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to... |
/*-
* Copyright (C) 1996
* <NAME>. 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 conditions... |
/*
*
* Copyright 2015, Google Inc.
* 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 of condi... |
/*
* main.c
*
* Created on: Jun 21, 2014
*
* Author: dis-card
*
* Purpose: Main file, contains main function;
*
*/
#include <allegro5/allegro.h>
#include <allegro5/allegro_native_dialog.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <stdio.h>
#include "headers/retur... |
//
// AudioSettings.c - MrsWatson
// Copyright (c) 2016 <NAME>. 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,
// ... |
/*------------------------------------------------------------------------
*
* geqo_pool.c
* Genetic Algorithm (GA) pool stuff
*
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/backend/optimizer/geqo/geqo_po... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018 Marvell International Ltd.
*/
#include <dm.h>
#include <errno.h>
#include <malloc.h>
#include <misc.h>
#include <net.h>
#include <pci_ids.h>
#include <linux/list.h>
#include <asm/io.h>
#include <asm/arch/board.h>
#include <asm/arch/csrs/csrs-npa.h>
#inc... |
#include <julius/juliuslib.h>
#include "Interface_stub.h"
Recog*
c_init_julius_int(int argc, char *argv[]);
Recog*
c_init_julius() {
char* argv[] = {
"executable-name"
,"-C"
,"main.jconf"
,"-C"
,"am-dnn.jconf"
,"-dnnconf"
,"julius.dnnconf"
,"-confnet"
/* "-C main.jconf -C am-dnn.... |
/* AUTO GENERATED FILE!! DO NOT MODIFY!!
*
* Author: <NAME>
*
* This file is provides the implementation of some convenience functions
* that can be used when working with SDNet generated CAM tables.
*/
#include <err.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdint.h>
#include <std... |
/**
* @file syncIntv.c
* @author <NAME> (../../exaples/heatdis.c) & <NAME>
* @date March, 2017
* @brief Heat distribution code to test FTI.
*
* Program tests FTI_Snapshot.
* Slight modification of heatdis.c to make one iterations slower than others
* and remove fail/recovery since it's not needed in... |
/*
* NASA Docket No. GSC-18,370-1, and identified as "Operating System Abstraction Layer"
*
* Copyright (c) 2019 United States Government as represented by
* the Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the... |
/* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the License.
This program is distributed in t... |
/****************************************************************************
* @file main.c
* @version V2.0
* $Revision: 3 $
* $Date: 17/05/04 1:53p $
* @brief Read the Smartcard ATR from SC0 port.
* @note
* Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
**********************... |
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
develop this 3D driver.
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 ... |
/*-
* Copyright (c) 1998 - 2008 <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 lis... |
/***************************************************************************
* *
* LIBDSK: General floppy and diskimage access library *
* Copyright (C) 2001 <NAME> <<EMAIL>> *
* ... |
#include <FunnyOS/QuickFat/QuickFat.h>
#include <stdnoreturn.h>
#include <config.h>
/**
* Size of a sector in bytes.
*/
#define SECTOR_SIZE 0x200
#define VIDEO_MEMORY ((uint8_t*)0xB8000)
#define SCREEN_WIDTH 80
// Read buffer
extern uint8_t g_read_buffer[SECTOR_SIZE];
/**
* Loads one sector from the boot drive ... |
/*********************************************************************
* FileName: control.c
********************************************************************/
/** I N C L U D E S *************************************************/
#include <p18cxxx.h>
#include "header.h"
#include "system\typedefs.h"
#incl... |
#ifndef lint
static const char RCSid[] = "$Id: viewbeams.c,v 3.7 2004/01/01 11:21:55 schorsch Exp $";
#endif
/*
* Convert view to beam list.
*/
#include <string.h>
#include "rholo.h"
#include "view.h"
#include "random.h"
#ifndef MINRES
#define MINRES 12 /* section sample resolution */
#endif
#ifndef NVSAMPS
#def... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#ifndef CS
#define CS 4098
#endif
#define CacheSZ CS*1024/sizeof(double)
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
double GetWallTime(void)
{
struct timeval tp;
static long start=0, startu;
if (!start)
{
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "heap.h"
heap *heap_create() {
heap *h = malloc(sizeof(int) * 2 + sizeof(struct Node*));
h->capacity = 0;
h->heapsize = 0;
return h;
}
void heap_destroy(heap* h) {
free(h);
}
void heap_insert(heap **h, struct Node* node) {
if ((*h)->heapsize >... |
/*
* Copyright (c) 2012-2015, Juniper Networks, Inc.
* All rights reserved.
*
* You may distribute under the terms of :
*
* the BSD 2-Clause license
*
* Any patches released for this software are to be released under these
* same license terms.
*
* BSD 2-Clause license:
*
* Redistribution and use in source... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// VNC project. Version 172.16.17.32
//
// module: testvnc.h
// $Revision: 154 $
// $Date: 2014-02-07 15:56:24 +0400 (Пт, 07 фев 2014) $
// description:
// VNC-server testing application.
#i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.