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 2011 Broadcom Corporation. All rights reserved. * * @file arch/arm/plat-kona/csl/csl_dsi.c * * Unless you and Broadcom execute a separate written software license agreement * governing use of this software, this software is li...
SandPox/kernel_collection
arch/arm/plat-kona/csl/csl_dsi.c
C
gpl-2.0
70,127
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be use...
andygrundman/Audio-Scan
src/mp4.c
C
gpl-2.0
54,910
/* * Eee PC WMI hotkey driver * * Copyright(C) 2010 Intel Corporation. * Copyright(C) 2010-2011 Corentin Chary <corentin.chary@gmail.com> * * Portions based on wistron_btns.c: * Copyright (C) 2005 Miloslav Trmac <mitr@volny.cz> * Copyright (C) 2005 Bernhard Rosenkraenzer <bero@arklinux.org> * Copyrigh...
jeffegg/beaglebone
drivers/platform/x86/eeepc-wmi.c
C
gpl-2.0
5,771
/* The blue programming language ("blue") Copyright (C) 2007 Erik R Lechak email: erik@leckak.info web: www.lechak.info 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 Licen...
elechak/blue
plugins/list.c
C
gpl-2.0
3,848
/* * (c) 2011 STMicroelectronics Limited * * Author: Srinivas Kandagatla <srinivas.kandagatla@st.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. */ #ifndef CONFIG_OF ...
system1357/pdk7105-3.4
drivers/stm/stih415_hispeed.c
C
gpl-2.0
37,383
/* $Id: isdn_ttyfax.c,v 1.1.2.2 2004/01/12 22:37:19 keil Exp $ * * Linux ISDN subsystem, tty_fax AT-command emulator (linklevel). * * Copyright 1999 by Armin Schindler (mac@melware.de) * Copyright 1999 by Ralf Spachmann (mel@melware.de) * Copyright 1999 by Cytronics & Melware * * This software may be u...
evolver56k/xpenology
drivers/isdn/i4l/isdn_ttyfax.c
C
gpl-2.0
25,361
#include <linux/module.h> #include <linux/poll.h> #ifdef CONFIG_PROC_FS #include <linux/proc_fs.h> #else #include <linux/fs.h> #endif #include <linux/sched.h> #include <linux/isdnif.h> #include <net/net_namespace.h> #include "isdn_divert.h" ulong if_used = 0; static struct divert_info *divert_info_head = NULL;...
leemgs/OptimusOneKernel-KandroidCommunity
drivers/isdn/divert/divert_procfs.c
C
gpl-2.0
6,218
/* * Disktest * Copyright (c) International Business Machines Corp., 2001 * * * 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 ver...
shubmit/shub-ltp
testcases/kernel/io/disktest/dump.c
C
gpl-2.0
5,656
/* * Copyright (C) 2007 Novell, Inc. * * This 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 Foundation; either * version 2 of the License, or (at your option) any later version. * * This library ...
gfunkmonk2/mate-games
libgames-support/eggsmclient.c
C
gpl-2.0
19,642
/* * linux/init/main.c * * Copyright (C) 1991, 1992 Linus Torvalds * * GK 2/5/95 - Changed to support mounting root fs via NFS * Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96 * Simplified starting of in...
willowgarage/pr2-kernel
init/main.c
C
gpl-2.0
22,000
/* binder.c * * Android IPC Subsystem * * Copyright (C) 2007-2008 Google, Inc. * Copyright (c) 2012-2013 Motorola Mobility LLC * * 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 modifie...
razrqcom-dev-team/android_kernel_motorola_msm8226
drivers/staging/android/binder.c
C
gpl-2.0
113,672
/* * arch/arm/mm/cache-l2x0.c - L210/L220 cache controller support * * Copyright (C) 2007 ARM Limited * * 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 is dis...
giorgio130/KK_kernel
arch/arm/mm/cache-l2x0.c
C
gpl-2.0
5,250
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source cod...
alim1975/FlowOS
libs/dpdk/examples/l3fwd/main.c
C
gpl-2.0
69,629
/* * Cuts out one big polygon, that takes up most of the map. * * Copyright (C) 2003, David Redick * Released under the GNU General Public License (v2) */ #include "map.h" #include "func_list.h" void invert_rand_poly() { map.color = 255; clear_invert_map(); rand_poly(); return; }
bkil/liquid-war-5
utils/lwmapgen/old/invert_rand_poly.c
C
gpl-2.0
300
/* driver/sensor/cm36651.c * Copyright (c) 2011 SAMSUNG * * 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. * * Th...
AstroProfundis/android_kernel_samsung_sc03e
drivers/sensor/cm36651.c
C
gpl-2.0
39,909
/* * fs/dcache.c * * Complete reimplementation * (C) 1997 Thomas Schoebel-Theuer, * with heavy changes by Linus Torvalds */ /* * Notes on the allocation strategy: * * The dcache is a master of the icache - whenever a dcache entry * exists, the inode will always exist. "iput()" is done either when * the dcac...
javelinanddart/android_kernel_3.10_ville
fs/dcache.c
C
gpl-2.0
81,844
/* * PS3 Storage Library * * Copyright (C) 2007 Sony Computer Entertainment Inc. * Copyright 2007 Sony Corp. * * 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. ...
173210/linux
drivers/ps3/ps3stor_lib.c
C
gpl-2.0
9,816
#include <stdio.h> void Encrypt() { char text[1000], encryptedText[1000]; scanf("%s", text); int i; for (i = 0; text[i] != '\0'; ++i) { if ((text[i] >= 65 && text[i] <= 77) || (text[i] >= 97 && text[i] <= 109)) { encryptedText[i] = text[i] + 13; } else if ((text[i] >= 78 && text[i] <= 90) || (text[i]...
EvtimPavlov/c-programming-2014-2015-homework
A/21_Nikolay_Danailov/homework_5/rot13.c
C
gpl-2.0
660
/* * drivers/misc/logger.c * * A Logging Subsystem * * Copyright (C) 2007-2008 Google, Inc. * * Robert Love <rlove@google.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 modif...
hiikezoe/android_kernel_panasonic_p02e
drivers/staging/android/logger.c
C
gpl-2.0
35,166
/******************************************************************* * This file is part of the Emulex Linux Device Driver for * * Fibre Channel Host Bus Adapters. * * Copyright (C) 2004-2014 Emulex. All rights reserved. * * EMULEX and SLI are trademarks of Emulex. ...
thomhastings/linux-3.17.1-parrot
drivers/scsi/lpfc/lpfc_scsi.c
C
gpl-2.0
182,041
/* * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * * Copyright (c) 2013, 2014, Intel Corporation. * * This file is part of Portals, http://www.sf.net/projects/lustre/ * * Portals is free software; you can redistribute it and/or * modify it under the terms of version 2 of t...
rowhit/lustre
lnet/utils/portals.c
C
gpl-2.0
48,688
/* * java-gnome, a UI library for writing GTK and GNOME programs from Java! * * Copyright © 2006-2011 Operational Dynamics Consulting, Pty Ltd and Others * * The code in this file, and the program it is a part of, is made available * to you by its authors as open source software: you can redistribute it * and/or...
cyberpython/java-gnome
generated/bindings/org/gnome/gtk/GtkPaned.c
C
gpl-2.0
7,269
/* * platform_switch_mid.c: switch_mid platform data initilization file * * (C) Copyright 2008 Intel Corporation * Author: * * 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 * ...
system1357/Zenfone-Kernel
arch/x86/platform/intel-mid/device_libs/platform_switch_mid.c
C
gpl-2.0
1,579
/* Generate code to initialize optabs from machine description. Copyright (C) 1993-2014 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 vers...
Alexpux/GCC
gcc/genopinit.c
C
gpl-2.0
14,981
/* tap_camelcounter.c * camel message counter for tshark * Copyright 2006 Florent DROUIN * * $Id: tap-camelcounter.c 45015 2012-09-20 01:29:52Z morriss $ * * This part of code is extracted from tap-h225counter.c from Lars Roland * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> ...
MavEtJu/wireshark-lean
ui/cli/tap-camelcounter.c
C
gpl-2.0
3,712
// Copyright (C) 1999-2000 Id Software, Inc. // /* ======================================================================= NETWORK OPTIONS MENU ======================================================================= */ #include "ui_local.h" #define ID_GRAPHICS 10 #define ID_DISPLAY 11 #define ID_SOUND 12 #de...
UberGames/rpgxEF
code/ui/ui_network.c
C
gpl-2.0
6,321
#if 0 #include <stdio.h> #define MAXN (3) double a[4][4]; char str[4] ="WTL"; int main(int argc,char *argv[]) { int i,j; int Grade[4]; double MaxOdd[4]; double Curmax; double Pro; freopen( "D:\\Chengsq\\in.txt" , "r" ,stdin); freopen( "D:\\Chengsq\\out.txt", "w" ,stdout); while(1) { ...
chengsq/algtest
PAT/PAT1011.c
C
gpl-2.0
803
/* * arch/arm/mach-omap2/serial.c * * OMAP2 serial support. * * Copyright (C) 2005-2008 Nokia Corporation * Author: Paul Mundt <paul.mundt@nokia.com> * * Major rework for PM support by Kevin Hilman * * Based off of arch/arm/mach-omap/omap1/serial.c * * Copyright (C) 2009 Texas Instruments * Added OMAP4 sup...
STS-Dev-Team/kernel_kexec_modules
arch/arm/mach-omap2/serial.c
C
gpl-2.0
25,710
/* driver/sharp/shdisp/shdisp_kerl.c (Display Driver) * * Copyright (C) 2011-2012 SHARP CORPORATION * * 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. * * Th...
ISTweak/android_kernel_sharp_msm8960
drivers/sharp/shdisp/shdisp_kerl.c
C
gpl-2.0
211,876
/* * Driver for keys on GPIO lines capable of generating interrupts. * * Copyright 2005 Phil Blundell * * 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/modu...
ffolkes/android_kernel_samsung_smdk4412
drivers/input/keyboard/cypress/cypress-touchkey.c
C
gpl-2.0
90,538
/* * Performance events core code: * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com> * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For licens...
Chairshot215/starship_kernel_moto_shamu
kernel/events/core.c
C
gpl-2.0
186,734
/* Copyright (c) 2010-2013, 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 ...
AD5GB/android_kernel_google_msm
drivers/video/msm/vidc/1080p/resource_tracker/vcd_res_tracker.c
C
gpl-2.0
31,081
/* * Atmel MultiMedia Card Interface driver * * Copyright (C) 2004-2008 Atmel 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. */ #include <linux/blkdev.h> #includ...
Filmetrics/smartinstr-linux-kernel
drivers/mmc/host/atmel-mci.c
C
gpl-2.0
71,440
// SONIC ROBO BLAST 2 //----------------------------------------------------------------------------- // Copyright (C) 1998-2000 by DooM Legacy Team. // Copyright (C) 1999-2022 by Sonic Team Junior. // // This program is free software distributed under the // terms of the GNU General Public License, version 2. // See t...
STJr/SRB2
src/r_draw8.c
C
gpl-2.0
61,313
/* File: file_png.c Copyright (C) 1998-2009 Christophe GRENIER <grenier@cgsecurity.org> Thanks to Holger Klemm for JNG (JPEG Network Graphics) and MNG (Multiple-Image Network Graphics) support (2006) This software is free software; you can redistribute it and/or modify it under the terms of...
qayshp/TestDisk
src/file_png.c
C
gpl-2.0
8,283
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Dhollmen/Kernel_Wiko_5460
sound/soc/mediatek/mt_soc_audio_v3/mt_soc_pcm_dl1_awb.c
C
gpl-2.0
16,483
/* ** ZABBIX ** Copyright (C) 2000-2007 SIA Zabbix ** ** 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 pr...
rennhak/zabbix
src/libs/zbxdbcache/dbcache.c
C
gpl-2.0
83,059
/* * drxd_hard.c: DVB-T Demodulator Micronas DRX3975D-A2,DRX397xD-B1 * * Copyright (C) 2003-2007 Micronas * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 only, as published by the Free Software Foundation. * * ...
jeffegg/beaglebone
drivers/media/dvb/frontends/drxd_hard.c
C
gpl-2.0
80,103
/* Support for printing Fortran values for GDB, the GNU debugger. Copyright (C) 1993-1996, 1998-2000, 2003, 2005-2012 Free Software Foundation, Inc. Contributed by Motorola. Adapted from the C definitions by Farooq Butt (fmbutt@engage.sps.mot.com), additionally worked over by Stan Shebs. This file is...
kaushiks/GDB
gdb/f-valprint.c
C
gpl-2.0
17,706
/* * Copyright (C) 2003-2011 The Music Player Daemon Project * http://www.musicpd.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 opti...
seebag/mpd
src/client_event.c
C
gpl-2.0
2,584
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2012 Sam Lantinga 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 op...
qtekfun/htcDesire820Kernel
external/qemu/distrib/sdl-1.2.15/src/loadso/os2/SDL_sysloadso.c
C
gpl-2.0
1,941
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2012 Sam Lantinga 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 op...
qtekfun/htcDesire820Kernel
external/qemu/distrib/sdl-1.2.15/src/video/caca/SDL_cacaevents.c
C
gpl-2.0
2,726
/* * Copyright (c) 2008-2011 Atheros Communications Inc. * * 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 "A...
jeffegg/beaglebone
drivers/net/wireless/ath/ath9k/beacon.c
C
gpl-2.0
25,315
/* * versort.c * * Copyright (c) 2007 by Michel Hermier <hermier@frugalware.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 ...
frugalware/pacman-g2
src/versort/versort.c
C
gpl-2.0
3,769
/* * drivers/cpufreq/cpufreq_intellidemand.c * * Copyright (C) 2001 Russell King * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. * Jun Nakajima <jun.nakajima@intel.com> * (C) 2012 Paul Reioux <reioux@gmail.com> * (C) 2013 Paul Reioux <re...
El-Nath/biji-find5-kernel
drivers/cpufreq/cpufreq_intellidemand.c
C
gpl-2.0
55,108
/* * Copyright (C) 2006 Freescale Semiconductor, Inc. All rights reserved. * * Authors: Shlomi Gridish <gridish@freescale.com> * Li Yang <leoli@freescale.com> * * Description: * QE UCC Slow API Set - UCC Slow specific routines implementations. * * This program is free software; you can redistribute it and/or...
jwhitham/ppc_linux
drivers/soc/qe/ucc_slow.c
C
gpl-2.0
10,043
/* * cdc-acm.c * * Copyright (c) 1999 Armin Fuerst <fuerst@in.tum.de> * Copyright (c) 1999 Pavel Machek <pavel@suse.cz> * Copyright (c) 1999 Johannes Erdfelt <johannes@erdfelt.com> * Copyright (c) 2000 Vojtech Pavlik <vojtech@suse.cz> * Copyright (c) 2004 Oliver Neukum <oliver@neukum.name> * Copyright (c) 2005 ...
photon-dev-team/ics_atrix
drivers/usb/class/cdc-acm.c
C
gpl-2.0
49,285
/** Tests argument passing to functions via va_args. Assumes that up to the first two arguments can be passed in registers. type1: va_char, int type2: va_char, int type3: va_char, int */ #include <testfwk.h> #include <stdarg.h> /* gcc 3.3 throws a warning, if char is in '...' */ #if defined(PORT_HOST...
darconeous/sdcc
support/regression/tests/vaargs.c
C
gpl-2.0
1,782
/* * ALSA SoC SPDIF DIT driver * * This driver is used by controllers which can operate in DIT (SPDI/F) where * no codec is needed. This file provides stub codec that can be used * in these configurations. TI DaVinci Audio controller uses this driver. * * Author: Steve Chen, <schen@mvista.com> * Copyr...
p12tic/tf700-kernel
sound/soc/codecs/spdif_transciever.c
C
gpl-2.0
2,788
/* Scalar Replacement of Aggregates (SRA) converts some structure references into scalar references, exposing them to the scalar optimizers. Copyright (C) 2008-2015 Free Software Foundation, Inc. Contributed by Martin Jambor <mjambor@suse.cz> This file is part of GCC. GCC is free software; you can redistr...
igou/gcc
gcc/tree-sra.c
C
gpl-2.0
156,896
/* * This file is part of the coreboot project. * * Copyright (C) 2008-2010 Joseph Smith <joe@settoplinux.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 Li...
rockchip-linux/coreboot
src/mainboard/thomson/ip1000/romstage.c
C
gpl-2.0
3,415
#include "LegLUT.h" const int16_t legPosLUT [2][35][30] = { {{126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 126}, {126, 1...
fughilli/IKSolver
LegLUT.c
C
gpl-2.0
12,287
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
kofemann/linux-redpatch
fs/gfs2/bmap.c
C
gpl-2.0
35,093
#include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/huge_mm.h> #include <linux/mount.h> #include <linux/seq_file.h> #include <linux/highmem.h> #include <linux/ptrace.h> #include <linux/slab.h> #include <linux/pagemap.h> #include <linux/mempolicy.h> #include <linux/rmap.h> #include <linux/swap.h> #include <...
bmc08gt/kernel_samsung_exynos7420
fs/proc/task_mmu.c
C
gpl-2.0
38,913
/* * linux/arch/arm/common/nvic.c * * Copyright (C) 2008 ARM Limited, 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. * * Support for the Nested Vecto...
nmacs/lm3s-linux
arch/arm/common/nvic.c
C
gpl-2.0
2,545
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2019 Intel Corporation */ #include <stdio.h> #include <string.h> #include <rte_eal.h> #include <rte_lcore.h> #include <rte_debug.h> #include <rte_memzone.h> #include <rte_atomic.h> #include <rte_timer.h> #include <rte_cycles.h> #include <rte_mempool.h> #includ...
emmericp/dpdk
app/test/test_timer_secondary.c
C
gpl-2.0
5,265
/* SPDX-License-Identifier: LGPL-2.1+ */ #include <errno.h> #include <string.h> #include <sys/utsname.h> #include <unistd.h> #include "alloc-util.h" #include "bus-common-errors.h" #include "bus-util.h" #include "def.h" #include "env-file-label.h" #include "env-file.h" #include "env-util.h" #include "fileio-label.h" #...
pszewczyk/systemd
src/hostname/hostnamed.c
C
gpl-2.0
26,127
#include <stdio.h> double add(double a, double b); double sub(double a, double b); double divid(double a, double b); double product(double a, double b); typedef double (*p2fun)(double, double) ; //p2fun op(int num); double (*op(int num))(double, double); void main(void) { int num = 0; double a, b; double ...
EslamZidane/C_Course
pointer_to_function.c
C
gpl-2.0
1,102
#include <linux/fs.h> #include <linux/buffer_head.h> #include <linux/kernel.h> #include "vxfs.h" #include "vxfs_inode.h" #include "vxfs_extern.h" #ifdef DIAGNOSTIC static void vxfs_typdump(struct vxfs_typed *typ) { printk(KERN_DEBUG "type=%Lu ", typ->vt_hdr >> VXFS_TYPED_TYPESHIFT); printk("offset=%Lx ", typ->vt...
luckasfb/OT_903D-kernel-2.6.35.7
kernel/fs/freevxfs/vxfs_bmap.c
C
gpl-2.0
4,427
//[*]--------------------------------------------------------------------------------------------------[*] // // // // HardKernel(HKC1XX) Touch driver (charles.park) // 2009.07.22 // // //[*]--------------------------------------------------------------------------------------------------[*] #include <linux/module....
dalinaum/studyak
drivers/input/touchscreen/odroids_touch.c
C
gpl-2.0
19,047
/* GPL (c) 2015-2016, thorsten.johannvorderbrueggen@t-online.de 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. ...
tjohann/libbaalue
examples/inet_daytime_client.c
C
gpl-2.0
4,210
/* * Memory helpers */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/shm.h> #include <sys/mman.h> #include "fio.h" static void *pinned_mem; void fio_unpin_memory(void) { if (pinned_mem) { dprint(FD_MEM, "unpinning %llu bytes\n", mlock_size); if (munlock(pinn...
radii/fio
memory.c
C
gpl-2.0
5,547
/* librouteros-api - Connect to RouterOS devices using official API protocol Copyright (C) 2013, Håkon Nessjøen <haakon.nessjoen@gmail.com> This program 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 Softw...
haakonnessjoen/librouteros-api
examples/cmd.c
C
gpl-2.0
3,196
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <mpi.h> #include <unistd.h> #define DIM_LEN (1024*2) void init_mat(char *mat); void cal_prod(char *mat_1, char *mat_2, unsigned long long **prod); unsigned long long get_time(); void print_mat_llu(unsigned long long *mat);...
praveendath92/tud
sem3/LSPC/exercises/ex3/ex03/matmul_cont.c
C
gpl-2.0
5,157
/* * File: af_phonet.c * * Phonet protocols family * * Copyright (C) 2008 Nokia Corporation. * * Contact: Remi Denis-Courmont <remi.denis-courmont@nokia.com> * Original author: Sakari Ailus <sakari.ailus@nokia.com> * * This program is free software; you can redistribute it and/or * modify it under the terms ...
cometzero/cometzero_e210s
net/phonet/af_phonet.c
C
gpl-2.0
13,059
#include <freewpc.h> U8 city_multiplier; void multiplier_update (void) { score_multiplier_set (city_multiplier); } void city_multiplier_set (U8 m) { city_multiplier = m; multiplier_update (); } CALLSET_ENTRY (multiplier, start_ball) { city_multiplier = 1; }
bcd/freewpc
machine/wcs/multiplier.c
C
gpl-2.0
267
/* -*- mode: c -*- */ /* $Id: corr_eof.c 7462 2013-10-22 05:39:39Z cher $ */ /* Copyright (C) 2003-2013 Alexander Chernov <cher@ejudge.ru> */ /* * 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 Foundati...
stden/ejudge
checkers/corr_eof.c
C
gpl-2.0
1,151
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2016 Rockchip, Inc. * Authors: Daniel Meng <daniel.meng@rock-chips.com> */ #include <common.h> #include <dm.h> #include <malloc.h> #include <usb.h> #include <watchdog.h> #include <linux/errno.h> #include <linux/compat.h> #include <linux/usb/dwc3.h> #include <po...
ev3dev/u-boot
drivers/usb/host/xhci-rockchip.c
C
gpl-2.0
5,166
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <bcmnvram.h> #include <shutils.h> #include "shared.h" #include "web-qtn.h" #include "net80211/ieee80211_dfs_reentry.h" #ifdef RTCONFIG_JFFS2ND_BACKUP #include <sys/mount.h> #include <sys/statfs.h> #endif static int lock_qtn_apsc...
mikewadsten/asuswrt
release/src/router/rc/sysdeps/qtn/qtn.c
C
gpl-2.0
27,555
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2012 The PHP Group | +---------...
ssanglee/capstone
php-5.4.6/ext/standard/sha1.c
C
gpl-2.0
11,857
/* dnsmasq is Copyright (c) 2000 Simon Kelley 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 dated June, 1991. This program is distributed in the hope that it will be useful, ...
kidmaple/CoolWall
user/dnsmasq/dnsmasq.c
C
gpl-2.0
10,885
/* Copyright 2016-2017 Jack Humbert * * 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...
fudanchii/qmk_firmware
quantum/quantum.c
C
gpl-2.0
27,466
/* src/vm/jit/intrp/codegen.c - code generator for Interpreter Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger, Institut f. Computersprachen - TU Wien ...
tommythorn/yari
shared/cacao-related/cacao/src/vm/jit/intrp/codegen.c
C
gpl-2.0
59,439
/* * Copyright (c) 1997 Enterprise Systems Management Corp. * * This file is part of UName*It. * * UName*It 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, or (at your option) any late...
oxdeadbeef/unameit
upasswd/main.c
C
gpl-2.0
6,634
/******************************************************************** FileName: usb_descriptors.c Dependencies: See INCLUDES section Processor: PIC18 or PIC24 USB Microcontrollers Hardware: The code is natively intended to be used on the following hardware platforms: PICDEM� FS USB Demo Board, PIC...
evinrude/controller-gadget-kmod
usbfirmware/usb_descriptors.c
C
gpl-2.0
13,242
/* -*- mode: C; c-file-style: "gnu" -*- */ /* dbus-message.c DBusMessage object * * Copyright (C) 2002, 2003, 2004, 2005 Red Hat Inc. * Copyright (C) 2002, 2003 CodeFactory AB * * Licensed under the Academic Free License version 2.1 * * This program is free software; you can redistribute it and/or modify * i...
asoneofus/v350
FADG_4.39A/external/dbus/dbus/dbus-message.c
C
gpl-2.0
120,368
/* * This file is part of the coreboot project. * * Copyright (C) 2014 Google Inc. * Copyright (C) 2017 Intel 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; version 2 of ...
kakaroto/coreboot
src/soc/intel/cannonlake/finalize.c
C
gpl-2.0
3,782
/** * \file obj-desc.c * \brief Create object name descriptions * * Copyright (c) 1997 - 2007 Angband contributors * * This work is free software; you can redistribute it and/or modify it * under the terms of either: * * a) the GNU General Public License as published by the Free Software * Foundation, vers...
kjfletch/angband
src/obj-desc.c
C
gpl-2.0
17,267
/* comedi/drivers/das16cs.c Driver for Computer Boards PC-CARD DAS16/16. COMEDI - Linux Control and Measurement Device Interface Copyright (C) 2000, 2001, 2002 David A. Schleef <ds@schleef.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU G...
andi34/kernel_samsung_espresso-cm
drivers/staging/comedi/drivers/cb_das16_cs.c
C
gpl-2.0
20,736
/*------------------------------------------------------------------------*/ /* Sample code of OS dependent controls for FatFs */ /* (C)ChaN, 2017 */ /*------------------------------------------------------------------------*/ #include "...
cotodevel/ToolchainGenericDS
src/arm9/source/arm9_driver/fatfs-newlib-nano-layer/fatfs/source/ffsystem.c
C
gpl-2.0
4,868
/* * This file is part of amplet2. * * Copyright (c) 2013-2016 The University of Waikato, Hamilton, New Zealand. * * Author: Brendon Jones * * All rights reserved. * * This code has been developed by the University of Waikato WAND * research group. For further information please see http://www.wand.net.nz/ *...
wanduow/amplet2
src/common/icmpcode.c
C
gpl-2.0
8,202
#include <windows.h> #include <stdio.h> #include <SDL/SDL.h> #include <SDL/SDL_syswm.h> #include "sw_system.h" //#define WIN32_LEAN_AND_MEAN static double PCFreq = 0.0; static __int64 CounterStart = 0; static LARGE_INTEGER m_high_perf_timer_freq; void Win32_InitQPC() { if(!QueryPerformanceFrequency...
TermiT/sw-redux
code/sw_win32.c
C
gpl-2.0
3,060
#include <Carbon/Carbon.h> #include <ApplicationServices/ApplicationServices.h> #include "stream/url.h" #include "mp_msg.h" #include "m_option.h" #include "m_config.h" #include "playtree.h" static play_tree_t *files=NULL; static inline void add_entry(play_tree_t **last_parentp, play_tree_t **last_entryp, pl...
OpenSageTV/mplayer-sage9orig
osdep/macosx_finder_args.c
C
gpl-2.0
2,823
// SPDX-License-Identifier: GPL-2.0 #include "subsurface-time.h" #include <string.h> /* * The date handling internally works in seconds since * Jan 1, 1900. That avoids negative numbers which avoids * some silly problems. * * But we then use the same base epoch base (Jan 1, 1970) * that POSIX uses, so that we ca...
mturkia/subsurface
core/time.c
C
gpl-2.0
3,447
/* hc128.c * * Copyright (C) 2006-2016 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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)...
NickolasLapp/wolfssl
wolfcrypt/src/hc128.c
C
gpl-2.0
14,573
/* * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) * * Modifications for ppc64: * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.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 ...
ska-sa/borph_linux_devel
arch/powerpc/kernel/cputable.c
C
gpl-2.0
47,049
/* * linux/net/sunrpc/xprt.c * * This is a generic RPC call interface supporting congestion avoidance, * and asynchronous calls. * * The interface works like this: * * - When a process places a call, it allocates a request slot if * one is available. Otherwise, it sleeps on the backlog queue * (xprt_rese...
Nicklas373/AoiCore-Kernel-MSM8627-CM13
net/sunrpc/xprt.c
C
gpl-2.0
34,605
/******************************************************************* OS Exercises - Homework 5 - HOST dispatcher - Feedback Dispatcher hostd hostd is a three level feedback 'dispatcher' that reads in a list of 'jobs' from a file and 'dispatches' them in feedback mode (see below). ...
nijave/miami-university
cse381-OperatingSystems/hw5-dispatcher/feedback/hostd.c
C
gpl-2.0
9,617
// // main.c // 20150523-4 // // Created by 欣 陈 on 15/5/23. // Copyright (c) 2015年 欣 陈. All rights reserved. // #include <stdio.h> #define NEWSIZE 1000 char newbuf[NEWSIZE]; char *newp = newbuf; char *new(int n){ if(newp + n <= newbuf + NEWSIZE){ newp = newp + n; return(newp - n); } el...
liuchuo/C-practice
20150523-4/20150523-4/main.c
C
gpl-2.0
357
/* * Copyright (C) 2013 Nivis LLC. * Email: opensource@nivis.com * Website: http://www.nivis.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, version 3 of the License. * * Redis...
irares/WirelessHart-Field-Device
source_files/WirelessHart/uap.c
C
gpl-3.0
7,552
/* * byte_stream.c * * Copyright 2013 Michael Zillgith * * This file is part of libIEC61850. * * libIEC61850 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (a...
rwl/libiec61850
src/hal/byte_stream.c
C
gpl-3.0
3,324
/* Copyright (c) 2014 Mathieu Laurendeau <mat.lau@laposte.net> License: GPLv3 */ #include <controller.h> #include <stddef.h> #include <stdio.h> #include <connectors/report2event/ds42event.h> #include <connectors/report2event/360Pad2event.h> #include <connectors/report2event/xOnePad2event.h> static struct { void ...
matlo/GIMX
core/connectors/report2event/report2event.c
C
gpl-3.0
1,255
/* debug.c * * This file proides debug and run time error analysis support. Some of the * settings are very performance intense and my be turned off during a release * build. * * File begun on 2008-01-22 by RGerhards * * Some functions are controlled by environment variables: * * RSYSLOG_DEBUGLOG if set, a d...
rngadam/rsyslog
runtime/debug.c
C
gpl-3.0
43,793
/* * blackbox4.c - Cartridge handling, Blackbox V4 cart. * * Written by * groepaz <groepaz@gmx.net> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Ge...
Rakashazi/emu-ex-plus-alpha
C64.emu/src/vice/c64/cart/blackbox4.c
C
gpl-3.0
7,817
/* Copyright (c) 1996 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND INT...
benpicco/RIOT-old
sys/net/net_help/inet_pton.c
C
gpl-3.0
4,752
/* * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "ADSMessageSetVersion2" * found in "../../../dumpvdl2.asn1/atn-b2_adsc_v2.asn1" * `asn1c -fcompound-names -fincludes-quoted -gen-PER` */ #include "EPPFlightPlanChangeRequest.h" int EPPFlightPlanChangeRequest_constraint(asn_TYPE_descr...
szpajder/dumpvdl2
src/asn1/EPPFlightPlanChangeRequest.c
C
gpl-3.0
4,887
/* * fig09_04.c * * Created on: 2014Äê8ÔÂ7ÈÕ * Author: open */ // Fig. 9.4: fig09_04.c // Using the floating-point conversion specifiers #include <stdio.h> #include "main.h" void fig09_04() { printf( "%e\n", 1234567.89 ); printf( "%e\n", +1234567.89 ); // plus does not print printf( "%e\n"...
phphy/C_HOW_TO_PROGRAM
Chapter9/fig09_04.c
C
gpl-3.0
546
/* Copyright 2010 John Morrice This source file is part of The Obelisk Programming Language and is distributed under the terms of the GNU General Public License This file is part of The Obelisk Programming Language. The Obelisk Programming Language is free software: you can redistribute it and/or modify it...
elginer/Obelisk
runtime/src/object.c
C
gpl-3.0
1,903
/* Copyright (C) Cfengine AS This file is part of Cfengine 3 - written and maintained by Cfengine AS. 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 3. This program is di...
ph1l/cfengine3-debian
src/logic_expressions.c
C
gpl-3.0
6,855
/* This file is part of GNUnet. Copyright (C) 2013-2015 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. ...
tg-x/gnunet
src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c
C
gpl-3.0
37,559