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
/* This file is part of the GNU plotutils package. Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2005, 2008, Free Software Foundation, Inc. The GNU plotutils package is free software. You may redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free S...
nolta/biggles
plotutils/libplot/p_openpl.c
C
gpl-2.0
1,529
/* * Implement driver of AML1216 PMU * Author: chunjian.zheng@amlogic.com * */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/types.h> #include <linux/device.h> #include <linux/workqueue.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/power_supply.h> #include <lin...
ndufresne/linux-meson
drivers/amlogic/power/aml_pmu/aml1216-sply.c
C
gpl-2.0
54,800
/*Qualcomm Secure Execution Environment Communicator (QSEECOM) driver * * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * Copyright (c) 2014 Sony Mobile Communications Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public...
Tommy-Geenexus/android_kernel_sony_msm8974_togari_5.x
drivers/misc/qseecom.c
C
gpl-2.0
127,582
/* * misc.c -- contains generic purposes routines * Part of the GNU netcat project * * Author: Giovanni Giacobbi <giovanni@giacobbi.net> * Copyright (C) 2002 - 2004 Giovanni Giacobbi * * $Id: misc.c,v 1.38 2004-10-24 01:33:57 themnemonic Exp $ */ /**************************************************************...
thinker0/netcat-code
src/misc.c
C
gpl-2.0
15,444
/* arch/sparc64/kernel/process.c * * Copyright (C) 1995, 1996, 2008 David S. Miller (davem@davemloft.net) * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be) * Copyright (C) 1997, 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ /* * This file handles the architecture-dependent parts of process handli...
lexmar93/Siyah-i777
arch/sparc/kernel/process_64.c
C
gpl-2.0
20,624
/* Copyright (c) 2010, 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...
OMFGBKANG/nk2
drivers/video/msm/mipi_novatek.c
C
gpl-2.0
8,891
/* BFD library support routines for the Pico Java architecture. Copyright 1999, 2000, 2001 Free Software Foundation, Inc. Hacked by Steve Chamberlain of Transmeta. sac@pobox.com This file is part of BFD, the Binary File Descriptor library. This program is free software; you can redistribute it and/or modify it ...
durandj/devkitadv
binutils-2.13.2.1/bfd/cpu-pj.c
C
gpl-2.0
2,254
/* * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ /* $Id: var.c,v 1.144 2010/05/30 00:50:35 russ Exp $ */ #include "nc.h" #include <stdlib.h> #include <string.h> #include <assert.h> #include <limits.h> #include "ncx.h"...
qingu/WRF-Libraries
src/netcdf-4.2/libsrc/var.c
C
gpl-2.0
13,742
/*********************************************************************************** Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. (c) Copyright 1996 - 2002 Gary Henderson (gary.henderson@ntlworld.com), Jerremy Koot (jkoot@snes9x.com) (c) Copyright 2002 - 200...
cy33hc/Snes9xVITA
src/tile.c
C
gpl-2.0
40,652
/* * Driver for keys on GPIO lines capable of generating interrupts. * * Copyright 2005 Phil Blundell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/modu...
skelton/G5_444
drivers/input/keyboard/rk29_keys.c
C
gpl-2.0
15,726
/* * fs/f2fs/dir.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 version 2 as * published by the Free Software Foundation. */ #include <li...
krash86/android_kernel_google_pixel
fs/f2fs/dir.c
C
gpl-2.0
22,307
#include "IDR_parameter_estimation.h" double RationalApproximation(double t) { // Abramowitz and Stegun formula 26.2.23. // The absolute value of the error should be less than 4.5 e-4. double c[] = {2.515517, 0.802853, 0.010328}; double d[] = {1.432788, 0.189269, 0.001308}; return t - ((c[2]*t + c[...
nboley/idr
idr/IDR_parameter_estimation.c
C
gpl-2.0
12,938
/* * This file is part of the coreboot project. * * Copyright (C) 2007 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 version 2 as * published by the Free Software Foundation. * * This program is distr...
michaelforney/coreboot
src/northbridge/amd/lx/raminit.c
C
gpl-2.0
23,082
/* * 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...
farchanrifai/kernel_cancro
kernel/sched/core.c
C
gpl-2.0
211,841
/* ----> DO NOT REMOVE THE FOLLOWING NOTICE <---- Copyright (c) 2014-2021 Tuxera US Inc. All Rights Reserved Worldwide. 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 ...
datalightinc/reliance-edge
os/u-boot/services/osuidgid.c
C
gpl-2.0
3,857
/* * tkWinKey.c -- * * This file contains X emulation routines for keyboard related * functions. * * Copyright (c) 1995 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * * RCS: @(#) $Id: tkWinKey.c 144...
SayCV/tools-SourceNavigator-NG
tk/win/tkWinKey.c
C
gpl-2.0
20,098
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
ngcurrier/ProteusCFD
TPLs/hdf5/hdf5-1.10.2/test/ttime.c
C
gpl-3.0
7,602
/* =========================================================================== Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. This file is part of Spearmint Source Code. Spearmint Source Code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
zturtleman/spearmint
code/qcommon/bsp_fakk.c
C
gpl-3.0
15,066
/* * Generated by asn1c-0.9.24 (http://lionet.info/asn1c) * From ASN.1 module "InformationElements" * found in "../asn/InformationElements.asn" * `asn1c -fcompound-names -fnative-types` */ #include "DefaultConfigForCellFACH.h" static asn_TYPE_member_t asn_MBR_DefaultConfigForCellFACH_1[] = { { ATF_NOFLAGS, 0,...
BramBonne/snoopsnitch-pcapinterface
contrib/libosmo-asn1-rrc/src/DefaultConfigForCellFACH.c
C
gpl-3.0
2,536
/* LPCUSB, an USB device driver for LPC microcontrollers Copyright (C) 2006 Bertrik Sikken (bertrik@sikken.nl) 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 a...
seandepagnier/openmag
src/hacks/lpc214xusb/usbstdreq.c
C
gpl-3.0
12,068
/* -*- buffer-read-only: t -*- vi: set ro: */ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ /* Set file access and modification times. Copyright (C) 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License...
SmartisanTech/T1Tar
gnu/fdutimensat.c
C
gpl-3.0
2,082
/**CFile**************************************************************** FileName [bacWriteVer.c] SystemName [ABC: Logic synthesis and verification system.] PackageName [Hierarchical word-level netlist.] Synopsis [Verilog writer.] Author [Alan Mishchenko] Affiliation [UC Berkeley] Dat...
Kinghsy/Approxiamate-Logic-Synthesis
lib/abc/src/base/bac/bacWriteVer.c
C
gpl-3.0
26,470
/* Unix SMB/CIFS implementation. Samba kpasswd implementation Copyright (c) 2005 Andrew Bartlett <abartlet@samba.org> Copyright (c) 2016 Andreas Schneider <asn@samba.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
ceph/samba
source4/kdc/kpasswd-service.c
C
gpl-3.0
9,054
/* shquote - functions to quote and dequote strings */ /* Copyright (C) 1999-2015 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre...
JINWOO-J/bash_history
lib/sh/shquote.c
C
gpl-3.0
9,037
/* * Generated by asn1c-0.9.24 (http://lionet.info/asn1c) * From ASN.1 module "InformationElements" * found in "../asn/InformationElements.asn" * `asn1c -fcompound-names -fnative-types` */ #include "InterFreqCellInfoSI-List-HCS-RSCP.h" static asn_TYPE_member_t asn_MBR_InterFreqCellInfoSI_List_HCS_RSCP_1[] = { ...
E3V3A/snoopsnitch
contrib/libosmo-asn1-rrc/src/InterFreqCellInfoSI-List-HCS-RSCP.c
C
gpl-3.0
2,870
/** ****************************************************************************** * @file spi_if.c * @author MCD Application Team * @version V4.0.0 * @date 21-January-2013 * @brief specific media access Layer for SPI flash *************************************************************************...
virtmedia/ultramicron
STM32_USB-FS-Device_Lib_V4.0.0/Projects/Device_Firmware_Upgrade/src/spi_if.c
C
gpl-3.0
3,905
/* Copyright 1990-2011, Jsoftware Inc. All rights reserved. */ /* License in license.txt. */ /* */ /* Adverbs: Reduce (Insert) and Outer Product */ #include "j.h" #include "vasm.h" #i...
jaredlwong/gdj
src/ar.c
C
gpl-3.0
24,724
/*-------------------------------------------------------------------- (C) Copyright 2006-2012 Barcelona Supercomputing Center Centro Nacional de Supercomputacion This file is part of Mercurium C/C++ source-to-source compiler. See AUTHORS file in the top level directory for informa...
robbriggs/masters-project-mercurium
tests/01_parser.dg/success_140.c
C
gpl-3.0
2,361
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief Entry point to the representation of a whole program. * @author Goetz Lindenmaier, Michael Beck * @date 2000 */ #include "ident_t.h" #include "irprog_t.h" #include "irgraph_t.h" #include "array.h" ...
8l/libfirm
ir/ir/irprog.c
C
lgpl-2.1
6,142
/* * Copyright(C) 1999-2020 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * See packages/seacas/LICENSE for details */ /***************************************************...
BalticPinguin/libmesh
contrib/exodusii/v8.11/exodus/test/testrdd.c
C
lgpl-2.1
26,769
/* * SpanDSP - a series of DSP components for telephony * * at_interpreter_tests.c - Tests for the AT interpreter. * * Written by Steve Underwood <steveu@coppice.org> * * Copyright (C) 2004, 2005, 2006 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or ...
litalidev/sipxtapi
sipXmediaLib/contrib/spandsp-0.0.6/tests/at_interpreter_tests.c
C
lgpl-2.1
40,079
/* tracked memory * * 2/11/99 JC * - from im_open.c and callback.c * - malloc tracking stuff added * 11/3/01 JC * - im_strncpy() added * 20/4/01 JC * - im_(v)snprintf() added * 6/7/05 * - more tracking for DEBUGM * 20/10/06 * - return NULL for size <= 0 * 11/5/06 * - abort() on malloc() failure with D...
leiyangyou/libvips
libvips/iofuncs/memory.c
C
lgpl-2.1
11,074
/** @file patest_in_overflow.c @ingroup test_src @brief Count input overflows (using paInputOverflow flag) under overloaded and normal conditions. This test uses the same method to overload the stream as does patest_out_underflow.c -- it generates sine waves until the cpu load exceeds a certain level. H...
litalidev/sipxtapi
sipXmediaLib/contrib/portaudio_v19/test/patest_in_overflow.c
C
lgpl-2.1
8,430
/* This file is an image processing operation for GEGL * * GEGL 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 3 of the License, or (at your option) any later version. * * GEGL ...
LebedevRI/gegl
operations/external/matting-levin.c
C
lgpl-3.0
50,657
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
renard314/tess-two
tess-two/jni/com_googlecode_leptonica_android/src/prog/pngio_reg.c
C
apache-2.0
16,963
#include <string.h> #include "csf.h" #include "csfimpl.h" static const char * const openModes[3] = { S_READ, S_WRITE, S_READ_WRITE }; /* Return the access mode of m * MopenPerm returns the permission. * Note that M_WRITE is deprecated */ enum MOPEN_PERM MopenPerm( const MAP *m) { return m->fileAccessMode; ...
jwoyame/node-gdal
deps/libgdal/gdal/frmts/pcraster/libcsf/mopen.c
C
apache-2.0
5,336
/* * Copyright (c) 2012 - 2018, Nordic Semiconductor ASA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this ...
punitvara/zephyr
ext/hal/nordic/nrfx/hal/nrf_nvmc.c
C
apache-2.0
3,630
/* coding.c * * Copyright (C) 2006-2017 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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...
weolar/miniblink49
third_party/wolfssl/wolfcrypt/src/coding.c
C
apache-2.0
12,914
/* * Copyright (c) 2019 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <device.h> #include <drivers/sensor.h> #include <stdio.h> #include <sys/util.h> #ifdef CONFIG_LIS2DW12_TRIGGER static int lis2dw12_trig_cnt; static void lis2dw12_trigger_handler(const struct device ...
galak/zephyr
samples/shields/x_nucleo_iks01a3/sensorhub/src/main.c
C
apache-2.0
7,860
#include "treecheck.h" #include "ast.h" #include <stdbool.h> #include <stdio.h> #include <assert.h> typedef enum { CHK_OK, // Tree found and check CHK_NOT_FOUND, // Possible AST node ids not found CHK_ERROR // Error has occurred } check_res_t; typedef struct check_state_t { bool is_scope; bool ...
darach/ponyc
src/libponyc/ast/treecheck.c
C
bsd-2-clause
5,673
/* * board-devkit8000.c - TimLL Devkit8000 * * Copyright (C) 2009 Kim Botherway * Copyright (C) 2010 Thomas Weber * * Modified from mach-omap2/board-omap3beagle.c * * Initial code: Syed Mohammed Khasim * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Ge...
andrewjylee/omniplay
linux-lts-quantal-3.5.0/arch/arm/mach-omap2/board-devkit8000.c
C
bsd-2-clause
19,247
/* * libEtPan! -- a mail stuff library * * Copyright (C) 2001, 2005 - DINH Viet Hoa * 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 a...
disaykin/libetpan
src/low-level/pop3/mailpop3_socket.c
C
bsd-3-clause
4,758
/* * pattern.c: Implemetation of the template match compilation and lookup * * Reference: * http://www.w3.org/TR/1999/REC-xslt-19991116 * * See Copyright for the status of this software. * * daniel@veillard.com */ /* * TODO: handle pathological cases like *[*[@a="b"]] * TODO: detect [number] at compilatio...
scheib/chromium
third_party/libxslt/src/libxslt/pattern.c
C
bsd-3-clause
72,020
/* * Licensed Materials - Property of IBM * * trousers - An open source TCG Software Stack * * (C) Copyright International Business Machines Corp. 2005, 2007 * */ #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <inttypes.h> #include "trousers/tss.h" #include "trousers/t...
cooljeanius/trousers-0.3.11.2
src/tspi/obj_rsakey.c
C
bsd-3-clause
51,730
/* * linux/net/sunrpc/svcsock.c * * These are the RPC server socket internals. * * The server scheduling algorithm does not always distribute the load * evenly when servicing a single client. May need to modify the * svc_xprt_enqueue procedure... * * TCP support is largely untested and may be a little slow. Th...
FrostedKernel/android_kernel_htc_msm8960
net/sunrpc/svcsock.c
C
gpl-2.0
44,290
#include <stdio.h> int main(){ int i,temp,j,n[13]; char cur; printf("Enter cards: \n"); for(i=0;i<13;i++){ scanf("%s",&cur); if(cur>='2'&&cur<='9') n[i]=cur-'0'; else switch(cur){ case 'A': n[i]=14; break; case 'K': n[i]=13...
vincho7012/po-homework
2015-2016/A/25/03/task3.c
C
mit
1,073
#include "board.h" #include "mw.h" // driver for SUMD receiver using UART2 #define SUMD_SYNCBYTE 0xA8 #define SUMD_MAX_CHANNEL 8 #define SUMD_BUFFSIZE (SUMD_MAX_CHANNEL * 2 + 5) // 6 channels + 5 -> 17 bytes for 6 channels static bool sumdFrameDone = false; static void sumdDataReceive(uint16_t c); static ...
oroca/SkyRover_Projects
Firmware/SkyRover_Rev1/src/sumd.c
C
mit
1,955
/* * mutex7n.c * * * -------------------------------------------------------------------------- * * Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems * Copyright(C) 2008 Jason Schmidlapp * * Contact Email: jschmidlapp@users.sourceforge.net * * * Based upon Pthreads-win...
LugosFingite/LudOS
userland/test_programs/pthread_tests/mutex7n.c
C
mit
3,158
/* pam_mail module */ /* * $Id: pam_env.c,v 1.2 2000/11/19 23:54:03 agmorgan Exp $ * * Written by Dave Kinchlea <kinch@kinch.ark.com> 1997/01/31 * Inspired by Andrew Morgan <morgan@parc.power.net, who also supplied the * template for this file (via pam_mail) */ #ifndef DEFAULT_CONF_FILE #define DEFAULT_CONF_FI...
impedimentToProgress/UCI-BlueChip
snapgear_linux/lib/libpam/modules/pam_env/pam_env.c
C
mit
22,393
/* * rwlock5_t.c * * * -------------------------------------------------------------------------- * * Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems * Copyright(C) 2008 Jason Schmidlapp * * Contact Email: jschmidlapp@users.sourceforge.net * * * Based upon Pthreads-w...
LugosFingite/LudOS
userland/test_programs/pthread_tests/rwlock5_t.c
C
mit
2,945
/* cpuinfo.h - parsing of /proc/cpuinfo for OpenCL device info Copyright (c) 2012 Pekka Jääskeläinen 2013 Kalle Raiskila 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 Sof...
jrprice/pocl
lib/CL/devices/cpuinfo.c
C
mit
9,864
/* linux/arch/arm/plat-s5p/bootmem.c * * Copyright (c) 2009 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * Bootmem helper functions * * 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 ...
tchaari/android_kernel_samsung_crespo
arch/arm/plat-s5p/bootmem.c
C
gpl-2.0
3,366
/* * pci.c - Low-Level PCI Access in IA-64 * * Derived from bios32.c of i386 tree. * * (c) Copyright 2002, 2005 Hewlett-Packard Development Company, L.P. * David Mosberger-Tang <davidm@hpl.hp.com> * Bjorn Helgaas <bjorn.helgaas@hp.com> * Copyright (C) 2004 Silicon Graphics, Inc. * * Note: Above list of copyri...
rockly703/linux-2.6.18
arch/ia64/pci/pci.c
C
gpl-2.0
20,230
/*************************************************************************/ /*! @File apollo.c @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved @License Dual MIT/GPLv2 The contents of this file are subject to the MIT license as set out below. Permission is hereby grante...
oguz298/FTL-Kernel
drivers/external_drivers/intel_media/graphics/rgx/kernel/drivers/staging/imgtec/apollo.c
C
gpl-2.0
43,510
/* * This source code is part of * * G R O M A C S * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2009, The GROMACS Development Team * * Gromacs is a library for molecular simulation and trajectory analysis, * written by Er...
tectronics/force-distribution-analysis.gromacs-4-5-3
src/gmxlib/nonbonded/nb_kernel_power6/nb_kernel222_power6.c
C
gpl-2.0
5,939
/* Copyright (c) 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 hope th...
NitroKK/kernel_lge_iproj
drivers/media/video/msm_vidc/msm_vdec.c
C
gpl-2.0
24,141
/* Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Anatoly Sokolov (aesok@post.ru) This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eit...
SanDisk-Open-Source/SSD_Dashboard
uefi/gcc/gcc-4.6.3/gcc/config/avr/avr-devices.c
C
gpl-2.0
17,374
/* * ALSA driver for Intel ICH (i8x0) chipsets * * Copyright (c) 2000 Jaroslav Kysela <perex@suse.cz> * * * This code also contains alpha support for SiS 735 chipsets provided * by Mike Pieper <mptei@users.sourceforge.net>. We have no datasheet * for SiS735, so the code is not fully functional. * * *...
foxsat-hdr/linux-kernel
sound/pci/intel8x0.c
C
gpl-2.0
82,144
/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries * FILE: lib/msvcrt/mbstring/mbsncpy.c * PURPOSE: Copies a string to a maximum of n bytes or characters * PROGRAMERS: * Copyright 1999 Ariadne * Copyright 1999 Alexandre Julliard ...
rickerliang/reactos-mirror2
lib/sdk/crt/mbstring/mbsncpy.c
C
gpl-2.0
3,273
/* * Simple IO scheduler plus * Based on Noop, Deadline and V(R) IO schedulers. * * Copyright (C) 2012 Miguel Boton <mboton@gmail.com> * (C) 2013 Boy Petersen <boypetersen@gmail.com> * * * This algorithm does not do any kind of sorting, as it is aimed for * aleatory access devices, but it does some basic ...
dtrail/JBX_Kernel
block/sioplus-iosched.c
C
gpl-2.0
11,594
/* Copyright (C) 2002-2017 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 License as published b...
norov/glibc
nptl/pthread_condattr_destroy.c
C
gpl-2.0
1,045
/* * Core driver for TI TPS6586x PMIC family * * Copyright (c) 2010 CompuLab Ltd. * Mike Rapoport <mike@compulab.co.il> * * Based on da903x.c. * Copyright (C) 2008 Compulab, Ltd. * Mike Rapoport <mike@compulab.co.il> * Copyright (C) 2006-2008 Marvell International Ltd. * Eric Miao <eric.miao@marvell.com> * ...
OESF/linux-linaro-natty
drivers/mfd/tps6586x.c
C
gpl-2.0
14,972
/** * \file drm_info.c * DRM info file implementations * * \author Ben Gamari <bgamari@gmail.com> */ /* * Created: Sun Dec 21 13:09:50 2008 by bgamari@gmail.com * * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. * Copyright 2008 Ben ...
gao-feng/net
drivers/gpu/drm/drm_info.c
C
gpl-2.0
8,073
/* * Common pmac/prep/chrp pci routines. -- Cort */ #include <linux/config.h> #include <linux/kernel.h> #include <linux/pci.h> #include <linux/delay.h> #include <linux/string.h> #include <linux/init.h> #include <linux/capability.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/bootmem.h> #includ...
ipwndev/DSLinux-Mirror
linux-2.6.x/arch/ppc/kernel/pci.c
C
gpl-2.0
50,660
/* * net/sched/mirred.c packet mirroring and redirect actions * * 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...
fizista/Dorimanx-SG2-I9100-Kernel
net/sched/act_mirred.c
C
gpl-2.0
6,905
/**************************************************************************** * * The MIT License (MIT) * * Copyright (c) 2014 - 2016 Vivante Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), *...
NathanAtSamraksh/dart-linux
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c
C
gpl-2.0
101,223
/* * * Copyright (c) International Business Machines Corp., 2002 * * 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...
liaoqingwei/ltp
testcases/kernel/syscalls/ipc/msgctl/msgctl07.c
C
gpl-2.0
7,153
/* DB API */ #include "csync2.h" #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <time.h> #include "db_api.h" #include "db_mysql.h" #include "db_postgres.h" #include "db_sqlite.h" #include "db_sqlite2.h" #define DEADLOCK_MESSAGE \ "Database backend is ...
rvanlaar/csync2
db_api.c
C
gpl-2.0
6,423
// SPDX-License-Identifier: GPL-2.0-only // SPDX-FileCopyrightText: © 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix #include <common.h> #include <command.h> #include <errno.h> #include <getopt.h> #include <fs.h> #include <fcntl.h> #include <envfs.h> static int do_saveenv(int argc, char *argv[]) { int ret, ...
masahir0y/barebox-yamada
commands/saveenv.c
C
gpl-2.0
1,559
/* * lib/crypto/prf.c * * Copyright (C) 2004 by the Massachusetts Institute of Technology. * All rights reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. * It is the responsibility of any person or organization contemp...
nmacs/lm3s-uclinux
lib/libkrb5/lib/crypto/prf.c
C
gpl-2.0
2,638
/* GStreamer * Copyright (C) 2009 Edward Hervey <edward.hervey@collabora.co.uk> * 2009 Nokia Corporation * * 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...
pli3/gst-plugins-base
gst-libs/gst/pbutils/gstdiscoverer.c
C
gpl-2.0
50,643
/* * Common Flash Interface support: * Intel Extended Vendor Command Set (ID 0x0001) * * (C) 2000 Red Hat. GPL'd * * $Id: cfi_cmdset_0001.c,v 1.186 2005/11/23 22:07:52 nico Exp $ * * * 10/10/2000 Nicolas Pitre <nico@cam.org> * - completely revamped method functions so they are aware and * independent o...
janrinze/loox7xxport
drivers/mtd/chips/cfi_cmdset_0001.c
C
gpl-2.0
71,499
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <dirent.h> #include <signal.h> #include "config.h" #include <config/autoconf.h> /* This little program is a wrapper for the ssh key-gen program ...
rhuitl/uClinux
user/ssh/gen-keys.c
C
gpl-2.0
3,620
/* * Block driver for media (i.e., flash cards) * * Copyright 2002 Hewlett-Packard Company * Copyright 2005-2008 Pierre Ossman * * Use consistent with the GNU GPL is permitted, * provided that this copyright notice is * preserved in its entirety in all copies and derived works. * * HEWLETT-PACKARD COMPANY MAK...
bgn9000/ShunS4
drivers/mmc/card/block.c
C
gpl-2.0
80,790
/* * event tracer * * Copyright (C) 2008 Red Hat Inc, Steven Rostedt <srostedt@redhat.com> * * - Added format output of fields of the trace point. * This was based off of work by Tom Zanussi <tzanussi@gmail.com>. * */ #include <linux/workqueue.h> #include <linux/spinlock.h> #include <linux/kthread.h> #incl...
AOSP-Jaguar/android_kernel_sony_msm8974
kernel/trace/trace_events.c
C
gpl-2.0
38,396
/******************************************************************************* * * Module Name: utmisc - common utility procedures * ******************************************************************************/ /* * Copyright (C) 2000 - 2004, R. Byron Moore * All rights reserved. * * Redistribution and use...
fzqing/linux-2.6
drivers/acpi/utilities/utmisc.c
C
gpl-2.0
37,531
//***************************************************************************** // // watchdog.c - Driver for the Watchdog Timer Module. // // Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Redistribution and use in source and binary forms, wi...
jhnphm/xbs_xbd
platforms/ek-tm4c129exl_16mhz/hal/tivaware/driverlib/watchdog.c
C
gpl-3.0
20,701
/****************************************************************************! * _ _ _ _ * * | |__ _ __ / \ | |_| |__ ___ _ __ __ _ * * | '_ \| '__/ _ \| __| '_ \ / _ \ '_ \ / _` | * * ...
Jeeffrey/brAthena
src/common/thread.c
C
gpl-3.0
7,607
/* GIO - GLib Input, Output and Streaming Library * * Copyright © 2008 codethink * Copyright © 2009 Red Hat, Inc. * * 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 * versio...
endlessm/glib
gio/giostream.c
C
lgpl-2.1
27,199
/* * Copyright (C) 2011-2012 Free Software Foundation, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * ...
foxban/libvirt-0.9.12-centos5
gnulib/tests/test-ffs.c
C
lgpl-2.1
1,698
/* radare - LGPL - Copyright 2008-2016 - nibble, pancake */ // TODO: rename to r_anal_meta_get() ?? #if 0 TODO ==== - handle sync to synchronize all the data on disk. - actually listing only works in memory - array_add doesnt needs index, right? - remove unused arguments from r_meta_find (where...
killabytenow/radare2
libr/anal/meta.c
C
lgpl-3.0
16,930
/* $NetBSD: field_types.c,v 1.7 2006/03/19 20:02:27 christos Exp $ */ /*- * Copyright (c) 1998-1999 Brett Lymn * (blymn@baea.com.au, brett_lymn@yahoo.com.au) * All rights reserved. * * This code has been donated to The NetBSD Foundation by the Author. * * Redistribution and use in source...
ayyucedemirbas/Minix-Source-Code
minix-master/lib/libform/field_types.c
C
apache-2.0
6,405
/*====================================================================* - Copyright (C) 2001 Leptonica. All rights reserved. - This software is distributed in the hope that it will be - useful, but with NO WARRANTY OF ANY KIND. - No author or distributor accepts responsibility to anyone for the - consequence...
deekoder/tess_two
tess-two/jni/com_googlecode_leptonica_android/src/prog/bak/dwamorph1_reg.c
C
apache-2.0
7,457
#include <stdio.h> #include "utlist.h" typedef struct el { int id; struct el *next, *prev; } el; el *head = NULL; int eltcmp(el *a, el *b) {return a->id - b->id;} int main(int argc, char *argv[]) { int i; el els[10], *e, *tmp, *tmp2; for(i=0;i<10;i++) els[i].id='a'+i; /* test LL macros */ ...
cheyiliu/uthash
tests/test42.c
C
bsd-2-clause
1,671
/* * 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...
mxOBS/deb-pkg_trusty_chromium-browser
third_party/ffmpeg/libavutil/buffer.c
C
bsd-3-clause
9,226
/* * Derived from startup code originally published by Jakub Piotr Cłapa, * Copyright (c) 2010 LoEE under the new BSD license. * * See also: http://bitbucket.org/jpc/lpc1768/ * * NVIC handler names from NXP UM10360, comments taken from Opendous Inc. under * the following license: * * Permission to use, copy, m...
openxc/vi-firmware
src/platform/lpc17xx/startup.c
C
bsd-3-clause
11,224
#include <stdint.h> #include <strings.h> #include "stinger_core/stinger.h" #include "stinger_core/stinger_atomics.h" #include "stinger_core/xmalloc.h" #include "stinger_core/stinger_error.h" #include "stinger_net/stinger_alg.h" #include "stinger_utils/timer.h" void update_rates(stinger_registered_alg * a, int64_t nv,...
ogreen/stinger
src/clients/algorithms/rate_monitor/src/rate_monitor.c
C
bsd-3-clause
2,828
/* * Copyright (c) 2016 QLogic Corporation. * All rights reserved. * www.qlogic.com * * See LICENSE.qede_pmd for copyright and licensing details. */ #include "bcm_osal.h" #include "reg_addr.h" #include "ecore_hsi_common.h" #include "ecore_hsi_eth.h" #include "ecore_rt_defs.h" #include "ecore_status.h" #include "...
ipdcode/skydns
kdns/dpdk-17.02/drivers/net/qede/base/ecore_cxt.c
C
mit
63,790
/** * \file * * \brief Default descriptors for a USB Device with a single interface MSC * * Copyright (c) 2009-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided t...
femtoio/femto-usb-blink-example
blinky/common/services/usb/class/msc/device/udi_msc_desc.c
C
mit
6,236
/* Copyright (c) 2013, Kenneth MacKay Copyright (c) 2014, Emergya (Cloud4all, FP7/2007-2013 grant agreement n° 289016) 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 mu...
cgvarela/passenger
src/cxx_supportlib/vendor-copy/libuv/src/unix/android-ifaddrs.c
C
mit
19,863
/* ** Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/os/linux/gl_init.c#11 */ /*! \file gl_init.c \brief Main routines of Linux driver This file contains the main routines of Linux driver for MediaTek Inc. 802.11 Wireless LAN Adapters. */ /* ** Log: gl_init.c ** ** 04 21 2014 eason.tsai ** ...
JonnyXDA/android_kernel_ulefone_metal
drivers/misc/mediatek/connectivity/wlan/gen3/os/linux/gl_init.c
C
gpl-2.0
98,578
/** * Copyright (c) 2016 Anup Patel. * 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, or (at your option) * any later version. * * This progra...
xvisor/xvisor
libs/wboxtest/threads/mutex2.c
C
gpl-2.0
5,155
/* Implementation of the RESHAPE intrinsic Copyright (C) 2002-2017 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 Genera...
itsimbal/gcc.cet
libgfortran/generated/reshape_r4.c
C
gpl-2.0
9,582
/* * linux/fs/lockd/svclock.c * * Handling of server-side locks, mostly of the blocked variety. * This is the ugliest part of lockd because we tread on very thin ice. * GRANT and CANCEL calls may get stuck, meet in mid-flight, etc. * IMNSHO introducing the grant callback into the NLM protocol was one * of the wo...
jkoelndorfer/android-kernel-msm
fs/lockd/svclock.c
C
gpl-2.0
24,827
/* * felica_common.c * */ /* * INCLUDE FILES FOR MODULE */ #include <linux/wakelock.h> #include "felica_common.h" /* * DEFINE */ /* * INTERNAL DEFINITION */ static struct wake_lock felica_wake_lock; #ifdef FELICA_LED_SUPPORT static struct wake_lock felica_rfs_wake_lock; #e...
Skin1980/Kexec-kk-kernel-G3
drivers/felica/felica_common.c
C
gpl-2.0
4,443
/* * TCP Illinois congestion control. * Home page: * http://www.ews.uiuc.edu/~shaoliu/tcpillinois/index.html * * The algorithm is described in: * "TCP-Illinois: A Loss and Delay-Based Congestion Control Algorithm * for High-Speed Networks" * http://www.ews.uiuc.edu/~shaoliu/papersandslides/liubassri06perf.pdf ...
tmatsuya/milkymist-linux
net/ipv4/tcp_illinois.c
C
gpl-2.0
8,335
/* * iSNS object model - storage node * * Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com> */ #include <stdlib.h> #include <string.h> #include <time.h> #include "isns.h" #include "objects.h" #include "util.h" isns_object_t * isns_create_storage_node(const char *name, uint32_t type, isns_object_t *parent) ...
frank-fegert/debian_open-iscsi
utils/open-isns/storage-node.c
C
gpl-2.0
4,868
/* Copyright (c) 2011-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...
ashwinr64/android_kernel_motorola_msm8952
drivers/platform/msm/sps/sps_bam.c
C
gpl-2.0
63,883
/* * (C) Copyright 2002 * Gary Jennejohn, DENX Software Engineering, <garyj@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 Public License as * published by the F...
onealtom/craneboard-uboot
board/trab/trab.c
C
gpl-2.0
11,011
/* AFS superblock handling * * Copyright (c) 2002, 2007 Red Hat, Inc. All rights reserved. * * This software may be freely redistributed under the terms of the * GNU General Public License. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free...
nandra/omap_850_kernel
fs/afs/super.c
C
gpl-2.0
12,257