code stringlengths 1.03k 250k | repo_name stringlengths 7 70 | path stringlengths 4 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 1.03k 250k |
|---|---|---|---|---|---|
/*
** $Id: lbaselib.c 1752 2005-01-01 21:31:49Z andi75 $
** Basic library
** See Copyright Notice in lua.h
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lbaselib_c
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
/*
** If your system does not support `stdout... | sugao516/gltron-code | lua5/lib/lbaselib.c | C | gpl-2.0 | 17,908 |
#include <stdio.h>
#include <net/ethernet.h>
#include <arpa/inet.h>
#include "ethernet.h"
void ethernet_print_mac (const uint8_t ether_dhost[ETH_ALEN]) {
for (int i = 0; i < (ETH_ALEN - 1); i ++) {
fprintf(stdout, "%x:", ether_dhost[i]);
}
fprintf(stdout, "%x", ether_dhost[ETH_ALEN - 1]);
}
void... | lukhio/NSA | src/ethernet.c | C | gpl-2.0 | 1,479 |
/*
* libslack - http://libslack.org/
*
* Copyright (C) 1999-2010 raf <raf@raf.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 la... | marko-asplund/daemon | libslack/daemon.c | C | gpl-2.0 | 50,003 |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... | renolui/RenoStudio | Player/firmware/target/arm/imx31/uart-imx31.c | C | gpl-2.0 | 2,050 |
/*
* linux/kernel/hrtimer.c
*
* 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 Gleixner
*
* High-resolution kernel timers
*
* In contrast to the low-resolution timeout API implemented in
* ... | 12019/Dorimanx-SG2-I9100-Kernel | kernel/hrtimer.c | C | gpl-2.0 | 49,191 |
/*
* fbcon.c
*
* Copyright (C) 2012 Andrei Warkentin <andreiw@msalumni.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | andreiw/xen3-arm-tegra | xen/drivers/char/fbcon.c | C | gpl-2.0 | 4,939 |
/* GStreamer
* Copyright (C) <2009> Collabora Ltd
* @author: Olivier Crete <olivier.crete@collabora.co.uk
* Copyright (C) <2009> Nokia Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software F... | MathieuDuponchelle/Gst-plugins-bad---soundtouch-0.11 | sys/shm/gstshmsrc.c | C | gpl-2.0 | 11,920 |
/* 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... | hiepgia/kernel_hlte_lollipop | sound/soc/codecs/wcd9320.c | C | gpl-2.0 | 239,657 |
/*
* Samsung Exynos5 SoC series FIMC-IS driver
*
* exynos5 fimc-is video functions
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd
*
* 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 Fo... | meizuosc/m35x | drivers/media/video/exynos/fimc-is-mc2/fimc-is-device-flite.c | C | gpl-2.0 | 29,793 |
#include "stdarg.h"
#include "include/console.h"
static int x = 0;
static int y = 0;
static char* video = (char*) 0xb8000;
static int kprintf_res = 0;
static void kputc(char c)
{
if ((c == '\n') || (x > 79)) {
x = 0;
y++;
}
if (c == '\n') {
return;
}
if (y > 24) {
... | BrightSet/NamelessOS | console.c | C | gpl-2.0 | 2,228 |
/*
*
* RIL library with GLib integration
*
* Copyright (C) 2008-2011 Intel Corporation. All rights reserved.
* Copyright (C) 2012-2014 Canonical Ltd.
* Copyright (C) 2015 Ratchanan Srirattanamet.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Ge... | morphis/ofono | gril/grilrequest.c | C | gpl-2.0 | 28,559 |
/*****************************************************************************
* extract.c : Extract RGB components
*****************************************************************************
* Copyright (C) 2000-2006 the VideoLAN team
* $Id$
*
* Authors: Antoine Cellerier <dionoea .t videolan d@t org>
*
* Th... | MessiahAndrw/Stereoscopic-VLC | modules/video_filter/extract.c | C | gpl-2.0 | 29,174 |
/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
* Copyright (c) 2012, LGE Inc.
*
* 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 progr... | Kaik541/kernel_lge_gee | arch/arm/mach-msm/lge/j1/board-j1-gpu.c | C | gpl-2.0 | 5,733 |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | AreaScout/vice-gles2 | src/lib/libffmpeg/libavcodec/x86/fft_init.c | C | gpl-2.0 | 2,200 |
#if defined(LISP) || defined(JAVA)
/*****************************************************************************
* PROJECT: New Millennium
*
* (c) Copyright 1996 Reid Simmons. All rights reserved.
*
* FILE: ipcLisp.c
*
* ABSTRACT: Functions needed specifically for LISP version of IPC.
* The idea is... | kralf/carmen | src/lib/core/ipc/ipcLisp.c | C | gpl-2.0 | 22,867 |
/** @file
Main file for DrvCfg shell Driver1 function.
Copyright (c) 2010 - 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 th... | miguelinux/vbox | src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c | C | gpl-2.0 | 46,459 |
/*
* botmsg.c -- handles:
* formatting of messages to be sent on the botnet
* sending different messages to different versioned bots
*
* by Darrin Smith (beldin@light.iinet.net.au)
*/
/*
* Copyright (C) 1997 Robey Pointer
* Copyright (C) 1999 - 2022 Eggheads Development Team
*
* This program is free softw... | eggheads/eggdrop | src/botmsg.c | C | gpl-2.0 | 24,581 |
/*
* $Id: ftshadow.c 9689 2012-09-16 08:28:37Z andijahja $
*/
/*
* Harbour Project source code:
* NF functions: FT_SHADOW(), FT_SETATTR()
*
* Copyright 2007 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*
* www - http://www.harbour-project.org
*
* This program is free software; you can redistribute it an... | xharbour/core | contrib/libnf/ftshadow.c | C | gpl-2.0 | 2,577 |
/*
* File: el_string.c
* Copyright: (c)2015 Gerrard de Jonge <development.gdj@netvisit.nl>
* License: GPLv2 (see file COPYING)
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "el_defs.h"
#include "el_string.h"
///
///
///
///
void clearMarker(char * s, ch... | gerrarddejonge/el-calc | src/el_string.c | C | gpl-2.0 | 2,995 |
#include "rstp.h"
#include "swsock.h"
#include "switch.h"
#include <sys/time.h>
pthread_t mgmt_thread;
pthread_t recv_thread;
pthread_t sig_thread;
LIST_HEAD(registered_interfaces);
pthread_mutex_t list_lock;
extern char rstp_queue_name[32];
extern unsigned int checkGlobalConditions(struct rstp_interface *);
stru... | lisa-project/lisa-user | userspace/rstp/rstpd.c | C | gpl-2.0 | 8,422 |
/*
* ACPI PCI HotPlug PCI configuration space management
*
* Copyright (c) 1995,2001 Compaq Computer Corporation
* Copyright (c) 2001 Greg Kroah-Hartman (greg@kroah.com)
* Copyright (c) 2001,2002 IBM Corp.
* Copyright (c) 2002 Takayoshi Kochi (t-kochi@bq.jp.nec.com)
* Copyright (c) 2002 Hiroshi Aono (h-aono@ap.j... | nslu2/linux-2.4.x | drivers/hotplug/acpiphp_pci.c | C | gpl-2.0 | 17,606 |
/*
The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
Copyright (C) 2001,2002,2003 Aymeric MOIZARD jack@atosc.org
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 Foun... | z3bu/AH4222 | userapps/opensource/siproxd/libosip2/src/osipparser2/osip_port.c | C | gpl-2.0 | 15,818 |
#include <linux/module.h>
#include <linux/video_output.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/ctype.h>
MODULE_DESCRIPTION("Display Output Switcher Lowlevel Control Abstraction");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Luming Yu <luming.yu@intel.com>");
static ssize_t video_output_show_stat... | luckasfb/OT_903D-kernel-2.6.35.7 | kernel/drivers/video/output.c | C | gpl-2.0 | 2,551 |
/*
* SELinux NetLabel Support
*
* This file provides the necessary glue to tie NetLabel into the SELinux
* subsystem.
*
* Author: Paul Moore <paul.moore@hp.com>
*
*/
/*
* (c) Copyright Hewlett-Packard Development Company, L.P., 2007, 2008
*
* This program is free software; you can redistribute it and/or mo... | Core2idiot/Kernel-Samsung-3.0...- | security/selinux/netlabel.c | C | gpl-2.0 | 12,634 |
#include <linux/module.h>
#include <linux/timex.h>
#include <linux/capability.h>
#include <linux/clocksource.h>
#include <linux/errno.h>
#include <linux/syscalls.h>
#include <linux/security.h>
#include <linux/fs.h>
#include <linux/math64.h>
#include <linux/ptrace.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
... | luckasfb/OT_903D-kernel-2.6.35.7 | kernel/kernel/time.c | C | gpl-2.0 | 11,972 |
#include "openbios/config.h"
#include "openbios/bindings.h"
#include "asm/types.h"
/* program counter */
extern ucell PC;
extern unsigned char *dict;
extern cell dicthead;
extern ucell *last;
struct eregs {
uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi;
uint32_t vector;
... | tycho/openbios | arch/x86/exception.c | C | gpl-2.0 | 2,010 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2012 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 ... | kakaroto/coreboot | src/mainboard/amd/olivehill/BiosCallOuts.c | C | gpl-2.0 | 7,500 |
/*
* Copyright 2005-2013 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... | bluechiptechnology/Rx3_linux_3.0.35_4.0.0 | drivers/media/video/mxc/capture/adv7180.c | C | gpl-2.0 | 37,027 |
/*
* Dummy LL interface for the Gigaset driver
*
* Copyright (c) 2009 by Tilman Schmidt <tilman@imap.cc>.
*
* =====================================================================
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License ... | Jackeagle/android_kernel_sony_c2305 | drivers/isdn/gigaset/dummyll.c | C | gpl-2.0 | 1,582 |
/*------------------------------------------------------------------------
* Step length estimation by parabolic line search for the AC case
*
* D. Koehn
* Kiel, 12.06.2017
* ----------------------------------------------------------------------*/
#include "fd.h"
float step_length_est_ac(struct waveAC *waveAC,... | daniel-koehn/DENISE-Black-Edition | src/AC/step_length_est_ac.c | C | gpl-2.0 | 5,896 |
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005-2014 Simon Howard
//
// 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... | WarlockD/crispy-doom | src/doom/f_wipe.c | C | gpl-2.0 | 5,197 |
// Copyright (C) 2009 Nexell Co., All Rights Reserved
// Nexell Co. Proprietary & Confidential
//
// NEXELL INFORMS THAT THIS CODE AND INFORMATION IS PROVIDED "AS IS" BASE
// AND WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING
// BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND... | byungbok/webcon-kernel | arch/arm/mach-nxp2120/nx_timer.c | C | gpl-2.0 | 42,587 |
/*
* panel-context-menu.c: context menu for the panels
*
* Copyright (C) 2004 Vincent Untz
*
* 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 you... | fanpenggogo/mate-panel-new | mate-panel/panel-context-menu.c | C | gpl-2.0 | 10,975 |
/*
* Copyright (C) 2009 PANTECH, Co. Ltd.
*
* 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 it will be... | lolhi/No.5-Kernel | arch/arm/mach-msm/pantech_debug.c | C | gpl-2.0 | 6,654 |
#ifndef lint
// static char rcsid[] = "$ StrToPmap.c <thoth>, what a hack $";
#endif /* lint */
/*
This resource converter assumes the default visual.
You can change this by setting the integer variable
Xfwf_StringToPixmap_AssumeDefaultVisual to 0.
This will activate code that exercises a bug in the A... | xtforever/xtcw | lib/StrToPmap.c | C | gpl-2.0 | 9,839 |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... | renolui/RenoStudio | Player/lib/rbcodec/codecs/wmavoice.c | C | gpl-2.0 | 6,718 |
/* 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... | dagnarf/i957kernel | arch/arm/mach-msm/subsystem_restart.c | C | gpl-2.0 | 13,570 |
/*
* linux/drivers/sound/pxa-ac97.c -- AC97 interface for the Cotula chip
*
* Author: Nicolas Pitre
* Created: Aug 15, 2001
* Copyright: MontaVista Software Inc.
*
* 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
* ... | rickgaiser/linux-2.4.17-ps2 | drivers/sound/pxa-ac97.c | C | gpl-2.0 | 8,133 |
/* linux/arch/arm/plat-s3c64xx/dev-spi.c
*
* Copyright (C) 2009 Samsung Electronics Ltd.
* Jaswinder Singh <jassi.brar@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundat... | wangxingchao/s3c6410 | arch/arm/mach-s3c64xx/dev-spi.c | C | gpl-2.0 | 4,101 |
/*
* Copyright (c) 2015-2016 Cray Inc. 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... | spud93/libfabric | prov/gni/test/mr.c | C | gpl-2.0 | 38,650 |
/*
* SPI init/core code
*
* Copyright (C) 2005 David Brownell
* Copyright (C) 2008 Secret Lab Technologies 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 Foundation; either version 2 of the ... | bossino/dra-kernel | drivers/spi/spi.c | C | gpl-2.0 | 48,207 |
#include <linux/module.h>
#include <linux/vermagic.h>
#include <linux/compiler.h>
MODULE_INFO(vermagic, VERMAGIC_STRING);
struct module __this_module
__attribute__((section(".gnu.linkonce.this_module"))) = {
.name = KBUILD_MODNAME,
.init = init_module,
#ifdef CONFIG_MODULE_UNLOAD
.exit = cleanup_module,
#endif
.a... | qubir/PhoenixA20_linux_sourcecode | drivers/input/touchscreen/gt82x.mod.c | C | gpl-2.0 | 2,170 |
/*
* wm8958-dsp2.c -- WM8958 DSP2 support
*
* Copyright 2011 Wolfson Microelectronics plc
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.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 th... | evolver56k/xpenology | sound/soc/codecs/wm8958-dsp2.c | C | gpl-2.0 | 28,174 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_any.c :+: :+: :+: ... | EpicWAX/Piscine-C | j10/ex03/ft_any.c | C | gpl-2.0 | 1,030 |
/*
* linux/mm/slab.c
* Written by Mark Hemment, 1996/97.
* (markhe@nextd.demon.co.uk)
*
* kmem_cache_destroy() + some cleanup - 1999 Andrea Arcangeli
*
* Major cleanup, different bufctl logic, per-cpu arrays
* (c) 2000 Manfred Spraul
*
* Cleanup, make the head arrays unconditional, preparation for NUMA
* (c... | giorgio130/KK_kernel | mm/slab.c | C | gpl-2.0 | 126,785 |
#include "slalib.h"
#include "slamac.h"
#include <string.h>
void slaDeuler ( char *order, double phi, double theta,
double psi, double rmat[3][3] )
/*
** - - - - - - - - - -
** s l a D e u l e r
** - - - - - - - - - -
**
** Form a rotation matrix from the Euler angles - three successive
** rotati... | ryandougherty/mwa-capstone | MWA_Tools/CONV2UVFITS/SLALIB_C/deuler.c | C | gpl-2.0 | 4,381 |
/*
* gc.c - graphics context (GC) routines for Resurrection.
* Copyright (C) 2003 Tuomo Venäläinen
*
* See the file COPYING for information about using this software.
*/
#include <Resurrection/Resurrection.h>
#define RTERM_SCREEN_DEFAULT_FONT "fixed"
#if 0
GC
imageview_create_gc(Rimageview_t *imageview)
{
G... | vendu/Resurrection | lib/Rterm/gc.c | C | gpl-2.0 | 9,670 |
/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
* Copyright (c) 2013, Illes Pal Zoltan @tbalden - blink_buttons mod
*
* 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... | zarboz/Monarudo_M7_port | drivers/leds/leds-pm8921.c | C | gpl-2.0 | 31,306 |
/*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
*/
#include <vmm_compiler.h>
#include <vmm_stdio.h>
#include <vmm_error.h>
#include <cpu_interrupts.h>
#include <vmm_host_aspace.h>
#include <arch_regs.h>
#include <libs/kallsyms.h>
#include <stacktrace.h>
#include... | kevinzhang1986/xvisor | arch/x86/cpu/x86_64/dumpstack_64.c | C | gpl-2.0 | 7,652 |
/*
*
* Copyright (C) 2011 Novell Inc.
*
* 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/fs.h>
#include <linux/slab.h>
#include <linux/file.h>
#include <linux... | kavishme/kvm | fs/overlayfs/copy_up.c | C | gpl-2.0 | 9,741 |
/*
* blacklist.c
*
* Check to see if the given machine has a known bad ACPI BIOS
* or if the BIOS is too old.
* Check given machine against acpi_osi_dmi_table[].
*
* Copyright (C) 2004 Len Brown <len.brown@intel.com>
* Copyright (C) 2002 Andy Grover <andrew.grover@intel.com>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~... | DirtyDev/DirtyKernel-ANDROID | drivers/acpi/blacklist.c | C | gpl-2.0 | 10,722 |
/*
* $Id$
*
* Copyright (C) 2008 Stanislav Sinyagin
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This... | pf3gnuchains/urjtag | src/cmd/cmd_usleep.c | C | gpl-2.0 | 1,838 |
/* This file is part of the Zebra server.
Copyright (C) Index Data
Zebra 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.
Zebra is distributed in the ho... | indexdata/idzebra | dfa/grepper.c | C | gpl-2.0 | 11,478 |
/* $Id: //depot/sw/releases/Aquila_9.2.0_U10/linux/kernels/mips-linux-2.6.31/drivers/isdn/sc/interrupt.c#1 $
*
* Copyright (C) 1996 SpellCaster Telecommunications Inc.
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
* ... | emuikernel/WNR2000v4 | git_home/linux-2.6.git/drivers/isdn/sc/interrupt.c | C | gpl-2.0 | 6,377 |
/*
* fs/nfs/nfs4state.c
*
* Client-side XDR for NFSv4.
*
* Copyright (c) 2002 The Regents of the University of Michigan.
* All rights reserved.
*
* Kendrick Smith <kmsmith@umich.edu>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... | ysat0/linux-ysato | fs/nfs/nfs4state.c | C | gpl-2.0 | 59,945 |
/*
* IRC - Internet Relay Chat, ircd/s_bsd.c
* Copyright (C) 1990 Jarkko Oikarinen and
* University of Oulu, Computing Center
*
* 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 Foun... | dnetcode/dnet-1.0 | ircd/s_bsd.c | C | gpl-2.0 | 34,789 |
/*
* 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.
*
* Note: This test is not based on ... | rogerq/ltp-ddt | testcases/open_posix_testsuite/conformance/interfaces/clock_settime/speculative/4-4.c | C | gpl-2.0 | 3,602 |
/*
* linux/kernel/timer.c
*
* Kernel internal timers, basic process system calls
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* 1997-01-28 Modified by Finn Arne Gangstad to make timers scale better.
*
* 1997-09-10 Updated NTP code according to technical memorandum Jan '96
* "A Kernel Mod... | KryptonOmni/android_kernel_lge_mako | kernel/timer.c | C | gpl-2.0 | 50,313 |
/*
* =====================================================================================
*
* Filename: netfunc.c
*
* Description: net exchange functions.
*
* Version: 1.0
* Created: 07/13/13 12:19:55
* Revision: none
* Compiler: gcc
*
* Author: Li Xiang (g... | lixiangbest/c | unp/03/netfunc.c | C | gpl-2.0 | 2,661 |
/*
silcunixsocketstream.c
Author: Pekka Riikonen <priikone@silcnet.org>
Copyright (C) 1997 - 2008 Pekka Riikonen
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 Licens... | silc/runtime | lib/silcutil/unix/silcunixsocketstream.c | C | gpl-2.0 | 9,530 |
/*
* Performance events core code:
*
* Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de>
* Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar
* Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com>
* Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com>
*
* For licens... | chaubeyprateek/Hyper_Kernel_Redmi2 | kernel/events/core.c | C | gpl-2.0 | 186,118 |
#include "ofgwrite.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <getopt.h>
#include <libubi.h>
#include <syslog.h>
#include <unistd.h>
#include <libmtd.h>
#include <errno.h>
#include <mtd/mtd-abi.h>
int getFlashType(char* device)
{
libmtd_t libmtd = l... | oe-alliance/ofgwrite | flash_ubi_jffs2.c | C | gpl-2.0 | 5,660 |
/*
* killspam.c -- an enhanced part innbbsd of Firebird BBS 3.0
*
* A part of SEEDNetBBS generation 1
*
* Copyright (c) 1998, 1999, Edward Ping-Da Chuang <edwardc@firebird.dhs.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... | marvelliu/lilacsrc | innbbsd/killspam.c | C | gpl-2.0 | 13,025 |
/* LAPD over datagram user-mode example. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/logging.h>
#include <osmocom/c... | osmocom/libosmo-netif | examples/lapd-over-datagram-user.c | C | gpl-2.0 | 5,441 |
/*
* PowerNV OPAL high level interfaces
*
* Copyright 2011 IBM Corp.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later ve... | JPRasquin/Ubuntu14.04 | arch/powerpc/platforms/powernv/opal.c | C | gpl-2.0 | 13,370 |
/*
* Epson Blizzard LCD controller driver
*
* Copyright (C) 2004-2005 Nokia Corporation
* Authors: Juha Yrjola <juha.yrjola@nokia.com>
* Imre Deak <imre.deak@nokia.com>
* YUV support: Jussi Laako <jussi.laako@nokia.com>
*
* This program is free software; you can redistribute it and/or modify... | umeshkrishnan/pb-bugbase-kernel | drivers/video/omap/blizzard.c | C | gpl-2.0 | 43,420 |
/*
*
* $Id: pvrusb2-tuner.c,v 1.1.1.1 2010/03/11 21:07:26 kris Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... | fgoncalves/Modified-TS7500-Kernel | drivers/media/video/pvrusb2/pvrusb2-tuner.c | C | gpl-2.0 | 3,287 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* Mutter X property convenience routines */
/*
* Copyright (C) 2001 Havoc Pennington
* Copyright (C) 2002 Red Hat Inc.
*
* Some trivial property-unpacking code from Xlib:
* Copyright 1987, 1988, 1998 The Open Group
* Copyright 1988 by Wyse... | GNOME/mutter | src/x11/xprops.c | C | gpl-2.0 | 33,286 |
/*
* Copyright (c) 2003, Brent Fulgham <bfulgham@debian.org>
*
* This source code is released for free distribution under the terms of the
* GNU General Public License version 2 or (at your option) any later version.
*
* This module contains functions for generating tags for Erlang language
* files. Some of ... | p-montanus/ctags | parsers/erlang.c | C | gpl-2.0 | 4,920 |
/*
* linux/mm/vmscan.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
*
* Swap reorganised 29.12.95, Stephen Tweedie.
* kswapd added: 7.1.96 sct
* Removed kswapd_ctl limits, and swap out as many pages as needed
* to bring the system back to freepages.high: 2.4.97, Rik van Riel.
* Zone aware k... | arpitjain9819/FIRE-AND-FLAMES | mm/vmscan.c | C | gpl-2.0 | 96,926 |
/*
* kernel/sched/core.c
*
* Kernel scheduler and related syscalls
*
* Copyright (C) 1991-2002 Linus Torvalds
*
* 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and
* make semaphores SMP safe
* 1998-11-19 Implemented schedule_timeout() and related stuff
* by Andrea Arcangeli
* 2002-01... | Validus-Lollipop/android_kernel_motorola_msm8960dt-common | kernel/sched/core.c | C | gpl-2.0 | 210,408 |
/*
* drivers/cpufreq/cpufreq_zzmoove.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 software; ... | SamueleCiprietti/nova_kernel | drivers/cpufreq/cpufreq_zzmoove.c | C | gpl-2.0 | 42,911 |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2016 Intel Corporation
*/
#include <stdint.h>
#include <stdio.h>
#include <inttypes.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/queue.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <rte_common.h>
#include <rte_malloc.h... | bisdn/dpdk-dev | examples/multi_process/client_server_mp/mp_client/client.c | C | gpl-2.0 | 6,278 |
/*
*
* Author: Sylvain Afchain <safchain@gmail.com>, (C) 2008 - 2013
*
* Copyright: See COPYING file that comes with this distribution
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <stropts.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/netdevi... | safchain/nnodes | src/librdb/options.c | C | gpl-2.0 | 4,752 |
/*
*
* 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/creat/creat04.c | C | gpl-2.0 | 5,269 |
/******************************************************************************
*
* Copyright(c) 2009-2012 Realtek 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 F... | rkollataj/linux-can-next | drivers/net/wireless/realtek/rtlwifi/usb.c | C | gpl-2.0 | 30,649 |
/*
wlalink - part of wla dx gb-z80/z80/6502/65c02/6510/65816/huc6280/spc-700
macro assembler package by ville helin <vhelin@iki.fi>. this is gpl software.
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "defines.h"
#include "main.h"
#include "memory.h"
#include "files.h"
#... | meesokim/wla-dx | wlalink/main.c | C | gpl-2.0 | 21,741 |
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | thanhphat11/android_kernel_xiaomi_msm8996 | drivers/gpu/msm/adreno_dispatch.c | C | gpl-2.0 | 75,988 |
/* local apic based NMI watchdog for various CPUs.
This file also handles reservation of performance counters for coordination
with other users (like oprofile).
Note that these events normally don't tick when the CPU idles. This means
the frequency varies with CPU load.
Original code for K7/P6 written ... | dduval/kernel-rhel5 | arch/x86_64/kernel/perfctr-watchdog.c | C | gpl-2.0 | 19,966 |
/*
* Copyright (c) 2009-2021, Christian Ferrari <tiian@users.sourceforge.net>
* All rights reserved.
*
* This file is part of LIXA.
*
* LIXA 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.
*... | tiian/lixa | tests/src/case0007.c | C | gpl-2.0 | 3,763 |
/*
* linux/arch/arm/kernel/smp.c
*
* Copyright (C) 2002 ARM Limited, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#incl... | lovers-fancy/SC-05D_Kernel | arch/arm/kernel/smp.c | C | gpl-2.0 | 15,454 |
/*
* 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... | Fechinator/FechdaKernel_V500 | drivers/cpufreq/cpufreq_conservative.c | C | gpl-2.0 | 15,767 |
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "geekcode.h"
#include "lines.h"
#include "parse.h"
const char *parse_errors[] = {
"Success",
"Trailing text in data",
"Missing alias",
"Missing dependant",
"Syntax error",
"Unexpected EOF",
"File error",
};
/*
* Parses the contents of data in... | masterdriverz/geekcode | parse.c | C | gpl-2.0 | 2,988 |
#include "xineCommon.h"
#include "xineLib.h"
namespace PluginXine
{
static eKeys KeyMap[] =
{
kNone,
kUp,
kDown,
kMenu,
kOk,
kBack,
kLeft,
kRight,
kRed,
kGreen,
kYellow,
kBlue,
k0, k1, k2, k3, k4, k5, k6, k7, k8, k9,
kPlay,
kPause,
kStop,
k... | mhop/vdr-plugin-xine | xineRemote.c | C | gpl-2.0 | 7,133 |
#include "mv_sas.h"
static struct scsi_transport_template *mvs_stt;
static const struct mvs_chip_info mvs_chips[] = {
[chip_6320] = { 1, 2, 0x400, 17, 16, 9, &mvs_64xx_dispatch, },
[chip_6440] = { 1, 4, 0x400, 17, 16, 9, &mvs_64xx_dispatch, },
[chip_6485] = { 1, 8, 0x800, 33, 32, 10, &mvs_64xx_dispatch, },
[c... | leemgs/OptimusOneKernel-KandroidCommunity | drivers/scsi/mvsas/mv_init.c | C | gpl-2.0 | 16,623 |
/* wmgeneral miscellaneous functions
*
* from dock.c - built-in Dock module for WindowMaker window manager
*
* Copyright (c) 1997 Alfredo K. Kojima
*
* 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 Sof... | d-torrance/wmppp.app | wmgeneral/misc.c | C | gpl-2.0 | 3,763 |
/*
* NETLINK Generic Netlink Family
*
* Authors: Jamal Hadi Salim
* Thomas Graf <tgraf@suug.ch>
* Johannes Berg <johannes@sipsolutions.net>
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
#inc... | Alucard24/Dorimanx-SG2-I9100-Kernel | net/netlink/genetlink.c | C | gpl-2.0 | 22,938 |
#include "TCS3200.h"
#include "HMC.h"
#define tl0 0x00
#define th0 0xB8 //Timer0
void ColorInt()
{
AUXR&= 0x00;
TMOD = 0xE0;
AUXR = 0x14; //T2Ϊ1Tģʽ, ²¢Æô¶¯¶¨Ê±Æ÷2 page 470
AUXR |= 0x01;
}
unsigned int CheckRed()
{
unsigned int Red;
TL0= tl0;
TH0= th0;
TH1= 0;
TL1= 0;
TCS_S2= 0;
TCS_S... | CCluv/CarryMan_STC15 | TCS3200.c | C | gpl-2.0 | 1,404 |
#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/math/asin_float/asin_float_src.c | C | gpl-2.0 | 9,583 |
/*
* Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
* All rights reserved
* www.brocade.com
*
* Linux driver for Brocade Fibre Channel Host Bus Adapter.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License (GPL) Version 2 a... | dduval/kernel-rhel5 | drivers/scsi/bfa/bfa_hw_cb.c | C | gpl-2.0 | 3,907 |
/*
* viunix.c
*
* $Id$
*
* OpenLink Virtuoso VDBMS Server main
*
* This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
* project.
*
* Copyright (C) 1998-2012 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of th... | trueg/virtuoso-opensource | binsrc/virtuoso/viunix.c | C | gpl-2.0 | 18,338 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "defs.h"
#include "protos.h"
#include "globals.h"
FILE * fpgn;
char * pgn;
char * w_pgn;
char * line;
int max_pgn;
char * pos_body;
char * pv;
char fen[64];
char * labels[256];
char * values[256];
int pos_label;
int raw;
char * ... | lukasmonk/lucaschess | LCEngine/irina/pgn.c | C | gpl-2.0 | 13,996 |
/* Copyright (c) 2012-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... | g3tsum/kernel_msm8974 | drivers/video/msm/mdss/mdss_mdp_overlay.c | C | gpl-2.0 | 60,407 |
/*****************************************************************************
* Tuner sample code
*
* History:
* Date Athor Version Reason
* ============ ============= ========= =================
* 1.Apr.29.2010 Version1.0
*****************************************************************************/
//#include "Board... | EPDCenter/android_kernel_amlogic_s805_3go_aplay2 | drivers/amlogic/dvb_tv/avl6211/AV2011/ExtAV2011.c | C | gpl-2.0 | 13,437 |
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1999 Manish Singh <yosh@gimp.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 y... | jdburton/gimp-osx | src/gimp-2.6.12/modules/display-filter-high-contrast.c | C | gpl-2.0 | 8,178 |
/*
* Copyright (C) 2012, Samsung Electronics 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 as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any... | jxxhwy/Thunder-Kenel-JB-N719 | drivers/sensorhub/ssp_firmware.c | C | gpl-2.0 | 6,988 |
/* Copyright (C) 2013-2021 Roland Lutz
AUTOMATICALLY GENERATED FROM data_lineattr.m4 -- DO NOT EDIT
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
... | rlutz/xorn | src/cpython/storage/data_lineattr.c | C | gpl-2.0 | 5,570 |
/*****************************************************************************\
* test7.3.prog.c - Test of "user managed" IO with the slurm_step_launch()
* API function (required for "poe" launch on IBM
* AIX systems).
*
* Usage: test7.3.prog [min_nodes] [max_nodes] [tasks]
*... | grondo/slurm | testsuite/expect/test7.3.prog.c | C | gpl-2.0 | 6,359 |
/*
* linux/kernel/time/timekeeping.c
*
* Kernel timekeeping code and accessor functions
*
* This code was moved from linux/kernel/timer.c.
* Please see that file for copyright and history logs.
*
*/
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/percpu.h>
#include <linux/init.h>
#in... | alebcay/android_kernel_oneplus_msm8974 | kernel/time/timekeeping.c | C | gpl-2.0 | 40,682 |
/*
* kernel/sched/debug.c
*
* Print the CFS rbtree
*
* Copyright(C) 2007, Red Hat, Inc., Ingo Molnar
*
* 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/pro... | daeiron/LG_G3_Kernel | kernel/sched/debug.c | C | gpl-2.0 | 12,811 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.