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 (c) 2011, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope th... | wr4eng/htc_pico_kernel_3.4.10 | arch/arm/mach-msm/board-pico.c | C | gpl-2.0 | 58,546 |
/*
* Copyright (c) 2013-2014, Hisilicon Tech. Co., Ltd. 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... | Honor8Dev/android_kernel_huawei_FRD-L04 | drivers/video/hisi/dss/hisi_block_algorithm.c | C | gpl-2.0 | 22,110 |
/* Copyright (C) 2007 MySQL AB
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 useful,
but WITHOUT AN... | pieter/mysql-server | tests/bug25714.c | C | gpl-2.0 | 2,078 |
/*
* Copyright © 2008 Intel Corporation
*
* 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
* the rights to use, copy, modify, merge, pub... | jonsmirl/mpc5200 | drivers/gpu/drm/i915/intel_dp.c | C | gpl-2.0 | 31,093 |
/* Convert a string representation of time to a time value.
Copyright (C) 1997-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under the ter... | czankel/xtensa-glibc | time/getdate.c | C | gpl-2.0 | 6,908 |
/*
*
* Copyright 2001 Mission Critical Linux, Inc.
*
* All Rights Reserved.
*/
/*
* Stonith module for WTI Network Power Switch Devices (NPS-xxx)
* Also supports the WTI Telnet Power Switch Devices (TPS-xxx)
*
* Copyright 2001 Mission Critical Linux, Inc.
* author: mike ledoux <mwl@mclinux.com>
* author... | ystk/debian-cluster-glue | lib/plugins/stonith/wti_nps.c | C | gpl-2.0 | 18,915 |
/*
Copyright (c) 2015, Raspberry Pi Foundation
Copyright (c) 2015, Dave Stevenson
Copyright (c) 2017, Ben Kazemi
Copyright (c) 2018, Evariste F5OEO
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* R... | F5OEO/avc2ts | b101.c | C | gpl-2.0 | 20,968 |
/*
chronyd/chronyc - Programs for keeping computer clocks accurate.
**********************************************************************
* Copyright (C) Miroslav Lichvar 2014
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public ... | SuperQ/chrony | nameserv_async.c | C | gpl-2.0 | 3,338 |
/* enclame.c
Copyright (c) 2003-2013 HandBrake Team
This file is part of the HandBrake source code
Homepage: <http://handbrake.fr/>.
It may be used under the terms of the GNU General Public License v2.
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
#includ... | cduvenhorst/HandBrake-Mac-hwaccel | libhb/enclame.c | C | gpl-2.0 | 6,684 |
/*
* AppArmor security module
*
* This file contains AppArmor /proc/<pid>/attr/ interface functions
*
* Copyright (C) 1998-2008 Novell/SUSE
* Copyright 2009-2010 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* ... | evolver56k/xpenology | security/apparmor/procattr.c | C | gpl-2.0 | 4,769 |
/*
* nandwrite.c
*
* Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com)
* 2003 Thomas Gleixner (tglx@linutronix.de)
*
* 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 Founda... | jiangjinxiong/mtd-utils | nandwrite.c | C | gpl-2.0 | 18,469 |
/*
* OMAP4 Clock domains framework
*
* Copyright (C) 2009 Texas Instruments, Inc.
* Copyright (C) 2009 Nokia Corporation
*
* Abhijit Pagare (abhijitpagare@ti.com)
* Benoit Cousson (b-cousson@ti.com)
*
* This file is automatically generated from the OMAP hardware databases.
* We respectfully ask that any modif... | adamdmcbride/Nufront_linux_kernel | arch/arm/mach-omap2/clockdomains44xx_data.c | C | gpl-2.0 | 19,010 |
/*
arp.c
Copyright 1995 Philip Homburg
*/
#include "inet.h"
#include "type.h"
#include "arp.h"
#include "assert.h"
#include "buf.h"
#include "clock.h"
#include "event.h"
#include "eth.h"
#include "io.h"
THIS_FILE
#define ARP_CACHE_NR 256
#define AP_REQ_NR 32
#define ARP_HASH_NR 256
#define ARP_HASH_MASK 0xff
#... | sudev/MinixMajor | code/servers/inet/generic/arp.c | C | gpl-2.0 | 29,443 |
/*
* Copyright (C) 2003 Robert Kooima
*
* NEVERBALL 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 d... | drodin/neverball-old | ball/demo.c | C | gpl-2.0 | 10,771 |
/*
* S/390 helper routines
*
* Copyright (c) 2009 Ulrich Hecht
* Copyright (c) 2009 Alexander Graf
*
* 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 of the ... | AVEx-6502/qemu-6502 | target-s390x/op_helper.c | C | gpl-2.0 | 76,296 |
/* Copyright (C) 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | dtbartle/glibc-opensolaris | nptl/pthread_getattr_np.c | C | gpl-2.0 | 5,005 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
unsigned char *read_buffer(char *file_name, size_t *size_ptr)
{
FILE *f;
unsigned char *buf;
size_t size;
/* Open file */
f = fopen(file_name, "rb");
if (!f)
return NULL;
/* ... | xianggong/m2c_unit_test | test/operator/relational_greater_than_or_equal_to_long16long16/relational_greater_than_or_equal_to_long16long16_src.c | C | gpl-2.0 | 11,118 |
/*
* hostname This file contains an implementation of the command
* that maintains the hostname and the domainname. It
* is also used to show the FQDN and the IP-Addresses.
*
* Usage: hostname [-d|-f|-s|-a|-i|-y|-n]
* hostname [-h|-V]
* hostname {name|-... | ecki/net-tools | hostname.c | C | gpl-2.0 | 11,818 |
/*****************************************************************************
Kodovani: UTF-8
Soubor: functions.c
Projekt: IFJ06
Datum: 17.12.2006
Autori:
Lukas Marsik, xmarsi03@stud.fit.vutbr.cz
Libor Polcak, xpolca03@stud.fit.vutbr.cz
Boris Prochazka, xproch63@stud.fit.vutbr.cz
Martin Tomec, xtomec05... | s3rvac/fit-projects | IFJ/src/instructions.c | C | gpl-2.0 | 23,677 |
/* SPDX-License-Identifier: GPL-2.0-only */
#include <cbmem.h>
#include <console/console.h>
#include <commonlib/bsd/helpers.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <stdint.h>
#include <device/device.h>
#include <boot/tables.h>
#include <acpi/acpi.h>
#include <northbridge/intel/pineview/pine... | felixsinger/coreboot | src/northbridge/intel/pineview/northbridge.c | C | gpl-2.0 | 5,324 |
/*
BlueZ - Bluetooth protocol stack for Linux
Copyright (c) 2000-2001, 2010-2012 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 modify
it under the terms of the GNU General Public Licen... | ion-storm/Unleashed-N4 | net/bluetooth/hci_conn.c | C | gpl-2.0 | 34,534 |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "pluto.h"
#include "pluto_usr.h"
#include "interpolation.h"
int hunter(const double arr[], const int narr, const double val) {
/*
* This function returns index, il, of an array, arr, such that
* arr[il] < val < arr[il + 1]
*/
in... | aywander/pluto-outflows | Real_Problems/RadiativeShock/interpolation.c | C | gpl-2.0 | 6,870 |
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/i2c.h>
#include <linux/smc91x.h>
#include <linux/mfd/da903x.h>
#incl... | luckasfb/OT_903D-kernel-2.6.35.7 | kernel/arch/arm/mach-pxa/saar.c | C | gpl-2.0 | 12,866 |
/*
* (C) Copyright 2002-2003 Wojtek Kaniewski <wojtekka@irc.pl>
* Wojtek Bojdo³ <wojboj@htcon.pl>
* Pawe³ Maziarz <drg@infomex.pl>
* 2008-2010 Wies³aw Ochmiñski <wiechu@wiechu.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... | ekg2/ekg2 | plugins/ncurses/backlog.c | C | gpl-2.0 | 8,805 |
/* drivers/input/keyboard/synaptics_i2c_rmi.c
*
* Copyright (C) 2007 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 distr... | psyke83/kernel_samsung_gio2europa | drivers/input/touchscreen/synaptics_i2c_rmi4_beni.c | C | gpl-2.0 | 24,135 |
/*==============================================================================
| tcp6
| parse a tcp datagram. (IP6)
|
| Copyright (C) 1999 Graham THE Ollis <ollisg@netl.org>
|
| This program is free software; you can redistribute it and/or modify
| it under the terms of the GNU General Public License as publi... | plicease/netl | filt/tcp6.c | C | gpl-2.0 | 2,415 |
/* PAUL MURRELL
This is from the GNU plotutils libplot-2.3 distribution
All references to HAVE_PROTOS removed
All references to "plotter" replaced with references to "GEDevDesc"
*/
/* <UTF8-FIXME> This assumes single-byte encoding */
/* _controlify() converts a "label" (i.e. a character string), which may
... | johngarvin/R-2.1.1rcc | src/modules/vfonts/g_cntrlify.c | C | gpl-2.0 | 26,359 |
/*
* kernel/time/timer_stats.c
*
* Collect timer usage statistics.
*
* Copyright(C) 2006, Red Hat, Inc., Ingo Molnar
* Copyright(C) 2006 Timesys Corp., Thomas Gleixner <tglx@timesys.com>
*
* timer_stats is based on timer_top, a similar functionality which was part of
* Con Kolivas dyntick patch set. It was dev... | shark147/m7-kernel | kernel/time/timer_stats.c | C | gpl-2.0 | 9,911 |
/*
* Server-side XDR for NFSv4
*
* Copyright (c) 2002 The Regents of the University of Michigan.
* All rights reserved.
*
* Kendrick Smith <kmsmith@umich.edu>
* Andy Adamson <andros@umich.edu>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | renaudallard/gnexus_kernel | fs/nfsd/nfs4xdr.c | C | gpl-2.0 | 86,241 |
/**
*
* Copyright (c) 2015 Hal Martin
* This is free software, licensed under the GNU General Public License v2.
* See /LICENSE for more information.
*
*/
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sqlite3.h>
#include <libconfig.h>
#include <sys/stat.h>
#include <fcntl.... | halmartin/load2sqlite | src/load2sqlite.c | C | gpl-2.0 | 3,959 |
/*
* hlfs/src/snapshot/unittest/test_hlfs_open_by_snapshot.c
*
* Harry Wei <harryxiyou@gmail.com> (C) 2011
*/
#include <glib.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "api/hlfs.h"
#include "hlfs_log.h"
#include "misc.h"
#include "storage.h"
#include "storage_helper.h"
#define RE... | Wang-Sen/hlfs | src/snapshot/unittest/test_hlfs_open_by_snapshot.c | C | gpl-2.0 | 7,945 |
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
... | cyj1988jyc/jz2440-android-kernel-2.6.27 | drivers/a_drivers_and_test/10th_lcd/1th/lcd.c | C | gpl-2.0 | 1,208 |
/*
* This program is used to generate definitions needed by
* assembly language modules.
*
* We use the technique used in the OSF Mach kernel code:
* generate asm statements containing #defines,
* compile this file to assembler, and then extract the
* #defines from the assembly-language output.
*
* This progra... | danielgpalmer/linux-picosam9g45 | arch/powerpc/kernel/asm-offsets.c | C | gpl-2.0 | 28,514 |
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995, 1996 Robert Gentleman and Ross Ihaka
* Copyright (C) 1997--2018 The R Core Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Pulic License as published by
* ... | SensePlatform/R | src/main/grep.c | C | gpl-2.0 | 95,231 |
/*
Driver for Philips tda1004xh OFDM Demodulator
(c) 2003, 2004 Andrew de Quincey & Robert Schlabbach
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 ... | luckasfb/OT_903D-kernel-2.6.35.7 | kernel/drivers/media/dvb/frontends/tda1004x.c | C | gpl-2.0 | 39,444 |
/*
* Dibbler - a portable DHCPv6
*
* author: Tomasz Mrugalski <thomson@klub.com.pl>
*
* released under GNU GPL v2 licence
*
*/
// We need this, so unistd.h include gethostname() definition
#define _DEFAULT_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/wait.h... | tomaszmrugalski/dibbler | Misc/lowlevel-posix.c | C | gpl-2.0 | 2,355 |
/*
*
* 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... | thentenaar/bluez-dinovo | audio/headset.c | C | gpl-2.0 | 63,561 |
/*
* Copyright (C) 2012 Tobias Brunner
* Copyright (C) 2012 Giuliano Grassi
* Copyright (C) 2012 Ralf Sager
* Hochschule fuer Technik Rapperswil
* Copyright (C) 2012 Martin Willi
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as pu... | vapana/client | src/libstrongswan/networking/tun_device.c | C | gpl-2.0 | 10,112 |
/* drivers/video/msm/msm_fb.c
*
* Core MSM framebuffer driver.
*
* Copyright (C) 2007 Google Incorporated
* Copyright (c) 2008-2012, Code Aurora Forum. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, ... | CyanogenMod/lge-kernel-p700 | drivers/video/msm/msm_fb.c | C | gpl-2.0 | 99,076 |
#include "lolevel.h"
#include "platform.h"
#include "core.h"
const char * const new_sa = &_end;
void JogDial_task_my(void);
void taskCreateHook3(int *p) {
p-=17;
if (p[0]==0xFF87CD90) p[0]=(int)capt_seq_task;
if (p[0]==0xFF89A91C) p[0]=(int)init_file_modules_task;
if (p[0]==0xFF833088) p[0]=(int)mykbd_task;
... | boyska/chdkripto | platform/sx20/sub/102d/boot.c | C | gpl-2.0 | 30,224 |
/*
* linux/drivers/video/einkfb.c -- Virtual frame buffer device
*
* Copyright (C) 2002 James Simmons
*
* Copyright (C) 1997 Geert Uytterhoeven
*
* 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... | stevezuoli/BooxApp | driver/pvi/einkfb.c | C | gpl-2.0 | 29,418 |
/* kernel/power/earlysuspend.c
*
* Copyright (C) 2005-2008 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 ... | hroark13/zw340 | kernel/power/earlysuspend.c | C | gpl-2.0 | 7,073 |
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. 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 copyr... | mohammadhamad/mhh | contrib/libc-28a76ac905060290c2c7a744a771b6c018b21434/src/lib/libc/lib/msun/bsdsrc/b_log.c | C | gpl-2.0 | 14,042 |
#include "packet_capture.h"
#include "debug.h"
#include "packet_parser.h"
int dt_ip_data_len(struct ip_hdr *iph)
{
return ntohs(iph->ip_len) - iph->ip_hl * 4;
}
const u_char *dt_data_iph(const u_char *data)
{
return data + ETH_HDR_LEN;
}
const u_char *dt_data_tcph(const u_char *data, struct ip_hdr *iph)
{
retu... | miwoow/routeurl | src/packet_capture.c | C | gpl-2.0 | 1,503 |
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
* Copyright (C) 2001-2003 Red Hat, Inc.
*
* Created by Arjan van de Ven <arjanv@redhat.com>
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: compr_rtime.c 2 2007-04-05 08:51:12Z tt $
*
*
* Very simple lz77-ish encoder... | odit/rv042 | linux/kernel_2.6/linux/fs/jffs2/compr_rtime.c | C | gpl-2.0 | 2,925 |
/*
* $Id: sttype-function.c 20341 2007-01-08 07:19:31Z sfisher $
*
* Copyright (c) 2006 by Gilbert Ramirez <gram@alumni.rice.edu>
*
* Wireshark - Network traffic analyzer
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publish... | pengjh/freeCode | mini-ws-kernel/epan/dfilter/sttype-function.c | C | gpl-2.0 | 2,728 |
/*
* This file is distributed as part of the MariaDB Corporation MaxScale. 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,
* version 2.
*
* This program is distributed in the hope that it will be use... | liangg/MaxScale | server/modules/routing/readwritesplit/readwritesplit.c | C | gpl-2.0 | 173,855 |
/* 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 ho... | AndroidDeveloperAlliance/kernel_samsung_d2 | drivers/video/msm/mdp4_overlay_dtv.c | C | gpl-2.0 | 24,706 |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/timex.h>
#include <sys/time.h>
#ifdef ANDROID
/*
* As of 5.0.0, Bionic provides timex, but not the
* adjtimex interface.
* However, the kernel does.
*/
#include <linux/timex.h> /* for struct timex */
#include <asm/unistd.h> /*... | bigzz/pm-qa | cpuidle/cpuidle_killer.c | C | gpl-2.0 | 3,884 |
#include <linux/version.h>
#include <linux/module.h>
#include <linux/irq.h>
#include <linux/types.h>
#include <linux/input.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/device.h>
#in... | genehuangtaiwan/common | drivers/amlogic/hdmi/hdmi_tx/hdmi_cec_key.c | C | gpl-2.0 | 7,269 |
#include "common.h"
#include "dbaccess.h"
#include "dbmerge.h"
int mergedb(char iface[], char dirname[])
{
DATA mergedata;
char *ifaceptr;
if (!strstr(iface, "+")) {
return 0;
}
/* create empty database */
emptydb(&mergedata);
strncpy_nt(mergedata.interface, iface, 32);
strncpy_nt(mergedata.nick, mergedata... | cgzones/vnstat_deb | src/dbmerge.c | C | gpl-2.0 | 4,452 |
/*
* Generic hugetlb support.
* (C) William Irwin, April 2004
*/
#include <linux/gfp.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/hugetlb.h>
#include <linux/sysctl.h>
#include <linux/highmem.h>
const unsigned long hugetlb_zero = 0, hugetlb_infini... | z3bu/AH4222 | kernel/linux/mm/hugetlb.c | C | gpl-2.0 | 6,266 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | emudeveloper/N64-Player--Mupen64plus- | main/jni/SDL/src/video/android/SDL_androidwindow.c | C | gpl-2.0 | 2,038 |
/*
This file is part of SUPPL - the supplemental library for DOS
Copyright (C) 1996-2000 Steffen Kaiser
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... | lpproj/freecom_dbcs | suppl/src/dbgv_s20.c | C | gpl-2.0 | 1,646 |
/* 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/cm4008/cm4008.c | C | gpl-2.0 | 4,916 |
#include "seqlist.h"
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#define SIZE 20
void print_array(int a[], int len)
{
int i;
for (i = 0; i < len; i++)
printf("%d, ", a[i]);
printf("\n");
}
int static_search(int a[], int len, int key)
{
int ret = -1;
int i;
for (i = 0; i < len; i++)
if (key ==... | doc-cloud/ds | search/concept/searchdemo.c | C | gpl-2.0 | 1,719 |
/*
* NoCeM-INNBBSD Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw> NCMparse(),
* NCMverify(), NCMcancel(): return 0 success, otherwise fail;
*/
#include "bbs.h"
#include <stdlib.h>
#include "externs.h"
#include "nocem.h"
//#define PGP5
#undef PGP5
#undef PGP2
int ncmdebug = 0;
char NCMVER[8];
char ISSUER[STRLEN];
char T... | bencrox/hkday-pttbbs | innbbsd/nocem.c | C | gpl-2.0 | 14,082 |
/* { dg-additional-options "-fopenacc-kernels=decompose" } */
/* Hopefully, this is the same issue as '../../../gcc/testsuite/c-c++-common/goacc/kernels-decompose-ice-1.c'.
{ dg-ice "TODO" }
TODO { dg-prune-output "during GIMPLE pass: omplower" }
TODO { dg-do link } */
#undef KERNELS_DECOMPOSE_ICE_HACK
#inclu... | Gurgel100/gcc | libgomp/testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c | C | gpl-2.0 | 339 |
/*
* check_paused_dir.c - Part of AFD, an automatic file distribution program.
* Copyright (c) 1996 - 2008 Deutscher Wetterdienst (DWD),
* Holger Kiehl <Holger.Kiehl@dwd.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gene... | hfs/afd | src/amg/check_paused_dir.c | C | gpl-2.0 | 9,592 |
//------------------------------------------------------------------------------
// Copyright (c) 2009-2010 Atheros Corporation. All rights reserved.
//
//
// 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 ... | andi34/kernel_samsung_espresso-cm | drivers/staging/ath6kl/os/linux/export_hci_transport.c | C | gpl-2.0 | 4,996 |
/* 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... | oscardagrach/n910v_mm_oscar_kernel | drivers/thermal/msm_thermal.c | C | gpl-2.0 | 83,637 |
/*
* purestg2.so - Stargazer authentication plugin for pppd
* Copyright (C) 2006-2014 Alexey Osipov <public@alexey.osipov.name>
*
* Based on:
* passmysql.so - MySQL authentication plugin for pppd
* Copyright (C) 2004, 2003 McMCC <mcmcc@mail.ru>
*
* This program is free software; you can redistribute it and/or m... | lion-simba/purestg2 | pppd/purestg2.c | C | gpl-2.0 | 11,721 |
/* ************************************************************************** */
/* */
/* Copyright (C) 2000-2008 Cédric Auger (cedric@grisbi.org) */
/* 2003-2008 Benjamin Drieu (bdrieu@april.org) */... | philippedelorme/grisbi | src/navigation.c | C | gpl-2.0 | 78,788 |
/* CalculiX - A 3-dimensional finite element program */
/* Copyright (C) 1998-2019 Guido Dhondt */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU General Public License as */
/* pub... | prool/ccx_prool | CalculiX/ccx_2.16/src/ccx_2.16.c | C | gpl-2.0 | 51,534 |
/*
* linux/mm/compaction.c
*
* Memory compaction for the reduction of external fragmentation. Note that
* this heavily depends upon page migration to do all the real heavy
* lifting
*
* Copyright IBM Corp. 2007-2010 Mel Gorman <mel@csn.ul.ie>
*/
#include <linux/swap.h>
#include <linux/migrate.h>
#include <linux... | bsmitty83/Kernel_Tuna_AOSP | mm/compaction.c | C | gpl-2.0 | 22,436 |
/*
* Copyright (c) 2000 Silicon Graphics, Inc. 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 is distributed in the hope that it w... | rickgaiser/linux-2.4.17-ps2 | fs/xfs/linux/xfs_dmistubs.c | C | gpl-2.0 | 1,976 |
/*
Copyright (C) 2003-2008 FreeIPMI Core Team
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, or (at your option)
any later version.
This program is distributed in the ... | ystk/debian-freeipmi | common/src/toolcommon/tool-sdr-cache-common.c | C | gpl-2.0 | 107,862 |
/*
* fs/proc/vmcore.c Interface for accessing the crash
* dump from the system's previous life.
* Heavily borrowed from fs/proc/kcore.c
* Created by: Hariprasad Nellitheertha (hari@in.ibm.com)
* Copyright (C) IBM Corporation, 2004. All rights reserved
*
*/
#include <linux/mm.h>
#include <linux/p... | Jackeagle/android_kernel_sony_c2305 | fs/proc/vmcore.c | C | gpl-2.0 | 18,739 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
unsigned char *read_buffer(char *file_name, size_t *size_ptr)
{
FILE *f;
unsigned char *buf;
size_t size;
/* Open file */
f = fopen(file_name, "rb");
if (!f)
return NULL;
/* ... | xianggong/m2c_unit_test | test/operator/relational_greater_than_char2char2/relational_greater_than_char2char2_bin.c | C | gpl-2.0 | 11,325 |
/*
* ircd-ratbox: A slightly useful ircd.
* m_post.c: Exits the user if unregistered, it is a web form.
*
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
* Copyright (C) 1996-2002 Hybrid Development Team
* Copyright (C) 2002-2005 ircd-ratbox development team
*
* This program is fre... | ahf/ircd-ratbox | modules/m_post.c | C | gpl-2.0 | 2,294 |
#include "quakedef.h"
#include "progsvm.h"
#include "clprogdefs.h"
#include "csprogs.h"
#include "cl_collision.h"
#include "snd_main.h"
#include "clvm_cmds.h"
#include "prvm_cmds.h"
//============================================================================
// Client prog handling
//[515]: omg !!! optimize it ! a l... | mbasaglia/darkplaces | csprogs.c | C | gpl-2.0 | 41,909 |
/*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#include "ql4_def.h"
#include "ql4_glbl.h"
#include "ql4_dbg.h"
#include "ql4_inline.h"
void qla4xxx_dump_buffer(void *b, uint32_t size)
{
uint32_t cnt;
uint... | jeffegg/beaglebone | drivers/scsi/qla4xxx/ql4_dbg.c | C | gpl-2.0 | 5,471 |
/******************************************************************************
Copyright(c) 2004 Intel Corporation. All rights reserved.
Portions of this file are based on the WEP enablement code provided by the
Host AP project hostap-drivers v0.1.3
Copyright (c) 2001-2002, SSH Communications Security Corp a... | evolver56k/xpenology | drivers/staging/rtl8187se/ieee80211/ieee80211_wx.c | C | gpl-2.0 | 20,926 |
/*
* host bridge related code
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/module.h>
#include "pci.h"
static struct pci_bus *find_pci_root_bus(struct pci_dev *dev)
{
struct pci_bus *bus;
bus = dev->bus;
while (bus->parent)
bus = bus->parent;
return bus;
}
sta... | kofemann/linux-redpatch | drivers/pci/host-bridge.c | C | gpl-2.0 | 2,110 |
/*
* Copyright (c) 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
* the rights to use, copy, modify, merge, publish, dist... | linux-scraping/linux-grsecurity | drivers/gpu/drm/ttm/ttm_page_alloc.c | C | gpl-2.0 | 23,605 |
/*
* nfmail.c - write a note with text from a saved mail message
*
* This file is part of the Newts notesfile system.
* Copyright (C) 2003, 2004, 2005 Tyler Berry.
*
* Newts 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 Sof... | tylerberry/newts | clients/frontends/nfmail.c | C | gpl-2.0 | 9,159 |
/*
*
* Copyright 2001 Mission Critical Linux, Inc.
*
* All Rights Reserved.
*/
/*
* Stonith module for APC Master Switch (AP9211)
*
* Copyright (c) 2001 Mission Critical Linux, Inc.
* author: mike ledoux <mwl@mclinux.com>
* author: Todd Wheeling <wheeling@mclinux.com>
* mangled by Sun Jiang Dong, <sunjd@cn.... | mcclung/glue | lib/plugins/stonith/apcmaster.c | C | gpl-2.0 | 19,552 |
/*
* Copyright (c) 2010 Broadcom Corporation
*
* 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 "AS IS" AND THE AUTHO... | flaming-toast/linux-jeyu | drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | C | gpl-2.0 | 193,255 |
/**
******************************************************************************
* @file ADC/ADC_RegularConversion_Interrupt/Src/stm32f4xx_hal_msp.c
* @author MCD Application Team
* @version V1.0.1
* @date 09-October-2015
* @brief HAL MSP module.
*****************************************... | kamfor/STMF4 | STM/Projects/STM32469I_EVAL/Examples/ADC/ADC_RegularConversion_Interrupt/Src/stm32f4xx_hal_msp.c | C | gpl-2.0 | 4,830 |
#include <pygobject.h>
void empathy_register_classes (PyObject *d);
DL_EXPORT(void) initempathy(void);
extern PyMethodDef empathy_functions[];
DL_EXPORT(void)
initempathy(void)
{
PyObject *m, *d;
init_pygobject ();
m = Py_InitModule ("empathy", empathy_functions);
d = PyModule_GetDict (m);
empathy_register... | gcorvala/gsoc2008 | python/pyempathy/pyempathymodule.c | C | gpl-2.0 | 438 |
/****************************************************************************
*
* The MIT License (MIT)
*
* Copyright (c) 2014 - 2020 Vivante Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*... | Freescale/kernel-module-imx-gpu-viv | kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_sync.c | C | gpl-2.0 | 10,640 |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 Alexander Larsson
*
* 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... | GNOME/dia | objects/standard/arc.c | C | gpl-2.0 | 34,536 |
/*****************************************************************************
* common.c: misc common functions
*****************************************************************************
* Copyright (C) 2003-2011 x264 project
*
* Authors: Loren Merritt <lorenm@u.washington.edu>
* Laurent Aimar <fenri... | Kovensky/x264-audio | common/common.c | C | gpl-2.0 | 47,415 |
/*
* Copyright (c) 2006 Oracle. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree, or t... | Core2idiot/Kernel-Samsung-3.0...- | net/rds/bind.c | C | gpl-2.0 | 7,390 |
/*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail 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; either version 2 of the License, or
* (at your o... | pmillerchip/firejail | src/firejail/macros.c | C | gpl-2.0 | 6,365 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* $Id: test_upnp.c 265 2006-08-27 17:53:14Z r3mi $
*
* Testing of UPnP classes.
* This file is part of djmount.
*
* (C) Copyright 2005-2006 Rémi Turboult <r3mi@users.sourceforge.net>
*
* Part derived from libupnp example (libupnp/upnp/s... | pacificIT/djmount | djmount/test_upnp.c | C | gpl-2.0 | 12,875 |
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright 2007-2008, Marta Carbone, Luigi Rizzo
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, mai... | Distrotech/asterisk | channels/console_board.c | C | gpl-2.0 | 9,777 |
/* GStreamer
* Copyright (C) 2005 Stefan Kost <ensonic@users.sf.net>
*
* gstchildproxy.c: interface for multi child elements
*
* 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; eith... | teamfx/openjfx-8u-dev-rt | modules/media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstchildproxy.c | C | gpl-2.0 | 15,842 |
/*
* Copyright (C) 2008 Google, Inc.
* Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
*... | BSydz/WIP-MTDEV-CM9-Kernel | arch/arm/mach-msm/devices-msm7x30.c | C | gpl-2.0 | 25,173 |
/*
* drivers/cpufreq/cpufreq_conservative.c
*
* Copyright (C) 2001 Russell King
* (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
* Jun Nakajima <jun.nakajima@intel.com>
* (C) 2009 Alexander Clouter <alex@digriz.org.uk>
*
* This program is free softw... | TeamGlide/LiteKernel | drivers/cpufreq/cpufreq_conservative.c | C | gpl-2.0 | 16,766 |
/*
* LIRC driver for Windows Media Center Edition USB Infrared Transceivers
*
* (C) by Martin A. Blatter <martin_a_blatter@yahoo.com>
*
* Transmitter support and reception code cleanup.
* (C) by Daniel Melander <lirc@rajidae.se>
*
* Original lirc_mceusb driver for 1st-gen device:
* Copyright (c) 2003-2004 Dan ... | zenwheel/lirc | drivers/lirc_mceusb/lirc_mceusb.c | C | gpl-2.0 | 38,444 |
/*
Copyright (C) 2004-2011 John E. Davis
This file is part of the S-Lang Library.
The S-Lang 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; either version 2 of the
License, or (at your option) any later... | parke/slang | src/slsearch.c | C | gpl-2.0 | 19,473 |
/*
* random.c -- A strong random number generator
*
* Copyright Matt Mackall <mpm@selenic.com>, 2003, 2004, 2005
*
* Copyright Theodore Ts'o, 1994, 1995, 1996, 1997, 1998, 1999. All
* rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... | oSaiYa/linux-sh4 | drivers/char/random.c | C | gpl-2.0 | 51,297 |
/*
* Copyright (C) 2007-2012 Martin Willi
* Copyright (C) 2012 revosec AG
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the Li... | vapana/client | src/libcharon/plugins/eap_gtc/eap_gtc.c | C | gpl-2.0 | 6,749 |
/*
* Copyright (C) 2003-2009 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... | azuwis/mpd | src/notify.c | C | gpl-2.0 | 1,438 |
/*
* Interplay MVE Video Decoder
* Copyright (C) 2003 the ffmpeg project
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Li... | jcmcclurg/serverpower | unused/transcoders/libav-11.4/libavcodec/interplayvideo.c | C | gpl-2.0 | 31,546 |
/*
* Write byte from file for OSCA FLOS
*
* Stefano Bodrato - March 2012
*
* Not user callable - internal LIB routine
*
* $Id: writebyte.c,v 1.1 2012/03/21 10:20:23 stefano Exp $
*/
//#include <fcntl.h>
// "stdio.h" contains definition for EOF
//#include <stdio.h>
#include <flos.h>
int writebyte(int myfile, ... | bitfixer/bitfixer | dg/z88dk/libsrc/fcntl/osca/flosmulti/writebyte.c | C | gpl-2.0 | 748 |
/*
*
* 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 l... | anthony-kolesov/arc_ltp | testcases/kernel/syscalls/chown/chown05.c | C | gpl-2.0 | 4,721 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011 Advanced Micro Devices, 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 ... | XVilka/coreboot | src/southbridge/amd/cimx/sb800/bootblock.c | C | gpl-2.0 | 3,241 |
/*
* Copyright (C) 1995-2003 Russell King
* 2001-2002 Keith Owens
*
* Generate definitions needed by assembly language modules.
* This code generates raw asm output which is post-processed to extract
* and format the required data.
*
* This program is free software; you can redistribute it an... | jazzsir/iamroot-linux-arm10c | arch/arm/kernel/asm-offsets.c | C | gpl-2.0 | 8,946 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.