code stringlengths 6 250k | repo_name stringlengths 5 70 | path stringlengths 3 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 6 250k |
|---|---|---|---|---|---|
/**
* Copyright (C) 2009 NXP N.V., All Rights Reserved.
* This source code and any compilation or derivative thereof is the proprietary
* information of NXP N.V. and is confidential in nature. Under no circumstances
* is this software to be exposed to or placed under an Open Source License of
* any type without t... | Globalscale/D3-Linux | drivers/video/hdmi/comps/tmbslTDA9989/src/tmbslTDA9989_Edid.c | C | gpl-2.0 | 57,003 |
/*
* Copyright (c) 2009 NVIDIA Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of condit... | mingkaidox/kernel_tegra | arch/arm/mach-tegra/nvddk/nvddk_usbphy.c | C | gpl-2.0 | 24,909 |
/*
_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >... | adamflott/wargus | warextract.c | C | gpl-2.0 | 1,850 |
/*
* linux/arch/arm64/mcpm/mcpm_plat.c
*
* Author: Fangsuo Wu <fswu@marvell.com>
* Copyright: (C) 2013 marvell International 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... | acorn-marvell/brillo_pxa_kernel | arch/arm64/mcpm/mcpm_plat.c | C | gpl-2.0 | 16,640 |
/*
* Samsung Exynos5 SoC series Sensor driver
*
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/i2c.h... | TeamWin/android_kernel_samsung_j2lte | drivers/media/platform/exynos/fimc-is2/sensor/module/fimc-is-device-3h7_sunny.c | C | gpl-2.0 | 4,726 |
/* SPDX-License-Identifier: LGPL-2.1+ */
#include <fcntl.h>
#include <linux/rfkill.h>
#include <poll.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "sd-daemon.h"
#include "sd-device.h"
#include "alloc-util.h"
#include "device-util.h"
#include "escape.h"
#include "fd-util.h"
#include "fi... | tblume/systemd-testsuite-suse | src/rfkill/rfkill.c | C | gpl-2.0 | 12,466 |
/*
* ircd-ratbox: A slightly useful ircd.
* m_who.c: Shows who is on a channel.
*
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
* Copyright (C) 1996-2002 Hybrid Development Team
* Copyright (C) 2002-2005 ircd-ratbox development team
*
* This program is free software; you can redi... | skyhighwings/elemental-ircd | modules/m_who.c | C | gpl-2.0 | 17,306 |
/*************************************************************************************************
* CGI script for file uploader
* Copyright (C) 2000-2003 Mikio Hirabayashi
* This file is part of QDBM, Quick Database Manager.
* QDBM is free software; you can red... | oracc/oracc | oracc-hyperestraier/qdbm/cgi/qupl.c | C | gpl-2.0 | 15,046 |
/*
* sound/arm/omap/omap-alsa-aic23-mixer.c
*
* Alsa Driver Mixer for generic codecs for omap boards
*
* Copyright (C) 2005 Instituto Nokia de Tecnologia - INdT - Manaus Brazil
* Written by David Cohen, Daniel Petrini
* {david.cohen, daniel.petrini}@indt.org.br
*
* Based on es1688_lib.c,
* Copyrigh... | archos-sa/archos-gpl-gen6-kernel | sound/arm/omap/omap-alsa-aic23-mixer.c | C | gpl-2.0 | 14,516 |
/*
* jcapistd.c
*
* Copyright (C) 1994-1996, 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 application interface code for the compression half
* of the JPEG library. These are the ... | zrafa/se_uncoma | robotitos/myro-cpp-2.3.0/jpeg/jcapistd.c | C | gpl-2.0 | 5,889 |
/* megaco_stat.c
* megaco-statistics for Wireshark
* Copyright 2003 Lars Roland
* Copyright 2008, Ericsson AB
* By Balint Reczey <balint.reczey@ericsson.com>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free soft... | masonh/wireshark | ui/gtk/megaco_stat.c | C | gpl-2.0 | 6,323 |
/*
fe-settings.c : irssi
Copyright (C) 1999 Timo Sirainen
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.... | ipwndev/DSLinux-Mirror | user/irssi/src/src/fe-common/core/fe-settings.c | C | gpl-2.0 | 10,087 |
/*
* GraphApp - Cross-Platform Graphics Programming Library.
*
* File: windows.c -- manipulating on-screen windows.
* Platform: Windows Version: 2.35 Date: 1998/03/03
*
* Version: 1.00 Changes: Original version by Lachlan Patrick.
* Version: 1.50 Changes: New rectangle type implemented.
* Version: 2.00 Cha... | wch/r-source | src/extra/graphapp/windows.c | C | gpl-2.0 | 19,301 |
/*****************************************************************************
1 Í·Îļþ°üº¬
**************************************************************************** */
#include "OmHdlcInterface.h"
#include "cbtapprl.h"
#include "omprivate.h"
#include "CbtPpm.h"
#include "msp_errno.h"
#include "diag_api.h"
... | Honor8Dev/android_kernel_huawei_FRD-L04 | drivers/vendor/hisi/modem/oam/gu/acore/cbtfun/cbtapprl.c | C | gpl-2.0 | 23,489 |
/*
* Copyright (C) 2003, 2004, 2005 Mondru AB.
* Copyright (C) 2007-2011 Coova Technologies, LLC. <support@coova.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 o... | ysleu/RTL8685 | uClinux-dist/user/fongw/foncoova/coova-chilli-1.2.9/src/main-response.c | C | gpl-2.0 | 3,809 |
/*
sis190.c: Silicon Integrated Systems SiS190 ethernet driver
Copyright (c) 2003 K.M. Liu <kmliu@sis.com>
Copyright (c) 2003, 2004 Jeff Garzik <jgarzik@pobox.com>
Copyright (c) 2003, 2004, 2005 Francois Romieu <romieu@fr.zoreil.com>
Based on r8169.c, tg3.c, 8139cp.c, skge.c, epic100.c and SiS 190/191
... | odit/rv042 | linux/kernel_2.6/linux/drivers/net/sis190.c | C | gpl-2.0 | 45,859 |
/*
File: file_asl.c
Copyright (C) 2012 Christophe GRENIER <grenier@cgsecurity.org>
This software 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... | qayshp/TestDisk | src/file_asl.c | C | gpl-2.0 | 1,883 |
/* Code to manipulate interface information, shared between ifconfig and
netstat.
10/1998 partly rewriten by Andi Kleen to support an interface list.
I don't claim that the list operations are efficient @).
8/2000 Andi Kleen make the list operations a bit more efficient.
People are crazy enough ... | giftnuss/net-tools | lib/interface.c | C | gpl-2.0 | 24,125 |
/*
* TP-LINK TL-WR2041N v1 board support
* Board Info: CPU:ar9344 550MHZ wireless:ar9381
*
* Copyright (C) 2012 Gabor Juhos <juhosg@openwrt.org>
* Copyright (C) 2013 Gui Iribarren <gui@altermundi.net>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the G... | V-E-O/lede-source | target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr2041n-v1.c | C | gpl-2.0 | 4,882 |
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | RazerRom/kernel_oneplus_msm8974 | arch/arm/mach-msm/msm_watchdog_v2.c | C | gpl-2.0 | 17,015 |
/**
* Send commands to Purple via ~/.purple/control
*
* Originally by Eric Warmenhoven <eric@warmenhoven.org>
* Compile fixes/mini hacks Alex Bennee <alex@bennee.com>
* and Brian Tarricone <bjt23@users.sourceforge.net>
*/
/* system includes */
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <... | gabrieldelsaint/uol-messenger | src/public/pidgin/libpurple/plugins/filectl.c | C | gpl-2.0 | 6,389 |
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-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 by the Free Software
* Foundation; ei... | sTeeLM/MINIME | toolkit/srpm/SOURCES/cde-2.2.4/programs/dthelp/parser/pass2/parser/parcount.c | C | gpl-2.0 | 1,446 |
/* This file contains all the functions required for the standalone
ip_conntrack module.
These are not required by the compatibility layer.
*/
/* (C) 1999-2001 Paul `Rusty' Russell
* (C) 2002-2005 Netfilter Core Team <coreteam@netfilter.org>
*
* This program is free software; you can redistribute it and/or m... | shaowei-wang/520board-v1-linux-2.6.21.x | net/ipv4/netfilter/ip_conntrack_standalone.c | C | gpl-2.0 | 25,592 |
/*
* Hardware-level driver for the SliceCOM board for Linux kernels 2.4.X
*
* Current maintainer / latest changes: Pasztor Szilard <don@itc.hu>
*
* Original author: Bartok Istvan <bartoki@itc.hu>
* Based on skeleton by Tivadar Szemethy <tiv@itc.hu>
*
* 0.51:
* - port for 2.4.x
* - clean up some code, mak... | robacklin/celinux | drivers/net/wan/comx-hw-munich.c | C | gpl-2.0 | 91,655 |
/* packet-tsp.c
* Routines for Time Synchronization Protocol (TSP) packet dissection
*
* Uwe Girlich <Uwe.Girlich@philosys.de>
*
* $Id: packet-tsp.c 45017 2012-09-20 02:03:38Z morriss $
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* Copied ... | MavEtJu/wireshark-lean | epan/dissectors/packet-tsp.c | C | gpl-2.0 | 6,841 |
/*
* Copyright 2008, Freescale Semiconductor, Inc
* Andy Fleming
*
* Based vaguely on the Linux code
*
* 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
* ... | PA4WD/u-boot_h1502 | drivers/mmc/mmc.c | C | gpl-2.0 | 29,363 |
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
// Simplifed xv6 shell.
#define MAXARGS 10
// All commands have at least a type. Have looked at the type, the code
// typically casts the *cmd to some spe... | jasonleaster/MIT_6_828_assignments_2012 | sh.c | C | gpl-2.0 | 6,124 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <linux/loop.h>
#include "bus-common-errors.h"
#include "bus-error.h"
#include "conf-files.h"
#include "copy.h"
#include "def.h"
#include "dirent-util.h"
#include "discover-image.h"
#include "dissect-image.h"
#include "errno-list.h"
#include "fd-util.h"
#includ... | phomes/systemd | src/portable/portable.c | C | gpl-2.0 | 51,682 |
/**
* eCryptfs: Linux filesystem encryption layer
*
* Copyright (C) 1997-2004 Erez Zadok
* Copyright (C) 2001-2004 Stony Brook University
* Copyright (C) 2004-2007 International Business Machines Corp.
* Author(s): Michael A. Halcrow <mahalcro@us.ibm.com>
* Michael C. Thompsion <mcthomps@us.ibm.co... | T-Macgnolia/android_kernel_lge_g4stylus-stock | fs/ecryptfs/inode.c | C | gpl-2.0 | 34,296 |
/*
* adapter.c
*
* Xilinx Ethernet Adapter component to interface XEmac component to Linux
*
* Author: MontaVista Software, Inc.
* source@mvista.com
*
* 2002-2005 (c) MontaVista Software, Inc. This file is licensed under the
* terms of the GNU General Public License version 2. This program is license... | fzqing/linux-2.6 | drivers/net/xilinx_emac/adapter.c | C | gpl-2.0 | 37,026 |
/* Target-dependent code for FreeBSD/i386.
Copyright (C) 2003-2017 Free Software Foundation, Inc.
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 published by
the Free Software Foundation; either ver... | mickael-guene/binutils | gdb/i386-fbsd-tdep.c | C | gpl-2.0 | 14,057 |
/*
* $Id$
*
* Copyright (C) 2007 iptelorg GmbH
*
* This file is part of SIP-router, a free SIP server.
*
* SIP-router 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... | gbour/kamailio | cfg/cfg_struct.c | C | gpl-2.0 | 36,914 |
/* drivers/input/misc/gpio_event.c
*
* Copyright (C) 2007 Google, 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 t... | Awesomez/htc_glacier_kernel | drivers/input/misc/gpio_event.c | C | gpl-2.0 | 7,016 |
/*
* Copyright (c) 2014, The Linux Foundation. All rights reserved.
* 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 notice and this permission notice appear in all copies.
* THE SOFTWARE IS PROVIDED "AS ... | wjrsonic/openwrt | qca/src/qca-ssdk-shell/src/shell/shell_config.c | C | gpl-2.0 | 57,617 |
#include "../Utils/utils.h"
#include "../Methnum/methnum.h"
#include "../Var/var.h"
#include "../T0/t0.h"
#include "upot.h"
static inline double denf (Var * V ) { return 1 - 6* V->phi* V->phibar - 3* V->phi2* V->phibar2 + 4* (V->phi3 + V->phibar3) ;}
static inline double dphi_denf (Var * ... | AlexandreBiguet/NJLlikeModels | legacy/programs/njl-2-b/Upot/log.c | C | gpl-3.0 | 17,489 |
extern void f(int x);
extern int g(int x);
int main(void)
{
f(22);
g(42);
}
| pipcet/asmjs | testsuite/old/036-funcall.c | C | gpl-3.0 | 81 |
/*
img_tga.c - tga format load & save
Copyright (C) 2007 Uncle Mike
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.
This progr... | ShaunNoWay/xash3d | engine/common/imagelib/img_tga.c | C | gpl-3.0 | 8,358 |
#define AUBIO_UNSTABLE 1
#include <aubio.h>
#include "utils_tests.h"
// this file uses the unstable aubio api, please use aubio_source instead
// see src/io/source.h and tests/src/source/test-source.c
int main (int argc, char **argv)
{
uint_t err = 0;
if (argc < 2) {
err = 2;
PRINT_ERR("not enough argumen... | dafx/aubio | tests/src/io/test-source_apple_audio.c | C | gpl-3.0 | 1,939 |
/* Substring test for UTF-32 strings.
Copyright (C) 2002, 2006, 2009-2010 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
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 F... | coapp-packages/libunistring | lib/unistr/u32-endswith.c | C | gpl-3.0 | 1,015 |
/*
* BermudaOS - get
* Copyright (C) 2012 Michel Megens
*
* 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.... | Orion-Community/BermudaOS | src/lib/c/stdio/get.c | C | gpl-3.0 | 818 |
/*
* irqtimer.c
*
* Created on: 12.04.2014
* Author: Jonathan Thaler
*/
#include "irqtimer.h"
#include "../hal/timer/timer_hal.h"
#define IRQTIMER_ADDR GPTIMER2_ADDR
void
irqTimerInit( uint32_t irqIntervalMs )
{
// stop timer, maybe was started bevore reset
irqTimerStop();
// TODO: disable post-mode
... | FHV-S1-FFPST/BOSS | kernel/src/timer/irqtimer.c | C | gpl-3.0 | 1,220 |
/*
* Map names to server_ids
*
* Copyright Volker Lendecke <vl@samba.org> 2014
*
* 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) an... | kernevil/samba | lib/util/server_id_db.c | C | gpl-3.0 | 7,551 |
/*------------------------------------------------------------------------
*
* Copyright (c) 1997-1998 by Cornell University.
*
* See the file "license.txt" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
*----------------------------------------------------... | ihmc/nomads | externals/dali-1.0/packages/pnm/pnmcast.c | C | gpl-3.0 | 2,076 |
/** @file array.c
*
* Source for the different array types used in Fuzzball. This is primarily
* used for MUF primitives.
*
* This file is part of Fuzzball MUCK. Please see LICENSE.md for details.
*/
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "con... | revarbat/fuzzball | src/array.c | C | gpl-3.0 | 79,224 |
/* Test file for mpfr_atanh.
Copyright 2001-2015 Free Software Foundation, Inc.
Contributed by the AriC and Caramel 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 GNU Lesser General Public License as p... | evaautomation/mpfr | tests/tatanh.c | C | gpl-3.0 | 4,654 |
/*
* CloudVPN
*
* This program is a free software: You can redistribute and/or modify it
* under the terms of GNU GPLv3 license, or any later version of the license.
* The program is distributed in a good hope it will be useful, but without
* any warranty - see the aforementioned license for more details.
* You... | kaostao/cloudvpn | src/cloudvpn.c | C | gpl-3.0 | 721 |
/* xfs.c - XFS. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2005,2006,2007,2008,2009 Free Software Foundation, Inc.
*
* GRUB 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 v... | a1ive/grub2-mod | grub-core/fs/xfs.c | C | gpl-3.0 | 30,640 |
/* Generated automatically. DO NOT EDIT! */
#define SIMD_HEADER "simd-avx-128-fma.h"
#include "../common/t1buv_3.c"
| Shangxz/HackIllinois2017 | tone-analysis/fftw-3.3.6-pl1/dft/simd/avx-128-fma/t1buv_3.c | C | gpl-3.0 | 117 |
/* Generated automatically. DO NOT EDIT! */
#define SIMD_HEADER "simd-kcvi.h"
#include "../common/n2fv_12.c"
| Shangxz/HackIllinois2017 | tone-analysis/fftw-3.3.6-pl1/dft/simd/kcvi/n2fv_12.c | C | gpl-3.0 | 110 |
/*
This file is part of SUPPL - the supplemental library for DOS
Copyright (C) 1996-2000 Steffen Kaiser
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 ... | joyent/sdcboot | freedos/source/command/suppl/src/dbgv_s12.c | C | mpl-2.0 | 1,700 |
/*!
\file diglib/port_init.c
\brief Vector library - portability (lower level functions)
Lower level functions for reading/writing/manipulating vectors.
This code is a quick hack to allow the writing of portable
binary data files.
The approach is to take known values and compare them against
the... | AsherBond/MondocosmOS | grass_trunk/lib/vector/diglib/port_init.c | C | agpl-3.0 | 7,584 |
/*
Copyright (C) 2014-2015 Jakob Frielingsdorf
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 of the
License, or (at your option) any later version.
This program is di... | RonnySoak/libssa | src/algo/align.c | C | agpl-3.0 | 4,931 |
/*
* Intel PRO/1000 Linux driver
* Copyright(c) 1999 - 2015 Intel Corporation.
*
* 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 distribute... | xuzhaokui/PF_RING | drivers/DNA/e1000e-3.2.4.2-DNA/src/manage.c | C | lgpl-2.1 | 9,408 |
/*
* Copyright © 2007 Chris Wilson
*
* 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 in all copies
* and that both that copyright notice and this permission notice
* appe... | pocketbook-free/browser | cairo-1.8.10/test/clip-empty.c | C | lgpl-2.1 | 2,177 |
/*
* wave.c -- wave filter
* Copyright (C) ?-2007 Leny Grisel <leny.grisel@laposte.net>
* Copyright (C) 2007 Jean-Baptiste Mardelle <jb@ader.ch>
*
* 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 Softwa... | mltframework/mlt | src/modules/kdenlive/filter_wave.c | C | lgpl-2.1 | 5,070 |
#include "../../include/stringptr.h"
int stringptr_shiftleft(stringptr* s, size_t count) {
if(!s) return 0;
if(s->size >= count) {
s->size -= count;
s->ptr[s->size] = 0;
return 1;
}
return 0;
}
| rofl0r/libulz | src/stringptr/stringptr_shiftleft.c | C | lgpl-2.1 | 205 |
/*
* linux/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation;... | brammittendorff/PF_RING | linux-3.16.7-ckt9/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c | C | lgpl-2.1 | 12,266 |
/*
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... | fredrik-johansson/flint2 | fmpz_poly/test/t-get_set_coeff_ui.c | C | lgpl-2.1 | 1,476 |
/*
Copyright (C) 2011-2012 Fredrik Johansson
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... | wbhart/flint2 | fmpz_poly_mat/rref.c | C | lgpl-2.1 | 2,667 |
/*
Copyright (C) 2010 Sebastian Pancratz
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 opt... | dsroche/flint2 | fmpz/tdiv_q.c | C | lgpl-2.1 | 1,635 |
/*
* Copyright (C) 2016 Freie Universität Berlin
*
* 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.
*/
/**
* @{
*
* @file
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
* @}
*/
#... | A-Paul/RIOT | tests/lwip_sock_udp/stack.c | C | lgpl-2.1 | 13,762 |
/*
* compile with
* gcc helix_pred.c -lm -O9 -Wall -Wextra -ansi -pedantic -o helix.x
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define MAXLENGTH 70000
enum {
A, C, D, E, F, G, H, I, K, L, M, N, P, Q, R, S, T, V, W, Y, X, Z, NR
};
enum {
CA, CB, CO, HN, HA, NH, NSHIFT
... | carlocamilloni/d2D | src/helix_pred.c | C | lgpl-2.1 | 9,076 |
/*
* Copyright (c) 2007 Athena Smartcard Solutions 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 License, or (at your option) any later version... | dirkx/OpenSC | src/libopensc/card-asepcos.c | C | lgpl-2.1 | 32,148 |
/* mosaic two images left/right or up/down
*
* 22/5/14
* - from vips_mosaic()
* 4/9/18
* - add docs for transform output
* 18/6/20 kleisauke
* - convert to vips8
*/
/*
This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify
it under the terms of the GNU Less... | lovell/libvips | libvips/mosaicing/mosaic.c | C | lgpl-2.1 | 9,555 |
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
* Copyright (C) <2009> Sebastian Dröge <sebastian.droege@collabora.co.uk>
*
* EffecTV:
* Copyright (C) 2001-2002 FUKUCHI Kentarou
*
* QuarkTV - motion disolver.
*
* EffecTV is free software. This library is free software;
* you can redis... | Distrotech/gst-plugins-good | gst/effectv/gstquark.c | C | lgpl-2.1 | 8,391 |
/*
Copyright (C) 2011 Sebastian Pancratz
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 opt... | jpflori/flint2 | nmod_poly/test/t-resultant_hgcd.c | C | lgpl-2.1 | 3,201 |
#include "clar_libgit2.h"
#include "fileops.h"
#include <ctype.h>
void test_repo_open__cleanup(void)
{
cl_git_sandbox_cleanup();
if (git_path_isdir("alternate"))
git_futils_rmdir_r("alternate", NULL, GIT_RMDIR_REMOVE_FILES);
}
void test_repo_open__bare_empty_repo(void)
{
git_repository *repo = cl_git_sandbox_in... | evhan/libgit2 | tests-clar/repo/open.c | C | lgpl-2.1 | 11,947 |
/*****************************************************************************
* dr_48.c
* Copyright (C) 2001-2011 VideoLAN
* $Id$
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
*
* This library is free software; you can redistribute it and/or
* modify i... | vlc-mirror/libdvbpsi | src/descriptors/dr_48.c | C | lgpl-2.1 | 5,571 |
/*
* Copyright © 2008 Adrian Johnson
*
* 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, pub... | zwcloud/ZWCloud.Cairo | source/Native/cairo/test/pdf-mime-data.c | C | lgpl-3.0 | 5,556 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2018 (c) Kontron Europe GmbH (Author: Rudolf Hoyler)
*/
#include "ua_plugin_network.h"
#include "u... | JayGro/open62541 | plugins/networking/ua_network_pubsub_ethernet.c | C | lgpl-3.0 | 15,708 |
/*
* Copyright (C) 2008 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/hprof/Hprof.c | C | unlicense | 5,396 |
/*
* Copyright (c) 2017 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdlib.h>
#include <string.h>
#include <zephyr.h>
#include <misc/printk.h>
#include <shell/shell.h>
#include <flash.h>
#include <device.h>
#include <soc.h>
#define THIS_MODULE_NAME "flash"
/*
* When FLASH_DEV_NAME is av... | mbolivar/zephyr | samples/drivers/flash_shell/src/main.c | C | apache-2.0 | 12,995 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1999-2016. 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
*
... | kvakvs/otp | lib/odbc/c_src/odbcserver.c | C | apache-2.0 | 83,128 |
/* *****************************************************************
*
* Copyright 2016 Samsung Electronics 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
*... | iotivity/iotivity | resource/csdk/security/provisioning/src/cloud/csr.c | C | apache-2.0 | 13,396 |
/* Copyright (c) 2007-2012 IETF Trust, CSIRO, Xiph.Org Foundation. All rights reserved.
Written by Jean-Marc Valin */
/*
This file is extracted from RFC6716. Please see that RFC for additional
information.
Redistribution and use in source and binary forms, with or without
modification, are permitted pr... | sergecodd/FireFox-OS | B2G/gecko/media/libopus/celt/vq.c | C | apache-2.0 | 11,724 |
/*
* 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
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | andrzej-kaczmarek/incubator-mynewt-core | hw/mcu/stm/stm32f1xx/src/hal_i2c.c | C | apache-2.0 | 4,439 |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* RDP Codecs
*
* Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* 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
... | MartinHaimberger/FreeRDP | libfreerdp/core/codecs.c | C | apache-2.0 | 5,819 |
/******************************************************************************
*
* Module Name: pstree - Parser op tree manipulation/traversal/search
*
*****************************************************************************/
/******************************************************************************
*
... | veritas-shine/minix3-rpi | minix/drivers/power/acpi/parser/pstree.c | C | apache-2.0 | 12,764 |
/**
* 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
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | placrosse/ImpalaToGo | be/src/util/jni-helper.c | C | apache-2.0 | 19,791 |
/* $Id$
*
* 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 regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "Lice... | OBIGOGIT/etch | binding-c/runtime/c/src/main/transport/etch_plain_mailbox.c | C | apache-2.0 | 30,150 |
/*****************************************************************************
*
* Copyright (c) 1996-1999 ADVANCED MICRO DEVICES, INC. All Rights reserved.
*
* This software is unpublished and contains the trade secrets and
* confidential proprietary information of AMD. Unless otherwise
* provided in the Softwar... | markbb1957/FFalconSource | src/amd/lib-src/detect.c | C | bsd-2-clause | 1,987 |
/*-
* Copyright (c) 1982, 1992, 1993
* 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 conditions
* are met:
* 1. Redistributions of source code must retain the abov... | dplbsd/zcaplib | head/sys/netipx/ipx_cksum.c | C | bsd-2-clause | 4,708 |
/*
* @TAG(OTHER_BSD)
*/
/**
* \file cpsw.c
*
* \brief CPSW device abstraction layer APIs.
*
* This file contains the device abstraction layer APIs for CPSW RGMII.
*/
/*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, w... | seL4/libsel4platsupport | src/plat/am335x/cpsw.c | C | bsd-2-clause | 45,362 |
/**
* \file mcasp.c
*
* \brief This file contains functions which configure McASP pins
*/
/*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | gerryg400/anvilos | src/bsp/am335x/platform/evmAM335x/mcasp.c | C | bsd-3-clause | 3,973 |
/*
* Copyright (C) 2010-2012 Free Software Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* This file is part of GNUTLS.
*
* The GNUTLS 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 Found... | GaloisInc/hacrypto | src/C/gnutls/gnutls-3.2.12/lib/nettle/mpi.c | C | bsd-3-clause | 12,637 |
/*
* Code to handle displaying line numbers.
*
* Finding the line number of a given file position is rather tricky.
* We don't want to just start at the beginning of the file and
* count newlines, because that is slow for large files (and also
* wouldn't work if we couldn't get to the start of the file; e.g.
* i... | dscho/nmh | docs/historical/mh-6.8.5/miscellany/less-177/linenum.c | C | bsd-3-clause | 9,905 |
/*-
* Copyright (C) 2005 David Xu <davidxu@freebsd.org>
* 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, t... | jrobhoward/SCADAbase | lib/libthr/arch/arm/arm/pthread_md.c | C | bsd-3-clause | 1,764 |
// Copyright 2011 Google Inc. All Rights Reserved.
//
// This code is licensed under the same terms as WebM:
// Software License Agreement: http://www.webmproject.org/license/software/
// Additional IP Rights Grant: http://www.webmproject.org/license/additional/
// --------------------------------------------------... | dumganhar/libwebp | src/mux/muxedit.c | C | bsd-3-clause | 23,157 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE785_Path_Manipulation_Function_Without_Max_Sized_Buffer__w32_06.c
Label Definition File: CWE785_Path_Manipulation_Function_Without_Max_Sized_Buffer__w32.label.xml
Template File: point-flaw-06.tmpl.c
*/
/*
* @description
* CWE: 785 Path Manipulation Function With... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE785_Path_Manipulation_Function_Without_Max_Sized_Buffer/CWE785_Path_Manipulation_Function_Without_Max_Sized_Buffer__w32_06.c | C | bsd-3-clause | 4,336 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_fgets_add_11.c
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-11.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fgets Read data from the console using fgets()
* GoodS... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s02/CWE190_Integer_Overflow__int_fgets_add_11.c | C | bsd-3-clause | 5,940 |
/*
* disasm.c
* SDMSymbolTable
*
* Copyright (c) 2013, Sam Marshall
* 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... | samdmarshall/SDMSymbolTable | disasm.c | C | bsd-3-clause | 4,018 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_68a.c
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-68a.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: console Read input ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s04/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_68a.c | C | bsd-3-clause | 5,261 |
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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 ... | LeZhang2016/openthread | examples/platforms/da15000/logging.c | C | bsd-3-clause | 2,173 |
#include <stdlib.h>
void csolve_fold_all () {
}
void validptr (void *p) {
return;
}
int nondet () {
return 0;
}
int nondetnn () {
return 0;
}
int nondetpos () {
return 1;
}
int nondetrange (int l, int u) {
return l;
}
int csolve_assert (int p) {
if (!p) {
exit (1);
}
retu... | ucsd-progsys/csolve-bak | lib/libcsolve.c | C | bsd-3-clause | 675 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_41.c
Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml
Template File: sources-sink-41.tmpl.c
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: ne... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s02/CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_41.c | C | bsd-3-clause | 3,404 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE563_Unused_Variable__unused_uninit_variable_long_15.c
Label Definition File: CWE563_Unused_Variable__unused_uninit_variable.label.xml
Template File: source-sinks-15.tmpl.c
*/
/*
* @description
* CWE: 563 Unused Variable
* BadSource: Initialize data
* Sinks:... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE563_Unused_Variable/CWE563_Unused_Variable__unused_uninit_variable_long_15.c | C | bsd-3-clause | 3,154 |
/*
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | endlessm/chromium-browser | third_party/webrtc/system_wrappers/source/cpu_features_linux.c | C | bsd-3-clause | 2,373 |
/************************************************************************
* *
* ROUTINES IN THIS FILE: *
* *
* ... | JianpingZeng/xcc | xcc/test/mediabench4/rasta/src/powspec.c | C | bsd-3-clause | 3,476 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__wchar_t_declare_memmove_53c.c
Label Definition File: CWE127_Buffer_Underread.stack.label.xml
Template File: sources-sink-53c.tmpl.c
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the allocated m... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE127_Buffer_Underread/s04/CWE127_Buffer_Underread__wchar_t_declare_memmove_53c.c | C | bsd-3-clause | 1,507 |
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED.
*
* $COPYRIGHT$
* $HEADER$
*/
#include "ucp_int.h"
static void ucp_worker_close_ifaces(ucp_worker_h worker)
{
ucp_rsc_index_t rsc_index;
for (rsc_index = 0; rsc_index < worker->context->num_tls; ++rsc_index) {
if (worker... | miked-mellanox/ucx | src/ucp/proto/worker.c | C | bsd-3-clause | 9,396 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.