text
stringlengths
3.12k
18.7k
/* * Copyright (c) 2000-2002 <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 condition...
/* Copy-and-pasted from CPython */ /* This code implemented by <EMAIL> */ /* Fast NonRecursiveMutex support by <NAME>, <EMAIL> */ /* Eliminated some memory leaks, <EMAIL> */ #include <windows.h> #include <limits.h> #include <process.h> /* * Thread support. */ #define RPyOpaque_INITEXPR_ThreadLock { 0, 0, NULL }...
#include <pebble.h> Window* window; TextLayer *visitor_layer, *max_layer; Layer *path_layer; Layer *window_layer; GRect bounds; int percentage; char visitor_buffer[32], stats_buffer[64], error_buffer[64]; enum { KEY_VISITORS = 0, KEY_STATS = 1, KEY_ERROR = 2, KEY_PERCENTAGE = 3, }; void graphics_draw_arc(GCont...
/* ========================================================================= ** ** ____ ** ** ____ _________ _/ __/_______ ** ** / __ \/ ___/ __ `/ /_/ ___/ _ \ ** ...
const int c = 261; const int d = 294; const int e = 329; const int f = 349; const int g = 391; const int gS = 415; const int a = 440; const int aS = 455; const int b = 466; const int cH = 523; const int cSH = 554; const int dH = 587; const int dSH = 622; const int eH = 659; const int fH = 698; const int fSH = 740; cons...
/* * OpenDispense 2 * UCC (University [of WA] Computer Club) Electronic Accounting System * * main.c - Initialisation Code * * This file is licenced under the 3-clause BSD Licence. See the file * COPYING for full details. */ #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #inclu...
/* Parse event JSON files */ /* * Copyright (c) 2014, 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: * * 1. Redistributions of source code must retain the above copyrigh...
/* * ***** 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) 1983, 1993 * The Regents of the University of California. 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 copyr...
#include <stdio.h> #include <stdlib.h> #include "vga.h" #include <math.h> #include <machine/patmos.h> #include <machine/exceptions.h> #include <machine/rtc.h> #include <machine/boot.h> void Animation(); void text(); void chess(color A, color B); void cpuinfo(); void snake(); void pacman(); void runPacman(int X, int...
// // c2_analysis.c // cadet // // Created by <NAME> on 17/12/2016. // Copyright © 2016 UC Berkeley. All rights reserved. // #include "cadet_internal.h" #include "log.h" #include <assert.h> unsigned c2_analysis_follow_partition_numbers(int_vector* partition_numbers, unsigned pn, unsigned minimal_pn_to_follow) { ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <netdb.h> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> #include <time.h> #include <pcap.h> #include "thc-ipv6.h" extern int thc_socket; extern char *do_hdr; extern int do_hdr_off; in...
#include <libcgc.h> typedef char int8_t; typedef unsigned char uint8_t; typedef short int16_t; typedef unsigned short uint16_t; typedef int int32_t; typedef unsigned int uint32_t; typedef long long int64_t; typedef unsigned long long uint64_t; size_t receive_until(int fd, char *dst, char delim, size_t max ) { si...
/* triplestore-builtin.c -- simple triplestore implementation */ /* This file will be included by triplestore.c */ /* TODO - Consider use a more advanced library like the [Redland RDF library](http://librdf.org/) (which depends on the sublibraries [rasqal](http://librdf.org/rasqal/) and [libraptor2](...
#include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <bcm2835.h> #include <czmq.h> #include "clk.h" #include "dma.h" #include "gpio.h" #include "pwm.h" #include "ws2811.h" #define RED 0x00200000 #define ORANGE 0x00201...
/* * Software License Agreement (BSD License) * * Copyright (c) 2017, DUKELEC, Inc. * All rights reserved. * * Author: <NAME> <<EMAIL>> */ #include "app_main.h" regr_t csa_w_allow[] = { { .offset = offsetof(csa_t, magic_code), .size = offsetof(csa_t, tc_state) - offsetof(csa_t, magic_code) }, {...
/* -*- mode: c; c-file-style:"stroustrup"; -*- */ /* * Copyright (c) 2018 Mastercard * * 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 ...
// Some very low-overhead timer/counter interfaces: // // rdtsc() returns the number of "nominal" processor cycles since the system booted in a 64-bit unsigned integer. // For all recent Intel processors, this counter increments at a fixed rate, independent of the actual // core clock speed or the energy-sa...
/* Copyright (c) 2012, Code Aurora Forum. 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 ...
/* * c-periphery * https://github.com/vsergeev/c-periphery * License: MIT */ #include <stddef.h> #include <stdbool.h> #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <poll.h> #include <sys/stat.h> #include <errno.h> #include "gpio.h" ...
/* * Copyright 2014 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/* im_zoom * * Author: <NAME> 1991 * 6/6/94 JC * - rewritten to ANSI-C * - now works for any type, including IM_CODING_LABQ * 7/10/94 JC * - new IM_ARRAY() macro * 26/1/96 JC * - separate x and y zoom factors * 21/8/96 JC * - partial, yuk! this is so complicated ... * 30/8/96 JC * - sets demand_hint * 10/...
#include "compress.h" /* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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/O...
/* ** Copyright 2005-2017 Solarflare Communications Inc. ** 7505 Irvine Center Drive, Irvine, CA 92618, USA ** Copyright 2002-2005 Level 5 Networks Inc. ** ** 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 ...
/* This file is provided under a dual BSD/GPLv2 license. When using or redistributing this file, you may do so under either license. GPL LICENSE SUMMARY Copyright(c) 2021 Cornelis Networks. Copyright(c) 2018 Intel Corporation. This program is free software; you can redistribute it and/or modify it un...
/* * Simple, 32-bit and 64-bit clean allocator based on implicit free * lists, first fit placement, and boundary tag coalescing, as described * in the CS:APP2e text. Blocks must be aligned to doubleword (8 byte) * boundaries. Minimum block size is 16 bytes. */ #include <stdio.h> #include <string.h> #include <st...
/* * Copyright (c) 2007 <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 an...
/* * 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 writ...
/* $Id: hscx.c,v 1.24.2.4 2004/01/24 20:47:23 Exp $ * * HSCX specific routines * * Author <NAME> * Copyright by <NAME> <<EMAIL>> * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. * */ #include <linux/init...
// SPDX-License-Identifier: GPL-2.0+ // // max8998_charger.c - Power supply consumer driver for the Maxim 8998/LP3974 // // Copyright (C) 2009-2010 Samsung Electronics // <NAME> <<EMAIL>> #include <linux/err.h> #include <linux/module.h> #include <linux/mod_devicetable.h> #include <linux/slab.h> #include <linux/platf...
/** * FreeRDP: A Remote Desktop Protocol Implementation * Redirected Parallel Port Device Service * * Copyright 2010 O.S. Systems Software Ltda. * Copyright 2010 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
/* * Copyright © 2004 <NAME> * Copyright © 2006 Red Hat, Inc. * Copyright © 2008 <NAME> * Copyright © 2011 Intel Corporation * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Softwa...
/* * Demo for 6 digit LCD module based on HT1261 controller. * Based on example sources from http://www.canton-electronics.com * * Copyright (C) 2015 <NAME> * * Permission to use, copy, modify, and distribute this software * and its documentation for any purpose and without fee is hereby * granted, provided tha...
/****************************************************************************** * * 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 G...
/* * Copyright (C) 2012 Avionic Design GmbH * Copyright (C) 2012 NVIDIA CORPORATION. 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 2 as * published by the Free Software Foundation. */ #include <linux/...
/*-------------------------------------------------------------------- * $Id$ * * This file is part of libRadtran. * Copyright (c) 1997-2012 by <NAME>, <NAME>, * <NAME>, <NAME> * * ######### Contact info: http://www.libradtran.org ######### * * This program is free software; you can...
/* * * wings_jpg_drv.c -- * * Erlang driver for reading and writing JPEG files * using libjpeg from IJG (Independent JPEG Group). * * Copyright (c) 2004-2010 <NAME> * * libjpeg is copyright (C) 1991-1998, <NAME>. * * See the file "license.terms" for information on usage and redistribution * of ...
/***************************************************************************** * * File Name : main.c * * Description: main * * Copyright (c) 2019 Winner Micro Electronic Design Co., Ltd. * All rights reserved. * *****************************************************************************/ #include <string.h> #include...
/* Copyright (c) 2017, The Linux Foundation. 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 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope...
/* * Copyright (c) 1996-2001 <NAME>. * See README file for details. */ #include "local.h" void svd(x,p,q,d,mxit) /* svd of square matrix */ double *x, *p, *q; INT d, mxit; { INT i, j, k, iter, ms, zer; double r, u, v, cp, cm, sp, sm, c1, c2, s1, s2, mx; for (i=0; i<d; i++) for (j=0; j<d; j++) p[i*d+j]...
//project #include <stdlib.h> #include <dos.h> #include <stdio.h> #include <conio.h> typedef struct {int x,y;} point; void generate(void),swappoints(void),render(void),newfrog(void),msgbox(char mesag[]); void init(),newlevel(); void fill(unsigned x1,unsigned y1,unsigned x2,unsigned y2,char ch); void wait(void),makebox(...
/** * (C) Copyright 2017 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...
/************************************************************************ * NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes” * * Copyright (c) 2020 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved....
/** ** Sarracini ** Ursula ** Section Z ** 211535432 ** CSE13208 **/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <assert.h> #include "helper.h" // Some useful global variables Process processes[MAX_PROCESSES+1]; int numberOfProcesses; int nextProcess; int totalWaitingT...
/* command.c: Command lookup * * Copyright 2015, 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: * * 1. Redistributions of source code must retain the above copyright * not...
/* * Copyright (c) 2009,2012,2014 Apple 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...
#include <stdlib.h> #include <pthread.h> #include <math.h> #include <time.h> #include <stdio.h> #include "../tense.h" #define u_sample (random() / (RAND_MAX + 1.0)) #define exp_sample(rate) (-log(u_sample) / (rate)) static inline int geo_sample(double p) { double u = u_sample; return u < p ? 0 : (int)ceil(log(...
/* dnaLoad - Load dna from a variaty of file formats. */ #include "common.h" #include "dnaseq.h" #include "fa.h" #include "twoBit.h" #include "nib.h" #include "dnaLoad.h" static char const rcsid[] = "$Id: dnaLoad.c,v 1.9 2008/05/20 04:33:02 markd Exp $"; struct dnaLoadStack /* Keep track of a single DNA containing f...
/* * 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. */ /* rna_wroesy - transverse cross-relaxation experiment in rotating frame ...
/** * @file webpa_internal.h * * @description This file describes the Webpa Abstraction Layer * * Copyright (c) 2015 Comcast */ #include "ssp_global.h" #include <stdio.h> #include "ccsp_dm_api.h" #include <sys/time.h> #include "webpa_adapter.h" /*-----------------------------------------------------------------...
/*************************************************************************************************/ /*! * \file * * \brief Cycling Power Profile Sensor Implementation. * * Copyright (c) 2016-2018 Arm Ltd. All Rights Reserved. * * Copyright (c) 2019 Packetcraft, Inc. * * Licensed under the Apache License, Versio...
/* * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source ...
/* * QEMU ICH9 TCO emulation * * Copyright (c) 2015 <NAME> <<EMAIL>> * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" #include "sysemu/watchdog.h" #include "hw/i386/ich9.h" #include "migration/vmstate.h" ...
/* * (C) Copyright 2003-2004 * <NAME>, DENX Software Engineering, <EMAIL>. * * (C) Copyright 2004 * <NAME>, Freescale Semiconductor, <EMAIL>. * * (C) Copyright 2004 * <NAME>, TQ-Systems GmbH, <EMAIL> * * See file CREDITS for list of people who contributed to this * project. * * This program is free softwar...
/* * Driver for TPS65218 Integrated power management chipsets * * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 as * published by the Free Software Fo...
#include <GKlib.h> #include <bdmpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int lV; /* number of local vertices */ int lE; /* number of local edges */ int * ia=NULL; /* edge index array */ int * ja=NULL; /* edge array */ int * weights; /* global vertex weights */ int * colors;...
/* See doc/misc/parse_c_type.rst in the source of CFFI for more information */ typedef void *_cffi_opcode_t; #define _CFFI_OP(opcode, arg) (_cffi_opcode_t)(opcode | (((uintptr_t)(arg)) << 8)) #define _CFFI_GETOP(cffi_opcode) ((unsigned char)(uintptr_t)cffi_opcode) #define _CFFI_GETARG(cffi_opcode) (((uintptr_...
#define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <stdbool.h> #include <stddef.h> #include <string.h> #include <ctype.h> #include <dirent.h> #include <sys/types.h> #include "util.h" static char *stylefile = "./style.html"; bool endsto(char *str, int slen, char *str2...
/* Simple HTTP + SSL + WS Server Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #i...
/* * STMicroelectronics sensors trigger library driver * * Copyright 2012-2013 STMicroelectronics Inc. * * <NAME> <<EMAIL>> * * Licensed under the GPL-2. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/iio/iio.h> #include <linux/iio/trigger.h> #include <linux/inte...
/* * WPA Supplicant - PS3 Linux wireless extension driver interface * Copyright 2007, 2008 Sony Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively,...
/** Node computations *\file Node.c *\author $Author$ *\date $Date$ */ #include "party.h" /** Compute prediction of a node *\param y the response variable (raw numeric values or dummy encoded factor) *\param n number of observations *\param q number of columns of y ...
#include <allegro5/allegro.h> #include <ctype.h> #include <math.h> #include <string.h> #include <stdio.h> #include "credits.h" #include "global.h" /* for parsing readme.txt */ typedef struct TEXT_LIST { char *text; struct TEXT_LIST *next; } TEXT_LIST; typedef struct README_SECTION { TEXT_LIST *head; TEXT...
/// @file rainbow_keypair.c /// @brief implementations of functions in rainbow_keypair.h /// #include "rainbow_keypair.h" #include "blas.h" #include "blas_comm.h" #include "rainbow_blas.h" #include "rainbow_keypair_computation.h" #include "utils_prng.h" #include <stdint.h> #include <stdlib.h> #include <string.h> stat...
/** * Copyright (c) 2017 - 2019, Nordic Semiconductor ASA * * 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 no...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> and 2017, 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), ...
/* * Copyright (c) 2016 DeNA Co., Ltd., <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, mer...
/* * Copyright (c) 2016, Intel Corporation * All rights reserved. * * Authors: <NAME> <<EMAIL>> * * 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 c...
#include <u.h> #include <libc.h> #include <libsec.h> /* * rfc1321 requires that I include this. The code is new. The constants * all come from the rfc (hence the copyright). We trade a table for the * macros in rfc. The total size is a lot less. -- presotto * * Copyright (C) 1991-2, RSA Data Security, Inc....
#include "param.h" #include "types.h" #include "defs.h" #include "x86.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "spinlock.h" struct { struct spinlock lock; struct shm_page { uint id; char *frame; int refcnt; } shm_pages[64]; } shm_table; void shminit() { int i; initlo...
/* * Copyright © 2015 Information Technology Authority (ITA) <<EMAIL>> * Copyright © 2016 <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, includi...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include <stdio.h> #include <assert.h> #include <stddef.h> #include <string.h> #include <math.h> #include "matchfile.h" #include "fitsioutils.h" #include "ioutils.h" #include "sip.h" #include "mathutil.h...
/*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "includes/gaplus.h" UINT8 *gaplus_videoram; UINT8 *ga...
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <signal.h> #define MAX_CLIENTS 100 #define BUFFER_SIZE 2048 #define PORT 9051 static _Atomic unsigned int cli_count =...
/* * Copyright 2020 Makani Technologies 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 applicable law ...
/*H********************************************************************** * FILENAME : varargs.h START DATE : 10 Sept 16 * * DESCRIPTION : * Provides facilities for stepping through a list of function arguments of * an unknown number and type. * * NOTES : * This file is part of SC-CL's include library. * * The ...
/* * The MIT License (MIT) * * Copyright (c) 2019 <NAME> (tinyusb.org) * * 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 *...
/* time of flight measurement of a falling object. * A 5V relay is opened, and the electromagnet is exposed. Its input pin is connected to B0. * The program makes B0 HIGH, and therefore the electromagnet is energized. * The user now fixes this relay at a fixed height from the floor/table, and attaches * a small st...
/* * Platform-independent routines shared between all PuTTY programs. * * This file contains functions that use the kind of infrastructure * like conf.c that tends to only live in the main applications, or * that do things that only something like a main PuTTY application * would need. So standalone test programs...
//----------------------------------------------------------------------------- // treatmnt.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (Build 5.1.001) // 03/19/15 (Build 5.1.008) // Author: <NAME> // // Pollutant treatment functions. // // Build 5.1.008: // - A ...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2021 <NAME> │ │ ...
/*********************************************************************** ** ** REBOL [R3] Language Interpreter and Run-time Environment ** ** Copyright 2012 REBOL Technologies ** REBOL is a trademark of REBOL Technologies ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this...
/* * Copyright 2014-2017, 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 ...
#if 0 /* Magic self-executing C source code. Run "sh aio_test_sparse.c" * set -ex * gcc -g -Wall -O2 $0 -o aio_test_sparse * exit 0 */ #endif /* Adapted from * http://developer.osdl.org/daniel/AIO/TESTS/aiodio_sparse.c */ #define _GNU_SOURCE #include "pvfs2-test-config.h" #include <stdlib.h> #include <sys/typ...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define NO_TESTS 5 typedef struct graph_node_struct { int key; struct graph_node_struct *next; } graph_node; typedef struct { int number_of_nodes; graph_node **adjacency_lists; int *parent_nodes; int *discover_time;...
/* This file is part of the MCsquare software Copyright © 2016-2017 Université catholique de Louvain (UCL) All rights reserved. The MCsquare software has been developed by <NAME> from UCL in the context of a collaboration with IBA s.a. Each use of this software must be attributed to Université catholique de Louvain (U...
/* ipm_quark_se.c - Quark SE mailbox driver */ /* * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <kernel.h> #include <zephyr/types.h> #include <string.h> #include <device.h> #include <init.h> #include <drivers/ipm.h> #include <arch/cpu.h> #include <sys/printk.h> #includ...
/* * Scheduler notification tester for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 2006-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include <cups/cups.h> #include <cups/debug-private...
/* * Check decoding and dumping of read and write syscalls. * * 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: * 1. Redistributions of source code m...
#include <string.h> #include <assert.h> #include "SIM_power_ALU.h" #define is_logic(x) (x & 1) /* PLX gate type */ enum { PLX_MUX2, PLX_MUX3, PLX_MUX4, PLX_PASS, PLX_NAND2, PLX_NAND3, PLX_NAND4, PLX_NOR2, PLX_NOR3, PLX_NOR4, PLX_NOT, PLX_XOR, PLX_GATE }; /* transistor count table of PLX ALU */ static u_int p...
/* * Copyright (c) 2018 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <device.h> #include <drivers/sensor.h> #include <stdio.h> #include <sys/util.h> #ifdef CONFIG_LSM6DSL_TRIGGER static int lsm6dsl_trig_cnt; static void lsm6dsl_trigger_handler(const struct device *de...
/* * replication.c : packet replication * * Copyright (c) 2013 Cisco and/or its affiliates. * 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/LICEN...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * umlattribute.c : refactored from uml.c, class.c to final use StdProps * PROP_TYPE_DARRAY, a list where each element is a set * of properies described by the same StdPropDesc * Copyright (C) 2005 <N...
#define _GNU_SOURCE #include <assert.h> #include <features.h> #include <proton/connection.h> #include <proton/delivery.h> #include <proton/link.h> #include <proton/listener.h> #include <proton/message.h> #include <proton/netaddr.h> #include <proton/proactor.h> #include <proton/session.h> #include <proton/transport.h> #...
// TI File $Revision: /main/3 $ // Checkin $Date: July 27, 2007 11:55:20 $ //########################################################################### // // FILE: DSP2833x_EQep.c // // TITLE: DSP2833x eQEP Initialization & Support Functions. // //##################################################################...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <assert.h> #include "asn1parser.h" void asn1p_constraint_set_source(asn1p_constraint_t *ct, struct asn1p_module_s *module, int lineno) { if(ct) { ct->module = module; ct->_lineno = li...
/* * blockdev.c --- Do various simple block device ioctls from the command line * aeb, 991028 */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <unistd.h> #include "blkdev.h" #include "c.h" #include "closestream.h" #include "nls.h" #...
/********************************************************** * Copyright 2009-2015 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 * restrict...
#include <stdio.h> /* Various defined values/flags/... Moved here from ncepgrids 2006 Jan 30 */ #define BAD_DATA 166 #define NO_DATA 224 #define MIN_CONC 15 #define MAX_CONC 127 #define MAX_ICE 128 /* For error/filtration statistics */ extern int bad_low; extern int bad_high; extern int crop_low; extern int filt3...
#include "cavrr.h" #include "memory.h" #include "util/intelhex.h" #include "util/list.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <signal.h> #include "cavrr_config.h" struct config{ unsigned int run_ignores_break; unsigned int reset_on_load; unsigned int enable_...