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
/* * Intel XScale PXA Programmable Interrupt Controller. * * Copyright (c) 2006 Openedhand Ltd. * Copyright (c) 2006 Thorsten Zitterell * Written by Andrzej Zaborowski <balrog@zabor.org> * * This code is licenced under the GPL. */ #include "hw.h" #include "pxa.h" #define ICIP 0x00 /* Interrupt Controller IRQ ...
XVilka/qemu
hw/pxa2xx_pic.c
C
gpl-2.0
9,607
#include <linux/module.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/pci.h> #include <linux/init.h> #include <linux/delay.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/jiffies.h> #include <asm/system.h> #include <asm/io.h> #include <asm/setup.h> #include <asm...
leemgs/OptimusOneKernel-KandroidCommunity
drivers/net/apne.c
C
gpl-2.0
12,904
/** * Copyright (C) ARM Limited 2012-2015. 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. * */ #define NEWLINE_CANARY \ /* Unix */ \ "1\n" \ /* Windo...
javilonas/Lonas_KL-SM-G901F
drivers/gator/gator_marshaling.c
C
gpl-2.0
12,460
/* * Copyright (c) 2017, 2020, Oracle and/or its affiliates. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice,...
smarr/Truffle
sulong/tests/com.oracle.truffle.llvm.tests.interop.native/interop/createResolveHandle.c
C
gpl-2.0
1,844
/* ** Copyright (C) 1991, 1997 Free Software Foundation, Inc. ** ** This file is part of TACK. ** ** TACK 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 later ...
nslu2/glibc
ncurses/tack/menu.c
C
gpl-2.0
8,641
/* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <linux/init.h> #include <linux/export.h...
Pulshen/XKernel
fs/namei.c
C
gpl-2.0
87,242
/* a10 513 * Copyright (c) 2001-2012 Nicolas Léveillé <knos.free.fr> * * You should have received this file ('src/lib/cokus.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 * f...
uucidl/plus-one-minus-one
src/lib/cokus.c
C
gpl-2.0
7,813
/* * Copyright (C) ST-Ericsson SA 2010,2011 * * Author: Chris Blair <chris.blair@stericsson.com> for ST-Ericsson * * License terms: GNU General Public License (GPL) version 2 * * U9500 <-> M6718 IPC protocol implementation using SPI. * state machine definition and functionality. */ #include <linux/modem/m671...
janrinze/snowballkernel
drivers/modem/m6718_spi/statemachine.c
C
gpl-2.0
40,413
/* * Virtual Raw MIDI client on Sequencer * * Copyright (c) 2000 by Takashi Iwai <tiwai@suse.de>, * Jaroslav Kysela <perex@perex.cz> * * 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 ...
Jackeagle/android_kernel_sony_c2305
sound/core/seq/seq_virmidi.c
C
gpl-2.0
14,463
/* * Copyright (C) 2014 Fraunhofer ITWM * * 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 distributed in the hope that it will be useful, * but WITHOUT ANY ...
nsat/zynq-linux
net/mac802154/llsec.c
C
gpl-2.0
24,885
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
pfchrono/mudmagic-client
bundled/curl/getinfo.c
C
gpl-2.0
5,871
/* nip2-cli.c ... run the nip2 executable, connecting stdin and stdout to the * console * * 11/12/09 * - use SetHandleInformation() to stop the child inheriting the read * handle (thanks Leo) */ /* Copyright (C) 2008 Imperial College, London This program is free software; you can redistribute it an...
jcupitt/nip2
src/nip2-cli.c
C
gpl-2.0
5,159
/* utility routines for keeping some statistics */ /* (C) 2009 by Harald Welte <laforge@gnumonks.org> * * 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 as published by * the Free Software Foundation; either vers...
techniker/libosmocore
src/statistics.c
C
gpl-2.0
1,583
/* * fs/f2fs/recovery.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.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. */ #includ...
flaming-toast/linux-jeyu
fs/f2fs/recovery.c
C
gpl-2.0
16,232
/* * 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 of the License, or * (at your option) any later version. * * MPlayer is distribut...
svn2github/MPlayer-SB
stream/open.c
C
gpl-2.0
1,868
/* * 13.5.1 Thread Creation Scheduling Parameters, P1003.1c/Draft 10, p. 120 * * COPYRIGHT (c) 1989-1999. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LIC...
yangxi/omap4m3
cpukit/posix/src/pthreadattrsetschedparam.c
C
gpl-2.0
635
#include "thanks.h" // // EternityProject Public message START: // - To the "developers" like franciscofranco: Are you able to work on your own? Also, if you want to badly copy my commits, can you at least give credits to the proprietary of the commit you're copying? We're an opensource community, we do this for fre...
kozmikkick/eternityprj-kernel-endeavoru-128
arch/arm/mach-tegra/EternityProject.c
C
gpl-2.0
827
/* * Copyright 2008-2009 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code 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 Fou...
TheTypoMaster/Scaper
openjdk/jdk/src/solaris/native/sun/nio/fs/SolarisNativeDispatcher.c
C
gpl-2.0
2,058
/* * SSLv3/TLSv1 server-side functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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 L...
mc-server/polarssl
library/ssl_srv.c
C
gpl-2.0
158,375
/* * xHCI host controller driver * * Copyright (C) 2008 Intel Corp. * * Author: Sarah Sharp * Some code borrowed from the Linux EHCI driver. * * 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 Soft...
ashikrobi/Crabbykernel
drivers/usb/host/xhci-ring.c
C
gpl-2.0
115,318
/* * Copyright (c) 2009-2013, 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 ...
OlegKyiashko/LGOGP-kernel
drivers/video/msm/mdp4_overlay.c
C
gpl-2.0
112,817
/* * linux/drivers/mmc/core/core.c * * Copyright (C) 2003-2004 Russell King, All Rights Reserved. * SD support Copyright (C) 2004 Ian Molton, All Rights Reserved. * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved. * MMCv4 support Copyright (C) 2006 Philip Langdale, All Rights Reserved. * Copyrig...
fedosis/android_kernel_xiaomi_msm8937
drivers/mmc/core/core.c
C
gpl-2.0
102,367
/* * Copyright 2009-2012 Freescale Semiconductor, Inc. All Rights Reserved. */ /* * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gpl-li...
zOrg1331/wandboard-kernel
drivers/media/video/mxc/capture/ipu_csi_enc.c
C
gpl-2.0
10,146
/* * linux/mm/filemap.c * * Copyright (C) 1994-1999 Linus Torvalds */ /* * This file handles the generic file mmap semantics used by * most "normal" filesystems (but you don't /have/ to use this: * the NFS filesystem used to do this differently, for example) */ #include <linux/export.h> #include <linux/compil...
shengdie/Dorimanx-LG-G2-D802-Kernel
mm/filemap.c
C
gpl-2.0
68,410
/* Map (unsigned int) keys to (source file, line, column) triples. Copyright (C) 2001-2016 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 version 3, or (at y...
h4ck3rm1k3/gcc-1
libcpp/line-map.c
C
gpl-2.0
71,107
/* * libquicktime yuv4 encoder * * Copyright (c) 2011 Carl Eugen Hoyos * * 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 L...
tojo9900/vice
src/lib/libffmpeg/libavcodec/yuv4enc.c
C
gpl-2.0
2,758
/* * arch/s390/kernel/sys_s390.c * * S390 version * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Thomas Spatzier (tspat@de.ibm.com) * * Derived from "arch/i386/kernel/sys_i386.c" * * This...
Jackeagle/android_kernel_sony_c2305
arch/s390/kernel/sys_s390.c
C
gpl-2.0
4,389
/* * GIT - The information manager from hell * * Copyright (C) Linus Torvalds, 2005 * Copyright (C) Johannes Schindelin, 2005 * */ #include "cache.h" #include "exec_cmd.h" #include "strbuf.h" #include "quote.h" typedef struct config_file { struct config_file *prev; FILE *f; const char *name; int linenr; int...
Devindik/origin
config.c
C
gpl-2.0
40,138
/* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. * * ######################################################################## * * This program is free software; you can distribute it and/or modify it * under the terms of t...
evolver56k/xpenology
arch/mips/math-emu/sp_frexp.c
C
gpl-2.0
1,405
/* LibTomCrypt, modular cryptographic library -- Tom St Denis * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ #include "tomcrypt_private.h" /** @file rsa...
mangosthree/server
dep/tomlib/Crypt/src/pk/rsa/rsa_import.c
C
gpl-2.0
4,169
/* Lucy the Diamond Girl - Game where player collects diamonds. Copyright (C) 2005-2015 Joni Yrjänä <joniyrjana@gmail.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 ...
Peanhua/diamond-girl
src/widget_set_navigation_right.c
C
gpl-2.0
1,294
/* Eye Of Mate - Main Window * * Copyright (C) 2000-2008 The Free Software Foundation * * Author: Lucas Rocha <lucasr@gnome.org> * * Based on code by: * - Federico Mena-Quintero <federico@gnu.org> * - Jens Finke <jens@gnome.org> * Based on evince code (shell/ev-window.c) by: * - Martin Kretzschmar <martink@...
monsta/eom
src/eom-window.c
C
gpl-2.0
153,265
/* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (C) 2004-2012 OpenWorks LLP info@open-works.net 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...
qtekfun/htcDesire820Kernel
external/valgrind/main/VEX/priv/host_ppc_isel.c
C
gpl-2.0
151,543
/* * Implementation of the security services. * * Authors : Stephen Smalley, <sds@epoch.ncsc.mil> * James Morris <jmorris@redhat.com> * * Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com> * * Support for enhanced MLS infrastructure. * Support for context based audit filters. * * Updated...
bju2000/android_kernel_samsung_slteskt
security/selinux/ss/services.c
C
gpl-2.0
77,340
/* * linux/arch/arm/mm/flush.c * * Copyright (C) 1995-2002 Russell King * * 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/module.h> #include <lin...
Jackeagle/android_kernel_sony_c2305
arch/arm/mm/flush.c
C
gpl-2.0
9,199
/* * Copyright (c) 2011-2012, 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...
GruesomeWolf/Slippery_Sloth
arch/arm/mach-msm/acpuclock-8064.c
C
gpl-2.0
28,898
#include <stdio.h> #include <stdlib.h> #include <string.h> /* memset */ #include <libwzd-core/wzd_structs.h> #include <libwzd-core/wzd_crc32.h> #define C1 0x12345678 #define C2 0x9abcdef0 int main(int argc, char *argv[]) { unsigned long c1 = C1; unsigned long crc = 0x0; char input1[1024]; const char * file1 ...
mathgl67/wzdftpd
tests/test_wzd_crc32.c
C
gpl-2.0
1,106
#ifdef CONFIG_COMPAT #include <linux/compat.h> /* for compat_old_sigset_t */ #endif #include <linux/sched.h> #include <linux/kernel.h> #include <linux/signal.h> #include <linux/errno.h> #include <linux/wait.h> #include <linux/ptrace.h> #include <linux/tracehook.h> #include <linux/unistd.h> #include <linux/mm.h> #incl...
luckasfb/OT_903D-kernel-2.6.35.7
kernel/arch/sparc/kernel/signal_64.c
C
gpl-2.0
18,267
/* * symlink.c * * Symlink methods. * * Author: Steve Longerbeam <stevel@mvista.com, or source@mvista.com> * * 2003 (c) MontaVista Software, Inc. * Copyright 2003 Sony Corporation * Copyright 2003 Matsushita Electric Industrial Co., Ltd. * * This software is being distributed under the terms of the GNU Gener...
robacklin/celinux
fs/pramfs/symlink.c
C
gpl-2.0
2,227
/* * ux_text.c - Unix interface, text functions * * This file is part of Frotz. * * Frotz 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 late...
holzman/frotz
src/curses/ux_text.c
C
gpl-2.0
8,410
/* Copyright (C) 2005 Michael K. McCarty & Fritz Bronner 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. ...
raceintospace/raceintospace-cvs
future.c
C
gpl-2.0
27,931
// Copyright (C) 1999-2000 Id Software, Inc. // #include "ui_local.h" /********************************************************************************* SPECIFY SERVER *********************************************************************************/ #define MAX_LISTBOXITEMS 128 #define MAX_LISTBOXWIDTH 4...
tectronics/battle-of-the-sexes
reference/bots_q3_127/code/q3_ui/ui_specifyleague.c
C
gpl-2.0
9,959
/* * Copyright (c) 2002-2009 BalaBit IT Ltd, Budapest, Hungary * * 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. * * Note that this permission is granted for only version 2 of t...
ystk/debian-syslog-ng
src/gprocess.c
C
gpl-2.0
37,305
/* * PROJECT: Boot Loader * LICENSE: BSD - See COPYING.ARM in the top level directory * FILE: boot/armllb/hw/versatile/hwclcd.c * PURPOSE: LLB CLCD Routines for Versatile * PROGRAMMERS: ReactOS Portable Systems Group */ #include "precomp.h" #define LCDTIMING0_PPL(x) ((((...
GreenteaOS/Kernel
third-party/reactos/boot/armllb/hw/versatile/hwclcd.c
C
gpl-2.0
1,933
/* * Copyright (C) 2011 ST-Ericsson SA. * Copyright (C) 2009 Motorola, Inc. * * License Terms: GNU General Public License v2 * * Simple driver for National Semiconductor LM3530 Backlight driver chip * * Author: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com> * based on leds-lm3530.c by Dan M...
Jackeagle/android_kernel_sony_c2305
drivers/leds/leds-lm3530.c
C
gpl-2.0
13,280
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #define MAX_SIZE 1010 int getarray(int a[]) { int i=0,count; scanf("%d",&count); for(; i<count ; i++) scanf("%d",&a[i]); return count; } int find(int a[], int n, int val) { int i,true=0; for(i=0; i<n...
zning1994/practice
Program/CLanguage/exp/exp7/exA.c
C
gpl-2.0
890
/*****************************************************************************/ /* */ /* Ittiam 802.11 MAC SOFTWARE */ /* */ ...
abgoyal/zen_u105_kernel
drivers/net/wireless/trout/mac/src/Common/common.c
C
gpl-2.0
42,309
/* * Asterisk -- An open source telephony toolkit. * * Copyright (C) 2005-2006, Kevin P. Fleming * * Kevin P. Fleming <kpfleming@digium.com> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance;...
nicwolff/asterisk-agi-mp3
main/dnsmgr.c
C
gpl-2.0
11,631
/* pictool: ANSI C converter for Tibia's PIC files * (c) 2007-2009 Ivan Vucica * Part of OpenTibia project * * Although written in ANSI C, this makes use of #pragma pack(), * make sure your compiler supports packed structures, or else. * * This program is free software; you can redistribute it and/or * modify i...
opentibia/yatc
tools/pictool/picfuncs.c
C
gpl-2.0
7,210
/* * Demo on how to use /dev/crypto device for ciphering. * * Placed under public domain. * */ #include <poll.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <stdint.h> #include <sys/ioctl.h> #include <crypto/cryptodev.h> #include "asynchelper.h" #include "testhelper.h" ...
cryptodev-linux/cryptodev-linux
tests/async_cipher.c
C
gpl-2.0
7,773
/* * $Id: x2c.c,v 1.7 2009/06/02 09:40:53 bnv Exp $ * $Log: x2c.c,v $ * Revision 1.7 2009/06/02 09:40:53 bnv * MVS/CMS corrections * * Revision 1.6 2008/07/15 07:40:54 bnv * #include changed from <> to "" * * Revision 1.5 2008/07/14 13:08:16 bnv * MVS,CMS support * * Revision 1.4 2002/06/11 12:37:15 ...
vlachoudis/brexx
lstring/x2c.c
C
gpl-2.0
1,386
/* * This file is part of mpv. * * mpv 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. * * mpv is distributed in the hope that ...
Floens/mpv
options/m_config.c
C
gpl-2.0
33,574
#include <dfsch/lib/crypto.h> static void ecb_setup(dfsch_block_cipher_mode_context_t* cipher, uint8_t* iv, size_t iv_len){ if (iv_len != 0){ dfsch_error("ECB mode has no IV", NULL); } } static void ecb_encrypt(dfsch_block_cipher_mode_context_t* context, ...
adh/dfsch
lib/crypto/modes.c
C
gpl-2.0
12,669
/* * arch/arm/mach-tegra/tegra3_dvfs.c * * Copyright (C) 2010-2011 NVIDIA 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. * * This program is...
AndroidDeveloperAlliance/ZenKernel_Grouper
arch/arm/mach-tegra/tegra3_dvfs.c
C
gpl-2.0
37,574
/** * @file id_10361.c * @brief AOAPC I 10361 * @author chenxilinsidney * @version 1.0 * @date 2015-03-24 */ #include <stdio.h> #include <string.h> #define MAX_LINE_LENGTH 101 char line[2][MAX_LINE_LENGTH]; int main() { int num_case; scanf("%d\n", &num_case); while (num_case--) { gets(*line...
chenxilinsidney/funnycprogram
acm/aoapc/id_10361.c
C
gpl-2.0
1,360
/* -*- mode: c -*- */ /* $Id$ */ /* Copyright (C) 2004-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 Foundation; either version 2 of the License, or * (...
misty-fungus/ejudge-debian
checkers/read_int.c
C
gpl-2.0
1,296
/* Copyright (c) 2011, 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...
cuteprince/ics_kernel_3.0.16_htc_pico
arch/arm/mach-msm/devices-msm7x27a.c
C
gpl-2.0
17,688
/* 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...
smac0628/caf-LA.BF.1.1.2.1
sound/soc/codecs/wcd9306.c
C
gpl-2.0
197,279
/* linux/drivers/media/video/samsung/tv20/s5pv210/hdcp_s5pv210.c * * hdcp raw ftn file for Samsung TVOut driver * * Copyright (c) 2010 Samsung Electronics * http://www.samsungsemi.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Publ...
Jolocotroco/android_kernel_samsung_smdkv210
drivers/media/video/samsung/tv20/s5pv210/hdcp_s5pv210.c
C
gpl-2.0
38,054
/****************************************************************************** * File : velocity_tria3.c * * Author : Carlos Rosales Fernandez (carlos@ihpc.a-star.edu.sg) * * Date : 01-09-2006 * ...
carlosrosales/stksolver
src/velocity_tria3.c
C
gpl-2.0
4,564
/*********************************************************************** * * avra - Assembler for the Atmel AVR microcontroller series * * Copyright (C) 1998-2004 Jon Anders Haugum, TObias Weber * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General P...
pearsonalan/avra
src/macro.c
C
gpl-2.0
15,499
/* * 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...
flar2/ElementalX-m9
init/main.c
C
gpl-2.0
18,082
/* Festalon - NSF Player * Copyright (C) 2004 Xodnizel * * 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. * * T...
ahefner/festalon
src/nes/cart.c
C
gpl-2.0
4,179
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. * ...
freedesktop-unofficial-mirror/tegra__linux
drivers/net/wireless/iwlwifi/mvm/d3.c
C
gpl-2.0
53,080
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright © 2000-2004 Marco Pesenti Gritti * Copyright © 2009 Collabora Ltd. * Copyright © 2011 Igalia S.L. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public ...
jdapena/epiphany
src/window-commands.c
C
gpl-2.0
40,646
/* * Copyright (C) 2013 Andreas Steffen * HSR Hochschule fuer Technik Rapperswil * * 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...
maire/strongswan
src/libpts/tcg/swid/tcg_swid_attr_tag_inv.c
C
gpl-2.0
7,725
/* HTVMS_WAISProt.c ** ** Adaptation for Lynx by F.Macrides (macrides@sci.wfeb.edu) ** ** 31-May-1994 FM Initial version. ** **----------------------------------------------------------------------*/ /* ** Routines originally from WProt.c -- FM ** **---------------------------------------------------------------...
avsm/openbsd-lynx
WWW/Library/Implementation/HTVMS_WaisProt.c
C
gpl-2.0
69,533
/******************************************************************************* * This file contains iSCSI extentions for RDMA (iSER) Verbs * * (c) Copyright 2013 RisingTide Systems LLC. * * Nicholas A. Bellinger <nab@linux-iscsi.org> * * This program is free software; you can redistribute it and/or modify * i...
crimsonthunder/kernel_samsung_trlte_5.1.1
drivers/infiniband/ulp/isert/ib_isert.c
C
gpl-2.0
67,213
/* $Id: tstCAPIGlue.c 109358 2016-07-31 17:11:31Z bird $ */ /** @file tstCAPIGlue.c * Demonstrator program to illustrate use of C bindings of Main API. * * It has sample code showing how to retrieve all available error information, * and how to handle active (event delivery through callbacks) or passive * (event d...
ARL-UTEP-OC/emubox
workshop-manager/bin/VirtualBoxSDK-5.1.20-114628/sdk/bindings/c/samples/tstCAPIGlue.c
C
gpl-2.0
39,034
/* This file is part of ffmpeg-php Copyright (C) 2004-2008 Todd Kirby (ffmpeg.php AT gmail.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 ...
lord2800/ffmpeg-php
ffmpeg_tools.c
C
gpl-2.0
5,212
// CHDK palette colors for the s90 // Define color values as needed in this file. #include "palette.h" #include "platform_palette.h" // Playback mode colors unsigned char ply_colors[] = { COLOR_TRANSPARENT, // Placeholder for script colors COLOR_BLACK, // Placeholder for script...
c10ud/CHDK
platform/s90/platform_palette.c
C
gpl-2.0
2,303
/* * keybindings.c - this file is part of Geany, a fast and lightweight IDE * * Copyright 2006-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> * Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> * * This program is free software; you can redistribute it and/...
ktuan89/geany-1.22
src/keybindings.c
C
gpl-2.0
79,266
/* * Synopsys DesignWare 8250 driver. * * Copyright 2011 Picochip, Jamie Iles. * Copyright 2013 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; either version 2 of th...
fredericgermain/linux-sunxi
drivers/tty/serial/8250/8250_dw.c
C
gpl-2.0
12,111
/***************************************************************************** * m3u.c : M3U playlist format import ***************************************************************************** * Copyright (C) 2004 VLC authors and VideoLAN * $Id: 02a95984d5fe1968163cb435268a9874f0c65eb9 $ * * Authors: Clément Ste...
sunqueen/vlc-2.2.0-rc2.32-2013
modules/demux/playlist/m3u.c
C
gpl-2.0
11,910
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <CL/cl.h> unsigned char *read_buffer(char *file_name, size_t *size_ptr) { FILE *f; unsigned char *buf; size_t size; /* Open file */ f = fopen(file_name, "rb"); if (!f) return NULL; /* ...
xianggong/m2c_unit_test
test/integer/sub_sat_char2char2/sub_sat_char2char2_src.c
C
gpl-2.0
10,934
/* * arch/i386/mm/ioremap.c * * Re-map IO memory to kernel address space so that we can access it. * This is needed for high PCI addresses that aren't mapped in the * 640k-1MB IO memory area on PC's * * (C) Copyright 1995 1996 Linus Torvalds */ #include <linux/vmalloc.h> #include <asm/io.h> #include <asm/pgall...
dduval/kernel-rhel3
arch/i386/mm/ioremap.c
C
gpl-2.0
5,360
/* * 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(...
j0n3lson/linux-2.6.22.19-cs370
kernel/fork.c
C
gpl-2.0
41,833
/* * linux/fs/read_write.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/slab.h> #include <linux/stat.h> #include <linux/fcntl.h> #include <linux/file.h> #include <linux/uio.h> #include <linux/smp_lock.h> #include <linux/fsnotify.h> #include <linux/security.h> #include <linux/module.h> #includ...
kzlin129/tt-gpl
go12/linux-2.6.28.10/fs/read_write.c
C
gpl-2.0
19,284
/* 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...
luckasfb/OT_903D-kernel-2.6.35.7
bootable/bootloader/legacy/arch_msm7k/gpio.c
C
gpl-2.0
6,641
/************************************************************************* * * FILE NAME : ifxmips_pci.c * PROJECT : IFX UEIP * MODULES : PCI * * DATE : 29 June 2009 * AUTHOR : Lei Chuanhua * * DESCRIPTION : PCI Host Controller Driver * COPYRIGHT : Copyright (c) 2009 * ...
kbridgers/VOLTE4GFAX
target/linux/ltqcpe/files-2.6.32/arch/mips/pci/ifxmips_pci.c
C
gpl-2.0
21,354
/* * Copyright (c) 2010, Google, Inc. * * This file is part of Libav. * * Libav 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...
DDTChen/CookieVLC
vlc/contrib/android/ffmpeg/libavcodec/libvpxdec.c
C
gpl-2.0
4,941
/* * Driver for the SGS-Thomson M48T35 Timekeeper RAM chip * * Real Time Clock interface for Linux * * TODO: Implement periodic interrupts. * * Copyright (C) 2000 Silicon Graphics, Inc. * Written by Ulf Carlsson (ulfc@engr.sgi.com) * * Based on code written by Paul Gortmaker. * * This driver allows use of t...
mpalmer/linux-2.6
drivers/char/ip27-rtc.c
C
gpl-2.0
7,743
#include <stdio.h> #include <stdlib.h> #include <unistd.h> int f1(int limite); int f2(int limite) { int i; for (i = 1; i < limite; i ++) f1(i); } int f1(int limite) { int i; for (i = 1; i < limite; i ++) f2(i); } int main(void) { f1(25); }
Logilin/ils
exemples/chapitre-01/test_gprof.c
C
gpl-2.0
256
/* dnsmasq is Copyright (c) 2000-2015 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, or (at your option) version 3 dated 29 June, 2007. This ...
ghmajx/asuswrt-merlin
release/src/router/dnsmasq/src/loop.c
C
gpl-2.0
3,165
/* * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> * Copyright 2008 Luis R. Rodriguez <lrodriguz@atheros.com> * * This program is free software; you can redistribute it and/or modify * it under the terms...
vSlipenchuk/ac100hd
net/wireless/reg.c
C
gpl-2.0
61,693
/* * pcm audio input device * * Copyright (C) 2008 Google, Inc. * Copyright (C) 2008 HTC Corporation * Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and ...
marcOcram/Acer-Liquid-MT-Kernel
arch/arm/mach-msm/qdsp5v2/audio_pcm_in.c
C
gpl-2.0
20,064
/* linux/arch/arm/mach-s3c2410/mach-bast.c * * Copyright 2003-2008 Simtec Electronics * Ben Dooks <ben@simtec.co.uk> * * http://www.simtec.co.uk/products/EB2410ITX/ * * 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 * p...
Oleh-Kravchenko/asusp535
arch/arm/mach-s3c24xx/mach-bast.c
C
gpl-2.0
14,795
/* * Copyright (c) 2011-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 ...
cnexus/NexTKernel-d2spr
arch/arm/mach-msm/acpuclock-krait.c
C
gpl-2.0
31,611
/* Copyright (c) 2012-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...
EloYGomeZ/test_kernel_g620s
sound/soc/msm/qdsp6v2/q6adm.c
C
gpl-2.0
55,954
/* * PROJECT: ReactOS i8042 (ps/2 keyboard-mouse controller) driver * LICENSE: GPL - See COPYING in the top level directory * FILE: drivers/input/i8042prt/pnp.c * PURPOSE: IRP_MJ_PNP operations * PROGRAMMERS: Copyright 2006-2007 Hervé Poussineau (hpoussin@reactos.org) * Copyright 2...
sunnyden/reactos
drivers/input/i8042prt/pnp.c
C
gpl-2.0
27,818
/* * Compiler error handler * Copyright * (C) 1992 Joseph H. Allen * * This file is part of JOE (Joe's Own Editor) */ #include "types.h" /* Error database */ typedef struct error ERROR; struct error { LINK(ERROR) link; /* Linked list of errors */ long line; /* Target line number */ long org; /* Original ...
jhallen/joe-editor
joe/uerror.c
C
gpl-2.0
11,705
#ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif /* * 1 Header File Including */ #include <linux/module.h> #include <linux/netdevice.h> #include "hwifi_tps.h" #include "cfg80211_stru.h" #include "hwifi_cfg80211.h" #include "hwifi_wpa_ioctl.h" /* for wl_pwrm_set */ #include "hwifi_wl_config_ioctl.h...
gabry3795/android_kernel_huawei_mt7_l09
drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_tps.c
C
gpl-2.0
28,729
#include <psp2/display.h> #include <psp2/io/fcntl.h> #include <psp2/kernel/processmgr.h> #include <stdio.h> // sprintf() #include <psp2/ctrl.h> // sceCtrl*() #include "graphics.h" #define VER_MAJOR 0 #define VER_MINOR 9 #define VER_BUILD "" #define VAL_LENGTH 0x10 #define VAL_PUBLIC 0x0A #define VAL_PRIVATE 0x06 #...
Yoti/psv_idpsdump
main.c
C
gpl-3.0
7,135
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * Copyright (C) 2015 Leslie Zhai <xiang.zhai@i-soft.com.cn> * * 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; e...
LeetcodeCN/leetcodecn.github.io
src/stat/hello-stat.c
C
gpl-3.0
1,716
#include <includes.h> #include <utils.h> #include <methnum.h> #include "s_param.h" #include "integral.h" double Ivac ( Param * P , double m ) { double m2 = m*m ; double LE = sqrt ( m2 + P->L2 ); return 0.5 * ONE_OVER_8PI_2 * ( P->L * LE * ( m2 + 2*P->L ) + m2*m2 * log ( m/(P->L + LE) ) ) ; } double dm_Iva...
AlexandreBiguet/NJLlikeModels
legacy/programs/njl-0/njl1-b/integral.c
C
gpl-3.0
2,487
#include <stdio.h> #include "aeb.h" #include <string.h> #include <math.h> int main() { Aeb * raiz, *esq, * dir; Aeb * arvore; double r; char s[127]; /*arvore = criaRaiz('*'); esq = criaFolha(10.0); dir = criaFolha(7.0); conectaNodos(arvore, esq, dir); raiz = criaRaiz('+'); dir = criaFolha(8.0); ...
EltonBroering/Programacao_C
Projeto7/teste.c
C
gpl-3.0
636
#include <unistd.h> #include <sys/stat.h> int remove(const char *pathname) { struct stat buf; stat(pathname, &buf); if (S_ISDIR(buf.st_mode)) { return rmdir(pathname); } else { return unlink(pathname); } }
TacOS-team/tacos
libs/libc/stdio/remove.c
C
gpl-3.0
216
/* * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this fi...
p01arst0rm/decorum-linux
_resources/kernels/xnu-arm/bsd/netat/adsp.c
C
gpl-3.0
10,262
/* ** ** This file is part of BananaCam. ** ** BananaCam is free software: you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation, either version 3 of the License, or ** (at your option) any later version. ** ** BananaCam is distribu...
OliverNicolini/BananaCam
src/main.c
C
gpl-3.0
4,707
/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. This file is part of GNU Inetutils. GNU Inetutils is free software: you can redistribute it and/or modify it under the terms of the GNU Gen...
infoburp/inetutils
telnet/authenc.c
C
gpl-3.0
3,857