code
stringlengths
6
250k
repo_name
stringlengths
5
70
path
stringlengths
3
177
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
6
250k
#include <uproc.h> #include <stdint.h> #include <float.h> #include <limits.h> #include <string.h> #include <errno.h> #include <stdio.h> static int __uchar_read_proc(uproc_buf_t *buf, int *done, off_t fileoff, void *private_data) { unsigned char *v = (unsigned char *)private_data; int n = snprintf(buf->mem, bu...
zxjcarrot/uproc
src/utility.c
C
mit
31,172
/* --------------------------The MIT License--------------------------- Copyright (c) 2013 Qi Wang 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...
wowsoso/mqtts
src/event.c
C
mit
2,267
#include <sys/iosupport.h> #include <malloc.h> #include <3ds.h> #include "core/clipboard.h" #include "core/screen.h" #include "core/util.h" #include "ui/error.h" #include "ui/mainmenu.h" #include "ui/ui.h" #include "ui/section/task/task.h" #define CURRENT_KPROCESS (*(void**) 0xFFFF9004) #define KPROCESS_PID_OFFSET_...
Traiver/FBI
source/main.c
C
mit
4,189
#include <stdio.h> int len(char * s1, char * s2); int main() { char * s1 = "hello"; char * s2 = "strng"; printf("%d", len(s1, s2)); } int len(char * s1, char * s2) { int counter = 0; while ((*s1) != '\0' && (*s2) != '\0') { counter += 2; s1++; s2++; } while ((*s1) != '\0') { counter++; s1++; }...
devinmcgloin/C
letters/strlen.c
C
mit
391
#include <json-c/json.h> #include <ctype.h> #include <string.h> #include <stdint.h> #include <libinput.h> #include "sway/container.h" #include "sway/input.h" #include "sway/ipc-json.h" #include "util.h" static json_object *ipc_json_create_rect(swayc_t *c) { json_object *rect = json_object_new_object(); json_object_...
sleep-walker/sway
sway/ipc-json.c
C
mit
19,277
/* * Simple example of using Brotli C library for round-trip compress/decompress */ #include <stdint.h> // uint8_t. etc. #include <stdio.h> // fprintf, perror, fopen, etc. #include <stdlib.h> // malloc, free, exit #include <string.h> // strlen, strcat, memset, strerror // presumes Brotli library (with ...
tleonhardt/CodingPlayground
c/compression/hello_brotli.c
C
mit
3,106
#include <stdio.h> void foo() { int x; printf("hello"); printf("%d", x); } int main() { int i, j; int a[100][100]; for (i = 0; i < 100; ++i) { for (j = 0; j < 100; ++j) { printf("%d ", a[j][i]); } } }
sahutd/cachediff
test_samples/test_file_three.c
C
mit
270
/* * Note: this file originally auto-generated by mib2c using * $ */ #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> #include <net-snmp/agent/table_container.h> #include "cpqLinOsDiskTable.h" extern int netsnmp_arch_linosdiskio_cont...
marker55/hp-ams
cpqPerf/cpqLinOsDiskTable.c
C
mit
18,408
/* * base64.c: accord to rfc4648 implements base64 * * Authors: * mardyu<michealyxd@hotmail.com> * * Copyright 2016 mardyu<michealyxd@hotmail.com> * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include "base64.h" #include <string.h> static char const * const ...
yy-nm/For-Practice
functional/rfc/Base64/base64.c
C
mit
3,956
/* Fontname: -Cronyx-Times-Medium-R-Normal--18-180-75-75-P-94-RAWIN-R Copyright: Copyright (C) 1990, 1991 EWT Consulting, Portions Copyright (C) 1994 Cronyx Ltd. Glyphs: 191/224 BBX Build Mode: 0 */ const uint8_t u8g2_font_crox5t_tf[5065] U8G2_FONT_SECTION("u8g2_font_crox5t_tf") = "\277\0\4\3\5\5\3\6\...
WiseLabCMU/gridballast
Source/framework/main/u8g2/tools/font/build/single_font_files/u8g2_font_crox5t_tf.c
C
mit
12,238
/* @(#)e_log.c 1.3 95/01/18 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided t...
mvpossum/nek
fdlibm/e_log.c
C
mit
4,453
#include <ruby.h> #include <sparkey/sparkey.h> typedef uint8_t bool; #define true 1 #define false 0 typedef struct instance_logwriter { sparkey_logwriter *logwriter; bool open; } instance_logwriter; typedef struct instance_logreader { sparkey_logreader *logreader; bool open; } instance_logreader; typedef struc...
emnl/gnista
ext/gnista/gnista.c
C
mit
17,854
#include <string.h> #include "edna.h" int cmd_delete (State *st, Buffer *buf, Arg *arg, char *error) { Line *targ; targ = *arg->sel->v; if (rmline(buf, targ)) { strcpy (error, "empty selection"); return -1; } return 0; }
rnoth/edna
cmd-register.c
C
mit
235
/* * Copyright (C) 2010-2011 Mamadou Diop. * * Contact: Mamadou Diop <diopmamadou(at)doubango[dot]org> * * This file is part of Open Source Doubango Framework. * * DOUBANGO 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...
PeterXu/perfume
rtcall/doubango/tinySIGCOMP/src/tcomp_dicts.c
C
mit
2,876
/* * File : mmu.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Development Team * * 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 ...
cedar-renjun/air-conditioning-assistant
rt-thread/libcpu/arm/dm36x/mmu.c
C
mit
11,835
/************************************************************************/ /* */ /* FillPat.c -- Pattern Table for Area Fill */ /* */ /************************************************************************/ /* Author: Gene Apperson */ /* Copyright 2011, Digil...
kpi-keoa/TheConnectedMCU_Labs
mxdz/lab4_uart_spi/src/OLED/FillPat.c
C
mit
3,264
#include <stdio.h> #include <string.h> #include "resolution.h" static void writeFn(WrenVM* vm, const char* text) { printf("%s", text); } static void reportError(WrenVM* vm, WrenErrorType type, const char* module, int line, const char* message) { if (type == WREN_ERROR_RUNTIME) printf("%s\...
munificent/wren
test/api/resolution.c
C
mit
3,994
#include <kipr/botball.h> // 4 from the 'T' int main() { printf("Open Claws\n"); enable_servos(); set_servo_position(1,1169); msleep(800); set_servo_position(2,1654); msleep(800); motor(0,0); motor(3,0); msleep(800); printf("Go Forward\n"); motor(0,50); motor(3,...
wibeasley/jbc-2016
1397-wallaby/KISS/Default User/unload-them/src/main.c
C
mit
1,706
/* Copyright (c) 2007-2010 Dovecot authors, see the included COPYING file */ #include "test-lib.h" #include "array.h" struct foo { unsigned int a, b, c; }; static void test_array_foreach(void) { ARRAY_DEFINE(foos, struct foo); const struct foo *foo; struct foo nfoo; unsigned int i; test_begin("array foreach")...
via/dovecot-clouddb
src/lib/test-array.c
C
mit
1,186
//例:数组的元素通过传值作为函数的参数 #include "stdio.h" #include "stdlib.h" int main() { int max(int x, int y); void printd(int data[], int n); int a[10], m, n, i; for(i=0;i<10;i++) a[i]=rand() % 100; for(i=1, m=a[0],n=0;i<10;i++){ if(max(m, a[i])>m){ m = max(m, a[i]); n=i; } } printd(a, 10); ...
masterfish2015/my_project
c/html/c_program_examples/demo7_4.c
C
mit
571
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +---------...
lunaczp/learning
language/c/testPhpSrc/php-5.6.17/ext/standard/fsock.c
C
mit
3,987
int main(void) { float a = {"error", 1, 2.0, '3', "aaa"}; return a; }
arminnh/c-to-p-compiler
src/tests/variable-declarations/16.c
C
mit
79
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <pthread.h> #include <mpi.h> #define DEV_SHM //#define POSIX_SHM int main(int argc, char* argv[]) { int i,j; int world_rank = -1, world_s...
jeffhammond/HPCInfo
posix/shm/shm.c
C
mit
6,519
/* * cc3000_platform.c * * Created on: 05.09.2013 * Author: Johannes * * Platform dependent functions * */ #include "cc3000_platform.h" // guess what.. i am too fast.. so i need a delay // if this is defined, then we add a little delay // before CS_ASSERT and after CS_DEASSERT and before cc3000_read_ir...
tessel/cc3000-async
cc3000_platform.c
C
mit
4,934
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */ #include "pubnub_internal.h" #include "lib/sockets/pbpal_ntf_callback_poller_select.h" #include "core/pubnub_assert.h" #include "core/pubnub_log.h" #include <stdlib.h> struct pbpal_poll_data* pbpal_ntf_callback_poller_init(void) { struct pbpal_poll...
pubnub/c-core
lib/sockets/pbpal_ntf_callback_poller_select.c
C
mit
6,144
2800 #include "types.h" 2801 #include "defs.h" 2802 #include "param.h" 2803 #include "mmu.h" 2804 #include "proc.h" 2805 2806 int 2807 sys_fork(void) 2808 { 2809 int pid; 2810 struct proc *np; 2811 2812 if((np = copyproc(cp)) == 0) 2813 return -1; 2814 pid = np->pid; 2815 np->state = RUNNABLE; 2816 re...
yasulab/hackbench-on-xv6
fmt/sysproc.c
C
mit
1,449
#include <stdint.h> #include <math.h> #include <string.h> #include <assert.h> #include "gb.h" static const uint8_t duties[] = { 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, }; static void refresh_channel(GB_gameboy_t *gb, unsigned index, unsigned cycl...
LIJI32/SameBoy
Core/apu.c
C
mit
63,979
#include <stdio.h> int main() { int i; for(i=1; i<=10; i++) { printf("%d ", i); } return 0; }
riyadhalnur/C-codes
1_to_10.c
C
mit
133
#include "stm32f10x.h" #include "HAL.H" /*********************************************************************************** º¯ÊýÃû£ºvoid PWM_Set(const u16 pwm1, const u16 pwm2, const u16 pwm3, const u16 pwm4) ˵Ã÷£ºPWMÉèÖà Èë¿Ú£ºÎÞ ³ö¿Ú£ºÎÞ ±¸×¢£º¸ù¾ÝPWMµÄÊýÖµ¸øÓëÏàÓ¦PWMÐźŵƵÄ״̬: µ±PWMΪ0ʱ£¬µÆÃ𠲻Ϊ0ʱ£¬µÆÁÁ **...
yzhajlydy/Micro-Quadrotor
SRC/User/PWM.c
C
mit
869
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_connect_socket_system_68b.c Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml Template File: sources-sink-68b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data us...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_system_68b.c
C
mit
2,518
/* * Copyright (C) 2010 Gil Mendes * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM...
gil0mendes/Infinity-OS
source/lib/system/stdlib/ldiv.c
C
mit
1,658
#include <stdio.h> int main(void) { int x; long int y; printf("size of int: %d\n", sizeof x); // size of short modifier printf("size of short: %d\n", sizeof y); // size of short modifier return 0; }
argshub/clion
codes/long.c
C
mit
204
#include <math.h> #include <stdio.h> #include <float.h> #define MAXTRIANGLES 100000 #define X 0 #define Y 1 #define Z 2 typedef double DBL; typedef DBL VECTOR[3]; // The blob structure definition typedef struct BLOBSTRUCT { VECTOR Centre; VECTOR PreviousCentre; DBL Radius; } BLOB; // The triangle structure and t...
erich666/jgt-code
Volume_04/Number_1/Karabassi1999/collision.c
C
mit
28,262
#include <stdio.h> void heapsort(int a[], int array_size); void adjust(int a[], int root, int n); void display(int a[], int array_size); int main(int argc, char *argv[]) { int a[] = {26, 5, 33, 77, 1, 61, 11, 59, 15, 48, 19, 22}; heapsort(a, 11); display(a, 12); return 0; } /* n: the array_size - 1 */ void heaps...
xautjzd/Algorithms
heapsort.c
C
mit
1,390
/* * Copyright (C) 2015 Pedro Arthur <bygrandao@gmail.com> * * 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 (at...
sim9108/SDKS
LibFFmpeg/LibSwscale/src/LibSwscale/slice.c
C
mit
10,513
/* * i2c_master.c * (c) 2014 flabbergast * I2C (TWI) master for AVR8 and XMEGA chips. * * Based on LUFA code (GPL). */ #include "i2c_master.h" #include <avr/io.h> #include <util/delay.h> #include <util/twi.h> // implementation for xmega #if defined(__AVR_ATxmega128A4U__) || defined(__AVR_ATxmega128A3U__) vo...
flabbergast/sha204_playground
avr/SHA204/i2c_master.c
C
mit
7,284
#include "clock.h" #include <stdlib.h> #include <stdbool.h> #include "../../common/io/outputStream.h" #include "../../common/io/printWriter.h" void printClock(OutputStream* outputStream, Clock* clock) { ClockData* clockData = &(clock->clockData); appendHex2(outputStream, clockData->hour); append(outp...
svanacker/cen-electronic
common/clock/clock.c
C
mit
1,309
// // Created by matti on 5.9.2015. // #include <stdio.h> main() { printf("%d\n", EOF); }
melonmanchan/k-and-r
chapter1/1-5/getchar-test.c
C
mit
98
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_15.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-15.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memor...
maurer/tiamat
samples/Juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s07/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_15.c
C
mit
3,824
#include <stdio.h> int main(int argc, char* argv[]) { FILE *arquivo; int c; // variável inteira para receber o arquivo int cl = 0; // contador de linhas int cb = 0; // contador de bytes int cp = 0; // contador de palavras int iniciop = 0; // demarcar o inicio da palavra /* char nomearquivo ...
pedroleite21/trabalho-aula
exer/wc2.c
C
cc0-1.0
1,249
/* Coinjoin Client * Written in 2014 by * Andrew Poelstra <apoelstra@wpsoftware.net> * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to * the public domain worldwide. This software is distributed without * any warranty. * ...
apoelstra/cj-client
settings.c
C
cc0-1.0
8,269
/* * PROGRAM NAME: multifario * * (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES * CORPORATION 12/1/2001. ALL RIGHTS RESERVED. * * Please refer to the LICENSE file in the top directory * * author: Mike Henderson mhender@watson.ibm.com * date: November 11, 1997 * February 2, 1999...
pratikmallya/Multifario
src/MFKVector.c
C
epl-1.0
12,179
/* * Copyright (c) 2012-2013 NEC Corporation * All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html */ /* * ipc.c - IPC f...
opendaylight/vtn
coordinator/core/cmds/pfc_control/ipc.c
C
epl-1.0
3,918
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) a...
thom311/NetworkManager
libnm-glib/nm-device-infiniband.c
C
gpl-2.0
8,988
#include <linux/module.h> #include <linux/vermagic.h> #include <linux/compiler.h> MODULE_INFO(vermagic, VERMAGIC_STRING); __visible struct module __this_module __attribute__((section(".gnu.linkonce.this_module"))) = { .name = KBUILD_MODNAME, .init = init_module, #ifdef CONFIG_MODULE_UNLOAD .exit = cleanup_module, ...
avareldalton85/rpi2-linux-rt
drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.mod.c
C
gpl-2.0
877
/* * linux/kernel/fork.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * 'fork.c' contains the help-routines for the 'fork' system call * (see also entry.S and others). * Fork is rather simple, once you get the hang of it, but the memory * management can be a bitch. See 'mm/memory.c': 'copy_page_range(...
scotthartbti/cm_samsung_kernel_dempsey
kernel/fork.c
C
gpl-2.0
43,196
/* Copyright (c) 2009-2013, 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 hop...
xdajog/kernel_fx3q_aosp
drivers/usb/otg/msm_otg.c
C
gpl-2.0
115,943
/* ***** BEGIN LICENSE BLOCK ***** * Version: RCSL 1.0/RPSL 1.0 * * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, are * subject to the current version of the RealNetworks Public Source License * Version ...
muromec/qtopia-ezx
src/3rdparty/libraries/helix/src/audio/fixptresampler/testapp/testapp.c
C
gpl-2.0
7,198
/* SPDX-License-Identifier: LGPL-2.1+ */ #include "alloc-util.h" #include "bus-internal.h" #include "bus-unit-util.h" #include "bus-util.h" #include "cap-list.h" #include "cgroup-util.h" #include "condition.h" #include "cpu-set-util.h" #include "env-util.h" #include "errno-list.h" #include "escape.h" #include "hashmap...
bengal/systemd
src/shared/bus-unit-util.c
C
gpl-2.0
90,276
/* * Copyright (C) 2011, 2014 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This ...
KKoukiou/my_libvirt_clone
tests/virnetsockettest.c
C
gpl-2.0
16,397
/* ******** OLD_DMA_CODE COPYRIGHT * dma.c--dma controller emulater--Joel N. Weber II * Copyright (C) 1995 Joel N. Weber II * See the file README.dma in this directory for more information ******** * * DANG_BEGIN_MODULE dma.c * This is the DMA controller emulation. It is fairly complete. * * maintainer: * A...
runderwo/dosemu2
src/base/dev/dma/dma.c
C
gpl-2.0
37,488
/* *---------------------------------------------------------------------------* * * * COPYRIGHT 2003-2009 SAMSUNG ELECTRONICS CO., LTD. * * ALL RIGHTS RESERVED * ...
chraso/GT-I5500_
GT-I5500_OpenSource_Kernel/kernel/drivers/fsr/fsr_base.c
C
gpl-2.0
15,127
/* * q_tbf.c TBF. * * 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. * * Authors: Alexey Kuznetsov, ...
chraso/GT-I5500_
iproute2_src/tc/q_tbf.c
C
gpl-2.0
7,561
#include <kernel.h> #include <kdata.h> #include <printf.h> #include <stdbool.h> #include <devtty.h> #include <device.h> #include <devfd.h> #include <vt.h> #include <tty.h> #include <graphics.h> #undef DEBUG /* UNdefine to delete debug code sequences */ uint8_t *uart_data = (uint8_t *)0xFF04; /* ACIA data */ uint8...
NoSuchProcess/FUZIX
Kernel/platform-coco2cart/devtty.c
C
gpl-2.0
8,684
/* Copyright (c) 2012, 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...
AuzOne/auzone_kenel
sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c
C
gpl-2.0
81,875
#include "font.h" #include "TFT_LCD.h" const uint8_t * font; FONT_HEADER_T * font_header; GLYPH_INDEX_T * glyph_index; COLOR_T fg, bg; uint8_t G_TFT_char_width, G_TFT_char_height; const uint8_t * fonts[] = {Lucida_Console8x13, Lucida_Console12x19}; // Lucida_Console20x31}; const uint8_t char_widths[] = {8, 12, 20}...
AhmedSamara/Freedom-clicker
src/TFT_text.c
C
gpl-2.0
4,333
#ifdef __aarch64__ #include <stdint.h> #include "../86box.h" #include "cpu.h" #include "../mem.h" #include "codegen.h" #include "codegen_allocator.h" #include "codegen_backend.h" #include "codegen_backend_arm64_defs.h" #include "codegen_backend_arm64_ops.h" #define Rt(x) (x) #define Rd(x) (x) #define Rn(x) ((x...
OBattler/86Box
src/cpu_new/codegen_backend_arm64_ops.c
C
gpl-2.0
50,498
#include <stdio.h> #include <glib.h> #include <json-glib/json-glib.h> #include "mfp_dsp.h" int api_rpcid = -1; static void api_create_callback(JsonNode * response, void * data) { if (JSON_NODE_TYPE(response) == JSON_NODE_ARRAY) { JsonArray * arry = json_node_get_array(response); JsonNode * val = ...
bgribble/mfp
mfpdsp/mfp_api.c
C
gpl-2.0
5,747
/* * THIS CODE IS SPECIFICALLY EXEMPTED FROM THE NCURSES PACKAGE COPYRIGHT. * You may freely copy it for use as a template for your own field types. * If you develop a field type that might be of general use, please send * it back to the ncurses maintainers for inclusion in the next version. */ /*****************...
nslu2/glibc
ncurses/form/fty_alpha.c
C
gpl-2.0
4,396
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2012 The PHP Group | +---------...
ssanglee/capstone
php-5.4.6/sapi/webjames/webjames.c
C
gpl-2.0
10,061
/*---------------------------------------------------------------*/ /*--- begin host_amd64_isel.c ---*/ /*---------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (C) 2004-2013 Op...
fredericgermain/vex
priv/host_amd64_isel.c
C
gpl-2.0
188,419
/** ****************************************************************************** * @file PWR/PWR_BOR/Src/main.c * @author MCD Application Team * @version V1.0.1 * @date 26-February-2014 * @brief This sample code shows how to use STM32F4xx PWR HAL API to manage the * Programmable Voltage...
chsigi/blindschleiche
lib/STM32Cube_FW_F4_V1.1.0/Projects/STM324xG_EVAL/Examples/PWR/PWR_BOR/Src/main.c
C
gpl-2.0
8,581
/* Swing Modulo Scheduling implementation. Copyright (C) 2004-2013 Free Software Foundation, Inc. Contributed by Ayal Zaks and Mustafa Hagog <zaks,mustafa@il.ibm.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
Mustaavalkosta/toolchain_gcc-4.9
gcc/modulo-sched.c
C
gpl-2.0
102,243
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Copyright (C) 2010 Richard Hughes <richard@hughsie.com> * * Licensed under the GNU General Public License Version 2 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public ...
EricKoegel/upower
src/linux/up-backend.c
C
gpl-2.0
14,070
/* SPDX-License-Identifier: LGPL-2.1-or-later */ #include <errno.h> #include <stdlib.h> #include <sys/prctl.h> #include <unistd.h> #include "sd-id128.h" #include "sd-messages.h" #include "all-units.h" #include "alloc-util.h" #include "bpf-firewall.h" #include "bpf-foreign.h" #include "bpf-socket-bind.h" #include "bu...
mxre/systemd
src/core/unit.c
C
gpl-2.0
203,030
/* * linux/kernel/fork.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * 'fork.c' contains the help-routines for the 'fork' system call * (see also entry.S and others). * Fork is rather simple, once you get the hang of it, but the memory * management can be a bitch. See 'mm/memory.c': 'copy_page_range(...
odit/rv042
linux/kernel_2.6/linux/kernel/fork.c
C
gpl-2.0
39,680
/* * Openswan config file parser (keywords.c) * Copyright (C) 2003-2006 Michael Richardson <mcr@xelerance.com> * Copyright (C) 2007-2010 Paul Wouters <paul@xelerance.com> * * 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...
y-trudeau/openswan-patch-meraki
lib/libipsecconf/keywords.c
C
gpl-2.0
24,000
/* * some generic framebuffer device stuff * */ #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <termios.h> #include <signal.h> #include <errno.h> #include <setjmp.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/wait.h> #in...
ghtyrant/fbida
fbtools.c
C
gpl-2.0
12,691
/*************************************************************************** * Copyright 2016 by Davide Bettio <davide@uninstall.it> * * * * This program is free software; you can redistribute it and/or modify * * it unde...
bettio/initFlow
src/init.c
C
gpl-2.0
2,031
/* * Asterisk -- A telephony toolkit for Linux. * * UDPTL support for T.38 * * Copyright (C) 2005, Steve Underwood, partly based on RTP code which is * Copyright (C) 1999-2009, Digium, Inc. * * Steve Underwood <steveu@coppice.org> * Kevin P. Fleming <kpfleming@digium.com> * * See http://www.asterisk.org for...
xrg/asterisk-xrg
main/udptl.c
C
gpl-2.0
40,492
/*--------------------------------------------------------------------*/ /*--- User-mode execve() for ELF executables m_ume_elf.c ---*/ /*--------------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (...
dmolnar/SmartFuzz
coregrind/m_ume/elf.c
C
gpl-2.0
16,839
/* ********************************************************************************************************* * uC/OS-II * The Real-Time Kernel * CORE FUNCTIONS * * ...
R-bob/R-bob.github.io
my car/uCOS-II/Source/os_core.c
C
gpl-2.0
86,779
/* * kernel/locking/mutex.c * * Mutexes: blocking mutual exclusion locks * * Started by Ingo Molnar: * * Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> * * Many thanks to Arjan van de Ven, Thomas Gleixner, Steven Rostedt and * David Howells for suggestions and improvements. * ...
tzanussi/linux-yocto-micro-3.14
kernel/locking/mutex.c
C
gpl-2.0
25,171
/* $Id: ia32_ioctl.c,v 1.34 2003/05/08 06:34:01 ak Exp $ * ioctl32.c: Conversion between 32bit and 64bit native ioctls. * * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com) * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs * * These routines maintain...
huangyukun2012/linux-2.4.21
arch/x86_64/ia32/ia32_ioctl.c
C
gpl-2.0
133,460
/* * Copyright (C) 2013-2021 Canonical, Ltd. * Copyright (C) 2022 Colin Ian King. * * 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 opt...
ColinIanKing/stress-ng
stress-str.c
C
gpl-2.0
18,816
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "simMat2.h" #define MTROW 4 #define MTCOL 4 void setDat(double *dat,int num,double max,double min); double randomVal(double max,double min); void setRandomDat(mat2 *obj,int numLoop,int numEle,double max,double min); int main(int argc,char **argv) { ...
Chalearm/MachineLearning-
mProject/library_jui/tMt2/main.c
C
gpl-2.0
3,404
/* info/policy communicating routines * Copyright (C) 2003 Michael Richardson <mcr@freeswan.org> * Copyright (C) 2004 Xelerance Corporation * 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 F...
mcr/bluerose
programs/pluto/rcv_info.c
C
gpl-2.0
8,382
/* * FT313 HCD (Host Controller Driver) PCI Bus Glue. * * Copyright (C) 2011 Chang Yang <chang.yang@ftdichip.com> * * This code is *strongly* based on EHCI-HCD code by David Brownell since * the chip is a quasi-EHCI compatible. * * Licensed under GPL version 2 only. */ /* this file is part of ft313-hcd.c */ ...
XCopter-HSU/XCopter
Sprint_2/USB_Controller_2/FT313_release_driver/FT313H_hcd_demo/ft313-pci.c
C
gpl-2.0
9,975
/** ****************************************************************************** * @file system_stm32f4xx.c * @author MCD Application Team * @version V1.3.0 * @date 08-November-2013 * @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File. * This file contains the sys...
irmus/HHC_Engraver
drv/system_stm32f4xx.c
C
gpl-2.0
37,769
/* * ProFTPD - FTP server API testsuite * Copyright (c) 2008-2015 The ProFTPD Project team * * 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...
lazy404/proftpd
tests/api/tests.c
C
gpl-2.0
4,928
/* * THIS SOURCE CODE IS SUPPLIED ``AS IS'' WITHOUT WARRANTY OF ANY KIND, * AND ITS AUTHOR AND THE JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH * (JAIR) AND JAIR'S PUBLISHERS AND DISTRIBUTORS, DISCLAIM ANY AND ALL * WARRANTIES, INCLUDING BUT NOT LIMITED TO ANY IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNE...
PlanTool/plantool
wrappingPlanners/Deterministic/FF/Conformant-FF/memory.c
C
gpl-2.0
14,499
/* * Davicom DM9000 Fast Ethernet driver for Linux. * Copyright (C) 1997 Sten Wang * * 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 y...
rk34cj/shineet_v210_kernel
drivers/net/dm9000.c
C
gpl-2.0
37,109
/* * linux/fs/ext4/file.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/file.c * * Copyright (C) 1991, 1992 Linus Torvalds * * ext4 fs regular file handling...
alexax66/kernel_samsung_a3xelte
fs/ext4/file.c
C
gpl-2.0
16,747
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. Copyright (C) 2007 HermitWorks Entertainment Corporation This file is part of the Space Trader source code. The Space Trader source code is free software; you can redistribute it and/or modify it u...
ballju/SpaceTrader-GPL-1.1.14
code/win32/win_input.c
C
gpl-2.0
28,336
/* (C) Copyright 2013, Stephen M. Cameron. This file is part of mazers-n-lasers. mazers-n-lasers 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 yo...
smcameron/mazers-n-lasers
mazers-n-lasers.c
C
gpl-2.0
21,551
/* * Copyright (C) 2010 Intel, 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; either version 2 of the License, or * (at your option) any later version. * * This program is distrib...
jigpu/gnome-control-center
panels/keyboard/keyboard-shortcuts.c
C
gpl-2.0
53,609
/* * Copyright (c) Bull S.A. 2007 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 would be useful, but * ...
shubmit/shub-ltp
testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_get_myaddress/1-basic.c
C
gpl-2.0
2,155
#include "decoder.h" // Protocol of the Vaillant VRT 340f (calorMatic 340f) central heating control // http://wiki.kainhofer.com/hardware/vaillantvrt340f // The data is sent differential Manchester encoded // with bit-stuffing (after five 1 bits an extra 0 bit is inserted) // // All bytes are sent with least signi...
zerog2k/rtl_433
src/devices/vaillant_vrt340f.c
C
gpl-2.0
7,350
/* * drivers/media/video/tegra/tegra_camera.c * * Copyright (C) 2010 Google, Inc. * Copyright (c) 2010-2012, NVIDIA Corporation. 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, d...
Pesach85/ph85-p880-kernel-project
drivers/media/video/tegra/tegra_camera.c
C
gpl-2.0
21,019
/********************************************************************** * File Name: fs/proc/task_mmu.c * * (C) NEC CASIO Mobile Communications, Ltd. 2011 **********************************************************************/ #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/mount.h> #include <linux/se...
ISTweak/android_kernel_nec_msm7x30
fs/proc/task_mmu.c
C
gpl-2.0
21,195
/* * LP5521 LED chip driver. * * Copyright (C) 2010 Nokia Corporation * * Contact: Samu Onkalo <samu.p.onkalo@nokia.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 Foundation. * ...
juanxincai521/MSM
drivers/leds/leds-lp5521.c
C
gpl-2.0
31,468
/* * This file is part of the coreboot project. * * Copyright (C) 2000 AG Electronics Ltd. * Copyright (C) 2003-2004 Linux Networx * Copyright (C) 2004 Tyan By LYH change from PC87360 * Copyright (C) 2010 Win Enterprises (anishp@win-ent.com) * * This program is free software; you can redistribute it and/or modi...
wt/coreboot
src/superio/winbond/w83627hf/superio.c
C
gpl-2.0
6,031
/* Copyright (c) 2012-2015, 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...
SomeshThakur/Xeon-Kernel
drivers/video/msm/mdss/mdss_dsi.c
C
gpl-2.0
54,686
/* XRoar - a Dragon/Tandy Coco emulator * Copyright (C) 2003-2008 Ciaran Anscomb * * 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 opt...
CrashSerious/PS3Roar
original source/xroar-0.24/nds/ndsui.c
C
gpl-2.0
3,555
/** ****************************************************************************** * @file Templates/Src/stm32f4xx_it.c * @author MCD Application Team * @version V1.1.0 * @date 26-June-2014 * @brief Main Interrupt Service Routines. * This file provides template for all exceptions...
gacka/STM32-USB-display
stm32f4/src/stm32f4xx_it.c
C
gpl-2.0
5,575
/* $Id: name.c 5774 2013-01-21 15:14:49Z piaip $ */ #include "bbs.h" #define COMPLETE_MORE_MSG "«öªÅ¥ÕÁä¥i¦C¥X§ó¦h¶µ¥Ø" #define COMPLETE_LIST_TITLE "¬ÛÃö¸ê°T¤@Äýªí" void ToggleVector(struct Vector *list, int *recipient, const char *listfile, const char *msg) { FILE *fp; char genbuf[STRL...
bencrox/hkday-pttbbs
mbbsd/name.c
C
gpl-2.0
11,314
/* * drivers/video/msm/msm_fb.c * * Core MSM framebuffer driver. * * Copyright (C) 2007 Google Incorporated * Copyright (c) 2008-2013, The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Founda...
zhaochengw/android_kernel_nubia_nx40x
drivers/video/msm/msm_fb.c
C
gpl-2.0
113,460
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Implementation of the Transmission Control Protocol(TCP). * * Version: $Id: tcp_input.c,v 1.1.1.1 2006/01/06...
gerboland/linux-2.6.15-neuros-eabi
net/ipv4/tcp_input.c
C
gpl-2.0
129,488
/* * linux/fs/truncate.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/errno.h> #include <linux/sched.h> #include <linux/minix_fs.h> #include <linux/stat.h> #include <linux/fcntl.h> /* * Truncate has the most races in the whole filesystem: coding it is * a pain in the a**. Especially as I do...
Lakshmipathi/Linux-historic
fs/minix/truncate.c
C
gpl-2.0
3,895
/* testndbm.c - Driver program to test the ndbm interface routines. */ /* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson. Copyright (C) 1990, 1991, 1993 Free Software Foundation, Inc. GDBM is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
cypherfox/gpkcs11
gdbm-1.8.0/testndbm.c
C
gpl-2.0
4,960