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
/* * Sonics Silicon Backplane * Broadcom ChipCommon core driver * * Copyright 2005, Broadcom Corporation * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> * * Licensed under the GNU/GPL. See COPYING for details. */ #include <linux/ssb/ssb.h> #include <linux/ssb/ssb_regs.h> #include <linux/pci.h> #include ...
andi34/kernel_samsung_espresso-cm
drivers/ssb/driver_chipcommon.c
C
gpl-2.0
14,811
/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: system libraries * FILE: lib/sdk/crt/wstring/wcsspn.c * PURPOSE: Unknown * PROGRAMER: Unknown * UPDATE HISTORY: * 25/11/05: Added license header */ #include <precomp.h> /* * @implemented */ size_t CDECL wcsspn(...
GreenteaOS/Kernel
third-party/reactos/sdk/lib/crt/wstring/wcsspn.c
C
gpl-2.0
572
/****************************************************************************** * * Module Name: tbxfload - Table load/unload external interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2016, Intel Corp. * All rights reserved. * * Redistributio...
flaming-toast/linux-jeyu
drivers/acpi/acpica/tbxfload.c
C
gpl-2.0
14,635
/* * Copyright 2008-2010 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...
SystemTera/SystemTera.Server-S-2.6-Kernel
drivers/net/can/flexcan/mbm.c
C
gpl-2.0
11,016
/* * pata_it821x.c - IT821x PATA for new ATA layer * (C) 2005 Red Hat Inc * Alan Cox <alan@lxorguk.ukuu.org.uk> * (C) 2007 Bartlomiej Zolnierkiewicz * * based upon * * it821x.c * * linux/drivers/ide/pci/it821x.c Version 0.09 December 2004 * * Copyright (C) 2004 Red Hat * * May be copied or...
evolver56k/xpenology
drivers/ata/pata_it821x.c
C
gpl-2.0
27,877
/** ****************************************************************************** * @file GPIO_IOToggle/stm32f30x_it.c * @author MCD Application Team * @version V1.1.0 * @date 20-September-2012 * @brief Main Interrupt Service Routines. * This file provides template for all exceptions h...
ptracton/packet_demo
STM32F3-Discovery_FW_V1.1.0/Project/Peripheral_Examples/GPIO_IOToggle/stm32f30x_it.c
C
gpl-2.0
4,413
/* * Driver for AMBA serial ports * * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. * * Copyright 1999 ARM Limited * Copyright (C) 2000 Deep Blue Solutions Ltd. * Copyright (C) 2010 ST-Ericsson SA * * This program is free software; you can redistribute it and/or modify * it under the ...
csolg/hi35xx-buildroot
linux/linux-3.4.y/drivers/tty/serial/amba-pl011.c
C
gpl-2.0
55,026
/* * This file contains the PC386 timer package. * * Rosimildo daSilva -ConnectTel, Inc - Fixed infinite loop in the Calibration * routine. I've seen this problems with faster machines ( pentiums ). Sometimes * RTEMS just hangs at startup. * * Joel 9 May 2010: This is now seen sometimes on qemu. * * Modificat...
heshamelmatary/rtems-gsoc2014
c/src/lib/libbsp/i386/pc386/timer/timer.c
C
gpl-2.0
12,882
#include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <string.h> #include <libxml/parser.h> #include <libxml/valid.h> #include <libxml/xmlschemas.h> unsigned long get_file_size(const char *file_name) { struct stat buf; if ( stat(file_name, &buf) != 0 ) return 0; return (unsigned long)...
fredericopissarra/sandbox
tests/xmlschema/check.c
C
gpl-2.0
2,886
/* * sysctl.c: General linux system control interface * * Begun 24 March 1995, Stephen Tweedie * Added /proc support, Dec 1995 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas. * Added hooks for /proc/sys/net (minor, minor patch), 96/4/1, Mike Shaver. * Added kernel/java-{interpreter,appletvi...
spock1104/android_kernel_zte_msm8960
kernel/sysctl.c
C
gpl-2.0
58,897
/********************************************************************** polynomial_simplex.c ********************************************************************** polynomial_simplex - Demonstration program for GAUL. Copyright ©2002-2005, Stewart Adcock <stewart@linux-domain.com> All rights reserved. The l...
versionzero/gaul
examples/polynomial_simplex.c
C
gpl-2.0
7,093
/* * This file is part of the coreboot project. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be use...
MattDevo/coreboot
src/southbridge/amd/amd8111/acpi.c
C
gpl-2.0
6,790
/* * Copyright (C) 2002 John Todd Larason <jtl@molehill.org>, * Lee Thompson <thompsonl@logh.net> and Dan Frumin <rtv@frumin.com> * * This is based, mostly indirectly, on Lee Thompson's GuideParser * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
LeeThompson/replaypc
guide.c
C
gpl-2.0
20,329
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A P...
rogerq/ltp-ddt
testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/15-2.c
C
gpl-2.0
2,554
/* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu> * Patrick Schaaf <bof@bof.de> * Copyright (C) 2003-2011 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ver...
mpokwsths/hammerhead_kernel
net/netfilter/ipset/ip_set_core.c
C
gpl-2.0
44,377
/*- * GPL LICENSE SUMMARY * * Copyright(c) 2010-2013 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program...
fintler/dpdk
lib/librte_eal/linuxapp/kni/kni_vhost.c
C
gpl-2.0
17,473
/* * Copyright (C) 2009 Jonathan Matthew <jonathan@d14n.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later versio...
dardevelin/rhythmbox-shuffle
plugins/mtpdevice/rb-mtp-thread.c
C
gpl-2.0
26,020
// $Id$ // $Locker$ // Author. Roar Thronæs. #include <stdio.h> #include <ssdef.h> #include <descrip.h> #include <lkbdef.h> #include <lkidef.h> #include <rsbdef.h> #include <sysgen.h> #include <starlet.h> #include <misc.h> /* Lock Database ------------- LKB Address Lockid ParentId PID BLKAST SubLocks ...
rroart/freevms
sda/src/sda_lock.c
C
gpl-2.0
2,170
/* Copyright (C) 2007-2008 The Android Open Source Project ** ** This software is licensed under the terms of the GNU General Public ** License version 2, as published by the Free Software Foundation, and ** may be copied, distributed, and modified under those terms. ** ** This program is distributed in the hope that i...
tmurakam/aosp-external-qemu
android/telephony/modem.c
C
gpl-2.0
75,764
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * 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. * * This program is distributed...
walgenbach/lustre-release
lustre/llite/dir.c
C
gpl-2.0
69,319
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
luckasfb/OT_903D-kernel-2.6.35.7
bootable/bootloader/uboot/board/freescale/mpc8266ads/mpc8266ads.c
C
gpl-2.0
24,493
/* cd_win.c @description@ Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ...
luaman/qforge-nuq
source/cd_win.c
C
gpl-2.0
9,617
/* * Soft: Keepalived is a failover program for the LVS project * <www.linuxvirtualserver.org>. It monitor & manipulate * a loadbalanced server pool using multi-layer checks. * * Part: Main program structure. * * Author: Alexandre Cassen, <acassen@linux-vs.org> * * ...
formorer/pkg-keepalived
keepalived/core/main.c
C
gpl-2.0
27,151
/* * wacom_i2c.c - Wacom G5 Digitizer Controller (I2C bus) * * * 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 versio...
alexax66/android_kernel_samsung_exynos7870
drivers/input/wacom/wacom_i2c.c
C
gpl-2.0
54,814
/* arch/arm/mach-msm/smd_tty.c * * Copyright (C) 2007 Google, Inc. * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved. * Author: Brian Swetland <swetland@google.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Fo...
Slim80/Imperium_Kernel_TW_4.4.2_new
arch/arm/mach-msm/smd_tty.c
C
gpl-2.0
16,533
/* Extended precision arithmetic functions for long double I/O. * This program has been placed in the public domain. */ #include <_ansi.h> #include <reent.h> #include <string.h> #include <stdlib.h> #include "mprec.h" /* These are the externally visible entries. */ /* linux name: long double _IO_strtold (char *,...
Theldus/Newlib
newlib/libc/stdlib/ldtoa.c
C
gpl-2.0
72,514
/* * drivers/video/omap/bl_tps61060.c * * Backlight driver for LCD backlights that are controlled by PWM using TI's * tps61060 chip * * Copyright (C) 2008-2009 Palm, Inc. * Author: john chen (jchen1996@gmail.com) * * This package is free software; you can redistribute it and/or modify * it under the terms of ...
mozyg/kernel
drivers/video/omap/bl_tps61060.c
C
gpl-2.0
20,557
/* Intel 8026 keyboard implementation */ #include <kernel.h> #include <kbd.h> #define MIN(X,Y) ((X > Y) ? Y : X) #define CMD_PORT 0x64 #define DATA_PORT 0x60 #define KBD_MAX 4 extern unsigned int kbtoa(unsigned char code); static char kbd_buf[KBD_MAX]; static char *p_buf; static int p_idx = 0; static int p_len = 0;...
mikedouglas/minima
c/kbd.c
C
gpl-2.0
1,895
/* * 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...
gp-b2g/gp-keon-kernel
arch/arm/mach-msm/board-msm7x27a-regulator.c
C
gpl-2.0
7,531
/* * Copyright 2007-8 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * t...
jonsmirl/mpc5200
drivers/gpu/drm/radeon/radeon_legacy_encoders.c
C
gpl-2.0
35,084
/** ****************************************************************************** * @file USB_Host/HID_RTOS/Src/stm32f4xx_it.c * @author MCD Application Team * @version V1.2.1 * @date 09-October-2015 * @brief Main Interrupt Service Routines. * This file provides template for all...
kamfor/STMF4
STM/Projects/STM32446E_EVAL/Applications/USB_Host/HID_RTOS/Src/stm32f4xx_it.c
C
gpl-2.0
4,569
/* #################################### # # --- MAKE-CPP-TPL-0001.C --- # # This file named hello.rb has been # converted to a C Template file. # #################################### */ /* =========================================================== ----- hello.rb ----- Written in ISO/IEC 9899:2011 standard C ========...
kevinleake01/textpatgen
10-cpp-tpl-samples/tpl-hello.rb.c
C
gpl-2.0
784
/* drivers/power/tps65200.c * * Copyright (C) 2009 HTC Corporation * Author: Josh Hsiao <Josh_Hsiao@htc.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms....
TripNRaVeR/tripndroid-endeavoru-3.1.10
drivers/power/tps65200.c
C
gpl-2.0
21,304
/* * Gadget Driver for Android * * Copyright (C) 2008 Google, Inc. * Author: Mike Lockwood <lockwood@android.com> * Benoit Goby <benoit@android.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 co...
MikePach/Alucard-Kernel-jfltexx
drivers/usb/gadget/android.c
C
gpl-2.0
81,217
// SPDX-License-Identifier: GPL-2.0 /* * Functions for dealing with DT resolution * * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> * Copyright (C) 2012 Texas Instruments Inc. * Copyright (C) 2019 Pengutronix, Michael Tretter <m.tretter@pengutronix.de> */ #define pr_fmt(fmt) "of_resolver: "...
masahir0y/barebox-yamada
drivers/of/resolver.c
C
gpl-2.0
7,068
static const char CVSID[] = "$Id: shell.c,v 1.44 2008/01/04 22:11:04 yooden Exp $"; /******************************************************************************* * * * shell.c -- Nirvana Editor shell command execution * * * * Copyright (C) 1999 Mark Edel * * ...
daveriesz/nedit
source/shell.c
C
gpl-2.0
46,556
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A P...
anthony-kolesov/arc_ltp
testcases/open_posix_testsuite/conformance/interfaces/sched_rr_get_interval/2-1.c
C
gpl-2.0
1,295
/* * Copyright (c) 2004-2007 Intel Corporation. All rights reserved. * Copyright (c) 2004 Topspin Corporation. All rights reserved. * Copyright (c) 2004, 2005 Voltaire Corporation. All rights reserved. * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. * * This software is available to you under ...
Core2idiot/Kernel-Samsung-3.0...-
drivers/infiniband/core/cm.c
C
gpl-2.0
110,018
/* ** Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/mgmt/rlm_domain.c#2 */ /*! \file "rlm_domain.c" \brief */ /* ** Log: rlm_domain.c ** ** 01 23 2013 eason.tsai ** [BORA00002255] [MT6630 Wi-Fi][Driver] develop ** Rollback //BORA/DEV/MT6630WIFI_DRV/mgmt/rlm_domain.c to revision 1 ** ** 09 17 2012 c...
nik124seleznev/ZC500TG
drivers/misc/mediatek/connectivity/wlan/gen3/mgmt/rlm_domain.c
C
gpl-2.0
58,652
/* * Backend variables and functions. * * Copyright 2000-2013 Willy Tarreau <w@1wt.eu> * * 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 op...
nicescale/haproxy
src/src/backend.c
C
gpl-2.0
50,293
/* file: server.c desciption: handle server commands begin: 11/25/03 copyright: (C) 2003 by Colin Graf email: addition@users.sourceforge.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 ...
craflin/bounced
src/server.c
C
gpl-2.0
26,567
/****************************************************************************** Copyright (C) 2013-2014 by Hugh Bailey <obs.jim@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 Foundati...
reboot/obs-studio
libobs/obs-module.c
C
gpl-2.0
21,832
/* Qualcomm CE device driver. * * Copyright (c) 2010-2016, 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. * * T...
travarilo/redkancut_cancro
drivers/crypto/msm/qcedev.c
C
gpl-2.0
57,884
/* Original author unknown, may be "krishna balasub@cis.ohio-state.edu" */ /* * Modified Sat Oct 9 10:55:28 1993 for 0.99.13 * * Patches from Mike Jagdis (jaggy@purplet.demon.co.uk) applied Wed Feb 8 * 12:12:21 1995 by faith@cs.unc.edu to print numeric uids if no passwd file * entry. * * Patch from arnolds@ifns...
Romutk/lab3-2
sys-utils/ipcs.c
C
gpl-2.0
18,572
/* main5-4.c ¼ìÑébo5-4.cµÄÖ÷³ÌÐò */ #include"c1.h" typedef int ElemType; #include"c5-4.h" #include"bo5-4.c" void main() { CrossList A,B,C; InitSMatrix(&A); /* CrossListÀàÐ͵ıäÁ¿ÔÚ³õ´ÎʹÓÃ֮ǰ±ØÐë³õʼ»¯ */ InitSMatrix(&B); printf("´´½¨¾ØÕóA: "); CreateSMatrix(&A); PrintSMatrix(A); ...
yuzibo/DS
data_struct/source_code/ch5/MAIN5-4.c
C
gpl-2.0
1,329
/* * Copyright (C) 2009 Citrix Ltd. * Author Stefano Stabellini <stefano.stabellini@eu.citrix.com> * Author Vincent Hanquez <vincent.hanquez@eu.citrix.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...
PennPanda/xenproject
tools/libxl/xl_cmdimpl.c
C
gpl-2.0
221,342
/* * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com> * * 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 * ...
azuwis/mplayer
ass_mp.c
C
gpl-2.0
10,386
/* goto_dlg.c * Routines for "go to packet" window * * $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 publ...
nixpanic/gluster-wireshark-1.4
gtk/goto_dlg.c
C
gpl-2.0
5,239
/* code3203x.c */ /*****************************************************************************/ /* AS-Portierung */ /* */ /* Codegenerator TMS320C3x-Familie ...
begoon/asl
code3203x.c
C
gpl-2.0
48,637
#include <stdio.h> #include "rcunit.h" /* A buffer */ typedef struct { unsigned char *data; size_t size; } buffer_t; RCU_TEST(my_test) { buffer_t *buff = NULL; RCU_ASSERT_NULL(buff); fprintf(stdout, "buffer data address = %p, size = %lu\n", buff->data, buff->size); } int main(int argc, char *argv...
jecklgamis/rcunit
samples/rcunit_sample_app_signal.c
C
gpl-2.0
382
/* Copyright (c) 2011-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 the...
AOKP/kernel_oppo_find5
drivers/power/pm8921-charger.c
C
gpl-2.0
218,471
/* * MOC - music on console * Copyright (C) 2004 - 2006 Damian Pietras <daper@daper.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 Foundation; either version 2 of the License, or * (at your o...
gitkaste/moc
keys.c
C
gpl-2.0
20,797
/* * drivers/gpu/omap/omap_ion.c * * Copyright (C) 2011 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in th...
andi34/kernel_samsung_espresso-cm
drivers/gpu/ion/omap/omap_ion.c
C
gpl-2.0
6,164
/* * SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol) */ #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <linux/irda.h> #include <linux/dn.h> #include <linux/if_ether.h> #include <linux/netlink.h> #include "compat.h" #include "log.h" #include "net.h" #...
rantala/trinity
syscalls/socket.c
C
gpl-2.0
5,653
#include <linux/types.h> #include <linux/errno.h> #include <linux/tty.h> #include <linux/tty_driver.h> #include <linux/tty_flip.h> #include <linux/serial.h> #include <linux/timer.h> #include <linux/string.h> #include <linux/slab.h> #include <linux/sched.h> #include <linux/init.h> #include <linux/wait.h> #include <lin...
leemgs/OptimusOneKernel-KandroidCommunity
drivers/char/tty_port.c
C
gpl-2.0
6,986
/*- * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG> * 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, ...
mohammadhamad/mhh
contrib/libc-28a76ac905060290c2c7a744a771b6c018b21434/src/lib/libc/lib/libc/gen/frexp.c
C
gpl-2.0
1,940
/* * Copyright (C) 2017 by Rafael Santiago * * This is a free software. You can redistribute it and/or modify under * the terms of the GNU General Public License version 2. * */ // 'Hexadecimals. Hexadecimals to the rescue.' // -- Mark Watney (The Martian) #include <k...
rafael-santiago/kryptos
src/kryptos_mp.c
C
gpl-2.0
139,680
#include <linux/kernel.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/spinlock.h> #include <linux/device.h> #include <linux/err.h> #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/gpio.h> #include <linux/of_gpio.h> #include <linux/idr.h> #include <...
spezi77/android_kernel_htc_qsd8k_3.0
drivers/gpio/gpiolib.c
C
gpl-2.0
43,091
#include <stdio.h> int main(int argc, const char *argv[]) { return 0; }
pengzhangdev/algorithms
test/test_list.c
C
gpl-2.0
82
/* * This file is part of the libpayload project. * * Copyright (C) 2008 Advanced Micro Devices, Inc. * * 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 c...
acorn-marvell/coreboot
payloads/libpayload/libc/time.c
C
gpl-2.0
5,400
/****************************************************************************** GHAAS Water Balance/Transport Model V3.0 Global Hydrologic Archive and Analysis System Copyright 1994-2007, University of New Hampshire MDPotETSWGday.c balazs.fekete@unh.edu **************************************************************...
csdms-contrib/wbmsed
Model/WBMplus/src/MDRainPotETSWGday.c
C
gpl-2.0
8,801
#include "memory.h" void *misakamalloc(int mtype, int size){ void *mem = NULL; switch(mtype){ #ifdef MISAK_CACHE_SUPPORT case MTYPE_MISAKA_PEER: mem = kmem_cache_alloc(misaka_servant.peer_cache); break; case MTYPE_STREAM: mem = kmem_cache_alloc(misaka_servan...
xiyanxiyan10/MisakaServer
misaka/lib/memory.c
C
gpl-2.0
1,656
/* * This file is part of the coreboot project. * * Copyright 2014 Google 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; version 2 of * the License. * * This program is distrib...
NamanG/coreboot2.0
src/arch/arm64/armv8/bootblock_simple.c
C
gpl-2.0
1,650
#include <stdio.h> #include <stdlib.h> #include "utils/ev_loop.h" #include "utils/cm_log.h" #include "sn_app.h" #define LOG_SUBSYSTEM "main" int main(int argc, char *argv[]) { cm_log_configure(argc, argv); struct sn_app *app = sn_app_create(); if (!app) { log_fatal("failed to create the app"); return 1; } ...
rafalmiel/kmssnake
src/snake.c
C
gpl-2.0
435
/* * drivers/media/radio/radio-si476x.c -- V4L2 driver for SI476X chips * * Copyright (C) 2012 Innovative Converged Devices(ICD) * Copyright (C) 2013 Andrey Smirnov * * Author: Andrey Smirnov <andrew.smirnov@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the term...
linux-scraping/linux-grsecurity
drivers/media/radio/radio-si476x.c
C
gpl-2.0
41,084
/* * drivers/video/rockchip/chips/rk3066b_lcdc.c * * Copyright (C) 2012 ROCKCHIP, Inc. *Author:yzq<yzq@rock-chips.com> * yxj<yxj@rock-chips.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, distribute...
aloksinha2001/Linux3188
drivers/video/rockchip/lcdc/rk3066b_lcdc.c
C
gpl-2.0
38,271
/* * linux/kernel/time/tick-broadcast.c * * This file contains functions which emulate a local clock-event * device via a broadcast event source. * * Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de> * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar * Copyright(C) 2006-2007, Timesys Corp., Thomas ...
javilonas/Enki-SM-G901F_OLD-4.4.4
kernel/time/tick-broadcast.c
C
gpl-2.0
22,988
/* *=================================================================== * 3GPP AMR Wideband Floating-point Speech Codec *=================================================================== */ #include "hlxclib/stdlib.h" #include "hlxclib/memory.h" #include "typedef.h" #include "dec_if.h" #include "if_rom.h" #inclu...
muromec/qtopia-ezx
src/3rdparty/libraries/helix/src/datatype/amr/import/3gpp_26_204/dec_if.c
C
gpl-2.0
13,056
#include "sofa.h" void iauSxpv(double s, double pv[2][3], double spv[2][3]) /* ** - - - - - - - - ** i a u S x p v ** - - - - - - - - ** ** Multiply a pv-vector by a scalar. ** ** This function is part of the International Astronomical Union's ** SOFA (Standards Of Fundamental Astronomy) software col...
marando/phpSOFA
c/src/sxpv.c
C
gpl-2.0
5,236
/* * 32bit -> 64bit ioctl wrapper for PCM API * Copyright (c) by Takashi Iwai <tiwai@suse.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, o...
dorimanx/DORIMANX_LG_STOCK_LP_KERNEL
sound/core/pcm_compat.c
C
gpl-2.0
16,669
/* * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. * Test to see if timer_delete() retur...
rogerq/ltp-ddt
testcases/open_posix_testsuite/conformance/interfaces/timer_delete/speculative/5-2.c
C
gpl-2.0
2,255
/* * Common Flash Interface support: * AMD & Fujitsu Standard Vendor Command Set (ID 0x0002) * * Copyright (C) 2000 Crossnet Co. <info@crossnet.co.jp> * Copyright (C) 2004 Arcom Control Systems Ltd <linux@arcom.com> * Copyright (C) 2005 MontaVista Software Inc. <source@mvista.com> * * 2_by_8 routines added by...
oSaiYa/linux-sh4
drivers/mtd/chips/cfi_cmdset_0002.c
C
gpl-2.0
52,909
/* channels-setup.c : irssi Copyright (C) 1999-2000 Timo Sirainen 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 ...
dequis/irssi
src/core/channels-setup.c
C
gpl-2.0
6,509
/* * Debugfs support for hosts and cards * * Copyright (C) 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/moduleparam.h> #include <...
jeboo/kernel-msm
drivers/mmc/core/debugfs.c
C
gpl-2.0
23,731
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2013 Red Hat, Inc * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
1dot75cm/gnome-control-center
panels/common/cc-language-chooser.c
C
gpl-2.0
15,923
/* GStreamer * * unit test for videorate * * Copyright (C) 2006 Thomas Vander Stichele <thomas at apestaart dot org> * * 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 * v...
rawoul/gst-plugins-base
tests/check/elements/videorate.c
C
gpl-2.0
36,049
/* boot.c - load and bootstrap a kernel */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 1999,2000,2001,2002,2003,2004 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 * th...
Nexor-OSS/TrustedGRUB
stage2/boot.c
C
gpl-2.0
42,726
/* camera/s3c_camif.c * * Copyright (c) 2008 Samsung Electronics * * Samsung S3C CAMERA driver * * 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 * (a...
MadRocker/experimental-2.6.29-MadRocker
drivers/jetmodules/camera/s3c_camif.c
C
gpl-2.0
60,600
/* This file is part of Clic FS Copyright (C) 2009,2011 Stephan Kulow (coolo@suse.de) Clicfs 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. This program is distributed in the hope that...
openSUSE/clicfs
src/clicfs_common.c
C
gpl-2.0
8,826
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2006-2007 Nokia Corporation * Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.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 b...
writefaruq/bluez-oob
audio/sink.c
C
gpl-2.0
21,255
/* * 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