code
stringlengths
1.03k
250k
repo_name
stringlengths
7
70
path
stringlengths
4
177
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
1.03k
250k
/* * Copyright (c) Cameron Rich * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions ...
flyingcys/rtthread-mtk_iot
bsp/mtk_iot/Libraries/middleware/third_party/httpd/src/tdate_parse.c
C
gpl-2.0
4,383
/******************************************************************************* Copyright (C) Marvell International Ltd. and its affiliates This software file (the "File") is owned and distributed by Marvell International Ltd. and/or its affiliates ("Marvell") under the following alternative licensing terms. Once y...
niamster/uboot-marvell-openrd-ultimate
board/mv_feroceon/mv_dd/dd_family/cpu/mvCpu.c
C
gpl-2.0
8,623
/* mgcp_stat.c * mgcp-statistics for Wireshark * Copyright 2003 Lars Roland * * $Id$ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General...
giuliano108/wireshark-rtpmon
ui/gtk/mgcp_stat.c
C
gpl-2.0
8,145
/* * linux/drivers/mmc/host/msm_sdcc.c - Qualcomm MSM 7X00A SDCC Driver * * Copyright (C) 2007 Google Inc, * Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved. * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it an...
hunter3k/android_kernel_lge_d315
drivers/mmc/host/msm_sdcc.c
C
gpl-2.0
194,050
/* * linux/arch/arm/plat-versatile/sched-clock.c * * Copyright (C) 1999 - 2003 ARM Limited * Copyright (C) 2000 Deep Blue Solutions 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 Foundatio...
iamroot9C-arm/linux
arch/arm/plat-versatile/sched-clock.c
C
gpl-2.0
1,533
#include <time.h> #include <math.h> #include <stdio.h> #include <limits.h> #include <stdlib.h> /** * Problem 27 from Project Euler * * Euler discovered the remarkable quadratic formula: * * n² + n + 41 * * It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when ...
ludo237/euler-problems
Problems/Problem 27/C/problem_27.c
C
gpl-2.0
3,381
/* * Memory Migration functionality - linux/mm/migration.c * * Copyright (C) 2006 Silicon Graphics, Inc., Christoph Lameter * * Page migration was first developed in the context of the memory hotplug * project. The main authors of the migration code are: * * IWAMOTO Toshihiro <iwamoto@valinux.co.jp> * Hirokazu...
cloudlinux/cl7-kernel
mm/migrate.c
C
gpl-2.0
48,598
/* https://leetcode.com/problems/valid-palindrome/ Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome. */ #include <ctype.h> #include <stdio.h> #include <string....
zeng-zc/leetcode
Algorithms/isPalindrome.c
C
gpl-2.0
1,228
/* 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...
mostafa-z/Gabriel_MM
drivers/video/msm/mdss/mdss_mdp_ctl.c
C
gpl-2.0
77,457
/*P:050 Lguest guests use a very simple method to describe devices. It's a * series of device descriptors contained just above the top of normal * memory. * * We use the standard "virtio" device infrastructure, which provides us with a * console, a network and a block driver. Each one expects some configuration ...
TechTux/linux-2.6.46.6
drivers/lguest/lguest_device.c
C
gpl-2.0
13,566
#include "ft5x06_ex_fun.h" #include "ft5x06_ts.h" static struct i2c_client *this_client; #define FTS_PACKET_LENGTH 128 #define FT5x0x_TX_NUM 28 #define FT5x0x_RX_NUM 16 #define DBUG 1 #if DBUG #define DbgPrintk(fmt, args...) printk(KERN_DEBUG fmt, ##args) #else #define DbgPrintk #endif s...
adamdmcbride/Nufront_linux_kernel
drivers/input/touchscreen/ft5x06_ex_fun.c
C
gpl-2.0
25,737
/* * linux/drivers/s390/cio/cmf.c * * Linux on zSeries Channel Measurement Facility support * * Copyright 2000,2006 IBM Corporation * * Authors: Arnd Bergmann <arndb@de.ibm.com> * Cornelia Huck <cornelia.huck@de.ibm.com> * * original idea from Natarajan Krishnaswami <nkrishna@us.ibm.com> * *...
Jackeagle/android_kernel_sony_c2305
drivers/s390/cio/cmf.c
C
gpl-2.0
35,354
/* * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any documentation, * advertising materials, and...
fpoussin/esp-newlib
newlib/libc/stdio/puts.c
C
gpl-2.0
2,629
/** ****************************************************************************** * @file RCC/RCC_ClockConfig/Src/main.c * @author MCD Application Team * @version V1.0.1 * @date 09-October-2015 * @brief This example describes how to use the RCC HAL API to configure the * system clo...
kamfor/STMF4
STM/Projects/STM32469I-Discovery/Examples/RCC/RCC_ClockConfig/Src/main.c
C
gpl-2.0
16,142
/*************************************************************************** AmIDE - Amiga Integrated Development Environment Copyright (C) 1998-2002 by Jens Langner <Jens.Langner@light-speed.de> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
jens-maus/amide
classes/MainBar.c
C
gpl-2.0
27,590
/* histexpand.c -- history expansion. */ /* Copyright (C) 1989, 1992 Free Software Foundation, Inc. This file contains the GNU History Library (the Library), a set of routines for managing the text of previously typed lines. The Library is free software; you can redistribute it and/or modify it under the...
NickeyWoo/mysql-3.23.49
readline/histexpand.c
C
gpl-2.0
33,291
/* * linux/fs/jbd2/journal.c * * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 * * Copyright 1998 Red Hat corp --- All Rights Reserved * * This file is part of the Linux kernel and is made available under * the terms of the GNU General Public License, version 2, or at your * option, any later version, i...
Eliminater74/android_kernel_pantech_msm8974
fs/jbd2/journal.c
C
gpl-2.0
71,650
/* BlueZ - Bluetooth protocol stack for Linux Copyright (c) 2000-2001, The Linux Foundation. All rights reserved. Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> This program is free software; you can redistribute it and/or ...
robcore/machinex
net/bluetooth/hci_conn.c
C
gpl-2.0
34,837
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega <alvaro@alobbs.com> * * Copyright (C) 2001-2011 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the G...
nuxleus/cherokee-webserver
cherokee/validator_mysql.c
C
gpl-2.0
9,715
/* main_welcome.c * * $Id$ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * 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...
hb9cwp/wireshark-jdsu
ui/gtk/main_welcome.c
C
gpl-2.0
50,676
/******************************************************************************* * 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
/* 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
/* * 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
/* * 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
/* -*- 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