text
stringlengths
3.08k
10.5k
// list.c #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> //#include <assert.h> //#include <ctype.h> //#include <signal.h> #include "list.h" // From lcc.c extern void *alloc(int); extern char *strsave(const char *str); extern char *stringf(const char *fmt, ...); ex...
/* * This file is part of the coreboot project. * * Copyright (C) 2011 The ChromiumOS Authors. 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 Lic...
/* * Copyright 2020 <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 agreed to in w...
#include "Options_Callback_Advanced.h" #include <string.h> #include "../Globals.h" #include "../Graphics/Drawing.h" #include "../Graphics/String.h" #include "../Graphics/Ascii85.h" #include "../Graphics/ProgressBar.h" #include "../Security/Security.h" #include "../Security/Random.h" #include "../Security/Backup.h" ...
/* ** 2017 April 07 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ***********************...
#include <string.h> #include "./generic.h" #include "./command.h" #include "./command_raw.h" #include "./cluster.h" #include "./copy.h" #ifndef PIPELINING_SIZE #define PIPELINING_SIZE 10 #endif // PIPELINING_SIZE #define ASSERT_RESTORE_DATA(cond, msg) do {\ if (!(cond)) {\ fprintf(stderr, "RESTORE: %s\n", msg)...
/* iddr_rid.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end ...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2018 Eotvos Lorand University, Budapest, Hungary // This file is included directly from `dpdk_lib.c`. extern int promiscuous_on; extern int numa_on; extern int check_lcore_params(); static void print_usage(const char *prgname) { printf ("%s [EAL options] -- ...
/* * Google Keep client for Samsung Gear Fit 2 (Pro) * Copyright (c) 2020, <NAME> <<EMAIL>> * This software may be distributed under the terms of the Apache 2.0 license. * * Based on Simon Weber's Google Play Services OAuth python library. * (https://github.com/simon-weber/gpsoauth) */ #include <openssl/rsa.h> ...
#include "lcd.h" static const char *TAG = "ILI9340"; static void SPIFFS_Directory(char * path) { DIR* dir = opendir(path); assert(dir != NULL); while (true) { struct dirent*pe = readdir(dir); if (!pe) break; ESP_LOGI(__FUNCTION__,"d_name=%s d_ino=%d d_type=%x", pe->d_name,pe->d_ino, pe->d_type); } closedir...
/* _PDCLIB_strtod_scan( const char *, const char **, const char **, const char **, int ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ #ifndef REGTEST #include <locale.h> #include <stdlib.h> /* This function scans a (potentia...
/* * This module defines a new load balanceing method for an upstream of a stream. * This method uses a very easy logic. It takes the first server in the list * that is available. * * By <NAME> <<EMAIL>> * * Based on nginx's 'ngx_stream_upstream_least_conn_module.c' by <NAME>, Nginx, Inc. */ #include <ngx_conf...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "render_buffers.h" #include "render_threads.h" #include "render_core.h" #include "threads.h" #include "microsec.h" typedef struct SlaveThreadParams { int id; /* 0, 1, 2, 3, .. */ Thread thread; } SlaveThreadParams; #define MAX_RENDER_THREADS 64 st...
/* * 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. * * This program is distributed in the hope that it will b...
/* Copyright(c) 2010-2017 Intel Corporation. Copyright(c) 2016-2018 Viosoft Corporation. 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 ...
#include "dispatcher.h" #include <string.h> #include "babydriver_msg_defs.h" #include "can.h" #include "can_msg_defs.h" #include "can_transmit.h" #include "log.h" #include "ms_test_helper_can.h" #include "ms_test_helpers.h" #include "test_helpers.h" #include "unity.h" #define TEST_BABYDRIVER_MESSAGE_ID (NUM_BABYDRIV...
/** This file is in the public domain. * * This demonstrates using the BSP430 OneWire interface to read the * temperature from an externally-powered Maxim DS18B20 (or similar) * digital thermometer. * * For parasitic power: Keep the 4K7 resistor between DQ and Vcc, * connect DS18B20 Vdd to GND, and specify a sec...
/* * @brief EEPROM example * This example show how to use the EEPROM interface * * @note * Copyright(C) NXP Semiconductors, 2013 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
/* This tests the behavior of Minix when the current working dir (cwd) doesn't * actually exist and we either: * - create a new file * - make a new directory * - make a special file (mknod) * - create a hard link * - create a symbolic link, or * - rename a file * In each case, `a component of the pa...
#include "PREDICTdummy.h" void imu_thread() { pthread_mutex_lock(&printmutex); printf("Hello MCU6050!\n"); pthread_mutex_unlock(&printmutex); unsigned int signature = 0; signature = i2c_reg8_read8(MPU6050_I2C_ADDRESS, MPU6050_WHO_AM_I); pthread_mutex_lock(&printmutex); printf("Signature = 0x%.2X\n", sig...
/* * Copyright (C) 2011-2012 <NAME> <<EMAIL>> * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. * * This 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...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <error.h> #include "cfbf.h" void cfbf_close(struct cfbf *cfbf) { cfbf_fat_close(&cfbf->fat); cfbf_fat_close(&cfbf->mi...
#include <efi.h> #include <efilib.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define CHAR16_BUF_MAX 512 CHAR16 *APP_PATH = L"kernel.efi"; VOID efi_panic(EFI_STATUS efi_status, INTN line) { Print(L"panic at line:%d\n", line); Print(L"EFI_STATUS = %d\n", efi_status); ...
// // Created by lzb on 12/20/19. // /* #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "uv.h" int fib_(int n) { if (n <= 2) return 1; // 递归结束条件 return fib_(n - 1) + fib_(n - 2); // 递归,方法没变,规模变小了 } void fib(uv_work_t *req) { int n = *(int *) req->data; if (random() % 2) sle...
/** * Copyright (c) 2015 rxi * * This library is free software; you can redistribute it and/or modify it * under the terms of the MIT license. See LICENSE for details. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <float.h> #include <SDL/SDL.h> #include "lib/glew/glew.h" #include "lib/se...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <proto/exec.h> #include <proto/intuition.h> #include <proto/graphics.h> #include <hardware/custom.h> // se page 28 in the hardware ref manual #include "render.h" #ifdef __amigaos4__ struct Custom _custom; s...
/* 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, distribute, sublicense, and/or sell copies of t...
// CS 2505 Fall 2018 // Test driver for C01 // // Invocation: ./driver <test case file> <results file> [-repeat] // // Standard Library headers: #include <stdio.h> // for I/O functionality #include <stdlib.h> // for general features #include <string.h> // for C string library functio...
// $ gcc -g -o printoled printoled.c `pkg-config --cflags --libs libbone` // # ./printoled #include <ctype.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <poll.h> #include <errno.h> #include "libbone.h" #include "ssd1306.h" #define DEBOUNCE_DELAY 150000 ...
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the ...
// Copyright (c) 2018-2019 <NAME> // All Rights Reserved // // Distributed under the terms of the 2-clause BSD License. The full // license is in the file LICENSE, distributed as part of this software. #include <sys/socket.h> #include <string.h> #include "common/channel.h" #include "common/convert.h" #include "commo...
/** * @file main.c * @author <NAME> * @brief Plugin for sysrepo datastore for configuration of TSN function. * * Copyright 2019 NXP * * 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 *...
#include "values.h" /* EXPLANATION OF THE CERTICOQ GENERATIONAL GARBAGE COLLECTOR. <NAME>, September 2016 The current Certicoq code generator uses Ocaml object formats, as described in Chapter 20 of Real World Ocaml by Minsky et al. https://realworldocaml.org/v1/en/html/memory-representation-of-values.html That is:...
#include "get_region_center.h" #include "gridnav.h" #include <stdio.h> #include <stdlib.h> #include "wrf_projection.h" int get_gridnav_projection(int wrf_projection); /**************************************************************************** * * This function calculates the center lat and lon of a region within...
/* * nnio server * * Copyright (c) 2016, Wind River Systems, Inc. * All rights reserved. * * See "LICENSE" for license terms. * * Author: * <NAME> <<EMAIL>> */ #include <nnio.h> static void show_usage(const char *prog) { info_cont("usage: %s <options> <url>\n", prog); info_cont("\noptions:\n"); info_co...
#include <assert.h> #include "../model/material.h" #include "../controller/controller.h" #include "../repository/repository.h" void test_material() { Material m; m_time exp; exp.tm_year = 2016; exp.tm_mday = 15; exp.tm_mon = 3; material_init(&m, "faina", "romania", (float)12.05, exp); asser...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <unistd.h> #include "config.h" #include "ev_dfg.h" #include "test_support.h" static int status; static EVclient test_client; static int base=2; static int simple_handler(CManager cm, void *vevent, void *client_data, attr_list attrs...
/* * UnitTests.c * * Created: 20/04/2018 5:25:04 PM * Author: <NAME> */ #include <stddef.h> #include <stdint.h> #include <stdio.h> #include "MinUnit.h" #include "UnitTests.h" #include "Utility.h" // These are required. int MinUnitTestsRun = 0; int MinUnitTestsSuccess = 0; int MinUnitTestsFail = 0; // Call f...
#include "piece_ex.h" #include "dtorr/fs.h" #include "msg_out.h" #include "list.h" #include "log.h" #include "util.h" #include <string.h> #include <stdlib.h> #include <openssl/sha.h> #define MAX_IN_REQS 1024 static int verify_hash(dtorr_config* config, dtorr_torrent* torrent, char* buf, unsigned long long index, unsi...
/** @file * Copyright (c) 2018-2020, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * * 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 * * ht...
#include "generic.h" #include "thread-pool.h" #include <unistd.h> #include <signal.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <string.h> #include <netdb.h> #include <sys/poll.h> #include <fcntl.h> #include <sys/queue.h> ...
#include <stdio.h> #include <string.h> #include <curl/curl.h> #include <pthread.h> #include <unistd.h> #include <stdlib.h> #include <time.h> #define URL "http://test1-proxy-01/ioreg" #define SN_PREX "PT=0032&mo=63514W&sn=28:65:6b:00" #define START_ADDR 40001 #define END_ADDR 40128 #define PT 1 #def...
// A quick note: getting this to work in unity required bodging the // unity_tests.mk Makefile. The key part was adding -lm to the end of // the linker call: // // $(PATHB)test_%.$(TARGET_EXTENSION): $(PATHO)test_%.o $(PATHO)%.o $(PATHU)unity.o #$(PATHD)test_%.d // $(LINK) -o $@ $^ -lm // # Note janky addition of -lm...
#include <cbm.h> #include <stdlib.h> #include <time.h> #include <conio.h> #if !defined(__C64__) #error Only C64 is supported #endif #define ROWS 25 #define COLS 40 // Controller Interface Adapter registers // Zie: http://sta.c64.org/cbm64mem.html #define CIA1_PORT1 0xDC00 #define CIA1_DDR1 0xDC02 #define SCR_CTRL1 ...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "conv4D.h" #include "conv4D_impl.h" #include "featuremap.h" #if HAVE_UNISTD_H # include <unistd.h> #elif _WIN32 # include <direct.h> # define chdir _chdir #else # warning "Couldn't find unistd.h via CMake and not a Windows platoform. At...
/****************************************************************************** * Copyright (c) 2018 Texas Instruments Incorporated - http://www.ti.com * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * ...
// // firewall.c // firewall // // Created by <NAME> on 6/6/19. // Copyright © 2019 <NAME>. All rights reserved. // #include <mach/mach_types.h> #include <sys/proc.h> #include <sys/socket.h> #include <sys/kpi_socketfilter.h> #include <sys/kpi_socket.h> #include <IOKit/IOReturn.h> #include <netinet/in.h> #include <...
/* * Happyblog -- A Blog in the imperative programming Language C * (C) 2012 <NAME> * * 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, Versi...
#include "initiator.h" void usage(){ printf("------Initiator Usage------\n"); printf("./initiator \n-n <MirrorServerAddress> \n-p <MirrorServerPort> \n -s <ContentServerAddress1:ContentServerPort1:dirorfile1:delay1,ContentServerAddress2:ContentServerPort2:dirorfile2:delay2>\n"); } int main(int argc, char *argv[]){ ...
#include "sensor.h" #include "onewire.h" #include "common.h" #include "message.h" #include "app_cfg.h" #include "thread_watchdog.h" #include "crc/crc8.h" #include <string.h> #define SENSOR_TIMEOUT S2ST (2) #define SENSOR_SAMPLE_SIZE (10) typedef struct sensor_port_s { sensor_id_t sensor; sens...
#pragma ident "$Id: main.c,v 1.1 2014/04/16 15:34:12 dechavez Exp $" /*====================================================================== * * soh_blk * * Main for creating seed header blockettes for SOH channels. * * Reads lists of station/channel/loccode combinations from stdin, * creates subdirs sta/ch...
/** * Copyright (C) 2010, Hyves (Startphone Ltd.) * * This module is part of Libredis (http://github.com/toymachine/libredis) and is released under * the New BSD License: http://www.opensource.org/licenses/bsd-license.php * */ #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errn...
#include <stdlib.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <math.h> #include <fcntl.h> #include <errno.h> #include <time.h> #include <unistd.h> #include <netdb.h> #include <pthread.h> #ifdef __QNX__ #include <hw/pci.h> #include <hw/inout.h> #include <sys/neutrino.h> #include <sys/io...
/* * Copyright 2014, The Android Open Source Project * * 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 applica...
/******************************************************************************/ /* Files to Include */ /******************************************************************************/ /* Device header file */ #if defined(__XC16__) #include <xc.h> #elif def...
#include "linear.h" #include <math.h> #include <stdlib.h> #include <limits.h> int gf_bilinear( const gf_struct *gf, const gf_grid *to_grid, void *set_data_xtras, gf_bilinear_kernel *set_data, // int (*set_data)( // gf_float *quad, // const gf_grid *from_grid, // double *weight...
/** * @file * Password-based login logic. */ #include "ABC_LoginPassword.h" #include "ABC_Login.h" #include "ABC_LoginDir.h" #include "ABC_LoginServer.h" static tABC_CC ABC_LoginPasswordDisk(tABC_Login *pSelf, tABC_U08Buf LP, tABC_Error *pError) { tAB...
/*************************************************************************** /* ned_sk.c <NAME> Nov. 9, 1993 /* /* FUNCTIONS related to network: /* ============================ /* /* These should be only the functions that need to be modified if we ever /* decide to use different interface for communication. They w...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <time.h> #include <signal.h> #include <sys/socket.h> #include <sys/select.h> #include <sys/un.h> #include <sys/utsname.h> #include <sys/ioctl.h> #define MAX_MSG_LENGTH 512 //Author: <NAME> char buf[512]; struc...
/* -*- mode: c; coding: utf-8; indent-tabs-mode: nil -*- */ /* Copyright (c) 2017 <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 lim...
/* * Copyright (c) 2018, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <arch_helpers.h> #include <cactus_def.h> #include <debug.h> #include <events.h> #include <ivy_def.h> #include <plat_topology.h> #include <platform.h> #include <power_management.h> #include <smccc.h> #in...
#include <arduino.h> #include <avr/io.h> #include <avr/interrupt.h> #include <stdbool.h> #include "cube.h" uint8_t default_vram[64] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, ...
/* * Copyright 2004 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001, Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free So...
/* slab.c - Slab allocator for Mink. * * Portions copyright (c)2012 <NAME>. * * Copyright (c)2013 <NAME>. See LICENSE for details. */ #include "assert.h" #include "hal.h" #include "slab.h" #include "utils.h" typedef struct slab_footer { struct slab_footer *next; } slab_footer_t; #define SLAB_ADDR_MASK ~(SLAB_...
/**************************************************************************** * * * GNAT COMPILER COMPONENTS * * * * ...
#include "metalc/errno.h" #include "metalc/kernel_hooks.h" #include "metalc/setjmp.h" #include "metalc/signal.h" #include "metalc/stdbool.h" #include "metalc/stddef.h" extern MetalCRuntimeInfo *mcinternal_runtime_info; extern mclib_jmp_buf mcinternal_abort_target; __attribute__((noreturn)) static void _sighandler_t...
#define MAX_MEL 100 #define BLANKINT 100000 typedef struct ngramrec { short exists; /* how many exist in the query pattern */ short numOcc; /* how many exist in the text */ } NGRAMS; typedef struct ngramtree { char *part2value; /* all but first two chars of ngram */ short exists; /* how many exist in the quer...
/*************************/ /* Config Structure */ /*************************/ struct config_t { uint8_t vers; uint8_t versEEPROM; int32_t gyroPitchKp; int32_t gyroPitchKi; int32_t gyroPitchKd; int32_t gyroRollKp; int32_t gyroRollKi; int32_t gyroRollKd; int16_t accTimeConstant; int8_t mpuLPF; // ...
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #ifdef BESSPIN_FREERTOS #include <FreeRTOS.h> #include <message_buffer.h> #include <task.h> #else // !BESSPIN_FREERTOS #include <stdlib.h> #include <time.h> #include "inj_unix_helpers.h" #include "unbufferStdout.h" #endif // !BESSPIN_FREERTOS #include "tes...
/** * ymodem.c * @author johnny * @date 11.24 2017 */ #include "ymodem.h" #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) static void send_package(intptr_t handle, uint8_t* data, uint16_t length); static void receive_package(uint8_t* data, uint16_t length); static void file_write_to(FILE* fp, u...
/* -------------------------------------------------------- Img2Ascii https://github.com/vtiinanen/Img2Ascii -------------------------------------------------------- MIT License Copyright (c) 2020 vtiinanen -------------------------------------------------------- RELEASE: 1.0.0 --------------------------------...
/* Copyright (c) 2016-2018, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #define CRYPTO_ED25519_PRIVATE #include "orconfig.h" #include "or/or.h" #include "lib/err/backtrace.h" #include "or/config.h" #include "test/fuzz/fuzzing.h" #include "lib/crypt_ops/crypto.h" #include "lib/crypt_ops/crypto_e...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static doublereal c_b8 = 1.; static integer c__1 = 1; /* Subroutine */ int zpptri_(char *uplo, integer *n, doublecomplex *ap, integer *info) { /* System generated locals */ integer i__1, i__2, i__3; doublereal d__1; doublecomplex...
/* L O W P . C * BRL-CAD * * Copyright (c) 2004-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as pu...
/* $NetBSD: position.c,v 1.18 2010/11/22 21:04:28 pooka Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> of the University of California, San Diego and Lance * Visser of Co...
/* * MPEG-DASH ISO BMFF segmenter * Copyright (c) 2014 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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...
/** ****************************************************************************** * @file usart_if.c * @author MCD Application Team * @brief Configuration of UART MX driver interface for hyperterminal communication ****************************************************************************** * @atte...
/* * Copyright © 2020 Google, Inc. * Copyright (c) 2020 Etnaviv Project * * 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...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/types.h> #include <stdio.h> #include <netdb.h> #include <netinet/in.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #define PORT 1234 #de...
/*==================================================================================== EVS Codec 3GPP TS26.443 Oct 20, 2015. Version 12.4.0 ====================================================================================*/ #include <math.h> #include <assert.h> #include "options.h" #include "cnst.h" #include ...
/** @file @brief 仮想タイマドライバ @date 2009.10.25 @author <NAME> */ #include "sysconfig.h" #include "asm-emu.h" #include "device.h" #include "tkprintf.h" #include "device/timer_ioctl.h" #include "task/tcb.h" #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <string.h> #include <sys/time.h>...
#pragma once #include <stdint.h> typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typedef int8_t s8; typedef int16_t s16; typedef int32_t s32; typedef int64_t s64; typedef volatile u8 vu8; typedef volatile u16 vu16; typedef volatile u32 vu32; typedef volatile u64 vu64; ...
/*++ Copyright (c) 1997 Microsoft Corporation Module Name: adddom.c Abstract: Domain Name System (DNS) Server Test Code for adding a Zone Author: <NAME> (ramv) 14th March 1997 Revision History: <NAME> (ramv) 14th March 1997 Created 5th Ma...
/* * Copyright (c) 2003, <NAME> <<EMAIL>> * * This source code is released for free distribution under the terms of the * GNU General Public License version 2 or (at your option) any later version. * * This module contains functions for generating tags for Erlang language * files. Some of the parsing constru...
// Copyright 2021 The Emscripten Authors. All rights reserved. // Emscripten is available under two separate licenses, the MIT license and the // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. #include <stdio.h> #include <string.h> #include <assert.h> #inclu...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <oqs/oqs.h> typedef struct magic_s { uint8_t val[32]; } magic_t; static OQS_STATUS kem_test_correctness(const char *method_name) { OQS_KEM *kem = NULL; uint8_t *public_key = NULL; uint8_t *secret_key = NULL; uint8_t *ciphe...
/* * linux/drivers/message/fusion/mptscsih.h * High performance SCSI / Fibre Channel SCSI Host device driver. * For use with PCI chip/adapter(s): * LSIFC9xx/LSI409xx Fibre Channel * running LSI Fusion MPT (Message Passing Technology) firmware. * * Copyright (c) 1999-2007 LSI Corporation...
//====================================================== // file name: MC94F1202A.h // device : MC94F1202A (20 pin) // version : Ver1.1 // date : 2017-03-07 // compiler : Keil-C //====================================================== #include <intrins.h> #ifndef _MC94F1202A_ #define _MC94F1202A_ //------...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the terms of...
/* * Copyright 2013 Red Hat Inc. * * 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...
/** * @file display.c * */ /********************* * INCLUDES *********************/ #include "display.h" #ifndef DISPLAY_SDL_INCLUDE_PATH # define DISPLAY_SDL_INCLUDE_PATH <SDL2/SDL.h> #endif #include <stdlib.h> #include <stdbool.h> #include <string.h> #include DISPLAY_SDL_INCLUDE_PATH /****************...
/* Copyright (c) 2007, 2008 by <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, distribute,...
/* * 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 ...
/* * drivers/input/touchscreen/jornada720_ts.c * * Copyright (C) 2007 <NAME> <<EMAIL>> * * Copyright (C) 2006 <NAME> <<EMAIL>> * based on HP Jornada 56x touchscreen driver by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Publ...
#include <stdint.h> #include <stddef.h> #include <sys/apic.h> #include <lib/klib.h> #include <cpuid.h> #include <acpi/madt.h> #include <mm/mm.h> #include <sys/cpu.h> #define APIC_CPUID_BIT (1 << 9) int apic_supported(void) { unsigned int eax, ebx, ecx, edx = 0; kprint(KPRN_INFO, "apic: Checking for support.....
/*! \file bcma_bcmbd_qspi.c * * QSPI CLI shared functions. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <sal/sal_libc.h> #include <sal/sal_alloc....
/*- * BSD LICENSE * * Copyright (c) Intel Corporation. * 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 copyri...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include "header.h" #define NUM_WORKER 3 static int id_send; static int id_recv; static pthread_t threads[NUM_WORKER]; void init_buffer(Buffer* b){ b->count = 0; b->testa = 0; b->coda = 0; pthread_cond_init(&(b->ok_cons),NULL); pthre...