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
/* Copyright (C) 2007-2010 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
chifflier/suricata
src/detect-asn1.c
C
gpl-2.0
43,284
/***************************************************************************** * playlist.c : Playlist import module ***************************************************************************** * Copyright (C) 2004 the VideoLAN team * $Id$ * * Authors: Clément Stenac <zorglub@videolan.org> * * This program is...
cmassiot/vlc-broadcast
modules/demux/playlist/playlist.c
C
gpl-2.0
8,294
/* * * Copyright (C) 1996,1997 Michael R. Elkins <me@cs.hmc.edu> * ce code est repris à mutt et adapté à flrn * * Ce code est soumis à la GNU General Public License */ /* $Id$ */ #include "rfc2047.h" #include <ctype.h> #include <strings.h> #include <stdio.h> #include <stdlib.h> #ifdef HAVE_ERRNO_H #include <e...
Cigaes/flrn
src/rfc2047.c
C
gpl-2.0
13,531
/* * wm5102.c -- WM5102 ALSA SoC Audio driver * * Copyright 2012 Wolfson Microelectronics plc * * Author: Mark Brown <broonie@opensource.wolfsonmicro.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 b...
bboyfeiyu/linux
sound/soc/codecs/wm5102.c
C
gpl-2.0
53,027
/** * Pulse detection functions * * Copyright (C) 2015 Tommy Vestermark * 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 ve...
ygator/rtl_433
src/pulse_detect.c
C
gpl-2.0
26,534
/* * CAAM/SEC 4.x transport/backend driver * JobR backend functionality * * Copyright 2008-2012 Freescale Semiconductor, Inc. */ #include <linux/of_irq.h> #include <linux/of_address.h> #include "compat.h" #include "regs.h" #include "jr.h" #include "desc.h" #include "intern.h" struct jr_driver_data { /* List of...
jwhitham/ppc_linux
drivers/crypto/caam/jr.c
C
gpl-2.0
18,545
/* * misc.c * Copyright (C) 1998-2005 A.J. van Os; Released under GNU GPL * * Description: * Miscellaneous functions */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <time.h> #if defined(__riscos) #include "DeskLib:SWI.h" #else #include <errno.h> #include <sys/types.h> #i...
blchinezu/pocketbook-coolreader
thirdparty/antiword/misc.c
C
gpl-2.0
21,726
/* * Copyright (c) 2013, Francisco Franco <franciscofranco.1990@gmail.com>. * * 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. * * This program is distributed...
n3ocort3x/endeavoru_3.14
arch/arm/kernel/tegra_hotplug.c
C
gpl-2.0
5,038
/* * 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. * * Copyright (C) 2011 Luka Perkov <freecwmp@lukaperkov.net> *...
KanjiMonster/freecwmp
src/time.c
C
gpl-2.0
783
/************************************************************************** * * * Copyright (c) 2010 by Generalplus Inc. * * * * This sof...
go2ev-devteam/Gplus_2159_0801
openplatform/sdk/os/kernel-2.6.32/arch/arm/mach-spmp8050/sd/gp_sd_module.c
C
gpl-2.0
19,022
/* * Copyright (c) Wipro Technologies Ltd, 2002. 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 w...
rogerq/ltp-ddt
testcases/kernel/syscalls/sched_setparam/sched_setparam02.c
C
gpl-2.0
4,677
#include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define CHUNKSIZE 512 int vasprintf(char **ret, const char *fmt, va_list ap) { int chunks; size_t buflen; char *buf; int len; chunks = ((strlen(fmt) + 1) / CHUNKSIZE) + 1; ...
ruo91/opsview-base-4.5.0.397.utf8
patches/ndoutils_sunos.c
C
gpl-2.0
1,312
/*-- Speer --*/ #strict 2 /* Status */ public func IsSpear() { return(1); } public func CarryLimit() { // Nur eines tragbar return(1); } public func Entrance() { // Damit es die richtige Austrittsrotation annimmt SetRDir(); } /* Werfen */ public func ControlThrow() { // Träg...
tyronx/gze
Objects_GZE.c4d/Items.c4d/Weapons.c4d/Spear.c4d/Script.c
C
gpl-2.0
991
/* arch/arm/mach-msm/acpuclock.c * * MSM architecture clock driver * * Copyright (C) 2007 Google, Inc. * Copyright (c) 2007-2010, Code Aurora Forum. All rights reserved. * Author: San Mehat <san@android.com> * * This software is licensed under the terms of the GNU General Public * License version 2, a...
DJSteve/StreakKernel
arch/arm/mach-msm/acpuclock.c
C
gpl-2.0
29,025
//***************************************************************************** // // °æÈ¨ËùÓÐ (C), 1998-2010, »ªÎª¼¼ÊõÓÐÏÞ¹«Ë¾ // //***************************************************************************** // ÎÄ ¼þ Ãû : diag_sd.c // °æ ±¾ ºÅ : V1.0 // Éú³ÉÈÕÆÚ : 2012-08-13 // ¹¦Ä...
araca/Zen-Kernel-Huawei-P7
drivers/hisi/modem/oam/lt/acore/diag/diag_sd.c
C
gpl-2.0
17,734
/* * hostdal.c * * Created on: 2014-2-7 * Author: chengm */ #include <stdio.h> #include <stdlib.h> #include <memory.h> #include "debuglog.h" #include "devicedb.h" #include "dal_event.h" #include "dal_errno.h" #include "dal_devtype.h" #include "eventproc.h" #include "hostdal.h" #include "module_zigbee.h" #in...
looeyc/HostDAL
src/hostdal.c
C
gpl-2.0
13,893
/* Omnispeak: A Commander Keen Reimplementation Copyright (C) 2012 David Gow <david@ingeniumdigital.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 the Free Software Foundation; either version 2 of the License, or (at your o...
sulix/omnispeak
src/ck5_map.c
C
gpl-2.0
9,455
/** ****************************************************************************** * @file stm32f7xx_hal_spi.c * @author MCD Application Team * @version V1.0.3 * @date 13-November-2015 * @brief SPI HAL module driver. * This file provides firmware functions to manage the following ...
frzolp/StatusDisplay
StatusDisplay/HAL_Driver/Src/stm32f7xx_hal_spi.c
C
gpl-2.0
86,749
/* * linux/kernel/irq/manage.c * * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar * Copyright (C) 2005-2006 Thomas Gleixner * * This file contains driver APIs to the irq subsystem. */ #include <linux/irq.h> #include <linux/random.h> #include <linux/module.h> #include <linux/kthread.h> #include <linux...
wesen/lemonix
kernel/irq/manage.c
C
gpl-2.0
20,708
/* * PIM for Quagga * Copyright (C) 2008 Everton da Silva Marques * * 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 versi...
rtrlib/frr
pimd/pim_igmp.c
C
gpl-2.0
31,635
/* Logcache.c - sector cache for extended memory (conventional part). Copyright (C) 2002 Imre Leber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General presePublic License as published by the Free Software Foundation; either version 2 of the Li...
FDOS/chkdsk
ENGINE/Cache/logcache.c
C
gpl-2.0
4,934
/** * * ██████╗ ██╗ ███████╗ ███╗ ███╗ ██╗ ██╗ * ██╔══██╗ ███║ ██╔════╝ ████╗ ████║ ██║ ██║ * ██████╔╝ ╚██║ █████╗ ██╔████╔██║ ██║ ██║ * ██╔══██╗ ██║ ██╔══╝ ██║╚██╔╝██║ ██║ ██║ * ██║ ██║ ██║ ███████╗ ██║ ╚═╝ ██║ ╚██████╔╝ * ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═════╝ * *...
r1emu/IPFUnpacker
src/common/zlib/zlib.c
C
gpl-2.0
3,033
/****************************************************************************** * for recordMyDesktop * ******************************************************************************* * * ...
mireq/recordmydesktop-x264
src/test-rectinsert.c
C
gpl-2.0
5,762
/* * ci13xxx_udc.c - MIPS USB IP core family device controller * * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved. * * Author: David Lopo * * 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 * pub...
vm03/android_kernel_asus_P024
drivers/usb/gadget/ci13xxx_udc.c
C
gpl-2.0
102,960
/*************************************************************************** * * * 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 Fre...
ldotsfan/lpcmod_os
menu/actions/ResetMenuActions.c
C
gpl-2.0
1,040
// util.c #include "super_hdr.h" #include <linux/prefetch.h> #include "n_mstp.h" #include "util.h" unsigned short endian_swap_2(unsigned short us) { #ifdef __BIG_ENDIAN_OS__ // From big-endian (eg PPC) to little-endian (eg Intel): return ((us >> 8) | (us << 8)); #else return us; // alread...
mcruse/monotreme-mstp
util.c
C
gpl-2.0
13,266
/* * Copyright (C) 2013, 2014 ARM Limited, All Rights Reserved. * Author: Marc Zyngier <marc.zyngier@arm.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. * * This program...
Elite-Kernels/HTC-10
drivers/irqchip/irq-gic-v3.c
C
gpl-2.0
21,992
/* a10 901 * Copyright (c) 2001-2012 Nicolas Léveillé <knos.free.fr> * * You should have received this file ('src/icefx.c') with a license * agreement. ('LICENSE' file) * * Copying, using, modifying and distributing this file are rights * covered under this licensing agreement and are conditioned by its * full...
ALPHA-60/plus-one-minus-one
src/icefx.c
C
gpl-2.0
3,968
/* File: file_paf.c Copyright (C) 2008 Christophe GRENIER <grenier@cgsecurity.org> This software 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...
cgsecurity/testdisk
src/file_paf.c
C
gpl-2.0
2,407
/* Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 2000-2020 DarkPlaces contributors 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 l...
xonotic/darkplaces
console.c
C
gpl-2.0
84,392
/******************************************************************************* * Repository for C modules. * Copyright (C) 2012 Sandeep Prakash * * 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...
corehacker/ch-utils
ch-utils/list.c
C
gpl-2.0
23,311
/* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * 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; e...
zoff99/zanavi
navit/support/glib/gstring.c
C
gpl-2.0
33,935
#include "graphics.h" #include "my_ps.h" #include <stdlib.h> #include <math.h> #include <stdio.h> #include <string.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include "struct.h" #include "color.h" #include "graf_par.h" #include "calc.h" #define MAXPERPLOT 10 #define MAXPLOTS 20 #define DEGTORAD .0174532 #defi...
neurodebian/pkg-xppaut
graphics.c
C
gpl-2.0
28,269
/* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ /* NetworkManager system settings service (ifupdown) * * Alexander Sack <asac@ubuntu.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 * t...
BtbN/NetworkManager
src/settings/plugins/ifupdown/nm-ifupdown-connection.c
C
gpl-2.0
4,972
// SPDX-License-Identifier: GPL-2.0-or-later /* * x86 SMP booting functions * * (c) 1995 Alan Cox, Building #3 <alan@lxorguk.ukuu.org.uk> * (c) 1998, 1999, 2000, 2009 Ingo Molnar <mingo@redhat.com> * Copyright 2001 Andi Kleen, SuSE Labs. * * Much of the core SMP work is based on previous work by Thomas Radke, t...
chenshuo/linux-study
arch/x86/kernel/smpboot.c
C
gpl-2.0
52,430
/* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ /* packet-tcap.c */ /* ../../tools/asn2wrs.py -b -p tcap -c ./tcap.cnf -s ./packet-tcap-template ...
pengjh/freeCode
mini-ws-kernel/epan/dissectors/packet-tcap.c
C
gpl-2.0
81,137
/****************************************************************************** Implementation of ECP according to 802.1Qbg (c) Copyright IBM Corp. 2010, 2012 Author(s): Jens Osterkamp <jens at linux.vnet.ibm.com> Author(s): Thomas Richter <tmricht at linux.vnet.ibm.com> This program is free software; you ...
openSUSE/lldpad
qbg/ecp.c
C
gpl-2.0
29,678
/* sshmallocspare.c Author: Tero Kivinen <kivinen@ssh.fi> Copyright: Copyright (c) 2002, 2003 SFNT Finland Oy. All rights reserved Created: 15:11 Feb 19 2001 kivinen Routines to handle spare buffers for malloc. There is N spare buffers allocated at all times and when mallocs fails it...
invisiblek/kernel_808l
drivers/net/eip93_drivers/quickSec/src/lib/sshutil/sshsysutil/sshmallocspare.c
C
gpl-2.0
8,049
#include <stdlib.h> #include <string.h> #include <unistd.h> #include <inttypes.h> #include <avl.h> #include "flx_instrument.h" #include "flx_bblwindow.h" #include "flx_bbltranslate.h" #include "flx_bbltrace.h" /* * For analysis purposes, it is often necessary to get the last * n executed basic blocks. This module s...
pleed/pyqemu
target-i386/flx_bblwindow.c
C
gpl-2.0
1,448
/* * Copyright (C) 2010 Collabora Ltd. * * 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 dis...
raluca-elena/empathy-cheese
src/empathy-auth-client.c
C
gpl-2.0
9,178
/* * VARCem Virtual ARchaeological Computer EMulator. * An emulator of (mostly) x86-based PC systems and devices, * using the ISA,EISA,VLB,MCA and PCI system buses, roughly * spanning the era between 1981 and 1995. * * This file is part of the VARCem Project. * * Implementation of the IMD floppy image for...
basic2004/86Box
src/floppy/fdd_imd.c
C
gpl-2.0
23,735
/* Merge sort in C */ #include<stdio.h> #include<stdlib.h> // Function to Merge Arrays L and R into A. // lefCount = number of elements in L // rightCount = number of elements in R. void Merge(int *A,int *L,int leftCount,int *R,int rightCount) { int i,j,k; // i - to mark the index of left aubarray (L) // ...
yigezhe/algorithm-summary
sorting/array_sort/merge_sort/merge_sort_example2.c
C
gpl-2.0
2,356
/* * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 1994, Karl Keyte: Added support for disk statistics * Elevator latency, (C) 2000 Andrea Arcangeli <andrea@suse.de> SuSE * Queue request tables / lock, selectable elevator, Jens Axboe <axboe@suse.de> * kernel-doc documentation started by NeilBrown <...
guoyingbo/Monarudo_GPE_M7_port
block/blk-core.c
C
gpl-2.0
46,426
#include <linux/kernel.h> #include <linux/types.h> #include <linux/interrupt.h> #include <linux/list.h> #include <linux/timer.h> #include <linux/init.h> #include <linux/serial_core.h> #include <linux/platform_device.h> #include <linux/io.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/irq....
luckasfb/OT_903D-kernel-2.6.35.7
kernel/arch/arm/mach-s3c2443/mach-smdk2443.c
C
gpl-2.0
3,019
/* * Force feedback support for SmartJoy PLUS PS2->USB adapter * * Copyright (c) 2009 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Based of hid-pl.c and hid-gaff.c * Copyright (c) 2007, 2009 Anssi Hannula <anssi.hannula@gmail.com> * Copyright (c) 2008 Lukasz Lubojanski <lukasz@lubojanski.info> */ /* ...
andi34/kernel_samsung_espresso-cm
drivers/hid/hid-sjoy.c
C
gpl-2.0
4,394
/* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of ...
cedricde/lrs
client/src_initrd/lvm2/lib/format1/import-extents.c
C
gpl-2.0
8,034
#include <linux/via-core.h> #include "global.h" static int viafb_set_bpp(void __iomem *engine, u8 bpp) { u32 gemode; /* Preserve the reserved bits */ /* Lowest 2 bits to zero gives us no rotation */ gemode = readl(engine + VIA_REG_GEMODE) & 0xfffffcfc; switch (bpp) { case 8: gemode |= VIA_GEM_8bpp; break; ...
luckasfb/OT_903D-kernel-2.6.35.7
kernel/drivers/video/via/accel.c
C
gpl-2.0
13,506
#include <linux/module.h> #include <linux/vermagic.h> #include <linux/compiler.h> MODULE_INFO(vermagic, VERMAGIC_STRING); struct module __this_module __attribute__((section(".gnu.linkonce.this_module"))) = { .name = KBUILD_MODNAME, .init = init_module, #ifdef CONFIG_MODULE_UNLOAD .exit = cleanup_module, #endif .a...
qubir/PhoenixA20_linux_sourcecode
drivers/net/wireless/bcm4330/bcm4330.mod.c
C
gpl-2.0
5,629
/* ** Zabbix ** Copyright (C) 2001-2013 Zabbix SIA ** ** 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 pro...
zyongqing/zabbix
src/libs/zbxsysinfo/win32/net.c
C
gpl-2.0
13,919
#include<stdio.h> main(){ int i,t,n; scanf("%d",&t); for(i=0;i<t;i++){ scanf("%d",&n); char s[n]; scanf("%s",s); if(s[0]=='R') printf("Rounak"); if(s[0]=='G') printf("Sanchit"); printf("\n"); } return 0; }
shubhmsng/Codes
brick.c
C
gpl-2.0
216
static const char version[] = "de600.c: $Revision: 1.1.1.1 $, Bjorn Ekwall (bj0rn@blox.se)\n"; /* * de600.c * * Linux driver for the D-Link DE-600 Ethernet pocket adapter. * * Portions (C) Copyright 1993, 1994 by Bjorn Ekwall * The Author may be reached as bj0rn@blox.se * * Based on adapter information gathere...
gerboland/linux-2.6.15-neuros-eabi
drivers/net/de600.c
C
gpl-2.0
14,277
/* * (C) 2000-2006 by the netfilter coreteam <coreteam@netfilter.org>: * * 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 ve...
ZHAW-INES/rioxo-uClinux-dist
user/iptables/xtables.c
C
gpl-2.0
13,779
/* * AutoSpace Window System for Linux/Win32 v0.85 * written by pontscho/fresh!mindworkz * * This file is part of MPlayer. * * MPlayer 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 o...
gittup/mplayer
gui/wm/ws.c
C
gpl-2.0
42,280
/* * FIFO I/O scheduler (_really_ does no-op) */ #include <linux/blkdev.h> #include <linux/elevator.h> #include <linux/bio.h> #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> struct fifo_data { struct list_head queue; }; static int fifo_dispatch(struct request_queue *q, int force) { str...
jimsth/backup
block/fifo-iosched.c
C
gpl-2.0
1,969
/*\ |*| Parity Archive - A way to restore missing files in a set. |*| |*| Copyright (C) 2001 Willem Monsuwe (willem@stack.nl) |*| |*| File format by Stefan Wehlus - |*| initial idea by Tobias Rieper, further suggestions by Kilroy Balore |*| |*| Check PAR files and restore missing files. \*/ #include <stdlib.h>...
Parchive/parcmdline
checkpar.c
C
gpl-2.0
1,841
/* Copyright (c) 2014, 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 hop...
TeamRegular/android_kernel_alcatel_msm8916
drivers/leds/leds-sgm3785-idol3.c
C
gpl-2.0
10,846
/* * Cleancache frontend * * This code provides the generic "frontend" layer to call a matching * "backend" driver implementation of cleancache. See * Documentation/vm/cleancache.txt for more information. * * Copyright (C) 2009-2010 Oracle Corp. All rights reserved. * Author: Dan Magenheimer * * This work is...
Toni5830/kernel_u8500
mm/cleancache.c
C
gpl-2.0
12,997
/* * Copyright (C) 2003 Sun Microsystems, Inc. * Copyright (C) 2004 Red Hat 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) a...
andrejlamov/mylxpanel
src/plugins/netstatus/netstatus-dialog.c
C
gpl-2.0
23,872
/* VMOperatingSystemMXBeanImpl.c - gnu.java.lang.management native functions Copyright (C) 2006, 2014 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
cfriedt/classpath
native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c
C
gpl-2.0
2,363
/******************************************************************** Software License Agreement: The software supplied herewith by Microchip Technology Incorporated (the "Company") for its PIC(R) Microcontroller is intended and supplied to you, the Company's customer, for use solely and exclusively on Micr...
kaipyroami/ElektroMobLoggerUSB
beispiele/MLA Tests/msd_data_logger/firmware/src/system_config/exp16/pic24fj64gb004_pim/system.c
C
gpl-2.0
3,493
/* i2c-core.c - a device driver for the iic-bus interface */ /* ------------------------------------------------------------------------- */ /* Copyright (C) 1995-99 Simon G. Vogl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License a...
waterice/Test-Git
drivers/i2c/i2c-core.c
C
gpl-2.0
32,151
#include "Behaviors.h" #include "OmniControl.h" #include "Ultrasonic.h" state_t initial = {0, 0, 0}; // initial state of the robot state_t final; // goal state of the robot state_t desired; // desired state of the robot calculated from interpolation state_t integral; float Kp = 10; f...
baserkandehir/Omnidirectional-Robot-Project
Keil-Code/Behaviors.c
C
gpl-2.0
2,992
/* Thread creation. Copyright (C) 2000, 2002, 2005, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundat...
n1koo/eglibc-trusty
libpthread/pthread/pt-create.c
C
gpl-2.0
7,237
/* * DECnet An implementation of the DECnet protocol suite for the LINUX * operating system. DECnet is implemented using the BSD Socket * interface as the means of communication with the user level. * * DECnet sysctl support functions * * Author: Steve Whitehou...
iPodLinux/linux-2.6.7-ipod
net/decnet/sysctl_net_decnet.c
C
gpl-2.0
9,325
/* #################################### # # --- TEXTPATGEN TEMPLATE --- # # Example usage: # tpl-decgen-file-0001.c 0 99 10 # # The text is written to a timestamped file. # #################################### */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> int main(int argc, char *arg...
kevinleake01/textpatgen
01-workspace-c/tpl-decgen-file-0001.c
C
gpl-2.0
2,137
#include <stdio.h> /* This is a comment */ int main(int argc, char* argv[]) { int distance = 100; // This is also a comment printf("You are %d miles away", distance); return 0; }
masskonfuzion/lcthw
ex5/ex5.c
C
gpl-2.0
185
/* mod_evasive for Apache 2 Copyright (c) by Jonathan A. Zdziarski LICENSE 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 Foundat...
skonb/evasive
mod_evasive20.c
C
gpl-2.0
22,644
#include <stdio.h> #include <stdlib.h> #include<math.h> #include <gsl/gsl_math.h> #include <gsl/gsl_complex.h> #include <gsl/gsl_complex_math.h> #include "params.h" double classical_int (double x1, double x2, double u0); double classical_pot (double x, double v0); double kdel (int i, int j); /*Husimi Function Integra...
hariseldon99/archives
poincare_doublewell/trunk/husimi_integrals.c
C
gpl-2.0
4,673
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
luckasfb/OT_903D-kernel-2.6.35.7
bootable/bootloader/uboot/arch/powerpc/cpu/mpc5xxx/cpu.c
C
gpl-2.0
6,888
/* * 86Box A hypervisor and IBM PC system emulator that specializes in * running old operating systems and software designed for IBM * PC systems and compatibles from 1981 through fairly recent * system designs based on the PCI bus. * * This file is part of the 86Box distribution. * * Windows 86Box Settin...
OBattler/86Box
src/win/win_settings.c
C
gpl-2.0
124,391
/* Instruction scheduling pass. Selective scheduler and pipeliner. Copyright (C) 2006-2016 Free Software Foundation, Inc. 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 published by the Free Software Foundation; either ...
h4ck3rm1k3/gcc-1
gcc/sel-sched.c
C
gpl-2.0
246,487
/* * Block OSM * * Copyright (C) 1999-2002 Red Hat Software * * Written by Alan Cox, Building Number Three Ltd * * 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...
scotthartbti/cm_samsung_kernel_dempsey
drivers/message/i2o/i2o_block.c
C
gpl-2.0
31,189
/* * 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). * * Authors: Ross Biro * Fred N. van Kempen, <wa...
gdetal/samsung_i9100_mptcp
net/ipv4/tcp_timer.c
C
gpl-2.0
18,141
/* Expectation handling for nf_conntrack. */ /* (C) 1999-2001 Paul `Rusty' Russell * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org> * (C) 2003,2004 USAGI/WIDE Project <http://www.linux-ipv6.org> * (c) 2005-2012 Patrick McHardy <kaber@trash.net> * * This program is free software; you can redistribute i...
cneira/ebpf-backports
linux-3.10.0-514.21.1.el7.x86_64/net/netfilter/nf_conntrack_expect.c
C
gpl-2.0
17,949
/* * Copyright (C) 2009-2013 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 l...
virtualopensystems/libvirt
src/conf/netdev_vlan_conf.c
C
gpl-2.0
5,632
#include <linux/netfilter/ipset/pfxlen.h> /* * Prefixlen maps for fast conversions, by Jan Engelhardt. */ #define E(a, b, c, d) \ {.ip6 = { \ __constant_htonl(a), __constant_htonl(b), \ __constant_htonl(c), __constant_htonl(d), \ } } /* * This table works for both IPv4 and IPv6; * just use pr...
jeffegg/beaglebone
net/netfilter/ipset/pfxlen.c
C
gpl-2.0
14,921
/* * AVR demuxer * Copyright (c) 2012 Paul B Mahol * * 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 your o...
AreaScout/vice-gles2
src/lib/libffmpeg/libavformat/avr.c
C
gpl-2.0
3,185
/* Copyright (c) 2013, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * notice, this list ...
sooorajjj/tomato_tree
camera/QCamera2/stack/mm-jpeg-interface/src/mm_jpeg_ionbuf.c
C
gpl-2.0
4,772
#include "qlcnic.h" #include <linux/slab.h> #include <net/ip.h> #define MASK(n) ((1ULL<<(n))-1) #define OCM_WIN_P3P(addr) (addr & 0xffc0000) #define GET_MEM_OFFS_2M(addr) (addr & MASK(18)) #define CRB_BLK(off) ((off >> 20) & 0x3f) #define CRB_SUBBLK(off) ((off >> 16) & 0xf) #define CRB_WINDOW_2M (0x130060) #defin...
luckasfb/OT_903D-kernel-2.6.35.7
kernel/drivers/net/qlcnic/qlcnic_hw.c
C
gpl-2.0
31,495
// Emacs style mode select -*- C++ -*- //---------------------------------------------------------------------------- // // Copyright(C) 2000 Simon Howard // // 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 Softwa...
fragglet/smmu
t_spec.c
C
gpl-2.0
6,911
#include <linux/module.h> #include <linux/init.h> #include <linux/clk.h> #include <linux/err.h> #include <linux/io.h> #include <linux/platform_device.h> #include <linux/slab.h> #include <mach/irqs.h> #include <plat/dma.h> #include <plat/mux.h> #include <plat/cpu.h> #include <plat/mcbsp.h> #include <plat/dsp_common.h>...
luckasfb/OT_903D-kernel-2.6.35.7
kernel/arch/arm/mach-omap1/mcbsp.c
C
gpl-2.0
5,234
/* * Copyright 2011-2014 hasufell * * This file is part of a hasufell project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation version 2 of the License only. * * This program is distri...
hasufell/half-edge
src/gl_draw.c
C
gpl-2.0
15,603
/* Renesas / SuperH SH specific support for 32-bit ELF Copyright (C) 1996-2014 Free Software Foundation, Inc. Contributed by Ian Lance Taylor, Cygnus Support. This file is part of BFD, the Binary File Descriptor library. This program is free software; you can redistribute it and/or modify it under the ...
bluecmd/binutils-gdb
bfd/elf32-sh.c
C
gpl-2.0
221,759
/********************************************************************* PicoTCP. Copyright (c) 2012-2015 Altran Intelligent Systems. Some rights reserved. See LICENSE and COPYING for usage. Author: Andrei Carp <andrei.carp@tass.be> *********************************************************************/ #inclu...
kostyll/picotcp
stack/pico_tree.c
C
gpl-2.0
16,678
/******************************************************************************* * Filename: target_core_rd.c * * This file contains the Storage Engine <-> Ramdisk transport * specific functions. * * Copyright (c) 2003, 2004, 2005 PyX Technologies, Inc. * Copyright (c) 2005, 2006, 2007 SBE, Inc. * Copy...
jeffegg/beaglebone
drivers/target/target_core_rd.c
C
gpl-2.0
19,005
/* ssh-pk-prv-def.c Copyright: Copyright (c) 2002, 2003 SFNT Finland Oy. All rights reserved Kludge: This file includes ssh-pk-prv.c two times. First when GENERATE is defined and then when GENERATE is undefined. The intention of this tweaking is to avoid linking of the heavy private key g...
invisiblek/kernel_808l
drivers/net/eip93_drivers/quickSec/src/lib/sshcrypto/sshpk/ssh-pk-prv-def.c
C
gpl-2.0
527
/* * avs_none.c - * * For av receiver without av switch. the e2_core in stmdvb need some functions * from avs module but fake_avs is not a real fake because it sets pio pins. * * mainly based on avs_core.c from Gillem gillem@berlios.de / Tuxbox-Project * * This program is free software; you can redis...
project-magpie/tdt-driver
avs/avs_none.c
C
gpl-2.0
2,005
#define QOP_Precision 'D' #define QOP_Colors 3 #define QOP_Nc 3 #define QDP_Precision 'D' #define QDP_Colors 3 #define QDP_Nc 3 #define QLA_Precision 'D' #define QLA_Colors 3 #define QLA_Nc 3 #include "invert_gmres2_D_p.c"
usqcd-software/qopqdp
lib/pcstubs/invert_gmres2_D_d3.c
C
gpl-2.0
224
/* * x86_64.c * * Copyright (C) 2006, 2007, 2008 NEC 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 Foundation; either version 2 of the License, or * (at your option) any later versi...
pratyushanand/makedumpfile
arch/x86_64.c
C
gpl-2.0
21,134
#include "sqlite/sqlite3.h" #include "sqlite.h" void throw_sqlite3_exception(JNIEnv *env, sqlite3 *handle, int errcode) { if (SQLITE_OK == errcode) { errcode = sqlite3_errcode(handle); } const char *errmsg = sqlite3_errmsg(handle); jclass exClass = (*env)->FindClass(env, "me/cpwc/nibblegram/SQLite/SQLiteExceptio...
cpwc/Nibblegram
TMessagesProj/jni/sqlite.c
C
gpl-2.0
368
/* * File...........: linux/drivers/s390/block/dasd_diag.c * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> * Based on.......: linux/drivers/s390/block/mdisk.c * ...............: by Hartmunt Penner <hpenner@de.ibm.com> * Bugreports.to..: <Linux390@de.ibm.com> * (C) IBM Corporation, IBM Deut...
Jackeagle/android_kernel_sony_c2305
drivers/s390/block/dasd_diag.c
C
gpl-2.0
19,051
/* * Copyright (c) 2002-2003, Intel Corporation. All rights reserved. * Created by: salwan.searty REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. This program tests the assertion tha...
shubmit/shub-ltp
testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/7-1.c
C
gpl-2.0
2,268
//Copyright (C) 1997-2001 ZSNES Team ( zsknight@zsnes.com / _demo_@zsnes.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 the Free Software Foundation; either //version 2 of the License, or (at your option) any later...
bazzinotti/mac-zsnes-1.36
src/fixsin.c
C
gpl-2.0
31,482
int main(int ac, char **av) { char *jitmem; int *je, var; jitmem = mmap(0, 256, 7, 0x22, -1, 0); je = (int *)jitmem; *je++ = 0xe59f000c; // ldr r0, [pc, #12] *je++ = 0xe5901000; // ldr r1, [r0] *je++ = 0xe2811009; // add r1, r1, #9 *je++ = 0xe5801000; // str r1, [r0] *je++ = 0xe1a0f...
gapry/amacc
tests/jit.c
C
gpl-2.0
512
/* Functions to make fuzzy comparisons between strings Copyright (C) 1988, 1989, 1992, 1993, 1995 Free Software Foundation, 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 ver...
gcwnow/heroes
lib/fstrcmp.c
C
gpl-2.0
15,818
/* arch/arm/mach-msm/cpufreq.c * * MSM architecture cpufreq driver * * Copyright (C) 2007 Google, Inc. * Copyright (c) 2007-2010, Code Aurora Forum. All rights reserved. * Author: Mike A. Chan <mikechan@google.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as ...
ikarosdev/kernel_wx435
arch/arm/mach-msm/cpufreq.c
C
gpl-2.0
4,696
/******************************************************************************* * This file is part of OpenWSN, the Open Wireless Sensor Network Platform. * * Copyright (C) 2005-2020 zhangwei(TongJi University) * * OpenWSN is a free software; you can redistribute it and/or modify it under * the terms of the GNU ...
openwsn/node
common/openwsn/svc/svc_sio_acceptor.c
C
gpl-2.0
7,139
/* * Copyright (C) 1998,1999 Ross Combs (rocombs@cs.nmsu.edu) * * 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. ...
tesseract2048/pvpgn
src/bnetd/account_wrap.c
C
gpl-2.0
67,115
/* Copyright (C) 2007-2020 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
chifflier/suricata
src/detect-tos.c
C
gpl-2.0
9,418
/* Copyright (c) 2010, Code Aurora Forum. 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 th...
fards/DellStreak5-GingerBread
drivers/video/msm/mdp4_dtv.c
C
gpl-2.0
8,538