code
stringlengths
6
250k
repo_name
stringlengths
5
70
path
stringlengths
3
177
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
6
250k
/* * * Copyright 2015, Google Inc. * 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 condi...
maxwell-demon/grpc
src/core/iomgr/resolve_address_windows.c
C
bsd-3-clause
5,274
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <pthread.h> #include <string.h> #include <signal.h> #include "libcgo.h" #include "libcgo_unix.h" static void *threadentry(void*); void (*x_cgo_inittl...
suncycheng/go
src/runtime/cgo/gcc_linux_s390x.c
C
bsd-3-clause
1,442
/* * codegen.c: Tests for the IA64 code generation macros */ #include <glib.h> #include <stdio.h> #include <ctype.h> #define IA64_SIMPLE_EMIT_BUNDLE #include <mono/arch/ia64/ia64-codegen.h> void mono_disassemble_code (guint8 *code, int size, char *id) { int i; FILE *ofd; const char *tmp = g_get_tmp_dir (); co...
biotrump/ffts-tec
src/arch/ia64/codegen.c
C
bsd-3-clause
25,677
/* * Copyright (C) 2009 Jan Michael Alonzo * * 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 li...
leighpauls/k2cro4
third_party/WebKit/Source/WebKit/gtk/tests/testwebsettings.c
C
bsd-3-clause
5,655
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Re...
xianyi/blis
frame/1/invertv/bli_invertv_kernel.c
C
bsd-3-clause
2,696
/* * tun-linux.c * * Universal TUN/TAP driver, in Linux 2.4+ * /usr/src/linux/Documentation/networking/tuntap.txt * * Copyright (c) 2001 Dug Song <dugsong@monkey.org> * * $Id$ */ #include "config.h" #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/uio.h> #include <linux/if.h> #include <linux/if_...
hellais/libdnet
src/tun-linux.c
C
bsd-3-clause
2,050
/* FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the...
PUCSIE-embedded-course/stm32f4-examples
firmware/freertos/semaphore/lib/FreeRTOSV8.2.3/FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_IAR/main.c
C
mit
10,610
/* Generated automatically. DO NOT EDIT! */ #define SIMD_HEADER "simd-support/simd-vsx.h" #include "../common/t1fv_5.c"
termoshtt/rust-fftw3
fftw-src/fftw-3.3.8/dft/simd/vsx/t1fv_5.c
C
mit
121
/* Disassemble moxie instructions. Copyright (C) 2009-2019 Free Software Foundation, Inc. This file is part of the GNU opcodes library. This library 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;...
OpenSmalltalk/vm
processors/ARM/gdb-8.3.1/opcodes/moxie-dis.c
C
mit
5,891
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* * dev.c RDMA tool * Authors: Leon Romanovsky <leonro@mellanox.com> */ #include <fcntl.h> #include "rdma.h" static int dev_help(struct rd *rd) { pr_out("Usage: %s dev show [DEV]\n", rd->filename); pr_out(" %s dev set [DEV] name DEVNAME\n", rd->filen...
eworm-de/iproute2
rdma/dev.c
C
gpl-2.0
8,912
/* * GNT - The GLib Ncurses Toolkit * * GNT is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This library is free software; you can redistribute it and/or modify * it under the terms of the ...
geoffjay/libgnt
gnt/gntbindable.c
C
gpl-2.0
13,709
#include <unistd.h> #include <signal.h> #include <stdlib.h> #include <stdio.h> int main(void) { int i; for (i = 0; i < 999; i++) { int status; int fds[2]; pid_t pid; status = pipe(fds); if (status < 0) { perror("pipe"); break; } pid = fork(); switch (pid) { case -1: perror("fork"); e...
corbinlc/PRoot
tests/test-oooooooo.c
C
gpl-2.0
621
/* Copyright (c) 2000-2003, 2006 MySQL AB Use is subject to license terms 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 ...
iangilfillan/MariaDBserver
mysys/my_getpagesize.c
C
gpl-2.0
1,015
/** * i2c-ali1563.c - i2c driver for the ALi 1563 Southbridge * * Copyright (C) 2004, 2005 Patrick Mochel, Chunhao Huang * * The 1563 southbridge is deceptively similar to the 1533, with a * few notable exceptions. One of those happens to be the fact they * upgraded the i2c core to be 2.0 compliant, and happens ...
nmacs/lm3s-uclinux
user/lm_sensors/kernel/busses/i2c-ali1563.c
C
gpl-2.0
11,902
/* * PCIe AER software error injection support. * * Debuging PCIe AER code is quite difficult because it is hard to * trigger various real hardware errors. Software based error * injection can fake almost all kinds of errors with the help of a * user space helper tool aer-inject, which can be gotten from: * ht...
EAVR/EV3.14
ev3sources/extra/linux-03.20.00.13/drivers/pci/pcie/aer/aer_inject.c
C
gpl-2.0
11,944
/* * s2mps11.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 as published by the * Free Software Foundation; either version 2 of the...
fizista/Dorimanx-SG2-I9100-Kernel
drivers/regulator/s2mps11.c
C
gpl-2.0
13,482
/****************************************************************************** * * Module Name: tbinstal - ACPI table installation and removal * *****************************************************************************/ /* * Copyright (C) 2000 - 2011, Intel Corp. * All rights reserved. * * Redistribution ...
tellapart/ubuntu-precise
drivers/acpi/acpica/tbinstal.c
C
gpl-2.0
19,313
/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. * Copyright (C) 2013 Sony Mobile Communications AB. * * 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...
nok07635/UnleaZhed_XTZ
drivers/media/video/msm/msm.c
C
gpl-2.0
42,809
/* Copyright (c) 2008-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. * * This program is distributed in the...
Sony-Kitakami/android_kernel_sony
drivers/char/diag/diagchar_core.c
C
gpl-2.0
80,930
/* * Generic GPIO driver for logic cells found in the Nomadik SoC * * Copyright (C) 2008,2009 STMicroelectronics * Copyright (C) 2009 Alessandro Rubini <rubini@unipv.it> * Rewritten based on work by Prafulla WADASKAR <prafulla.wadaskar@st.com> * * This program is free software; you can redistribute it and/or m...
Shaaan/android_kernel_samsung_u8500-common
arch/arm/plat-nomadik/gpio.c
C
gpl-2.0
30,362
/* * ASoC Audio Layer for Freescale STMP37XX/STMP378X ADC/DAC * * Author: Vladislav Buzov <vbuzov@embeddedalley.com> * * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. */ /* * The code contained herein is licensed under...
vickylinuxer/i.mx25-kernel
sound/soc/stmp3xxx/stmp3xxx_dai.c
C
gpl-2.0
6,774
/* Copyright (C) 2008, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
pirix/glibc-pirix
ports/sysdeps/unix/sysv/linux/mips/mips32/accept4.c
C
gpl-2.0
1,116
/* * Copyright (C) 2016 Open Broadcast Systems Ltd. * Author 2016 Rostislav Pehlivanov <rpehlivanov@obe.tv> * * 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...
OshinKaramian/jsmc
server/ffmpeg/linux/libavcodec/dirac_vlc.c
C
gpl-3.0
7,810
/* * Driver for Marvell NETA network card for Armada XP and Armada 370 SoCs. * * U-Boot version: * Copyright (C) 2014-2015 Stefan Roese <sr@denx.de> * * Based on the Linux version which is: * Copyright (C) 2012 Marvell * * Rami Rosen <rosenr@marvell.com> * Thomas Petazzoni <thomas.petazzoni@free-electrons.com...
Jerry-X-Meng/AlphaBoxPlus
u-boot/drivers/net/mvneta.c
C
gpl-3.0
47,730
/* Combo boxes * * The ComboBox widget allows to select one option out of a list. * The ComboBoxEntry additionally allows the user to enter a value * that is not in the list of options. * * How the options are displayed is controlled by cell renderers. */ #include <gtk/gtk.h> enum { PIXBUF_COL, TEXT_COL...
zsx/gtk
demos/gtk-demo/combobox.c
C
lgpl-2.1
11,548
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
su2code/SU2
externals/cgns/hdf5/H5Tcompound.c
C
lgpl-2.1
22,806
/** * Auto initialization for used modules * * Copyright (C) 2013 INRIA. * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. * * @ingroup auto_init * @{ * @file * @brief initializes any u...
RBartz/RIOT
sys/auto_init/auto_init.c
C
lgpl-2.1
4,232
/* main.c - Application main entry point */ /* * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <logging/log.h> LOG_MODULE_REGISTER(net_test, CONFIG_NET_TRICKLE_LOG_LEVEL); #include <zephyr/types.h> #include <ztest.h> #include <stdbool.h> #include <stddef.h> #include <st...
zephyrproject-rtos/zephyr
tests/net/trickle/src/main.c
C
apache-2.0
4,644
#include <stdio.h> #include <stdlib.h> #include "cpu-features.h" static void panic(const char* msg) { fprintf(stderr, "ERROR: %s\n", msg); exit(1); } int main(void) { int count, cpu_count = 10; uint64_t features, cpu_features = 0xaabdedf012934839ULL; count = android_getCpuCount(); features = android_get...
efortuna/AndroidSDKClone
ndk_experimental/tests/device/test-cpufeatures/jni/test_android_setCpu_2.c
C
apache-2.0
817
#ifdef CONFIG_MT_SCHED #include <linux/cdev.h> #include <linux/device.h> #include <linux/seq_file.h> #include <linux/cpu.h> #include <linux/security.h> #include <linux/cpuset.h> #include <linux/poll.h> #include <linux/proc_fs.h> #include <linux/module.h> #include <linux/version.h> #include "mt_sched_drv.h" #define SCH...
zunaid321/Lenovo_A820_kernel_kk
mediatek/kernel/drivers/sched/mt_sched.c
C
gpl-2.0
13,429
/* * linux/fs/open.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/string.h> #include <linux/mm.h> #include <linux/file.h> #include <linux/fdtable.h> #include <linux/fsnotify.h> #include <linux/module.h> #include <linux/tty.h> #include <linux/namei.h> #include <linux/backing-dev.h> #include <li...
gandalf-3d/mordorKernel-note3
fs/open.c
C
gpl-2.0
27,093
/* * Linux IEEE 802.15.4 userspace tools * * Copyright (C) 2008, 2009 Siemens AG * * 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 dist...
hoerman/linux-zigbee
src/iz.c
C
gpl-2.0
7,977
#include "cpu.h" #include "exec/gdbstub.h" #include "helper.h" #include "qemu/host-utils.h" #include "sysemu/sysemu.h" #include "qemu/bitops.h" #ifndef CONFIG_USER_ONLY static inline int get_phys_addr(CPUARMState *env, uint32_t address, int access_type, int is_user, ...
Jin-Yang/QEMU-1.4.2
target-arm/helper.c
C
gpl-2.0
114,411
/* trace.c --- tracing output for the RX simulator. Copyright (C) 2005-2017 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of the GNU simulators. 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...
totalspectrum/binutils-propeller
sim/rx/trace.c
C
gpl-2.0
8,119
/* * Linux cfg80211 Vendor Extension Code * * Copyright (C) 1999-2014, Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU General Public License version 2 (the ...
SlimRoms/kernel_motorola_shamu
drivers/net/wireless/bcmdhd/wl_cfgvendor.c
C
gpl-2.0
75,201
/* * Copyright (C) 2003 - 2009 NetXen, Inc. * Copyright (C) 2009 - QLogic Corporation. * 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 version 2 * of the ...
gnehzuil/ali_kernel
drivers/net/netxen/netxen_nic_ethtool.c
C
gpl-2.0
26,185
/* 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...
skeevy420/android_kernel_lge_d850
drivers/video/msm/mdss/mdss_mdp_intf_video.c
C
gpl-2.0
25,984
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstdtmfdetect.h" #include "gstdtmfsrc.h" #include "gstrtpdtmfsrc.h" #include "gstrtpdtmfdepay.h" static gboolean plugin_init (GstPlugin * plugin) { if (!gst_dtmf_detect_plugin_init (plugin)) return FALSE; if (!gst_dtmf_src_plugin_init (plugin)) ...
ylatuya/gst-plugins-bad
gst/dtmf/gstdtmf.c
C
gpl-2.0
649
#include <Copyright.h> /******************************************************************************* * gtPIRL.c * * DESCRIPTION: * API definitions for PIRL Resources * * DEPENDENCIES: * * FILE REVISION NUMBER: *******************************************************************************/ #include <msApi.h>...
tb-303/GFRG110
arch/arm/plat-feroceon/mv_hal/qd-dsdt/src/msapi/gtPIRL.c
C
gpl-2.0
41,562
/* * (C) Copyright 2008 Semihalf * * (C) Copyright 2000-2006 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Publi...
hujiafu/lpc1788_uclinux
cortexm_uclinux-master/uboot/u-boot-2011.06/common/image.c
C
gpl-2.0
85,199
/* * Broadcom Dongle Host Driver (DHD), Linux monitor network interface * * $Copyright Open Broadcom Corporation$ * * $Id: wl_linux_mon.c 467328 2014-04-03 01:23:40Z $ */ #include <osl.h> #include <linux/string.h> #include <linux/module.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <lin...
gabry3795/android_kernel_huawei_mt7_l09
drivers/huawei_platform/connectivity/bcm/wifi/driver/bcmdhd/wl_linux_mon.c
C
gpl-2.0
10,070
/* * drivers/cpufreq/cpufreq_stats.c * * Copyright (C) 2003-2004 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. * (C) 2004 Zou Nan hai <nanhai.zou@intel.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 * p...
gabry3795/android_kernel_huawei_mt7_l09
drivers/cpufreq/cpufreq_stats.c
C
gpl-2.0
18,109
/* * ======================================================================================= * * Filename: thermal.c * * Description: Module implementing Intel TM/TM2 interface * * Version: <VERSION> * Released: <DATE> * * Author: Jan Treibig (jt), jan.treibig@gmail.com * ...
mmozum/likwid
src/thermal.c
C
gpl-3.0
2,243
/* * Copyright (C) 2015 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup driver_enc28j60 * @{ * * @file * @brief Implementation of ENC...
Hyungsin/RIOT-OS
drivers/enc28j60/enc28j60.c
C
lgpl-2.1
15,171
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2009-12-27 rdghx mini2440 */ /** * @addtogroup mini2440 */ /*@{*/ #include <s3c24x0.h> #include "led.h" void rt_hw_led_init(void) { /* GPB5,...
armink/rt-thread
bsp/mini2440/drivers/led.c
C
apache-2.0
601
#include "crypto_stream_aes128ctr.h" size_t crypto_stream_aes128ctr_keybytes(void) { return crypto_stream_aes128ctr_KEYBYTES; } size_t crypto_stream_aes128ctr_noncebytes(void) { return crypto_stream_aes128ctr_NONCEBYTES; } size_t crypto_stream_aes128ctr_beforenmbytes(void) { return crypto_stream_aes128ct...
espressif/ESP8266_RTOS_SDK
components/libsodium/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr.c
C
apache-2.0
339
/* * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. * Copyright (c) Siemens AG, 2020-2021 * * SPDX-License-Identifier: BSD-3-Clause */ #include <platform_def.h> #include <bl31/ehf.h> /* * Enumeration of priority levels on ARM platforms. */ ehf_pri_desc_t zynqmp_exceptions[] = { /...
achingupta/arm-trusted-firmware
plat/xilinx/zynqmp/zynqmp_ehf.c
C
bsd-3-clause
639
#include "tommath_private.h" #ifdef BN_S_MP_GET_BIT_C /* LibTomMath, multiple-precision integer library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */ /* Get bit at position b and return MP_YES if the bit is 1, MP_NO if it is 0 */ mp_bool s_mp_get_bit(const mp_int *a, unsigned int b) { mp_digit bit; ...
justinethier/cyclone-bootstrap
third-party/libtommath-1.2.0/bn_s_mp_get_bit.c
C
mit
521
/* cairo - a vector graphics library with display and print output * * Copyright © 2002 University of Southern California * Copyright © 2005 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public * License version 2.1 as...
graphstorm/graphstorm
third_party/cairo/src/cairo-color.c
C
mit
5,607
/* * Freescale MPC5200 PSC DMA * ALSA SoC Platform driver * * Copyright (C) 2008 Secret Lab Technologies Ltd. * Copyright (C) 2009 Jon Smirl, Digispeaker */ #include <linux/module.h> #include <linux/of_device.h> #include <linux/dma-mapping.h> #include <linux/slab.h> #include <linux/of_platform.h> #include <soun...
holyangel/LGE_G3
sound/soc/fsl/mpc5200_dma.c
C
gpl-2.0
14,971
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #define DEBUG #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/netdevice.h> #include <linux/sch...
zhoupeng/spice4xen
linux-2.6.18-xen.hg/drivers/net/mipsnet.c
C
gpl-2.0
8,981
/* */ /* * Copyright (C) 2000 - 2012, Intel Corp. * All rights reserved. * * Redistribution and use in source an...
holyangel/LGE_G3
drivers/acpi/acpica/uteval.c
C
gpl-2.0
10,045
void __attribute__((naked,noinline)) init_file_modules_task(){ asm volatile( "STMFD SP!, {R4,LR}\n" "BL _Unmount_FileSystem\n" // + "BL sub_FFA96858\n" "SUBS R4, R0, #0\n" "MOV R0, #0x5000\n" "MOV R1...
arne182/chdk-eyefi
platform/ixus700_sd500/sub/101a/mount.c
C
gpl-2.0
7,403
/* * WonderMedia WM8505 Frame Buffer device driver * * Copyright (C) 2010 Ed Spiridonov <edo.rus@gmail.com> * Based on vt8500lcdfb.c * * 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, a...
holyangel/LGE_G3
drivers/video/wm8505fb.c
C
gpl-2.0
10,412
/* * Copyright © 2007 Anton Vorontsov <cbou@mail.ru> * Copyright © 2007 Eugeny Boger <eugenyboger@dgap.mipt.ru> * * Author: Eugeny Boger <eugenyboger@dgap.mipt.ru> * * Use consistent with the GNU GPL is permitted, * provided that this copyright notice is * preserved in its entirety in all copies and derived wor...
holyangel/LGE_G3
drivers/power/apm_power.c
C
gpl-2.0
10,373
/* * Real Time Clock interface for StrongARM SA1x00 and XScale PXA2xx * * Copyright (c) 2000 Nils Faerber * * Based on rtc.c by Paul Gortmaker * * Original Driver by Nils Faerber <nils@kernelconcepts.de> * * Modifications from: * CIH <cih@coventive.com> * Nicolas Pitre <nico@fluxnic.net> * Andrew Chri...
holyangel/LGE_G3
drivers/rtc/rtc-sa1100.c
C
gpl-2.0
9,551
/*------------------------------------------------------------------------- * vmadump_alpha.c: alpha specific dumping/undumping routines * * Copyright (C) 1999-2001 by Erik Hendriks <erik@hendriks.cx> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
jimmycao/blcr-0.8.5
vmadump4/vmadump_alpha.c
C
gpl-2.0
6,429
/* * Driver for NXP MCR20A 802.15.4 Wireless-PAN Networking controller * * Copyright (C) 2018 Xue Liu <liuxuenetmail@gmail.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....
BPI-SINOVOIP/BPI-Mainline-kernel
linux-4.19/drivers/net/ieee802154/mcr20a.c
C
gpl-2.0
34,653
/* * Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com) * Licensed under the GPL */ #include "linux/config.h" #include "linux/fs.h" #include "linux/tty.h" #include "linux/tty_driver.h" #include "linux/major.h" #include "linux/mm.h" #include "linux/init.h" #include "linux/console.h" #include "asm/termbits.h" #in...
zhoupeng/spice4xen
linux-2.6.18-xen.hg/arch/um/drivers/ssl.c
C
gpl-2.0
5,068
/* * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2001 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission noti...
nmacs/lm3s-uclinux
openswan/lib/libdns/compress.c
C
gpl-2.0
7,317
/* * * drivers/mtd/brcmnand/bcm63xx-nand.c * Copyright (c) 2005-2006 Broadcom 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. This program is d...
IoveSunny/DreamBox
target/linux/brcm63x8/files-2.6.30/drivers/mtd/brcmnand/bcm63xx-nand.c
C
gpl-2.0
19,273
#include "conf.h" int *video_quality = &conf.video_quality; int *video_mode = &conf.video_mode; long def_table1[9]={0x2000,0x38D,0x788,0x5800,0x9C5,0x14B8,0x10000,0x1C6A,0x3C45}; long def_table2[9]={0x1CCD,-0x2E1,-0x579,0x4F33,-0x7EB,-0xF0C,0xE666,-0x170A,-0x2BC6}; long table1[9], table2[9]; void change_video_ta...
pixeldoc2000/chdk
platform/ixus950_sd850/sub/100c/movie_rec.c
C
gpl-2.0
13,653
/* GNU gettext - internationalization aids Copyright (C) 1995-1998, 2000-2010, 2012, 2015-2016 Free Software Foundation, Inc. This file was written by Peter Miller <millerp@canb.auug.org.au> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public...
FabianKnapp/nexmon
utilities/gettext/gettext-tools/src/msgmerge.c
C
gpl-3.0
70,954
/*********************************************************************** Copyright (c) 2006-2010, Skype Limited. All rights reserved. Redistribution and use in source and binary forms, with or without modification, (subject to the limitations in the disclaimer below) are permitted provided that the following conditi...
tojames/PiPhone-Android-Client
jni/silk/src/SKP_Silk_scale_vector.c
C
gpl-3.0
4,903
/* * Copyright 2015 Con Kolivas <kernel@kolivas.org> * Copyright 2014 Zvi (Zvisha) Shteingart - Spondoolies-tech.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 3 of t...
kanoi/cgminer
driver-spondoolies-sp30-p.c
C
gpl-3.0
1,492
// RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm -o - %s | FileCheck %s void __attribute__((micromips)) foo (void) {} // CHECK: define{{.*}} void @foo() [[MICROMIPS:#[0-9]+]] void __attribute__((nomicromips)) nofoo (void) {} // CHECK: define{{.*}} void @nofoo() [[NOMICROMIPS:#[0-9]+]] // CHECK: attributes [[...
sabel83/metashell
3rd/templight/clang/test/CodeGen/micromips-attr.c
C
gpl-3.0
472
/* * EffecTV - Realtime Digital Video Effector * Copyright (C) 2001-2006 FUKUCHI Kentaro * * utils.c: utilities * */ #include <math.h> #include "utils.h" /* * HSI color system utilities */ static int itrunc(double f) { int i; i=(int)f; if(i<0)i=0; if(i>255)i=255; return i; } void HSItoRGB(double H, dou...
wideioltd/mlt
src/modules/plusgpl/utils.c
C
lgpl-2.1
1,001
#include <fcntl.h> #include <stdarg.h> #include "syscall.h" #include "libc.h" int open(const char *filename, int flags, ...) { mode_t mode; va_list ap; va_start(ap, flags); mode = va_arg(ap, mode_t); va_end(ap); return sys_open_cp(filename, flags, mode); } LFS64(open);
dawangjiaowolaixunshan/runtime
deps/musl/src/fcntl/open.c
C
apache-2.0
278
/** @file Copyright (c) 2014, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.or...
google/google-ctf
third_party/edk2/IntelFspPkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib.c
C
apache-2.0
1,128
/*------------------------------------------------------------------------- * * prepqual.c * Routines for preprocessing qualification expressions * * * While the parser will produce flattened (N-argument) AND/OR trees from * simple sequences of AND'ed or OR'ed clauses, there might be an AND clause * directly ...
50wu/gpdb
src/backend/optimizer/prep/prepqual.c
C
apache-2.0
19,548
/* * File: exec.c * CVS: $Id$ * Author: Philip Mucci * mucci@cs.utk.edu * Mods: <your name here> * <your email address> */ /* This file performs the following test: start, stop and timer functionality for a parent and a forked child. */ #include "papi_test.h" #include <sys/wait.h> int m...
tpatki/papi-rapl
src/ctests/exec.c
C
bsd-3-clause
995
// Google BSD license http://code.google.com/google_bsd_license.html // Copyright 2012 Google Inc. wrightt@google.com // // A minimal websocket "echo" server // #include <stdio.h> #include <stdlib.h> #include <string.h> #include "ws_echo_common.h" #include "websocket.h" #include <sys/ioctl.h> #include <sys/socket.h...
thierrymarianne/ios-webkit-debug-proxy
examples/ws_echo1.c
C
bsd-3-clause
1,428
#include <stdio.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <task.h> #include <stdlib.h> #include <sys/socket.h> enum { STACK = 32768 }; char *server; int port; void proxytask(void*); void rwtask(void*); int* mkfd2(int fd1, int fd2) { int *a; a = malloc(2*sizeof a[0]); if(a == 0){ ...
mariusae/pingrf
tiny9/libtask/tcpproxy.c
C
bsd-3-clause
1,503
/* * LED Triggers Core * For the HP Jornada 620/660/680/690 handhelds * * Copyright 2008 Kristoffer Ericson <kristoffer.ericson@gmail.com> * this driver is based on leds-spitz.c by Richard Purdie. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Genera...
mericon/Xp_Kernel_LGH850
virt/drivers/leds/leds-hp6xx.c
C
gpl-2.0
2,259
#include "dz40rgb.h" #include "config.h" #if defined (split_space) const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { /* Refer to IS31 manual for these locations * driver * | R location * | | G location * | | | B location * | | | | */ {0, K_12, J_12, L_12}, {0,...
chancegrissom/qmk_firmware
keyboards/dztech/dz40rgb/dz40rgb.c
C
gpl-2.0
6,757
/* * uprobes-based tracing events * * 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 WARRAN...
Keeehi/ubuntu-raring-powerpc
kernel/trace/trace_uprobe.c
C
gpl-2.0
18,138
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/if_bridge.h> #include <linux/list.h> #include <net/arp.h> #include <net/gre.h> #include <net/lag.h> #include <net/ndisc.h> #include <net/ip6_tunnel.h> #include "spectrum.h" #include ...
Pingmin/linux
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
C
gpl-2.0
27,217
/* * Digital Audio (PCM) abstract layer * Copyright (c) by 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 * the Free Software Foundation; either version 2 of the License, or...
RyanMallon/linux-ep93xx
sound/core/pcm_native.c
C
gpl-2.0
96,211
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 1998, 1999, 2000 * Sleepycat Software. All rights reserved. * * $Id: ex_btrec.c,v 11.8 2000/05/22 15:17:03 sue Exp $ */ #include "db_config.h" #ifndef NO_SYSTEM_INCLUDES #include <sys/types.h> #include <errno.h> #include <stdl...
nmacs/lm3s-uclinux
user/mysql/bdb/examples_c/ex_btrec.c
C
gpl-2.0
5,345
/* Copyright (C) 2014 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARR...
glongo/suricata
src/runmode-nflog.c
C
gpl-2.0
6,976
/* Advanced Micro Devices Inc. AMD8111E Linux Network Driver * Copyright (C) 2004 Advanced Micro Devices * * * Copyright 2001,2002 Jeff Garzik <jgarzik@mandrakesoft.com> [ 8139cp.c,tg3.c ] * Copyright (C) 2001, 2002 David S. Miller (davem@redhat.com)[ tg3.c] * Copyright 1996-1999 Thomas Bogendoerfer [ pcnet32.c...
tgraf/net-next
drivers/net/ethernet/amd/amd8111e.c
C
gpl-2.0
52,323
/* * tegra_asoc_utils.c - Harmony machine ASoC driver * * Author: Stephen Warren <swarren@nvidia.com> * Copyright (c) 2010-2014, NVIDIA CORPORATION. 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 a...
libing64/manifold_linux
sound/soc/tegra/tegra_asoc_utils.c
C
gpl-2.0
18,607
/* * Copyright (c) 2003-2007 Niels Provos <provos@citi.umich.edu> * Copyright (c) 2007-2010 Niels Provos and Nick Mathewson * * 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 mu...
apavlo/h-store
src/dtxn/libevent/test/regress_dns.c
C
gpl-3.0
49,102
/******************************************************************** * SQLForeignKeys * ********************************************************************** * * This code was created by Peter Harvey (mostly during Christmas 98/99). * This code is LGPL. Please ensure that this message remains in future * distr...
TextusData/Mover
thirdparty/unixODBC-2.3.1/Drivers/MiniSQL/SQLForeignKeys.c
C
gpl-3.0
1,955
#include <config.h> #include <stdio.h> #include <stdlib.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include "netcdf.h" #include "netcdf_mem.h" #include "ncbytes.h" #include "nc_tests.h" #ifdef USE_NETCDF4 #include <hdf5.h> extern int H5Eprint1(FILE * stream); #endif static int readfile(const char* path, NC_m...
90jrong/libmesh
contrib/netcdf/netcdf-c-4.6.2/nc_test/tst_open_mem.c
C
lgpl-2.1
1,827
#include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include "zdtmtst.h" const char *test_doc = "Open, link, unlink x2, change size, migrate, check size"; char *filename; TEST_OPTION(filename, string, "file name", 1); static c...
gonkulator/criu
test/zdtm/live/static/unlink_fstat02.c
C
lgpl-2.1
2,158
#include <sys/epoll.h> #include <signal.h> #include "syscall.h" int epoll_create(int size) { return syscall(SYS_epoll_create, size); } int epoll_create1(int flags) { return syscall(SYS_epoll_create1, flags); } int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev) { return syscall(SYS_epoll_ctl, fd, op, f...
dawangjiaowolaixunshan/runtime
deps/musl/src/linux/epoll.c
C
apache-2.0
608
/* * vnc.c * * Copyright (C) 2009-2011 by ipoque GmbH * Copyright (C) 2011-15 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH * * nDPI is free software: you can redistribute it and/or modify * it under the terms ...
mpeuster/son-examples
vnfs/sonata-vtc-vnf-docker/pfring_web_api/vtc/nDPI/src/lib/protocols/vnc.c
C
apache-2.0
2,286
// Test this without pch. // RUN: %clang_cc1 -fblocks -include %S/exprs.h -fsyntax-only -verify %s // Test with pch. // RUN: %clang_cc1 -emit-pch -fblocks -o %t %S/exprs.h // RUN: %clang_cc1 -fblocks -include-pch %t -fsyntax-only -verify %s __SIZE_TYPE__ size_type_value; int integer; long long_integer; double floati...
jeltz/rust-debian-package
src/llvm/tools/clang/test/PCH/exprs.c
C
apache-2.0
2,162
/* * notify_self_fork.c - example of how you can use overflow notifications across fork * * Copyright (c) 2002-2006 Hewlett-Packard Development Company, L.P. * Contributed by Stephane Eranian <eranian@hpl.hp.com> * Modified by Phil Mucci <mucci@cs.utk.edu> to add the fork() * * Permission is hereby granted, free...
tpatki/papi-rapl
src/libpfm-3.y/examples_v3.x/notify_self_fork.c
C
bsd-3-clause
9,031
/* * linux/drivers/power/wm97xx_battery.c * * Battery measurement code for WM97xx * * based on tosa_battery.c * * Copyright (C) 2008 Marek Vasut <marek.vasut@gmail.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 ...
dorimanx/Dorimanx-SG2-I9100-Kernel
drivers/power/wm97xx_battery.c
C
gpl-2.0
7,580
/* Special .init and .fini section support for S/390. Copyright (C) 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free S...
mseaborn/nacl-glibc
nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c
C
gpl-2.0
3,872
/* Python interface to blocks. Copyright (C) 2008-2015 Free Software Foundation, Inc. This file is part of GDB. 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 of th...
acama/binutils
gdb/python/py-block.c
C
gpl-2.0
14,994
/* Implementation of the MAXLOC intrinsic Copyright (C) 2002-2014 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran runtime library (libgfortran). Libgfortran is free software; you can redistribute it and/or modify it under the terms of the GNU General...
albertghtoun/gcc-libitm
libgfortran/generated/maxloc1_4_i4.c
C
gpl-2.0
13,284
/* * txResult.c * * Copyright(c) 1998 - 2010 Texas Instruments. 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 code must retain t...
androidarmv6/android_kernel_semc_msm7x27
vendor_ti_wlan/sta/TWD/FW_Transfer/txResult.c
C
gpl-2.0
16,365
/* * This file is part of the coreboot project. * * Copyright (C) 2007-2009 coresystems GmbH * * 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...
BTDC/coreboot
src/mainboard/emulation/qemu-q35/acpi_tables.c
C
gpl-2.0
6,370
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 < %s -o - | FileCheck %s // CHECK:%struct.S = type { i32, i32 } // CHECK:define void @test_addrspace(%struct.S addrspace(1)* %p1, %struct.S addrspace(2)* %p2) [[NUW:#[0-9]+]] // CHECK: [[p1addr:%.*]] = alloca %struct.S addrspace(1)* // CHECK: [[p2addr:%.*]] ...
cd80/UtilizedLLVM
tools/clang/test/CodeGen/address-space-field1.c
C
unlicense
2,029
/* * Functions to trace SSL protocol behavior in DEBUG builds. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* $Id: ssltrace.c,v 1.5 2012/04/25 14:50:12 ger...
matsumoto-r/synciga
src/net/third_party/nss/ssl/ssltrace.c
C
bsd-3-clause
6,547
/* * The authors of this software are Rob Pike and Ken Thompson. * Copyright (c) 2002 by Lucent Technologies. * Permission to use, copy, modify, and distribute this software for any * purpose without fee is hereby granted, provided that this entire notice * is included in all copies of any software wh...
bartman/wmii
libutf/runestrrchr.c
C
mit
995
/* Handle exceptional things in C++. Copyright (C) 1989-2013 Free Software Foundation, Inc. Contributed by Michael Tiemann <tiemann@cygnus.com> Rewritten by Mike Stump <mrs@cygnus.com>, based upon an initial re-implementation courtesy Tad Hunt. This file is part of GCC. GCC is free software; you can redis...
pschorf/gcc-races
gcc/cp/except.c
C
gpl-2.0
38,438