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 program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License... | ya-mouse/openbmc-uboot | board/aspeed/ast2400/regtest.c | C | gpl-2.0 | 3,011 |
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | aquarism5-dev/android_kernel_bq_piccolo | drivers/power/reset/msm-poweroff.c | C | gpl-2.0 | 11,072 |
/* Code coverage instrumentation for fuzzing.
Copyright (C) 2015-2021 Free Software Foundation, Inc.
Contributed by Dmitry Vyukov <dvyukov@google.com> and
Wish Wu <wishwu007@gmail.com>
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 ... | Gurgel100/gcc | gcc/sancov.c | C | gpl-2.0 | 10,038 |
/* hamachi.c: A Packet Engines GNIC-II Gigabit Ethernet driver for Linux. */
/*
Written 1998-2000 by Donald Becker.
Updates 2000 by Keith Underwood.
This software may be used and distributed according to the terms of
the GNU General Public License (GPL), incorporated herein by reference.
Drivers based on or deri... | muromec/linux-ezxdev | drivers/net/hamachi.c | C | gpl-2.0 | 67,536 |
#include <common.h>
#include <asm/mach-types.h>
#include <asm/arch/memory.h>
#include <asm/arch/am_reg_addr.h>
#include <asm/arch/aml_card_sd.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/am_eth_reg.h>
#include <asm/arch/gpio.h>
#include <asm/arch/nand.h>
#include <asm/arch/usb.h>
#include <linux/mtd/nand.h>
#inc... | bogdanov-d-a/Amlogic-reff16-uboot | board/amlogic/aml_tv_m2c_2pc_refe04/aml_tv_m2c_2pc_refe04.c | C | gpl-2.0 | 10,621 |
/*
WDG -- scroll widget
Copyright (C) ALoR
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 p... | 0x0mar/ettercap | src/interfaces/curses/widgets/wdg_scroll.c | C | gpl-2.0 | 11,633 |
/*
* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* 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... | Jetson-TX1-AndroidTV/android_kernel_shield_tv_video4linux | drivers/edp/sysedp_reactive_capping.c | C | gpl-2.0 | 6,842 |
/*
* Asus MyPal A716 GPO Register 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 Software Foundation.
*
* Copyright (C) 2005-2007 Pawel Kolodziejski
*/
#include <linux/kernel.h>
#in... | janrinze/loox7xxport.loox2-6-22 | arch/arm/mach-pxa/asus716/a716_gpo.c | C | gpl-2.0 | 3,105 |
/* packet-nlm.c
* Routines for nlm dissection
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* Copied from packet-mount.c
*
* 2001-JAN Ronnie Sahlberg <See AUTHORS for email>
* Updates to version 1 of the protocol.
* Added versi... | slowfranklin/wireshark | epan/dissectors/packet-nlm.c | C | gpl-2.0 | 36,374 |
/*
* linux/drivers/video/backlight/tegra_pwm_bl.c
*
* Tegra pwm backlight driver
*
* Copyright (C) 2011 NVIDIA Corporation
* Author: Renuka Apte <rapte@nvidia.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
* pub... | cornedor/android_kernel_htc_enrc2b | drivers/video/backlight/tegra_pwm_bl.c | C | gpl-2.0 | 7,616 |
/**
* eCryptfs: Linux filesystem encryption layer
*
* Copyright (C) 1997-2003 Erez Zadok
* Copyright (C) 2001-2003 Stony Brook University
* Copyright (C) 2004-2007 International Business Machines Corp.
* Author(s): Michael A. Halcrow <mahalcro@us.ibm.com>
* Michael C. Thompson <mcthomps@us.ibm.com... | gzdaoke/linux2.6.32_kernel | fs/ecryptfs/main.c | C | gpl-2.0 | 26,318 |
/*
* fm-ditem-page.c: Desktop item editing support
*
* Copyright (C) 2004 James Willcox
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at... | mssurajkaiga/nautilus-3.8.1 | src/nautilus-desktop-item-properties.c | C | gpl-2.0 | 13,738 |
/* $Id: isdnloop.c,v 1.9 1999/09/06 07:29:36 fritz Exp $
* ISDN low-level module implementing a dummy loop driver.
*
* Copyright 1997 by Fritz Elfert (fritz@isdn4linux.de)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... | empeg/empeg-hijack | drivers/isdn/isdnloop/isdnloop.c | C | gpl-2.0 | 41,124 |
/*
* Arizona-i2c.c -- Arizona I2C bus interface
*
* Copyright 2012 Wolfson Microelectronics plc
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published... | bestmjh47/android_kernel_samsung_aries | drivers/mfd/arizona-i2c.c | C | gpl-2.0 | 2,520 |
/****************************************************************************
* Copyright (c) 1998,2000 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy ... | ipwndev/DSLinux-Mirror | lib/libncurses/ncurses/base/lib_slktouch.c | C | gpl-2.0 | 2,768 |
/*
* $XFree86: xc/programs/Xserver/render/glyph.c,v 1.5 2001/01/30 07:01:22 keithp Exp $
*
* Copyright © 2000 SuSE, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear... | sunweaver/nx-libs | nx-X11/programs/Xserver/render/glyph.c | C | gpl-2.0 | 11,937 |
/*
* packet-pktap.c
* Routines for dissecting Apple's PKTAP header
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2007 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* a... | jfzazo/wireshark-hwgen | src/epan/dissectors/packet-pktap.c | C | gpl-2.0 | 9,061 |
/*
* Linux WiMAX
* Initialization, addition and removal of wimax devices
*
*
* Copyright (C) 2005-2006 Intel Corporation <linux-wimax@intel.com>
* Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Gener... | 12019/Dorimanx-SG2-I9100-Kernel | net/wimax/stack.c | C | gpl-2.0 | 18,176 |
/*
* Transparent proxy support for Linux/iptables
*
* Copyright (C) 2007-2008 BalaBit IT Ltd.
* Author: Krisztian Kovacs
*
* 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.
*
*... | c8813q-dev/android_kernel_huawei_c8813q | net/netfilter/xt_socket.c | C | gpl-2.0 | 10,183 |
/*******************************************************************************
*
* Module Name: rscalc - Calculate stream and list lengths
*
******************************************************************************/
/*
* Copyright (C) 2000 - 2005, R. Byron Moore
* All rights reserved.
*
* Redistribution... | kzlin129/tt-gpl | go9/linux-s3c24xx/drivers/acpi/resources/rscalc.c | C | gpl-2.0 | 22,213 |
/* Copyright (c) 2010-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... | deadlyindian/oneplus_kernel_msm8974 | arch/arm/mach-msm/msm_rq_stats.c | C | gpl-2.0 | 14,141 |
/*
* This file 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.
*
* In addition to the permissions in the GNU General Public License,
* the authors give you unlimited permission to link the co... | pieter/libgit2 | src/odb.c | C | gpl-2.0 | 2,349 |
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2010 Hiroyuki Yamamoto
*
* 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 Lic... | ChakaZulu/sylpheed_upstream | src/send_message.c | C | gpl-2.0 | 25,734 |
/* cx25840 audio functions
*
* 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 t... | zrafa/linuxkernel | linux-2.6.17.new/drivers/media/video/cx25840/cx25840-audio.c | C | gpl-2.0 | 8,925 |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, pro... | brho/plan9 | sys/src/cmd/time.c | C | gpl-2.0 | 1,959 |
/*
* NET4: Implementation of BSD Unix domain sockets.
*
* Authors: Alan Cox, <alan.cox@linux.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License,... | me-oss/me-linux | net/unix/af_unix.c | C | gpl-2.0 | 47,803 |
/*
***************************************************************************
*
* radio-gemtek-pci.c - Gemtek PCI Radio driver
* (C) 2001 Vladimir Shebordaev <vshebordaev@mail.ru>
*
***************************************************************************
*
* This program is free software; you ca... | sdwuyawen/linux2.6.21_helper2416 | drivers/media/radio/radio-gemtek-pci.c | C | gpl-2.0 | 10,969 |
/*
* Copyright 2009-2015 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-li... | FEDEVEL/openrex-linux-3.14 | drivers/media/platform/mxc/capture/ipu_csi_enc.c | C | gpl-2.0 | 10,610 |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
*/
#include <common.h>
#include <asm/io.h>
#include "vct.h"
static u32 ebi_read(u32 addr)
{
addr &= ~0xFC000000;
reg_write(EBI_CPU_IO_ACCS(EBI_BASE), EXT_DEVICE_CHANNEL_2 | addr);
ebi_wait();
retu... | ev3dev/u-boot | board/micronas/vct/ebi_nor_flash.c | C | gpl-2.0 | 2,235 |
/* Copyright (c) 2010-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... | simex31/BC_Kernel_LP_STOCK_D802 | drivers/gpu/msm/kgsl_pwrctrl.c | C | gpl-2.0 | 45,285 |
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/gpio.h>
#include <linux/types.h>
#include <linux/platform_device.h>
#include <linux/input/synaptics_dsx.h>
#include "synapti... | Sharlion/G718c_kernel | drivers/input/touchscreen/synaptics_dsx_rmi_hid_i2c.c | C | gpl-2.0 | 16,523 |
/*****************************************************************************/
/*
* yam.c -- YAM radio modem driver.
*
* Copyright (C) 1998 Frederic Rible F1OAT (frible@teaser.fr)
* Adapted from baycom.c driver written by Thomas Sailer (sailer@ife.ee.ethz.ch)
*
* This program is free software... | dorimanx/DORIMANX_LG_STOCK_LP_KERNEL | drivers/net/hamradio/yam.c | C | gpl-2.0 | 32,929 |
#include "lolevel.h"
#include "platform.h"
typedef struct {
unsigned int address;
unsigned int length;
} cam_ptp_data_chunk; //camera specific structure
#define MAX_CHUNKS_FOR_JPEG 3 //model specific
/*
* fwt_data_struct: defined here as it's camera dependent
* unneeded members are designated with unkn
* f... | c10ud/CHDK | platform/a540/sub/100b/filewrite.c | C | gpl-2.0 | 6,410 |
/* packet-calcappprotocol.c
* Routines for the Calculation Application Protocol, a test application of the
* rsplib RSerPool implementation
* http://www.tdr.wiwi.uni-due.de/forschung/forschungsprojekte/reliable-server-pooling//
*
* Copyright 2006 by Thomas Dreibholz <dreibh [AT] exp-math.uni-essen.de>
*
* $Id: p... | P1sec/LTE_monitor_c2xx | wireshark/epan/dissectors/packet-calcappprotocol.c | C | gpl-2.0 | 7,408 |
/* .LVT tape images */
#include "lviv_lvt.h"
#define WAVEENTRY_LOW -32768
#define WAVEENTRY_HIGH 32767
#define LVIV_LVT_BIT_SAMPLES 60
#define LVIV_LVT_HEADER_PILOT_SAMPLES 5190*60
#define LVIV_LVT_HEADER_DATA_SAMPLES 16*11*60
#define LVIV_LVT_PAUSE_SAMPLES 69370
#define LVIV_LVT_BLOCK_PILOT_SAMPLES 1298*6... | scs/uclinux | user/games/xmame/xmame-0.106/mess/formats/lviv_lvt.c | C | gpl-2.0 | 3,333 |
#include <generated/autoconf.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/fb.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/earlysuspend.h>
#include <linux/kthread.h>
#include <linux/rt... | theophile/amazon_fire_kffowi_bonus_modules | drivers/misc/mediatek/video/mt8127/mtkfb.c | C | gpl-2.0 | 122,849 |
/*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
* Copyright 2008-2011 Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose... | wangenau/samsung-kernel-msm7x30 | net/wireless/reg.c | C | gpl-2.0 | 65,243 |
/*
* QEMU/MIPS pseudo-board
*
* emulates a simple machine with ISA-like bus.
* ISA IO space mapped to the 0x14000000 (PHYS) and
* ISA memory at the 0x10000000 (PHYS, 16Mb in size).
* All peripherial devices are attached to this "bus" with
* the standard PC ISA addresses.
*/
/* Unicorn Emulator Engine */
/* By N... | egberts/unicorn | qemu/hw/mips/mips_r4k.c | C | gpl-2.0 | 1,254 |
/*****************************************************************************
*
* Nagios run command utilities
*
* License: GPL
* Copyright (c) 2005-2014 Nagios Plugins Development Team
*
* Description :
*
* A simple interface to executing programs from other programs, using an
* optimized and safe popen()-like im... | barqshasbite/nagios-plugins | plugins/runcmd.c | C | gpl-3.0 | 9,671 |
/*
* $Id: b_put.c,v 1.11 2007/05/29 17:39:15 bostic Exp $
*/
#include "bench.h"
int usage(void);
int s(DB *, const DBT *, const DBT *, DBT *);
int
main(int argc, char *argv[])
{
DB_ENV *dbenv = NULL;
DB *dbp, **second;
DBTYPE type;
DBT key, data;
db_recno_t recno;
size_t dsize;
int ch, i, count, secondaries;... | monkeyiq/libstldb4 | db-4.6.21/test_micro/SOURCE/b_put.c | C | gpl-3.0 | 4,389 |
/*
* PWM_Inverted_Pendulum.c
*
* Created: 5/22/2015 4:27:00 PM
* Author: Robert Schweizer
This program is being built to control the Pitch and Yaw dynamics of an rocket via an inverted pendulum simulation
*/
#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
// Math functions
#include <m... | psas/reaction-control | controller_scripts/PWM_Inverted_Pendulum/PWM_Inverted_Pendulum/PWM_Inverted_Pendulum_Xmega.c | C | gpl-3.0 | 6,836 |
/****************************************************************\
* *
* Code generation module for C4 *
* *
* Guy St.C. Slater.. mailto:guy@ebi.ac.uk ... | hotdogee/exonerate-gff3 | src/c4/codegen.c | C | gpl-3.0 | 8,107 |
/* Support routines for GNU DIFF.
Copyright (C) 1988-1989, 1992-1995, 1998, 2001-2002, 2004, 2006, 2009-2010
Free Software Foundation, Inc.
This file is part of GNU DIFF.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | nfer/diffutils | src/util.c | C | gpl-3.0 | 19,739 |
/* NeoStats - IRC Statistical Services
** Copyright (c) 1999-2008 Adam Rutter, Justin Hammond, Mark Hetherington
** http://www.neostats.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 Foundat... | Macs/NeoStats | src/transfer.c | C | gpl-3.0 | 18,603 |
/*
DVBLoopback - plugin_dummy.c
Copyright Alan Nisota 2006
This file is part of DVBLoopback.
DVBLoopback 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... | bas-t/descrambler | src/plugin_dummy.c | C | gpl-3.0 | 8,157 |
/*
* imap.c - This file contains code for doing image map type things.
*
* $Id: imap.c,v 1.37 2013/04/21 16:58:19 johns Exp $
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define TACHYON_INTERNAL 1
#include "tachyon.h"
#include "imap.h"
#include "util.h"
#include "parallel.h"... | srinath-chakravarthy/ovito | src/3rdparty/tachyon/tachyon/imap.c | C | gpl-3.0 | 14,785 |
/*
* Copyright (C) 2000-2011 Free Software Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* This file is part of GnuTLS.
*
* The GnuTLS 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; e... | ppelleti/gnutls | lib/x509_b64.c | C | gpl-3.0 | 14,310 |
#include <grass/gis.h>
#include "vizual.h"
/*
** the corner of the cube
**
**
*/
/* this subroutine draws polygons from dspf file using flat shading */
static float ZNexag = 1.0;
void fill_data_cube();
void get_vert_color();
void set_ZNexag(exag)
float exag;
{
ZNexag = exag;
}
void get_ZNexag(exag)
... | AsherBond/MondocosmOS | grass_trunk/raster3d/r3.showdspf/draw_polys_ogl.c | C | agpl-3.0 | 12,380 |
/**
* WarfaceBot, a blind XMPP client for Warface (FPS)
* Copyright (C) 2015-2017 Levak Borok <levak92@gmail.com>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 ... | grimreaperwarface/warfacedron | src/lang.c | C | agpl-3.0 | 1,265 |
/*
* Copyright RedHat Inc. 2008
*
* Authors: Vivek Goyal <vgoyal@redhat.com>
*
* 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 Software Foundation.
*
* This program is distributed in t... | jrfastab/Linux-cgdcbxd | src/tools/cgexec.c | C | lgpl-2.1 | 3,847 |
/* Clutter - An OpenGL based 'interactive canvas' library.
* OSX backend - initial entry point
*
* Copyright (C) 2007-2008 Tommi Komulainen <tommi.komulainen@iki.fi>
* Copyright (C) 2007 OpenedHand Ltd.
* Copyright (C) 2011 Crystalnix <vgachkaylo@crystalnix.com>
*
* This library is free software; you can red... | Distrotech/clutter | clutter/osx/clutter-backend-osx.c | C | lgpl-2.1 | 7,328 |
/*
* Copyright (C) 2017 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief Mutex context swi... | OTAkeys/RIOT | tests/bench_mutex_pingpong/main.c | C | lgpl-2.1 | 1,728 |
/* AVI muxer plugin for GStreamer
* Copyright (C) 2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
* (C) 2006 Mark Nauwelaerts <manauw@skynet.be>
*
* 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 ... | davibe/gst-plugins-good | gst/avi/gstavimux.c | C | lgpl-2.1 | 70,133 |
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
* <2005> Wim Taymans <wim@fluendo.com>
*
* 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; eithe... | mrchapp/gst-plugins-good | ext/dv/gstdvdemux.c | C | lgpl-2.1 | 57,851 |
/***
This file is part of catta.
catta 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.
catta is distributed in the hop... | everbase/catta | tests/domain-test.c | C | lgpl-2.1 | 4,423 |
/*
Copyright (C) 2009 William Hart
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) a... | jpflori/flint2 | ulong_extras/test/t-divrem2_precomp.c | C | lgpl-2.1 | 1,319 |
/*
* ws protocol handler plugin for "lws-minimal-broker"
*
* Written in 2010-2019 by Andy Green <andy@warmcat.com>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
* This implements a minimal "broker", for systems that look like this
*
* [ publisher w... | sartura/libwebsockets | minimal-examples/ws-server/minimal-ws-broker/protocol_lws_minimal.c | C | lgpl-2.1 | 6,377 |
/* libinfinity - a GObject-based infinote implementation
* Copyright (C) 2007-2015 Armin Burgmeier <armin@arbur.net>
*
* 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
* versi... | gobby/libinfinity | libinfgtk/inf-gtk-account-creation-dialog.c | C | lgpl-2.1 | 23,379 |
/*
Copyright (C) 2014 Fredrik Johansson
This file is part of Arb.
Arb is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) ... | fredrik-johansson/arb | acb_modular/test/t-psl2z_inv.c | C | lgpl-2.1 | 1,930 |
/*********************************************************************
*
* This is based on code created by Peter Harvey,
* (pharvey@codebydesign.com).
*
* Modified and extended by Nick Gorham
* (nick@lurcher.org).
*
* Any bugs or problems should be considered the fault of Nick and not
* Peter.
*
* copyright... | JasonDyalog/unixODBC | DriverManager/SQLExtendedFetch.c | C | lgpl-2.1 | 9,847 |
/*BHEADER**********************************************************************
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
* This file is part of HYPRE. See file COPYRIGHT for details.
*
* HYPRE is free software; you can redistribute... | jbakosi/HYPRE | src/sstruct_ls/maxwell_PNedelec_bdy.c | C | lgpl-2.1 | 20,599 |
/*****************************************************************************
* This file is part of Kvazaar HEVC encoder.
*
* Copyright (C) 2013-2015 Tampere University of Technology and others (see
* COPYING file).
*
* Kvazaar is free software: you can redistribute it and/or modify it under
* the terms of the... | TimotF/hevc-encryption | libkvz/strategies/sse41/picture-sse41.c | C | lgpl-2.1 | 3,492 |
/*
* $Id: ossl_pkey_dsa.c 16691 2008-05-29 17:45:47Z knu $
* 'OpenSSL for Ruby' project
* Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>
* All rights reserved.
*/
/*
* This program is licenced under the same licence as Ruby.
* (See the file 'LICENCE'.)
*/
#if !defined(OPENSSL_NO_DSA)
#include "ossl... | funkaster/shinycocos | ruby_1_8_7/ext/openssl/ossl_pkey_dsa.c | C | lgpl-2.1 | 10,491 |
/*
cencoder.c - c source to a base64 encoding algorithm implementation
This is part of the libb64 project, and has been placed in the public domain.
For details, see http://sourceforge.net/projects/libb64
*/
#include <cencode.h>
const int CHARS_PER_LINE = 72;
void base64_init_encodestate(base64_encodestate* state_i... | trigrass2/STM32491_CPLR | Common/sys/libb64/cencode.c | C | lgpl-3.0 | 2,656 |
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
*
* 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
* version 2 of the License, or (at your option) any... | cpopescu/whispermedialib | third-party/gstreamer/gst-plugins-good-0.10.23/ext/aalib/gstaasink.c | C | lgpl-3.0 | 16,349 |
/**
* Copyright 2005-2007 ECMWF
*
* Licensed under the GNU Lesser General Public License which
* incorporates the terms and conditions of version 3 of the GNU
* General Public License.
* See LICENSE and gpl-3.0.txt for details.
*/
/***************************************************************************
* ... | erdc-cm/grib_api | src/action_class_gen.c | C | lgpl-3.0 | 7,773 |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* 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 app... | gokutek/ReverseKit | vm/compiler/codegen/arm/FP/ThumbVFP.c | C | unlicense | 8,699 |
#include "geogrid_index.h"
#include "geogrid_tiles.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
const int GEO_DEBUG=1;
void print_usage(FILE* f,const char* name) {
fprintf(f,"Usage: %s [OPTIONS]\n",name);
fprintf(f,"\n");
fprintf(f,"Converts geotiff file `FileName' into g... | openwfm/convert_geotiff | tester.c | C | unlicense | 4,722 |
/*
* Copyright (C) 2016-2017 Authors of Cilium
*
* 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 ... | cilium/bpf-map | vendor/github.com/cilium/cilium/bpf/bpf_overlay.c | C | apache-2.0 | 5,814 |
/*
* Copyright 2011 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publis... | drankye/kerb-token | krb5/src/util/verto/module.c | C | apache-2.0 | 1,726 |
/*
* Copyright (c) 2015 Cisco and/or its affiliates.
* 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 applicabl... | milanlenco/vpp | src/vnet/devices/ssvm/node.c | C | apache-2.0 | 9,597 |
/*
* path-test.c -- test the path functions
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* re... | tux-mind/platform_external_subversion | subversion/tests/libsvn_subr/path-test.c | C | apache-2.0 | 51,704 |
/*
* WavPack lossless audio decoder
* Copyright (c) 2006,2011 Konstantin Shishkov
*
* 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.... | yangchaojiang/yjPlay | ffmpeg/src/main/jni/ffmpeg/libavcodec/wavpack.c | C | apache-2.0 | 39,216 |
/*
* Copyright 2014-2016 CyberVision, 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 o... | forGGe/kaa | client/client-multi/client-c/test/test_kaa_profile.c | C | apache-2.0 | 14,769 |
/*
* Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <lvgl.h>
#include "lvgl_color.h"
#if CONFIG_LVGL_BITS_PER_PIXEL == 1
static void zephyr_disp_flush(s32_t x1, s32_t y1, s32_t x2, s32_t y2,
const lv_color_t *color_p)
{
u16... | ldts/zephyr | lib/gui/lvgl/lvgl_color_1.c | C | apache-2.0 | 2,131 |
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999-2004.
*/
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificatio... | anupcshan/bazel | third_party/boringssl/src/crypto/pkcs8/p5_pbev2.c | C | apache-2.0 | 13,004 |
/* $NetBSD: startdaemon.c,v 1.15 2007/05/16 20:45:45 christos Exp $ */
/*
* Copyright (c) 1983, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | execunix/vinos | usr.sbin/lpr/common_source/startdaemon.c | C | apache-2.0 | 3,157 |
/*
* Copyright (C) 2013 Spreadtrum Communications Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it w... | TeamVee-Kanas/android_kernel_samsung_kanas | arch/arm/mach-sc/syssleep.c | C | apache-2.0 | 1,939 |
/*
* $Id: jp2k_encoder.c 2835 2014-04-03 15:30:57Z antonin $
*
* Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2014, Professor Benoit Macq
* Copyright (c) 2010-2011, Kaori Hagihara
* Copyright (c) 2011, Lucian Corlaciu, GSoC
* All rights reserved.
*
* Redist... | hxfxjun/ImageMagick-6.9.1 | openjpeg/src/lib/openjpip/jp2k_encoder.c | C | apache-2.0 | 24,898 |
/* $NetBSD: hack.topl.c,v 1.14 2011/08/06 20:29:37 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
* Amsterdam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | execunix/vinos | games/hack/hack.topl.c | C | apache-2.0 | 7,633 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1999-2017. 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
*
... | falkevik/otp | erts/emulator/beam/beam_bif_load.c | C | apache-2.0 | 46,364 |
/*
* 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... | yangchaojiang/yjPlay | ffmpeg/src/main/jni/ffmpeg/libavcodec/mpeg2_metadata_bsf.c | C | apache-2.0 | 10,071 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | modelica-3rdparty/ExternData | ExternData/Resources/C-Sources/hdf5/src/H5Stest.c | C | bsd-2-clause | 4,131 |
/* $NetBSD: obio.c,v 1.11 2003/07/15 00:25:05 lukem Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
* All rights reserved.
*
* Written by Jason R. Thorpe for Wasabi Systems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... | dplbsd/soc2013 | head/sys/mips/sentry5/obio.c | C | bsd-2-clause | 5,315 |
/**
******************************************************************************
* File Name : stm32f3xx_hal_msp.c
* Description : This file provides code for the MSP Initialization
* and de-Initialization codes.
*********************************************************... | jirik09/Instrulab | Instrulab cube/F303 nucleo-32/F303 nucleo-32/Src/stm32f3xx_hal_msp.c | C | bsd-2-clause | 12,629 |
/*-
* Copyright (C) 2012 Margarida Gouveia
* 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 list of c... | dplbsd/soc2013 | head/sys/powerpc/wii/platform_wii.c | C | bsd-2-clause | 4,495 |
/*-
* Copyright (c) 2006 The FreeBSD Project. 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 list of c... | dplbsd/zcaplib | head/lib/libc/resolv/h_errno.c | C | bsd-2-clause | 1,731 |
/*
* Copyright (c) 1990 - 1994, Julianne Frances Haugh
* Copyright (c) 1996 - 1997, Marek Michałkiewicz
* Copyright (c) 2003 - 2005, Tomasz Kłoczko
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... | mikedlowis-prototypes/albase | source/shadow/libmisc/basename.c | C | bsd-2-clause | 2,121 |
/*
* Copyright (C) Igor Sysoev
*/
#include <ngx_config.h>
#include <ngx_core.h>
static ngx_atomic_uint_t ngx_temp_number;
static ngx_atomic_uint_t ngx_random_number;
ssize_t
ngx_write_chain_to_temp_file(ngx_temp_file_t *tf, ngx_chain_t *chain)
{
ngx_int_t rc;
if (tf->file.fd == NGX_INVALID_FILE) {
... | colin/nginx | src/core/ngx_file.c | C | bsd-2-clause | 20,065 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE675_Duplicate_Operations_on_Resource__fopen_51b.c
Label Definition File: CWE675_Duplicate_Operations_on_Resource.label.xml
Template File: sources-sinks-51b.tmpl.c
*/
/*
* @description
* CWE: 675 Duplicate Operations on Resource
* BadSource: fopen Open and clos... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE675_Duplicate_Operations_on_Resource/CWE675_Duplicate_Operations_on_Resource__fopen_51b.c | C | bsd-3-clause | 1,437 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_loop_54a.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-54a.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_54a.c | C | bsd-3-clause | 2,976 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__char_connect_socket_w32_vsnprintf_44.c
Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml
Template File: sources-vasinks-44.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: c... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s01/CWE134_Uncontrolled_Format_String__char_connect_socket_w32_vsnprintf_44.c | C | bsd-3-clause | 8,611 |
/* Provide a replacement for the POSIX nanosleep function.
Copyright (C) 1999-2000, 2002, 2004-2011 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 ... | ucsd-progsys/csolve-bak | external/gnu-coreutils/lib/nanosleep.c | C | bsd-3-clause | 8,433 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__dest_char_alloca_cat_67b.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml
Template File: sources-sink-67b.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set data poin... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__dest_char_alloca_cat_67b.c | C | bsd-3-clause | 2,042 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_alloca_cat_54d.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml
Template File: sources-sink-54d.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set data p... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_alloca_cat_54d.c | C | bsd-3-clause | 1,569 |
/* abitmap.c
*
* This file is part of the Allegro GUI Un-uglification Project.
* It is a general bitmap theme, everything is a bitmap.
*
* One major drawback of AGUP is, it's almost impossible to create a new
* theme - something which normally is wanted for use in a game's menu
* though. With this bitmap ... | destroyer07/editor-on-fire | src/agup/abitmap.c | C | bsd-3-clause | 41,354 |
/******************************************************************************
MRF24W Driver Tx Power functions
Module for Microchip TCP/IP Stack
-Provides access to MRF24W WiFi controller (MRF24WB0MA/B, MRF24WG0MA/B)
-Reference: MRF24W Data sheet, IEEE 802.11 Standard
*****************************************... | wenyizou/RIC-Segway-Project | Microchip/TCPIP Stack/WiFi/WFTxPower.c | C | bsd-3-clause | 11,618 |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <grp.h>
#include <string.h>
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/*
compile instructions (using c static library, for security, to eliminat... | RCOS-Grading-Server/HWserver | .setup/untrusted_execute.c | C | bsd-3-clause | 5,460 |
// # ifdef __cplusplus
// extern "C" {
// # endif
//========================================================================================================================================================================================================200
//=============================================================... | agrippa/hiper-port | test/c/b+tree/main.c | C | bsd-3-clause | 62,703 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memmove_53a.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-53a.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Se... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s05/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memmove_53a.c | C | bsd-3-clause | 2,908 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.