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 |
|---|---|---|---|---|---|
/*******************************************************************
*
* CAUTION: This file is automatically generated by HSI.
* Version:
* DO NOT EDIT.
*
* Copyright (C) 2010-2018 Xilinx, Inc. All Rights Reserved.*
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this softwa... | openthread/ot-rtos | third_party/freertos/repo/FreeRTOS/Demo/CORTEX_R5_UltraScale_MPSoC/RTOSDemo_R5_bsp/psu_cortexr5_0/libsrc/sysmonpsu_v2_3/src/xsysmonpsu_g.c | C | bsd-3-clause | 2,044 |
/*
* Copyright (C) 2006-2009 Vincent Hanquez <vincent@snarc.org>
*
* 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 list of con... | vincenthz/cryptonite | cbits/cryptonite_sha256.c | C | bsd-3-clause | 7,038 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE256_Plaintext_Storage_of_Password__w32_char_53d.c
Label Definition File: CWE256_Plaintext_Storage_of_Password__w32.label.xml
Template File: sources-sinks-53d.tmpl.c
*/
/*
* @description
* CWE: 256 Plaintext Storage of Password
* BadSource: Read the password f... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE256_Plaintext_Storage_of_Password/CWE256_Plaintext_Storage_of_Password__w32_char_53d.c | C | bsd-3-clause | 5,182 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE197_Numeric_Truncation_Error__int_rand_to_short_68a.c
Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml
Template File: sources-sink-68a.tmpl.c
*/
/*
* @description
* CWE: 197 Numeric Truncation Error
* BadSource: rand Set data to result of ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s01/CWE197_Numeric_Truncation_Error__int_rand_to_short_68a.c | C | bsd-3-clause | 2,676 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_vprintf_16.c
Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml
Template File: sources-vasinks-16.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: liste... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s06/CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_vprintf_16.c | C | bsd-3-clause | 9,575 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_loop_68b.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-68b.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set d... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_loop_68b.c | C | bsd-3-clause | 2,128 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE606_Unchecked_Loop_Condition__wchar_t_connect_socket_01.c
Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml
Template File: sources-sinks-01.tmpl.c
*/
/*
* @description
* CWE: 606 Unchecked Input For Loop Condition
* BadSource: connect_socket Rea... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE606_Unchecked_Loop_Condition/CWE606_Unchecked_Loop_Condition__wchar_t_connect_socket_01.c | C | bsd-3-clause | 8,745 |
/*++
Copyright (c) 1998 Intel Corporation
Module Name:
dpath.c
Abstract:
MBR & Device Path functions
Revision History
--*/
#include "lib.h"
#define ALIGN_SIZE(a) ((a % MIN_ALIGNMENT_SIZE) ? MIN_ALIGNMENT_SIZE - (a % MIN_ALIGNMENT_SIZE) : 0)
EFI_DEVICE_PATH *
DevicePathFromHandle (
IN EFI_HAN... | kontais/EFI-MIPS | ToolKit/lib/libefi/dpath.c | C | bsd-3-clause | 25,162 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_fprintf_54a.c
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-54a.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: listen_socket... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s05/CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_fprintf_54a.c | C | bsd-3-clause | 8,444 |
/*
* Copyright 2013 Zynga 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 law or... | zbase/moxi | solaris_priv.c | C | bsd-3-clause | 1,893 |
/*
* Copyright (c) 2010, ETH Zurich.
* All rights reserved.
*
* INTERFACE NAME: keyboard
* INTEFACE FILE: ../if/keyboard.if
* INTERFACE DESCRIPTION: Keyboard events
*
* This file is distributed under the terms in the attached LICENSE
* file. If you do not find this file, copies can be found by
* writing to:... | utsav2601/cmpe295A | build/x86_64/usr/slideshow/_for_app_slideshow/keyboard_flounder_bindings.c | C | mit | 66,119 |
/* The kernel call implemented in this file:
* m_type: SYS_PRIVCTL
*
* The parameters for this kernel call are:
* m2_i1: CTL_ENDPT (process endpoint of target)
* m2_i2: CTL_REQUEST (privilege control request)
* m2_p1: CTL_ARG_PTR (pointer to request data)
*/
#include "kernel/system.h"
#inc... | ducis/operating-system-labs | src.clean/kernel/system/do_privctl.c | C | mit | 9,577 |
/*
* jdscale.c
*
* Copyright (C) 1998, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains sample scaling for lossless JPEG. This is a
* combination of upscaling the undifferenced sample... | leonardorame/openpacs | dcmtk-3.6.1_20150629/dcmjpeg/libijg12/jdscale.c | C | mit | 3,101 |
/*
* stoplight.c
*
* 31-1-2003 : GWA : Stub functions created for CS161 Asst1.
*
* NB: You can use any synchronization primitives available to solve
* the stoplight problem in this file.
*/
/*
*
* Includes
*
*/
#include <types.h>
#include <lib.h>
#include <test.h>
#include <thread.h>
/*
*
* Constant... | nyanzebra/Operating-Systems | project5/Project 5 Source/src/kern/asst1/stoplight.c | C | mit | 4,680 |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2010 Nokia Corporation
* Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... | Agontuk/android_external_bluetooth_bluez | src/device.c | C | gpl-2.0 | 143,200 |
/* $Id$
*
* linux/arch/cris/traps.c
*
* Here we handle the break vectors not used by the system call
* mechanism, as well as some general stack/register dumping
* things.
*
* Copyright (C) 2000-2002 Axis Communications AB
*
* Authors: Bjorn Wesen
* Hans-Peter Nilsson
*
*/
#include <lin... | ipwndev/DSLinux-Mirror | linux-2.6.x/arch/cris/kernel/traps.c | C | gpl-2.0 | 4,422 |
/******************************************************************************
*
* 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 by the ... | iConsole/Console-OS_kernel_common | drivers/staging/rtl8723bs/hal/odm_DynamicTxPower.c | C | gpl-2.0 | 1,447 |
/* logjam - a GTK client for LiveJournal.
* Copyright (C) 2003 Evan Martin <evan@livejournal.com>
*
* vim: tabstop=4 shiftwidth=4 noexpandtab :
*/
#include "config.h"
#include "glib-all.h"
#include <string.h>
#include <livejournal/editpostevent.h>
#include "jamdoc.h"
#include "account.h"
#include "jam_xml.h"
#inc... | can3p/LogJam | src/livejournal.c | C | gpl-2.0 | 12,200 |
/*
* linux/drivers/video/fbmem.c
*
* Copyright (C) 1994 Martin Schaller
*
* 2001 - Documented with DocBook
* - Brad Douglas <brad@neruo.com>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more detail... | kularny/GeniSys.Kernel-old | drivers/video/fbmem.c | C | gpl-2.0 | 45,854 |
/*
* linux/mm/page_alloc.c
*
* Manages the free list, the system allocates free pages here.
* Note that kmalloc() lives in slab.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
* Swap reorganised 29.12.95, Stephen Tweedie
* Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999
* Re... | kumajaya/android_kernel_samsung_universal5422 | mm/page_alloc.c | C | gpl-2.0 | 177,760 |
// SPDX-License-Identifier: GPL-2.0
#include <linux/anon_inodes.h>
#include <linux/atomic.h>
#include <linux/bitmap.h>
#include <linux/build_bug.h>
#include <linux/cdev.h>
#include <linux/compat.h>
#include <linux/compiler.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/file.h>
#include <linux/gpio... | apopple/linux | drivers/gpio/gpiolib-cdev.c | C | gpl-2.0 | 61,083 |
/*
* drivers/cpufreq/cpufreq_ondemand.c
*
* Copyright (C) 2001 Russell King
* (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
* Jun Nakajima <jun.nakajima@intel.com>
* (c) 2013 The Linux Foundation. All rights reserved.
*
* This program is free softw... | aaronlculver/Gear_S_Kernel | drivers/cpufreq/cpufreq_ondemand.c | C | gpl-2.0 | 41,975 |
/* Copyright (c) 2010-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 ho... | lolhi/No.5-Kernel | arch/arm/mach-msm/saw-regulator.c | C | gpl-2.0 | 6,349 |
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/pagemap.h>
#include <linux/agp_backend.h>
#include <asm/smp.h>
#include "agp.h"
#include "intel-agp.h"
int intel_agp_enabled;
EXPORT_SYMBOL(intel_agp_enabled);
static int intel_f... | LiquidSmooth-Devices/android_kernel_htc_msm8974 | drivers/char/agp/intel-agp.c | C | gpl-2.0 | 26,693 |
/* file: fir.c G. Moody 5 January 1987
Last revised: 25 February 2006
-------------------------------------------------------------------------------
fir: General-purpose FIR filter for database records
Copyright (C) 1987-2006 George B. Moody
This program is free software; you can redistribute it and/or modify i... | tnilanon/csci-686-final | wfdb-10.5.24/app/fir.c | C | gpl-2.0 | 8,748 |
#include <s3c2440_addr.h>
#include <intirq.h>
#include <stdio.h>
static inline void Timer0_Handle(void);
static inline void Dma0_Handle(void);
void (*isr_handle_array[MAX_IRQ])(void) ;
static void Dummy_isr(void)
{
printf("Dummy_isr\n\r");
while(1);
}
void init_irq(void)
{
int i = 0;
for (i = 0; i <... | haikong/arm9-swi | swi/udma/int/interrupt.c | C | gpl-2.0 | 1,439 |
/**
* collectd - src/threshold.c
* Copyright (C) 2007-2010 Florian Forster
* Copyright (C) 2008-2009 Sebastian Harl
* Copyright (C) 2009 Andrés J. Díaz
* Copyright (C) 2014 Pierre-Yves Ritschard
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GN... | ciomaire/collectd | src/write_riemann_threshold.c | C | gpl-2.0 | 7,060 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2019 Linaro Limited. All rights reserved.
* Author: Sumit Garg <sumit.garg@linaro.org>
*/
/*
* Test syncfs
*
* It basically tests syncfs() to sync filesystem having large dirty file
* pages to block device. Also, it tests all supported filesystems ... | linux-test-project/ltp | testcases/kernel/syscalls/syncfs/syncfs01.c | C | gpl-2.0 | 1,454 |
/**
@file upmf_print.c
@brief Functions for printing EMF records
*/
/*
File: upmf_print.c
Version: 0.0.3
Date: 24-MAR-2014
Author: David Mathog, Biology Division, Caltech
email: mathog@caltech.edu
Copyright: 2014 David Mathog and California Institute of Technology (Caltech)
*/
/* compiler op... | tik0/inkscapeGrid | src/libuemf/upmf_print.c | C | gpl-2.0 | 117,991 |
/*
* (C) Copyright 2009
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
* Changes for multibus/multiadapter I2C support.
*
* (C) Copyright 2001, 2002
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* SPDX-License-Identifier: GPL-2.0+
*
* This has been changed substantially by Gerald Van Bar... | puppies/fl2440 | u-boot-2014.01/drivers/i2c/soft_i2c.c | C | gpl-2.0 | 11,047 |
/*
* Copyright (C) 2011-2014 Junjiro R. Okajima
*
* This program, aufs 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... | ninjablocks/VAR-SOM-AM33-SDK7-Kernel | fs/aufs/mvdown.c | C | gpl-2.0 | 17,711 |
/* Handle general operations.
Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GN... | nslu2/glibc | sysdeps/pthread/aio_misc.c | C | gpl-2.0 | 19,459 |
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/workqueue.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include "axc_bq51220Charger.h"
#include <linux/asus_bat.h>
#include <linux/asus_chg.h>
extern void asus_chg_set_chg_mode(enum asus_chg_src chg_src);
#define GPIO_W... | shakalaca/ASUS_PadFone_PF500KL | kernel/drivers/power/charger/axc_bq51220Charger.c | C | gpl-2.0 | 3,724 |
/*
* Copyright (C) 2006 Oracle. 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 later version.
*
* This... | renzhengeek/ocfs2-test | programs/extend_and_write/extend_and_write.c | C | gpl-2.0 | 4,368 |
/*
* Linux cfg80211 driver - Android related functions
*
* Copyright (C) 1999-2016, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License v... | nguyenhuuthong/linux-2.6-imx-org | drivers/net/wireless/bcmdhd/wl_android.c | C | gpl-2.0 | 59,708 |
/*
* linux/arch/parisc/mm/init.c
*
* Copyright (C) 1995 Linus Torvalds
* Copyright 1999 SuSE GmbH
* changed by Philipp Rumpf
* Copyright 1999 Philipp Rumpf (prumpf@tux.org)
* Copyright 2004 Randolph Chung (tausq@debian.org)
* Copyright 2006-2007 Helge Deller (deller@gmx.de)
*
*/
#include <linux/mod... | joeyli/linux-modsign | arch/parisc/mm/init.c | C | gpl-2.0 | 28,796 |
/*
* Notepad (text.c)
*
* Copyright 1998,99 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* Copyright 2002 Andriy Palamarchuk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License a... | GreenteaOS/Kernel | third-party/reactos/base/applications/notepad/text.c | C | gpl-2.0 | 11,096 |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | northWind87/quake3cs133 | code/renderer/tr_image_bmp.c | C | gpl-2.0 | 6,010 |
/*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* Routing netlink socket interface: protocol independent part.
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.... | Nicklas373/Hana-CoreUX-Kernel_MSM8627-AOSP_7.0 | net/core/rtnetlink.c | C | gpl-2.0 | 52,374 |
/*
** =========================================================================
** File:
** ImmVibeSPI.c
**
** Description:
** Device-dependent functions called by Immersion TSP API
** to control PWM duty cycle, amp enable/disable, save IVT file, etc...
**
** Portions Copyright (c) 2008-2009 Immersion Corp... | drhonk/Bali-SGS4G | drivers/samsung/vibetonz/ImmVibeSPI.c | C | gpl-2.0 | 9,209 |
/* $Header: /cvsroot/lesstif/lesstif/test/Xm/misc/test2.c,v 1.2 2002/05/13 12:39:01 amai Exp $ */
/* generate XmStrDefs.c from the Motif libXm it is linked to */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <Xm/XmP.h>
/*
* order is C, N, R, V, S
*/
int
main() {
const ... | melanj/lesstif | test/Xm/misc/test2.c | C | gpl-2.0 | 2,056 |
/*
* f_ecm.c -- USB CDC Ethernet (ECM) link function driver
*
* Copyright (C) 2003-2005,2008 David Brownell
* Copyright (C) 2008 Nokia Corporation
*
* 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 F... | shminer/android_kernel_lge_f460 | drivers/usb/gadget/f_ecm.c | C | gpl-2.0 | 27,251 |
/*
* linux/fs/ext4/namei.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* from
*
* linux/fs/minix/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* Big-endian to little-endian... | LiquidSmooth-Devices/android_kernel_samsung_klimtwifi | fs/ext4/namei.c | C | gpl-2.0 | 76,215 |
/* Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | yajnab/android_kernel_sony_taoshan | arch/arm/mach-msm/pm-8x60.c | C | gpl-2.0 | 29,292 |
/*
* Hisilicon K3 soc camera sensors source file
*
* CopyRight (C) Hisilicon Co., 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 License, or
* (at your ... | asyan4ik/hwp6s-kernel | drivers/media/video/hik3/capture/isp/sensor_common.c | C | gpl-2.0 | 21,624 |
/*
* xHCI host controller driver
*
* Copyright (C) 2008 Intel Corp.
*
* Author: Sarah Sharp
* Some code borrowed from the Linux EHCI driver.
*
* 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 Soft... | GreatDevs/kernel_sony_msm8974 | drivers/usb/host/xhci-hub.c | C | gpl-2.0 | 37,370 |
/*
Copyright (C) 1997-2001 Id Software, 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 2
of the License, or (at your option) any later version.
This program is distributed in th... | OS2World/GAME-ACTION-Quake2 | linux/rw_in_svgalib.c | C | gpl-2.0 | 9,314 |
/* H3's accelerated seq/profile comparison pipeline
*
* Contents:
* 1. P7_PIPELINE: allocation, initialization, destruction
* 2. Pipeline API
* 3. Example 1: search mode (in a sequence db)
* 4. Example 2: scan mode (in an HMM db)
* 5. Copyright and license information
*
*/
#include "p7_config.h"
... | ElofssonLab/TOPCONS2 | topcons2_webserver/predictors/hmmr/src/p7_pipeline.c | C | gpl-2.0 | 84,868 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include "mktitanimg.h"
struct checksumrecord
{
unsigned int magic;
unsigned int chksum; /* The checksum for the complete header.
Excepting the
checksum block */
};
/************... | jszakmeister/openwrt | tools/firmware-utils/src/mktitanimg.c | C | gpl-2.0 | 31,464 |
/*
* Copyright (c) 2005, University of New Hampshire
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be us... | rajashreer7/autotest-client-tests | linux-tools/openhpi/openhpi2-conformancetest/src/configuration/saHpiParmControl/3.c | C | gpl-2.0 | 2,184 |
//===========================================================================
//
// modff.c
//
// Test of modff() math library function
//
//===========================================================================
// ####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file ... | antmicro/ecos-openrisc | packages/language/c/libm/current/tests/vectors/modff.c | C | gpl-2.0 | 3,625 |
/*
* linux/drivers/power/twl6030_bci_battery.c
*
* OMAP4:TWL6030 battery driver for Linux
*
* Copyright (C) 2008-2009 Texas Instruments, Inc.
* Author: Texas Instruments, Inc.
*
* This package is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version... | samno1607/P920-SU760-Source-Differences-GB | drivers/power/twl6030_bci_battery_ap_fuel.c | C | gpl-2.0 | 87,431 |
/*
* nodeinfo.c: Helper routines for OS specific node information
*
* Copyright (C) 2006-2008, 2010-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
*
* 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 ... | hw-claudio/libvirt | src/nodeinfo.c | C | gpl-2.0 | 49,254 |
/*****************************************************************************\
* hostlist.c - Convert hostlist expressions between Slurm and Moab formats
*****************************************************************************
* Copyright (C) 2007 The Regents of the University of California.
* Copyright (C... | lipari/slurm | src/plugins/sched/wiki2/hostlist.c | C | gpl-2.0 | 9,500 |
/*
* Module for snapshot IO using snapper
*
* Copyright (C) David Disseldorp 2012-2014
*
* Portions taken from vfs_shadow_copy2.c:
* Copyright (C) Andrew Tridgell 2007
* Copyright (C) Ed Plese 2009
* Copyright (C) Volker Lendecke 2011
* Copyright (C) Christian Ambach 2011
* Copyright (C) Michael... | ceph/samba | source3/modules/vfs_snapper.c | C | gpl-3.0 | 70,072 |
/* mpfr_mul_d -- multiply a multiple precision floating-point number
by a machine double precision float
Copyright 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
Contributed by the Arenaire and Caramel projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is f... | bennoleslie/mpfr | src/mul_d.c | C | gpl-3.0 | 1,801 |
/**
******************************************************************************
* @file TIM/OCToggle/stm32l1xx_it.c
* @author MCD Application Team
* @version V1.1.1
* @date 13-April-2012
* @brief Main Interrupt Service Routines.
* This file provides template for all exceptions handle... | virtmedia/ultramicron | STM32L1xx_StdPeriph_Lib_V1.2.0/Project/STM32L1xx_StdPeriph_Examples/TIM/OCToggle/stm32l1xx_it.c | C | gpl-3.0 | 5,902 |
// WL_GAME.C
#include "WL_DEF.H"
#pragma hdrstop
#ifdef MYPROFILE
#include <TIME.H>
#endif
/*
=============================================================================
LOCAL CONSTANTS
=============================================================================
*/
/*
=================================... | sparky4/owwolf3d | wf3d8086/wl_game.c | C | gpl-3.0 | 26,102 |
/*
* Copyright 2004 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Sof... | uhhpctools/openuh-openacc | osprey/libfi/matrix/matmul_l1l2.c | C | gpl-3.0 | 2,636 |
/*
* 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 "SF512-AndCodeNumber.h"
static int
memb_sf4_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_... | E3V3A/snoopsnitch | contrib/libosmo-asn1-rrc/src/SF512-AndCodeNumber.c | C | gpl-3.0 | 9,859 |
/*
* Copyright (C) 2011-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 as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
... | Distrotech/radius | gnulib/tests/test-imaxdiv.c | C | gpl-3.0 | 1,341 |
/* Lzma86Enc.c -- LZMA + x86 (BCJ) Filter Encoder
2008-08-05
Igor Pavlov
Public domain */
#include <string.h>
#include "Lzma86Enc.h"
#include "Alloc.h"
#include "Bra.h"
#include "LzmaEnc.h"
#define SZE_OUT_OVERFLOW SZE_DATA_ERROR
static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); }
static vo... | spdd/chessonline | jni/gtb/compression/lzma/Lzma86Enc.c | C | gpl-3.0 | 2,925 |
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "iobuf.h"
/* Return every other byte. In particular, reads two bytes, returns
the second one. */
static int
every_other_filter (void *opaque, int control,
iobuf_t chain, byte *buf, size_t *len)
{
(... | CSNW/gnupg | common/t-iobuf.c | C | gpl-3.0 | 8,584 |
/* $XConsortium: DrHiDash.c /main/5 1995/07/15 20:50:42 drk $ */
/*
* Motif
*
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published ... | unix-junkie/motif | lib/Xm/DrHiDash.c | C | lgpl-2.1 | 3,014 |
/***************************************************************************/
/* */
/* t42drivr.c */
/* */
/* Hi... | sdbondi/afrika-burns-2014-ProjectM | src/macos/FTGL/freetype src/type42/t42drivr.c | C | lgpl-2.1 | 6,973 |
/*
* card-miocos.c: Support for PKI cards by Miotec
*
* Copyright (C) 2002 Juha Yrjölä <juha.yrjola@iki.fi>
*
* 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... | shakaran/opensc-dnie | src/libopensc/card-miocos.c | C | lgpl-2.1 | 13,032 |
/* Extended regular expression matching and search library.
Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms o... | garinh/cs | libs/csutil/generic/regcomp.c | C | lgpl-2.1 | 101,098 |
/*
* virsh-network.c: Commands to manage network
*
* Copyright (C) 2005, 2007-2012 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
* version 2.1 of the Lice... | warewolf/libvirt | tools/virsh-network.c | C | lgpl-2.1 | 30,151 |
/*--------------------------------------------------------------------
(C) Copyright 2006-2013 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... | drpicox/mcxx | tests/07_phases_omp.dg/common/c/success_new_udr_02.c | C | lgpl-3.0 | 2,029 |
/* radare - LGPL - Copyright 2009-2019 - pancake */
#include <r_core.h>
#include <stdlib.h>
#include <string.h>
#define UPDATE_TIME(a) (r->times->file_open_time = r_sys_now () - (a))
static int r_core_file_do_load_for_debug(RCore *r, ut64 loadaddr, const char *filenameuri);
static int r_core_file_do_load_for_io_plug... | bigendiansmalls/radare2 | libr/core/cfile.c | C | lgpl-3.0 | 33,615 |
/*
* Copyright 2008-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | google/google-ctf | third_party/edk2/CryptoPkg/Library/OpensslLib/openssl/apps/cms.c | C | apache-2.0 | 44,722 |
#include<stdlib.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 8
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
#define SSID "YOUR SSID HERE"
#define PASS "YOUR PASSWORD HERE"
#define IP "184.106.153.149" // thingspeak.com
String GET = "GET /update?key=YOURTHINGSPEAKA... | sstocker46/pyrobotlab | home/borsaci06/DS18BTemperatureToThingSpeak.c | C | apache-2.0 | 5,943 |
/********************************************************************************
File Information:
FileName: usb_function_phdc.c
Dependencies: See INCLUDES section
Processor: PIC18 or PIC24 USB Microcontrollers
Hardware: The code is natively intended to be used on the following
... | pic32mcu/pic32accessory-iot | Pic32Firmware/USB/PHDC Device Driver/usb_function_phdc.c | C | apache-2.0 | 21,144 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2014. All Rights Reserved.
*
* 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
*
... | hairyhum/otp | erts/emulator/beam/dist.c | C | apache-2.0 | 97,687 |
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
* Copyright (C) 2001-2003 Free Software Foundation, Inc.
*
* Created by Dominic Ostrowski <dominic.ostrowski@3glab.com>
* Contributors: David Woodhouse, Nick Garnett, Richard Panton.
*
* For licensing information, see the file 'LICENCE' in this directory... | abusalimov/embox | src/fs/driver/jffs2/jffs2.c | C | bsd-2-clause | 41,963 |
/**
* rijndael-test-fst.c
*
* @version 3.0 (December 2000)
*
* Optimised ANSI C code for the Rijndael cipher (now AES)
*
* @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
* @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
* @author Paulo Barreto <paulo.barreto@terra.com.br... | tazodie/tazodie-crisscross | examples/CPSAT/rijndael-test-fst.c | C | bsd-3-clause | 27,849 |
/***************************************************************************/
/* */
/* sfdriver.c */
/* */
/* ... | kitsilanosoftware/FreeType | src/sfnt/sfdriver.c | C | bsd-3-clause | 17,883 |
/*
* Copyright (c) 2009 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Portions Copyright (c) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... | madscientist159/heimdal | lib/gssapi/netlogon/process_context_token.c | C | bsd-3-clause | 1,956 |
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following co... | kimim/kimix | usr/lib/libc/string/bcopy.c | C | bsd-3-clause | 2,557 |
/*
* MXF demuxer.
* Copyright (c) 2006 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>
*
* 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 Softw... | guorendong/iridium-browser-ubuntu | third_party/ffmpeg/libavformat/mxfdec.c | C | bsd-3-clause | 120,649 |
// RUN: rm -fr %t.promo.prof
// RUN: rm -fr %t.nopromo.prof
// RUN: %clang_pgogen=%t.promo.prof/ -o %t.promo.gen -O2 %s
// RUN: %clang_pgogen=%t.promo.prof/ -o %t.promo.gen.ll -emit-llvm -S -O2 %s
// RUN: cat %t.promo.gen.ll | FileCheck --check-prefix=PROMO %s
// RUN: %run %t.promo.gen
// RUN: llvm-profdata merge -o %t... | youtube/cobalt | third_party/llvm-project/compiler-rt/test/profile/Linux/counter_promo_for.c | C | bsd-3-clause | 2,171 |
/* @(#) Function which read a mask from a file.
* @(#) Result is written in the structure IMASK or DMASK depending on whether
* @(#) the input mask is integer or double. The structure of the mask is
* @(#) given in mask.h
* @(#) The mask coefficients can be either int (INTMASK)
* @(#) or double (DOUBLEMASK). ... | tudinfse/fex | src/parsec/vips/src/mask/rw_mask.c | C | mit | 16,382 |
/**
* Copyright (c) 2014 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include "vec.h"
int vec_expand_(char **data, int *length, int *capacity, int memsz) {
if (*length + 1 > *capacity) {
void *ptr;
i... | emekankurumeh/spork | test/vec/vec.c | C | mit | 2,485 |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | K-Constantine/Amaraki | core/deps/curl/lib/curl_ntlm_core.c | C | mit | 22,874 |
/* Test that the associated event to a failing command isn't unduly freed
Copyright (C) 2015 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
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 Softw... | dsandersimgtec/pocl | tests/runtime/test_event_free.c | C | mit | 7,630 |
/*-------------------------------------------------------------------------
* Filename: mini_inflate.c
* Version: $Id: mini_inflate.c,v 1.3 2002/01/24 22:58:42 rfeany Exp $
* Copyright: Copyright (C) 2001, Russ Dill
* Author: Russ Dill <Russ.Dill@asu.edu>
* Description: Mini inflate impleme... | guileschool/beagleboard | u-boot/fs/jffs2/mini_inflate.c | C | mit | 11,494 |
/**
* \file
* \brief LWIP test/demo code
*/
/*
* Copyright (c) 2008, 2013, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Att... | utsav2601/cmpe295A | usr/tests/e10ktest/e10ktest_latencies.c | C | mit | 11,748 |
/*******************************************************************
* *
* Using SDL With OpenGL *
* *
* Tutorial by Kyle Foley... | qq2588258/floweers | libs/external/emscripten/tests/sdl_ogl.c | C | mit | 5,461 |
/**********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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; eith... | valisc/freeciv | client/gui-xaw/colors.c | C | gpl-2.0 | 8,621 |
/*************************************************************************/ /*!
@Title PVR Bridge Module (kernel side)
@Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
@Description Receives calls from the user portion of services and
despatches them to function... | coldnew-gp-revolution/gp-revolution-kernel | drivers/staging/mrst/pvr/services4/srvkm/env/linux/pvr_bridge_k.c | C | gpl-2.0 | 14,651 |
/* MI Command Set - stack commands.
Copyright (C) 2000-2016 Free Software Foundation, Inc.
Contributed by Cygnus Solutions (a Red Hat company).
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publishe... | swigger/gdb-ios | gdb/mi/mi-cmd-stack.c | C | gpl-2.0 | 19,885 |
/*****************************************************************************
1 Í·Îļþ°üº¬
*****************************************************************************/
#include "AtCmdSimProc.h"
#include "AtEventReport.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
/**************... | wbrambley/Grace-kernel | drivers/vendor/hisi/modem/taf/comm/src/acore/at/src/AtCmdSimProc.c | C | gpl-2.0 | 42,341 |
/*
* QEMU OpenRISC CPU
*
* Copyright (c) 2012 Jia Liu <proljc@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) a... | AppliedMicro/qemu | target-openrisc/cpu.c | C | gpl-2.0 | 7,374 |
/*
* cmpci.c -- C-Media PCI audio driver.
*
* Copyright (C) 1999 C-media support (support@cmedia.com.tw)
*
* Based on the PCI drivers by Thomas Sailer (sailer@ife.ee.ethz.ch)
*
* For update, visit:
* http://www.cmedia.com.tw
*
* This program is free software; you can redistribute it ... | waterice/Test-Git | sound/oss/cmpci.c | C | gpl-2.0 | 96,307 |
/******************************************************************************
* Copyright (C) 2009-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
#include "unicode/utypes.h"
#if U_PLATFOR... | Debian/openjfx | modules/web/src/main/native/Source/ThirdParty/icu/source/tools/toolutil/pkg_genc.c | C | gpl-2.0 | 35,612 |
/* mga_drv.c -- Matrox G200/G400 driver -*- linux-c -*-
* Created: Mon Dec 13 01:56:22 1999 by jhartmann@precisioninsight.com
*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is hereby granted, fre... | ipwndev/DSLinux-Mirror | linux-2.6.x/drivers/char/drm/mga_drv.c | C | gpl-2.0 | 5,227 |
#include <defs.h>
#include <x86.h>
#include <stdio.h>
#include <string.h>
#include <swap.h>
#include <swap_fifo.h>
#include <list.h>
/* [wikipedia]The simplest Page Replacement Algorithm(PRA) is a FIFO algorithm. The first-in, first-out
* page replacement algorithm is a low-overhead algorithm that requires little boo... | Weihonghao/ucore_lab | labcodes/lab7/kern/mm/swap_fifo.c | C | gpl-2.0 | 5,544 |
/*
*
* WPA supplicant library with GLib integration
*
* Copyright (C) 2012 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*... | raininja/connman-release | gsupplicant/dbus.c | C | gpl-2.0 | 13,045 |
/**
* Copyright (C) 2010-2013 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
*
*... | Mysteryagr/Mystery-Kernel-3.18 | drivers/misc/mediatek/gpu/mt6580/mali/mali/linux/mali_kernel_linux.c | C | gpl-2.0 | 26,003 |
/*
* Copyright (C) 2008 Google, Inc.
* Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
*... | maniacx/android_kernel_htcleo-3.0_old | arch/arm/mach-msm/devices-msm7x30.c | C | gpl-2.0 | 30,293 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.