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
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__short_listen_socket_31.c Label Definition File: CWE197_Numeric_Truncation_Error__short.label.xml Template File: sources-sink-31.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: listen_socket Read data u...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s02/CWE197_Numeric_Truncation_Error__short_listen_socket_31.c
C
bsd-3-clause
5,151
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__src_char_declare_cpy_31.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__src.label.xml Template File: sources-sink-31.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Initialize data ...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s09/CWE121_Stack_Based_Buffer_Overflow__src_char_declare_cpy_31.c
C
bsd-3-clause
2,881
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE761_Free_Pointer_Not_at_Start_of_Buffer__char_file_53c.c Label Definition File: CWE761_Free_Pointer_Not_at_Start_of_Buffer.label.xml Template File: source-sinks-53c.tmpl.c */ /* * @description * CWE: 761 Free Pointer not at Start of Buffer * BadSource: file Re...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE761_Free_Pointer_Not_at_Start_of_Buffer/CWE761_Free_Pointer_Not_at_Start_of_Buffer__char_file_53c.c
C
bsd-3-clause
1,537
// Inferno utils/6c/sgen.c // http://code.google.com/p/inferno-os/source/browse/utils/6c/sgen.c // // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) // Portions Copyright © 1997-1999 Vita Nuova Limited // Portions Copyright © 20...
wwsyxy/golang-on-cygwin
src/cmd/cc/pgen.c
C
bsd-3-clause
11,300
/* sormql.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
eirTony/INDI1
to/lang/OpenCV-2.2.0/3rdparty/lapack/sormql.c
C
mit
9,145
/* High-speed in-memory bit stream I/O that supports reading and writing between 0 and 64 bits at a time. The implementation, which relies heavily on bit shifts, has been carefully written to ensure that all shifts are between zero and one less the width of the type being shifted to avoid undefined behavior. This occ...
tomandersen/gravity
src/zfp/src/inline/bitstream.c
C
mit
11,829
/* * PROJECT: ReactOS Kernel * LICENSE: BSD - See COPYING.ARM in the top level directory * FILE: ntoskrnl/mm/ARM3/expool.c * PURPOSE: ARM Memory Manager Executive Pool Manager * PROGRAMMERS: ReactOS Portable Systems Group */ /* INCLUDES *************************************...
svn2github/reactos
ntoskrnl/mm/ARM3/expool.c
C
gpl-2.0
84,816
/* Java(TM) language-specific gimplification routines. Copyright (C) 2003-2014 Free Software Foundation, Inc. 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; either version 3, or...
Alexpux/GCC
gcc/java/java-gimplify.c
C
gpl-2.0
5,020
/* * u_serial.c - utilities for USB gadget "serial port"/TTY support * * Copyright (C) 2003 Al Borchers (alborchers@steinerpoint.com) * Copyright (C) 2008 David Brownell * Copyright (C) 2008 by Nokia Corporation * Copyright (c) 2009, Code Aurora Forum. All rights reserved. * * This code also borrows from usbser...
securecrt/linux-leo
drivers/usb/gadget/u_serial.c
C
gpl-2.0
37,983
/* $Id: wmme_dev.c 369517 2012-07-01 17:28:57Z file $ */ /* * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as pub...
fluentstream/asterisk-p2p
res/pjproject/pjmedia/src/pjmedia-audiodev/wmme_dev.c
C
gpl-2.0
42,133
/* * Routines having to do with the 'struct sk_buff' memory handlers. * * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk> * Florian La Roche <rzsfl@rz.uni-sb.de> * * Fixes: * Alan Cox : Fixed the worst of the load * balancer bugs. * Dave Platt : Interrupt stacking fix. * Richard Kooijman : Timestamp fixe...
holyangel/LGE_G3
net/core/skbuff.c
C
gpl-2.0
82,993
/* * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/time.h> #include <linux/fs.h> #include <linux/reiserfs_fs.h> #include <linux/reiserfs_acl.h> #include <linux/reiserfs_xattr.h> #include <linux/exportfs.h> #include <linux/smp_lock.h> #include <linux/pagemap.h> #include <linu...
getitnowmarketing/archos_kernel_27
fs/reiserfs/inode.c
C
gpl-2.0
93,390
/* * Copyright (C) 2009 Ivo Clarysse * * Based on imx27ads.c, * Copyright (C) 2007 Sascha Hauer, Pengutronix * * 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 * th...
bbrezillon/barebox
arch/arm/boards/freescale-mx21-ads/imx21ads.c
C
gpl-2.0
4,282
/* * tiny serial helper routines for kgdb * * (C) Copyright 2003 Nucleus Systems, Ltd. <petkan@nucleusys.com> * * Based on George G. Davis <gdavis@mvista.com> work. */ #include <linux/config.h> #include <asm/io.h> #include <asm/hardware/clps7111.h> #if defined(CONFIG_KGDB_UART0) #define KGDB_UART UARTDR1 #d...
robacklin/uclinux-linux
arch/arm/mach-clps711x/kgdb-serial.c
C
gpl-2.0
1,584
/* * event.c Non-thread-safe event handling, specific to a RADIUS * server. * * Version: $Id$ * * 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.1 of t...
simonflood/freeradius-server
src/lib/event.c
C
gpl-2.0
11,152
/* Copyright (c) 2014-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 th...
vegetalte-dev/android_kernel_bq_vegetalte_LP
sound/soc/msm/msm8x16.c
C
gpl-2.0
69,116
/* This code runs some sanity checks on the PAPI_BTAC_M */ /* (Branch Target Address Cache Miss) event. */ /* by Vince Weaver, vweaver1 _at_ eecs.utk.edu */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "papi.h" #include "test_utils.h" int main(int argc, char **argv) { ...
deater/perf_event_tests
papi/papi_btac_m.c
C
gpl-2.0
1,124
/* * This file Copyright (C) Mnemosyne LLC * * This file is licensed by the GPL version 2. Works owned by the * Transmission project are granted a special exemption to clause 2(b) * so that the bulk of its code can remain under the MIT license. * This exemption does not extend to derived works not owned by * the...
biiiep/transmission
gtk/notify.c
C
gpl-2.0
7,914
/* Copyright (c) 2011-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...
CyanogenMod/android_kernel_samsung_d2
sound/soc/msm/msm-pcm-voip.c
C
gpl-2.0
36,166
/* Copyright (C) 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the...
pexip/os-eglibc
ports/sysdeps/unix/sysv/linux/generic/creat.c
C
gpl-2.0
1,309
/* packet-cimd.c * * Routines for Computer Interface to Message Distribution (CIMD) version 2 dissection * * Copyright : 2005 Viorel Suman <vsuman[AT]avmob.ro>, Lucian Piros <lpiros[AT]avmob.ro> * In association with Avalanche Mobile BV, http://www.avmob.com * * Updates : * Sub routines f...
zonque/wireshark
epan/dissectors/packet-cimd.c
C
gpl-2.0
42,022
/* * 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...
shaumux/semc-kernel-qsd8k-jb
drivers/mfd/pm8921-core.c
C
gpl-2.0
21,760
/* packet-rmt-norm.c * Reliable Multicast Transport (RMT) * NORM Protocol Instantiation dissector * Copyright 2005, Stefano Pettini <spettini@users.sourceforge.net> * * Extensive changes to decode more information Julian Onions * * Negative-acknowledgment (NACK)-Oriented Reliable Multicast (NORM): * -----------...
jfzazo/wireshark-hwgen
src/epan/dissectors/packet-rmt-norm.c
C
gpl-2.0
35,589
/* * (C) Copyright 2001 * * 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 Free Software Foundation; either version 2 of * the License, o...
niamster/uboot-marvell-openrd-ultimate
board/sbc405/sbc405.c
C
gpl-2.0
2,968
#include <linux/kernel.h> #include <linux/platform_device.h> #if defined(CONFIG_BATTERY_SAMSUNG) #include "board-sec-bm.h" #include <linux/battery/sec_battery.h> #include <linux/mfd/abx500/ab8500-bm.h> #include <linux/mfd/abx500/ab8500-gpadc.h> #include <linux/usb_switcher.h> #include <linux/input/ab8505_micro_usb_i...
VanirAOSP/kernel_samsung_skomer
arch/arm/mach-ux500/board-codina-battery.c
C
gpl-2.0
18,691
/* * Tlf - contest logging program for amateur radio operators * Copyright (C) 2001-2002-2003 Rein Couperus <pa0rct@amsat.org> * 2011 Thomas Beierlein <tb@forth-ev.deY * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Li...
dl1jbe/tlf
src/calledit.c
C
gpl-2.0
5,357
/* * Block driver for the QCOW version 2 format * * Copyright (c) 2004-2006 Fabrice Bellard * * 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 lim...
AppliedMicro/qemu
block/qcow2.c
C
gpl-2.0
97,697
//***************************************************************************** // All Winner Micro, All Right Reserved. 2007-2012 Copyright (c) // // File name : iep_cmu.c // // Description : Color Management Unit base functions implement for A31 // // History : // 2012/06/01 yuputang v1.0 Initial versio...
EPDCenter/android_kernel_allwinner_a31_unusual
drivers/video/sun6i/disp/de_bsp/iep/cmu/iep_cmu.c
C
gpl-2.0
11,863
/* SPDX-License-Identifier: LGPL-2.1+ */ /*** This file is part of systemd. Copyright 2010 Lennart Poettering systemd 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...
Mic92/systemd
src/basic/exit-status.c
C
gpl-2.0
6,763
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2008 Lennart Poettering <lennart@poettering.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundati...
jigpu/gnome-settings-daemon
plugins/sound/gsd-sound-manager.c
C
gpl-2.0
11,820
/* * linux/drivers/mmc/core/mmc.c * * Copyright (C) 2003-2004 Russell King, All Rights Reserved. * Copyright (C) 2005-2007 Pierre Ossman, All Rights Reserved. * MMCv4 support Copyright (C) 2006 Philip Langdale, All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * i...
demo330/ZTE_MAX_N9520
drivers/mmc/core/mmc.c
C
gpl-2.0
47,571
/*- * Linux port done by David McCullough <david_mccullough@mcafee.com> * Copyright (C) 2006-2010 David McCullough * Copyright (C) 2004-2005 Intel Corporation. * The license and original author are listed below. * * Redistribution and use in source and binary forms, with or without * Copyright (c) 2002-2006 Sam ...
itgb/opCloudRouter
qca/src/linux/crypto/ocf/crypto.c
C
gpl-2.0
47,837
/* * 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...
Cyantist-Arcane9/kernel_cyanogen_msm8916
mm/compaction.c
C
gpl-2.0
36,711
/* objcopy.c -- copy object file from input to output, optionally massaging it. Copyright (C) 1991-2014 Free Software Foundation, Inc. This file is part of GNU Binutils. 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...
ezequielv/binutils-gdb
binutils/objcopy.c
C
gpl-2.0
123,128
/* * stub for bcmsdh.h functions * * $Copyright (C) 2003 Broadcom Corporation$ * * $Id: bcmsdh_stubs.c,v 1.18.402.1 2010-08-27 19:15:41 dlhtohdl Exp $ */ #include <typedefs.h> #include <osl.h> #include <bcmsdh.h> #include <bcmutils.h> struct bcmsdh_info { uint i; /* dummy element stub */ }; bcmsdh_info_t *bc...
de-wolff/android_kernel_motorola_xt320
drivers/net/wireless/bcm4329/bcmsdh_stubs.c
C
gpl-2.0
2,230
/* * Marvell Wireless LAN device driver: CFG80211 * * Copyright (C) 2011, Marvell International Ltd. * * This software file (the "File") is distributed by Marvell International * Ltd. under the terms of the GNU General Public License Version 2, June 1991 * (the "License"). You may use, redistribute and/or modif...
gao-feng/net
drivers/net/wireless/mwifiex/cfg80211.c
C
gpl-2.0
64,672
/* $Header: /cvsroot/lesstif/lesstif/test/Xm/form/test8.c,v 1.8 2002/05/01 15:39:21 amai Exp $ */ #include <stdlib.h> #include <stdio.h> #include <Xm/Xm.h> #include <Xm/PushB.h> #include <Xm/Form.h> #include <Xm/Frame.h> #include <Xm/Label.h> #include <Xm/TextF.h> #include <Xm/SeparatoG.h> #include "../../common/Tes...
melanj/lesstif
test/Xm/form/test8.c
C
gpl-2.0
6,559
/* Copyright (c) 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 hop...
rombaby/android_kernel_xiaomi_redmi2
sound/soc/msm/msm8x16.c
C
gpl-2.0
71,461
/* * acpi_system.c - ACPI System Driver ($Revision: 1.1 $) * * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This program is free sof...
robacklin/ts4700
drivers/acpi/system.c
C
gpl-2.0
14,947
/* * PROJECT: ReactOS Service Control Manager * LICENSE: GPL - See COPYING in the top level directory * FILE: base/system/services/groupdb.c * PURPOSE: Service group control interface * COPYRIGHT: Copyright 2005 Eric Kohl * */ /* INCLUDES ****************************************************...
svn2github/reactos
base/system/services/groupdb.c
C
gpl-2.0
6,231
/* * s5k3h2yx_foxconn camera driver source file * * CopyRight (C) Hisilicon Co., Ltd. * Author : * Version: 1.2 * * 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...
asyan4ik/hwp6s-kernel
drivers/media/video/hik3/capture/s5k3h2yx_foxconn/s5k3h2yx_foxconn.c
C
gpl-2.0
39,046
/* * Asterisk -- An open source telephony toolkit. * * Copyright (c) 2004 - 2005 Tilghman Lesher. All rights reserved. * * Tilghman Lesher <app_verbose_v001@the-tilghman.com> * * This code is released by the author with no restrictions on usage. * * See http://www.asterisk.org for more information about * th...
fluentstream/asterisk-p2p
apps/app_verbose.c
C
gpl-2.0
4,441
/* spectrum.c */ /* This file is part of a program that implements a Software-Defined Radio. Copyright (C) 2004, 2005, 2006 by Frank Brickle, AB2KT and Bob McGwier, N4HY 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 ...
w3sz/ghpsdr3-w3sz
trunk/src/DttSP/spectrum.c
C
gpl-3.0
4,929
/* * Modules * * Copyright 1995 Alexandre Julliard * * Modified for use with MPlayer, detailed changelog at * http://svn.mplayerhq.hu/mplayer/trunk/ * */ // define for quicktime debugging (verbose logging): //#define DEBUG_QTX_API #include "config.h" #include "debug.h" // define for quicktime...
SuperrSonic/WiiMC-SSLC
source/mplayer/loader/module.c
C
gpl-3.0
33,087
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo * This benchmark is part of SWSC */ #include <assert.h> #include <stdint.h> #include <stdatomic.h> #include <pthread.h> atomic_int vars[3]; atomic_int atom_0_r3_0; atomic_int atom_1_r3_0; atomic_int atom_2_r3_0; void *t0(void *arg){ label_1:; atomic_store_e...
nidhugg/nidhugg
tests/litmus/C-tests/3.SB+sync+sync+po.c
C
gpl-3.0
1,876
/* ** Copyright (C) 1999-2016 Erik de Castro Lopo <erikd@mega-nerd.com> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU Lesser General Public License as published by ** the Free Software Foundation; either version 2.1 of the License, or ** (at your option) any...
Shangxz/HackIllinois2017
tone-analysis/libsndfile-1.0.27/src/paf.c
C
gpl-3.0
23,241
/* * 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 "ExpectReordering.h" int ExpectReordering_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_cons...
BramBonne/snoopsnitch-pcapinterface
contrib/libosmo-asn1-rrc/src/ExpectReordering.c
C
gpl-3.0
5,495
/* * This definitions of the PIC18LF1330 MCU. * * This file is part of the GNU PIC library for SDCC, originally * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016. * * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:59 UTC. * * SDCC is licensed under the GNU Public license (GPL)...
dfreniche/cpctelera
cpctelera/tools/sdcc-3.6.8-r9946/src/device/non-free/lib/pic16/libdev/pic18lf1330.c
C
gpl-3.0
6,592
/* * Unix SMB/CIFS implementation. * NetApi User Support * Copyright (C) Guenther Deschner 2008 * * 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...
hef/samba
source3/lib/netapi/user.c
C
gpl-3.0
98,169
/* * 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 "MultipleEUTRAFrequencyInfoExtensionList.h" static asn_per_constraints_t asn_PER_type_MultipleEUTRAFrequencyInfoE...
BramBonne/snoopsnitch-pcapinterface
contrib/libosmo-asn1-rrc/src/MultipleEUTRAFrequencyInfoExtensionList.c
C
gpl-3.0
2,244
/*- * GPL LICENSE SUMMARY * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is...
fatedier/studies
mtcp/dpdk-2.1.0/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
C
gpl-3.0
19,983
/* * 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 "MaxPhysChPerFrame-768.h" int MaxPhysChPerFrame_768_constraint(asn_TYPE_descriptor_t *td, const void *sptr, as...
BramBonne/snoopsnitch-pcapinterface
contrib/libosmo-asn1-rrc/src/MaxPhysChPerFrame-768.c
C
gpl-3.0
5,169
/* RetroArch - A frontend for libretro. * Copyright (C) 2011-2017 - Daniel De Matteis * Copyright (C) 2014-2017 - Jean-André Santoni * Copyright (C) 2016-2019 - Brad Parker * Copyright (C) 2018 - Alfredo Monclús * Copyright (C) 2018 - natinusala * Copyright (C) 2019 - Patrick Scheurenbrand ...
orbea/RetroArch
menu/drivers/ozone/ozone_entries.c
C
gpl-3.0
37,069
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the terms of...
RobsonRojas/frertos-udemy
Keil-FreeRTOS-Sample-Project/Keil-FreeRTOS/FreeRTOSv9.0.0/FreeRTOS/Demo/CORTEX_R5_UltraScale_MPSoC/RTOSDemo_R5/src/Full_Demo/main_full.c
C
gpl-3.0
18,985
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo * This benchmark is part of SWSC */ #include <assert.h> #include <stdint.h> #include <stdatomic.h> #include <pthread.h> atomic_int vars[3]; atomic_int atom_2_r3_0; void *t0(void *arg){ label_1:; atomic_store_explicit(&vars[0], 1, memory_order_seq_cst); ato...
nidhugg/nidhugg
tests/litmus/C-tests/Z6.5+eieio+sync+sync.c
C
gpl-3.0
1,595
/* * MUSCLE SmartCard Development ( http://www.linuxnet.com ) * * Copyright (C) 1999-2002 * David Corcoran <corcoran@linuxnet.com> * Copyright (C) 2002-2011 * Ludovic Rousseau <ludovic.rousseau@free.fr> * * $Id: atrhandler.c 5962 2011-09-24 08:24:34Z rousseau $ */ /** * @file * * @brief This keeps track ...
Keanu/ccid-android
pcsc-lite-1.8.6/src/atrhandler.c
C
lgpl-2.1
4,087
/* GStreamer * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> * 2000 Wim Taymans <wtay@chello.be> * 2005 Wim Taymans <wim@fluendo.com> * * gstobject.c: Fundamental class used for all of GStreamer * * This library is free software; you can redistribute it and/or ...
cablelabs/gstreamer
gst/gstobject.c
C
lgpl-2.1
42,373
/* * This code was written by Rich Felker in 2010; no copyright is claimed. * This code is in the public domain. Attribution is appreciated but * unnecessary. */ #include <stdlib.h> #include <inttypes.h> #include <wchar.h> #include <errno.h> #include "internal.h" size_t mbrtowc(wchar_t *wc, const char *src, siz...
davidlazar/musl
src/multibyte/mbrtowc.c
C
lgpl-2.1
1,075
/* The LibVMI Library is an introspection library that simplifies access to * memory in a target virtual machine or in a file containing a dump of * a system's physical memory. LibVMI is based on the XenAccess Library. * * Author: Tamas K Lengyel 2013 (tamas.lengyel@zentific.com) * * This file is part of LibVMI....
bentau/libvmi
tools/vmifs/vmifs.c
C
lgpl-3.0
4,304
/* GStreamer GdkPixbuf-based image decoder * Copyright (C) 1999-2001 Erik Walthinsen <omega@cse.ogi.edu> * Copyright (C) 2003 David A. Schleef <ds@schleef.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by ...
cpopescu/whispermedialib
third-party/gstreamer/gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbuf.c
C
lgpl-3.0
16,724
/* Microsoft Reference Implementation for TPM 2.0 * * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and * contributor rights, including patent rights, and no such rights are granted * under this license. ...
google/go-tpm-tools
simulator/ms-tpm-20-ref/TPMCmd/tpm/src/command/DA/DictionaryAttackParameters.c
C
apache-2.0
3,037
/* * xslt.c: Implemetation of an XSL Transformation 1.0 engine * * Reference: * XSLT specification * http://www.w3.org/TR/1999/REC-xslt-19991116 * * Associating Style Sheets with XML documents * http://www.w3.org/1999/06/REC-xml-stylesheet-19990629 * * See Copyright for the status of this software. ...
weolar/miniblink49
third_party/libxslt/libxslt/xslt.c
C
apache-2.0
184,622
/* Copyright (c) 2009, 2010, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
onecloud/ovs-igmp-v3
vswitchd/xenserver.c
C
apache-2.0
2,334
/* Copyright 2011 by Yasuhiro Matsumoto * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the abov...
xenithorb/growl-for-linux
display/msagent/msagent.c
C
bsd-2-clause
6,246
/* * Copyright (c) 2013 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "native_client/src/trusted/service_runtime/sys_memory.h" #include <errno.h> #include <string.h> #include "native_client/src/inc...
sbc100/native_client
src/trusted/service_runtime/sys_memory.c
C
bsd-3-clause
50,699
/* * Copyright (c) 2005-2012 by KoanLogic s.r.l. <http://www.koanlogic.com> * All rights reserved. * * This file is part of KLone, and as such it is subject to the license stated * in the LICENSE file which you have received as part of this distribution. * * $Id: ses_file.c,v 1.21 2008/10/18 13:04:02 tat Exp $ ...
xunmengfeng/klone
src/libpage/ses_file.c
C
bsd-3-clause
3,304
/* * Copyright (c) 2012, Novell Inc. * * This program is licensed under the BSD license, read LICENSE.BSD * for further information */ /* * archrepo2solv.c * * parse archlinux repo file * * reads from stdin * writes to stdout */ #include <sys/types.h> #include <limits.h> #include <fcntl.h> #include <stdio...
jsilhan/libsolv
tools/archrepo2solv.c
C
bsd-3-clause
1,427
/* * Copyright (c) 1998-2002, 2013 Proofpoint, Inc. and its suppliers. * All rights reserved. * Copyright (c) 1983 Eric P. Allman. All rights reserved. * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * By using this file, you agree to the terms and conditions se...
jrobhoward/SCADAbase
contrib/sendmail/mailstats/mailstats.c
C
bsd-3-clause
8,966
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #include <string.h> #include <coord.h> /* define conversions between decimal degrees and radians */ #define DD2R(d) (1.74532925199432958e-02 * (d)) #define R2DD(r) (5.7295779513082321e+01 * (r)) /* define conversions between decimal degrees...
teuben/masc
www/js/lib/js9-3.5/astroem/montage/ccalc.c
C
mit
19,740
/* * (C) Copyright 2001, 2002, 2003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Keith Outwater, keith_outwater@mvis.com` * Steven Scholz, steven.scholz@imc-berlin.de * * SPDX-License-Identifier: GPL-2.0+ */ /* * Date & Time support (no alarms) for Dallas Semiconductor (now Maxim) * DS1307 and DS...
guileschool/beagleboard
u-boot/drivers/rtc/ds1307.c
C
mit
9,696
#include <stdio.h> #include <conio.h> #include "libxl.h" int main() { BookHandle book = xlCreateXMLBook(); if(book) { FontHandle boldFont; FontHandle titleFont; FormatHandle titleFormat; FormatHandle headerFormat; FormatHandle descriptionFormat; FormatHan...
mikhaelmurmur/PseudoRandomGenerators
extern/libxl-3.7.0.1/examples/c/vs2015/invoice/invoice.c
C
mit
3,725
/* * Copyright (c) 2012-2014 Pavol Rusnak <stick@gk2.sk> * * 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, m...
BWallet/bwallet-qrenc
test_arg.c
C
mit
1,941
// // usb.c -- USB device mode support // // Copyright (c) 2012-2013 Andrew Payne <andy@payne.org> // #include <stdio.h> #include <string.h> #include "freedom.h" #include "common.h" #include "usb.h" // ******************************************************* // TODO: INCOMPLETE, work in progress // ...
payne92/bare-metal-arm
usb.c
C
mit
17,900
/* 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...
Serranove/android_kernel_samsung_serranovelte
drivers/video/msm/mdss/msm_mdss_io_8974.c
C
gpl-2.0
30,958
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*** This file is part of systemd. Copyright 2010 Lennart Poettering systemd 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...
albfan/systemd-ubuntu-with-dbus
src/core/job.c
C
gpl-2.0
41,462
/* Copyright (C) 1991, 1995, 1996, 1997, 1999, 2000, 2002, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software F...
jjones-cavium/glibc
io/open64.c
C
gpl-2.0
1,744
/* mkgroup.c: Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Red Hat, Inc. This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for d...
hzq1001/or1k-src
winsup/utils/mkgroup.c
C
gpl-2.0
24,995
/** * @file telepathy-tls.c * * pidgin-sipe * * Copyright (C) 2013 SIPE Project <http://sipe.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the ...
xhaakon/sipe
src/telepathy/telepathy-tls.c
C
gpl-2.0
22,888
/* * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. * 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. * * This program is distributed in the hope that it woul...
odit/rv042
linux/kernel_2.6/linux/fs/xfs/xfs_dir2_data.c
C
gpl-2.0
27,072
/* * Copyright (c) 2013-2015 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * * * 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 noti...
mdalexca/OP3
drivers/staging/qcacld-2.0/CORE/UTILS/PKTLOG/pktlog_internal.c
C
gpl-2.0
18,685
/****************************************************************************** * * Copyright(c) 2007 - 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 ...
linuxmake/kernel_softwinner_fiber
drivers/net/wireless/rtl8723au/os_dep/linux/sdio_intf.c
C
gpl-2.0
37,545
/* * Cisco router simulation platform. * Copyright (c) 2007 Christophe Fillot (cf@utc.fr) * * ATM bridge (RFC1483) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <pthread.h> #include <errno.h> #include <sys/select.h> #include <sys/time.h> #include <sys/types.h> #includ...
dlintott/dynamips
common/atm_bridge.c
C
gpl-2.0
9,217
/* With the support of the HTML format ( msg & Reply ) ******************* * ReZa Hextor * * @HEXTOR_CH * ******************* */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef USE_LUA #include "lua-tg.h" #include <string.h> #include <stdlib.h> #include <lua.h> #include <lualib.h> #include <lauxl...
aboskroop/smilebot
tg/lua-tg.c
C
gpl-2.0
61,674
/* * 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...
jfdsmabalot/kernel_moto-x
kernel/sched/core.c
C
gpl-2.0
207,893
/* 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...
fredvj/kernel_huawei_u8860
arch/arm/mach-msm/board-8960.c
C
gpl-2.0
58,168
/* * drivers/gpu/ion/ion.c * * Copyright (C) 2011 Google, Inc. * Copyright (c) 2011-2013, The Linux Foundation. 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 m...
neighborhoodhacker/msm-3.4
drivers/gpu/ion/ion.c
C
gpl-2.0
48,872
/* * PROJECT: ReactOS Kernel * LICENSE: GPL - See COPYING in the top level directory * FILE: ntoskrnl/fsrtl/fsrtlpc.c * PURPOSE: Contains initialization and support code for the FsRtl * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) */ /* INCLUDES ********************...
rickerliang/reactos-mirror2
ntoskrnl/fsrtl/fsrtlpc.c
C
gpl-2.0
12,606
/****************************************************************************** Copyright(C)2008,Hisilicon Co. LTD. ****************************************************************************** File Name : diag_Debug.c Description : History : 1.w00182550 2012-11-19 D...
araca/Zen-Kernel-Huawei-P7
drivers/hisi/modem/oam/lt/comm/diag/diag_debug.c
C
gpl-2.0
39,986
/* vi: set sw=4 ts=4: */ /* * Copyright (C) 2011 Denys Vlasenko. * * Licensed under GPLv2, see file LICENSE in this source tree. */ #include "common.h" #include "d6_common.h" #include "dhcpd.h" #include <netinet/in.h> #include <netinet/if_ether.h> #include <netpacket/packet.h> #if defined CONFIG_UDHCP_DEBUG && CON...
marcoguerri/busybox
networking/udhcp/d6_packet.c
C
gpl-2.0
4,591
/****************************************************************************** * * Copyright(c) 2007 - 2011 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 b...
linuxmake/kernel_softwinner_fiber
drivers/net/wireless/rtl8188eu/hal/rtl8188e/rtl8188e_phycfg.c
C
gpl-2.0
106,993
/* Copyright (C) 2017 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARR...
daviddiallo/suricata
src/util-napatech.c
C
gpl-2.0
27,688
/* * Code for replacing ftrace calls with jumps. * * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com> * * Thanks goes to Ingo Molnar, for suggesting the idea. * Mathieu Desnoyers, for suggesting postponing the modifications. * Arjan van de Ven, for keeping me straight, and explaining to me * the dan...
AdaLovelance/lxcGrsecKernels
linux-3.14.37/arch/x86/kernel/ftrace.c
C
gpl-2.0
18,509
/* packet-homeplug-av.c * Routines for HomePlug AV dissection * * Copyright 2011, Florian Fainelli <florian[AT]openwrt.org> * * $Id$ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald[AT]wireshark.org> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it an...
boundary/wireshark
epan/dissectors/packet-homeplug-av.c
C
gpl-2.0
189,508
/******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
liquidmetal/bananaman
jni/gfx/vorbis/codebook.c
C
gpl-2.0
16,537
/* arch/arm/mach-msm/nand_partitions.c * * Code to extract partition information from ATAG set up by the * bootloader. * * Copyright (C) 2007 Google, Inc. * Copyright (c) 2008-2009, Code Aurora Forum. All rights reserved. * Author: Brian Swetland <swetland@google.com> * * This software is licensed under the te...
jab2/android_kernel_lge_l45c
arch/arm/mach-msm/nand_partitions.c
C
gpl-2.0
4,878
/* * linux/arch/arm/mach-pxa/pxa27x.c * * Author: Nicolas Pitre * Created: Nov 05, 2002 * Copyright: MontaVista Software Inc. * * Code specific to PXA27x aka Bulverde. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 ...
abgoyal/entourage_edge_kernel
arch/arm/mach-pxa/pxa27x.c
C
gpl-2.0
10,066
/* mpfr_digamma -- digamma function of a floating-point number Copyright 2009, 2010 Free Software Foundation, Inc. Contributed by the Arenaire and Cacao projects, INRIA. This file is part of the GNU MPFR Library. The GNU MPFR Library is free software; you can redistribute it and/or modify it under the terms of the G...
gnooth/xcl
mpfr/digamma.c
C
gpl-2.0
12,180
/** * collectd - src/multimeter.c * Copyright (C) 2005,2006 Peter Holik * * 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...
ciomaire/collectd
src/multimeter.c
C
gpl-2.0
5,486
/* * Bitbanging I2C bus driver using the GPIO API * * Copyright (C) 2007 Atmel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/i2c.h> #include ...
janrinze/loox7xxport
drivers/i2c/busses/i2c-gpio.c
C
gpl-2.0
5,390
/* * Routines for Gravis UltraSound soundcards * Copyright (c) by Jaroslav Kysela <perex@suse.cz> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Licen...
camelguo/linux-2.6-trimedia
sound/isa/gus/gus_main.c
C
gpl-2.0
14,194