text
stringlengths
3.12k
18.7k
/* 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, distr...
#include "shoot.h" #include "control.h" #include "physics.h" #include "bangbang.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <util/physbot.h> #include "util/physbot.h" #include "util/log.h" #ifndef FWSIM #include "chicker.h" #include "dr.h" #include "dribbler.h" #include "leds.h" #else #include...
#include <stdio.h> #include <stdlib.h> #include <mpi.h> #include <math.h> #define SOFTENING 1e-9f typedef struct{ float x; float y; float z; float vx; float vy; float vz; }Body; MPI_Datatype BodyMPI; Body *bodies; //MPI ENV int my_rank; /* rank of proces...
/* SPDX-License-Identifier: BSD-2-Clause */ #define _DEFAULT_SOURCE #define _GNU_SOURCE #include <sys/mount.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #i...
/* * Copyright 2013 Advanced Micro Devices, 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, m...
#include <math.h> #include <stdlib.h> #if !defined(__APPLE__) #include <malloc.h> #endif #include <stdio.h> #include <assert.h> #define NR_END 1 #define FREE_ARG char* double *sm2_vector(long nl, long nh); void sm2_error(char *s); void sm2_polint(double xa[], double ya[], int n, double x, double *y, double *dy); void...
/** Copyright 2018 <NAME><<EMAIL>> */ /* C library */ #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <string.h> /* system library */ #include <sys/ipc.h> #include <sys/shm.h> #include <sys/types.h> #include <unistd.h> #ifdef __APPLE__ #include <mach/vm_statistics.h> #include <sys/mman.h> #elif de...
/* * Copyright 1996-2019 Cyberbotics 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 applicable law or ...
/* * AES round Reference C Implementation * * Copyright 2014: * <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 o...
/* $XFree86: xc/programs/Xserver/afb/afbpixmap.c,v 3.4 2005/10/14 15:16:17 tsi Exp $ */ /*********************************************************** Copyright (c) 1987 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S...
/* * Copyright (c) 2016 Intel Corporation. * * 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...
/*- * Copyright (c) 2010-2016 Solarflare Communications Inc. * All rights reserved. * * This software was developed in part by <NAME> under contract for * Solarflare Communications, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
/*************************************************************************\ * Copyright (C) <NAME>, 2020. * * * * This program is free software. You may use, modify, and redistribute it * * under the terms of the ...
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <stdio.h> #include <string.h> #define BOOL int #define FALSE 0 #define TRUE 1 #define BUFSIZE 1024 #define MAX_NODES 10 enum MSG_TYPE{ERROR,DATA,ROUTE_REQ,ROUTE_REPLY}; /* TO DO: lots of stuff, including ...
/************************************************* * * Copyright 2016 <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 * * U...
// This file has been prepared for Doxygen automatic documentation generation. /*! \file ******************************************************************** * * Atmel Corporation * * File : USI_TWI_Slave.c * Compiler : IAR EWAAVR 4.11A * Revision : $Revision: 1.14 $ * Date :...
//This function is for input checking and initializing the simulator. //The actual simulation is done by simulator.c #include <string.h> #include <stdio.h> #include <math.h> #include "mex.h" #include "simulator.h" #include "pwl_interp_1d.h" struct simulator sim; int initialized = 0; //Various input chec...
/* pckgss.f -- translated by f2c (version 19980913). 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__2 = 2; static integer c__5 = 5; /* $Procedure PCKGSS ( PCK get segment summary ) */ /* Subroutine...
#include <string.h> #include <stdlib.h> #include <unistd.h> #include "sleep.h" #include "lcd.h" #include "st7789.h" #include "font.h" static lcd_ctl_t lcd_ctl; static uint16_t* g_lcd_display_buff = NULL; static uint16_t g_lcd_w = 0; static uint16_t g_lcd_h = 0; static bool g_lcd_init = false; void lcd...
/* Unix SMB/CIFS implementation. RPC pipe client Copyright (C) <NAME> 2007 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 3 of the License, or (at your option) a...
/* * This file is part of the coreboot project. * * Copyright (C) 2012 Samsung Electronics * Copyright 2013 Google Inc. * * 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...
/* zip_algorithm_xz.c -- LZMA/XZ (de)compression routines Bazed on zip_algorithm_deflate.c -- deflate (de)compression routines Copyright (C) 2017-2020 <NAME> and <NAME> This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <<EMAIL>> Redistribution and use in so...
/* * test-sgen-qsort.c: Our own bzero/memmove. * * Copyright (C) 2013 Xamarin Inc * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License 2.0 as published by the Free Software Foundation; * * This library is distributed in the ho...
/* * This software is released into the public domain. * * A MpscFifo is a wait free/thread safe multi-producer * single consumer first in first out queue. This algorithm * is from <NAME>'s non intrusive MPSC code here: * http://www.1024cores.net/home/lock-free-algorithms/queues/non-intrusive-mpsc-node-based-qu...
/* * Copyright (c) 2012 <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...
/* vgGetText - Get text for full text indexing for VisiGene. * This is just the kgRef.description for known genes associated * with the visiGene genes. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "localmem.h" #include "options.h" #include "jksql.h" #include "obscure.h" #include "visiGene....
/* Chicken Little By the CL Dev Team and Gratis Games Uses the DIVE game engine by Divine Entertainment ------------------------------------------------------- module: state.c Handles the updating of states of entities in the game engine. There are currently two types of entities, and hence two state ...
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86DPMS.c,v 1.14 2005/10/14 15:16:32 tsi Exp $ */ /* * Copyright (c) 1997-2004 by The XFree86 Project, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation fi...
#include "encrypt.h" // The biggest 64bit prime #define P 0xffffffffffffffc5ull #include <stdio.h> #include <stdint.h> #include <assert.h> #include <stdlib.h> static inline uint64_t mul_mod_p(uint64_t a, uint64_t b) { uint64_t m = 0; while(b) { if(b&1) { uint64_t t = P-a; if ( m >= t) { m -= t; } el...
// This file was converted from Gennady's original C++ to C static PyObject *CalcPolygons_GetVolumes(PyObject *self, PyObject *args) //////////////////////////////////////////////////////////////////////////////// // calculate oil volume for polygon based on LE mapping // // input data: // GridMatrix - a map-matrix ...
#include "md5.h" #include <string.h> #define LEFTROTATE_(x, c) (((x) << (c)) | ((x) >> (32 - (c)))) typedef union { byte b[8]; ulong u; } Converter_; static const uint k_[] = { 0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, 0xf57c0faf, 0x4787c62a, 0xa8304613, 0xfd469501, 0x698098d8, 0x8b44f7af, 0xffff5bb1...
#include "44b.h" #include "44blib.h" #include "def.h" #include "option.h" #include <stdarg.h> #include <string.h> #include <stdio.h> #include <ctype.h> #define STACKSIZE 0xa00 //SVC satck size(do not use user stack)// #define HEAPEND (_ISR_STARTADDRESS-STACKSIZE-0x500) // = 0xc7ff000// //SVC Stack Area:0xc(e)7...
/* * keylogger.c * * Created on: 22 abr. 2019 * Author: luis */ #include <linux/input.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <string.h> #include "keylogger.h" #define BUFFER_SIZE 100 #define NUM_KEYCODES 71 // FIXME #define RIGHT_SHIFT_CODE 54 #define ...
#define _GNU_SOURCE 600 #include <assert.h> #include <errno.h> #include <fcntl.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #define EPOLL_EVENTS 128 #define PTSNAME_SIZE 1024 static int write...
#include <stdlib.h> #include <gtk/gtk.h> #include <epoxy/gl.h> #include <gthree/gthree.h> #include "utils.h" static GList *objects; static GthreeObject * green_object (int num) { GthreeGeometry *geo; GthreeMaterial *material; switch (num) { case 0: geo = gthree_geometry_new_sphere (20, 40, 10);...
/* thermfunc.c */ /* C versions of IDL thermfunc, zplanck */ /* converted/modified from IDL version j.bennett @ IPAC */ /* 12,17,18,23feb1999 */ /* ...
// // Created by dell on 2021/11/30. // #include <pthread.h> #include "libavcodec/packet.h" #include "libavutil/frame.h" #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "person/opensl-player.h" #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> #include <android/log.h> #includ...
/* ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support * ---------------------------------------------------------------------------- * Copyright (c) 2008, Atmel Corporation * * All rights reserved. * * Redistribution and use in so...
/*! * @file main.c * @brief LightRanger5 Click example * * # Description * This is an example that demonstrates the use of the LightRanger 5 click board. * This demo application shows an example of distance measurement. * * The demo application is composed of two sections : * * ## Application Init * Initiali...
/* * Copyright 2020 - 2021 <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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
/* * FlashKeys - A tool to flash PicoWAN and LoRaWAN keys/IDs * * Copyright (c) 2018, <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 ret...
#include <nt.h> #include <ntrtl.h> #include <nturtl.h> #include <windows.h> #include "tsappcmp.h" #include <regapi.h> PTERMSRVCREATEREGENTRY gpfnTermsrvCreateRegEntry; PTERMSRVOPENREGENTRY gpfnTermsrvOpenRegEntry; PTERMSRVSETVALUEKEY gpfnTermsrvSetValueKey; PTERMSRVDELETEKEY gpfnTermsrvDeleteKey; ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include <tepla/ec.h> void jr_init(const EC_PAIRING p, mpz_t x, mpz_t y, mpz_t x0, mpz_t y0, mpz_t x1, mpz_t y1, mpz_t x2, mpz_t y2, EC_POINT G1, EC_POINT G2, EC_POINT G1alpha, Element z, EC_POINT u1, EC_POINT h1, EC_POINT w1){ ...
#include <stdio.h> #include <malloc.h> #include <string.h> #include <libdragon.h> #define BLACK 0x000000FF #define WHITE 0xFFFFFFFF #define JOYSTICK_DEAD_ZONE 32 #define GLYPH_WIDTH 8 #define GLYPH_HEIGHT 8 #define LINE1 (8 * GLYPH_HEIGHT) #define LINE2 (12 * GLYPH_HEIGHT) #define LINE3 (14 * GLYPH_HEIGHT) #defin...
/* * Copyright (C) 2008 Google, Inc. * Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * *...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <emmintrin.h> #include <inttypes.h> #include <time.h> #include <math.h> #ifdef __MACH__ #include <mach/mach_traps.h> #include <mach/mach_time.h> #endif #ifndef NSEC_PER_SEC #define NSEC_PER_SEC 1000000000ull #endif #ifndef __MACH__ #define TIME_ABSO...
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.0.0 * svn version: exported * Options: --check-global -s 1269 * Seed: 1269 */ #include "random_runtime.h" long __undefined; /* --- Struct/Union Declarations --- */ /* --- GLOBAL VARIABLES --- */ uint32_t g_5 = 9L; int32_t g_7 = 1L; int...
/* * Copyright (c) 2018 ZenDIY * 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 appl...
/************************************************************************** Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. 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 i...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include "tldevel.h" #include "outdir.h" #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <unistd.h> char* concat_out_dirs(char* root, char* sub) { char* tmp = NULL; int len = (int)(strlen(root) + strlen(sub) + 2 ); ...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
/****************************************************************************** * Copyright (C) 2014-2020 <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 restr...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* Copyright (c) 2019 <NAME> 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 purpose, including commercial applications, and to alte...
#include <stdio.h> #include "testing.h" #include "abb.h" #include "pruebas_arbol.h" #include "time.h" #define NUMINSERTAR 7 #define ERROR -1 #define EXITO 0 #define MAXRAND 101 // función para utilizar en el iterador interno del arbol. Muestra un entero por stdout. bool mostrar_entero(void* elemento, void* extra){ e...
/* * Copyright (C) 2012 <NAME> <<EMAIL>> * 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, including without limitation * the rights to use,...
#include <stdio.h> #include <unistd.h> #include <dirent.h> #include <conio.h> #include "crypto.h" #define COMMON_PARAMS_FILE_NAME "common_p.param" #define SENDER_FIRST_STEP_RESULT_FILENAME "sender_first" #define RECEIVER_FIRST_STEP_RESULT_FILENAME "receiver_first" #define SENDER_SECOND_STEP_RESULT_FILENAME "s...
#include "4way-parallel-mergesort-funcs.h" #include <stdio.h> #include <math.h> #include <stdlib.h> #include <limits.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <sys/wait.h> #include <sys/ipc.h> #include <sys/shm.h> #include <signal.h> void merge_4_way(int* array, int low, int mid1, in...
/* Simulation of diffusion equation. * By <NAME> and <NAME> */ #include <stdlib.h> #include <stdio.h> #include <assert.h> #include "mpi.h" #define SQUARE(x) ((x)*(x)) #define nprocsx 2 /* number of processes, x direction */ #define nprocsy 4 /* number of processes, y direction */ #define nxl ...
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU Genera...
/* (C) Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007 <NAME> * (C) Copyright 2008, 2009, 2010, 2011, 2012 <NAME> * * This file is part of MCL. You can redistribute and/or modify MCL under the * terms of the GNU General Public License; either version 3 of the License or * (at your option) any later version...
// *********************************************************************** // | // Title : Implementation and Optimization of a RISC-V Processor on // : a FPGA // | // Developers : <NAME>, Technical University of Denmark // : <EMAIL> or <EMAIL> // ...
/*----------------------------------------------------------------------------*/ /* Hobbit RRD handler module. */ /* */ /* Copyright (C) 2004-2009 <NAME> <<EMAIL>> */ /* ...
#define _GNU_SOURCE #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <omp.h> #include <pthread.h> #include <linux/perf_event.h> #include <linux/hw_breakpoint.h> #include <sys/ioctl.h> #include <asm/unistd.h> #include <errno.h> #include <error.h> #include <perfmon/pfmlib.h> #includ...
/* * Copyright (c) 2014, <NAME>, <NAME>, RWTH Aachen University * 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 * ...
// Module for interfacing with the SPI interface #include "module.h" #include "lauxlib.h" #include "platform.h" #include "driver/spi.h" #define SPI_HALFDUPLEX 0 #define SPI_FULLDUPLEX 1 static u8 spi_databits[NUM_SPI] = {0, 0}; static u8 spi_duplex[NUM_SPI] = {SPI_HALFDUPLEX, SPI_HALFDUPLEX}; // Lua: = spi.setup( ...
//Header files #include <stdlib.h> #include <GL/glut.h> #include <stdio.h> #include <string.h> //Global variables double WIDTH = 1360; double HEIGHT = 768; int NUM_DISKS = 20; GLboolean motion = GL_FALSE; GLboolean back_wall = GL_FALSE; GLint xangle = 0, yangle = 0; GLint xlangle = 0, ylangle = 0; ...
/* D I T S P L I T C . C * BRL-CAD * * Copyright (c) 2004-2022 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 ...
/* Copyright (c) 2017, <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...
/* * Copyright 2004-2011 Freescale Semiconductor, Inc. * * Copyright (c) 2006, Chips & Media. All rights reserved. */ /* * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * ...
/* * 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 t...
// Standard library includes. #include <stdint.h> #include <stdlib.h> // Vendor-provided device header file. #include "stm32l4xx.h" // HAL includes. #include "hal/dma.h" #include "hal/gpio.h" #include "hal/rcc.h" #include "hal/spi.h" #include "hal/tim.h" // BSP includes. #include "ili9341.h" #include "ringbuf.h" #inclu...
#include <assert.h> inline int is_less(double pointX, double pointY, double pointZ, double minX, double minY, double minZ) { return (minX > pointX && minY > pointY && minZ > pointZ); } inline int is_greater(double pointX, double pointY, double pointZ, double maxX, double ...
#pragma once #include <stdint.h> typedef struct ELF64Header { unsigned char id[16]; uint16_t type; uint16_t machine; uint32_t version; uint64_t entry; uint64_t phOff; uint64_t shOff; uint32_t flags; uint16_t hdrSize; uint16_t phEntrySize; uint16_t phNum; uint16_t shEntrySize; uint16_t shNum; uint16_t sh...
/* * Copyright 2018 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <ctype.h> #include <errno.h> #include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #inc...
/******************************************************************** * File : init.c * Author : <NAME> Copyright (C) 1994-2019 * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://moz...
#include <stdio.h> #include <stdint.h> #include <string.h> #include "blake256.h" // Blake-256 constants, taken verbatim from the final // spec, "SHA-3 proposal BLAKE" version 1.3, published // on December 16, 2010 - section 2.1.1. const uint32_t BLAKE256_CONSTS[16] = { 0x243F6A88U, 0x85A308D3U, 0x13198A2EU, 0x037073...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2011-01-13 weety first version */ #include <rtthread.h> #include <rthw.h> #include "board.h" #include <mmu.h> /** * @addtogroup at91sam9260 */ /*@...
/* * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in...
/* $OpenBSD: db.c,v 1.10 2004/09/16 18:35:42 deraadt Exp $ */ /* * Persistent database management routines for DHCPD. */ /* * Copyright (c) 1995, 1996 The Internet Software Consortium. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pr...
#pragma ident "$Id: msgq.c,v 1.17 2017/10/07 21:38:10 dechavez Exp $" /*====================================================================== * * Simple minded message queue to handle buffering of data between * threads. This implementation uses the mutex and semaphore macros. * * A message is pulled off a qu...
/** * * \file * * \brief XMEGA B1 Xplained board init. * * This file contains board initialization function. * * Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * softwa...
/* * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ #include <stdbool.h> #include <stdio.h> #include "freertos/FreeRTOS.h" #include <freertos/queue.h> #include <freertos/timers.h> #include "esp_err.h" #include "esp_log.h" #include "esp_chec...
#include <stdio.h> // getline #include <stdlib.h> // free (after getline) #include <stdbool.h> #include "startstoptimer.h" #define LINES 100 // snailfish numbers in input file #define DIGITS 300 // stack size for digit expansion while splitting, max for my input = 274 static const char *fname = "input18.txt"; t...
#include <assert.h> #include <err.h> #include <errno.h> #include <limits.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "base64.h" /* Base64 routines adapted from https://www.libsodium.org */ /* * ISC License * * Copyright (c) 2013-2017 * <NAME> <j at pureftpd dot org...
/* * File name: test_spi.c * Date first: 06/08/2020 * Date last: 07/08/2020 * * Description: Test/Example for STM8 SPI Library. * * Author: <NAME> * * Copyright (C) 2020 <NAME>. All rights reserved. * Permission is hereby granted for any use. * * Location: * https://github.com/unfrozen/stm8_...
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
/* dist.c -- re-distribute a message * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <h/utils.h> #include <fcntl.h> #define DIST_SWITCHES \ X("annotate", 0, ...
/* * Copyright (c) 2000 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 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it wou...
/* snpMaskGenes - Print gene sequences, exons only, with SNPs (single base substituions) using IUPAC codes. */ /* Copyright (C) 2013 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "dnaseq.h" #include "nib.h"...
#include "pcre2_finder.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #define READBUFFERSIZE 128 struct replace_data_struct { size_t count; size_t* patterncounts; const char** patternreplacements; }; static int when_found (struct pcre2_finder* finder, const char*...
/*************************************************************************** Copyright (c) 2013-2016, The OpenBLAS Project 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...
/******************************************************************************* Project: CAN Bus Driver for EPICS File: devAoCan.c Description: CANBUS Analogue Output device support Author: <NAME> <<EMAIL>> Created: 9 August 1995 Version: $Id: devAoCan.c 177 2008-11-11 20:41:45Z anj $ Copy...
/* * Copyright © 2006-2009 <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 * restriction, including without limitation the rights to use, copy, * modify, mer...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
/* * 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...
#include "../drivers/uja1023.h" uint32_t tesla_ts_brakelight_on_last = 0; const int32_t BRAKELIGHT_CLEAR_INTERVAL = 250000; //25ms; needs to be slower than the framerate difference between the DI_torque2 (~100Hz) and DI_state messages (~10hz). const int32_t STW_MENU_BTN_HOLD_INTERVAL = 750000; //75ms, how long before ...
// SPDX-License-Identifier: GPL-2.0-only #include "netlink.h" #include "common.h" struct pause_req_info { struct ethnl_req_info base; }; struct pause_reply_data { struct ethnl_reply_data base; struct ethtool_pauseparam pauseparam; struct ethtool_pause_stats pausestat; }; #define PAUSE_REPDATA(__reply_base) \ ...
/* Copyright (c) Centre National de la Recherche Scientifique (CNRS, France). 2010. Copyright (c) Members of the EGEE Collaboration. 2008-2010. See http://www.eu-egee.org/partners/ for details on the copyright holders. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file excep...