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) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | Helena-High/school-app | node_modules/react-native/React/CSSLayout/CSSNodeList.c | C | apache-2.0 | 2,143 |
#define JEMALLOC_ARENA_C_
#include "jemalloc/internal/jemalloc_internal.h"
/******************************************************************************/
/* Data. */
ssize_t opt_lg_dirty_mult = LG_DIRTY_MULT_DEFAULT;
static ssize_t lg_dirty_mult_default;
arena_bin_info_t arena_bin_info[NBINS];
size_t map_bias;
s... | yy-nm/jemalloc | src/arena.c | C | bsd-2-clause | 94,907 |
/* vim:set ft=c ts=4 sw=4 et fdm=marker: */
#include "ddebug.h"
#include "ngx_http_lua_common.h"
#include "api/ngx_http_lua_api.h"
lua_State *
ngx_http_lua_get_global_state(ngx_conf_t *cf)
{
ngx_http_lua_main_conf_t *lmcf;
lmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_lua_module);
return lmcf... | Gamevy/nginx-1.2.1 | debian/modules/nginx-lua/src/ngx_http_lua_api.c | C | bsd-2-clause | 976 |
/*-
* Copyright (c) 2003-2007 Tim Kientzle
* 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/contrib/libarchive/cpio/test/test_option_l.c | C | bsd-2-clause | 2,036 |
/* $FreeBSD: soc2013/dpl/head/contrib/ipfilter/lib/v6ionames.c 170311 2007-06-04 02:54:36Z darrenr $ */
/*
* Copyright (C) 2003-2005 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: v6ionames.c,v 1.1.4.3 2006/06/16 17:21:18 darrenr Exp $
*/
#include "ipf.h"
#ifdef USE_INET6
... | dplbsd/zcaplib | head/contrib/ipfilter/lib/v6ionames.c | C | bsd-2-clause | 787 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_file_w32_vsnprintf_04.c
Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml
Template File: sources-vasinks-04.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: file Rea... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s05/CWE134_Uncontrolled_Format_String__wchar_t_file_w32_vsnprintf_04.c | C | bsd-3-clause | 8,466 |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
#include "common_tools.h"
#include "opengles.h"
typedef void (APIENTRY *glAlphaToCoverageDitherControlNVPROC) (jint);
EXTERN_C_ENTER
JNIEXPORT void JNICALL Java_org_lwjgl_opengles_NV... | LWJGL-CI/lwjgl3 | modules/lwjgl/opengles/src/generated/c/org_lwjgl_opengles_NVAlphaToCoverageDitherControl.c | C | bsd-3-clause | 644 |
/*-
* Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
* 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
* notic... | jhbsz/OSI-OS | tools/tools/ath/common/dumpregs_5212.c | C | bsd-3-clause | 16,746 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE546_Suspicious_Comment__BUG_13.c
Label Definition File: CWE546_Suspicious_Comment.label.xml
Template File: point-flaw-13.tmpl.c
*/
/*
* @description
* CWE: 546 Suspicious Comment
* Sinks: BUG
* GoodSink: Comments show no indications of bugs
* BadSink... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE546_Suspicious_Comment/CWE546_Suspicious_Comment__BUG_13.c | C | bsd-3-clause | 2,370 |
/*
* Copyright (c) 2020-2021, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <stdint.h>
#include <lib/el3_runtime/context_mgmt.h>
#include <lib/spinlock.h>
#include "spmd_private.h"
static struc... | jenswi-linaro/arm-trusted-firmware | services/std_svc/spmd/spmd_pm.c | C | bsd-3-clause | 5,044 |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* ncval.c - command line validator for NaCl.
* Mostly for testing.
*/
#ifndef NACL_TRUSTED_BUT_NOT_TCB
#error("This file is not me... | zerovm/validator | test/dyn_linked/ncval.c | C | bsd-3-clause | 32,478 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE252_Unchecked_Return_Value__char_fread_07.c
Label Definition File: CWE252_Unchecked_Return_Value.label.xml
Template File: point-flaw-07.tmpl.c
*/
/*
* @description
* CWE: 252 Unchecked Return Value
* Sinks: fread
* GoodSink: Check if fread() fails
* ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE252_Unchecked_Return_Value/CWE252_Unchecked_Return_Value__char_fread_07.c | C | bsd-3-clause | 3,593 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hthread.h>
#define LOG_SERIAL 1
#include <log/log.h>
#define HWTI_ZERO_BASEADDR (void*)(0x63000000)
#define HWTI_ONE_BASEADDR (void*)(0x63010000)
void readHWTStatus( void* baseAddr) {
printf( " HWT Thread ID %x \n", read_reg(baseAddr) );
p... | masson2013/heterogeneous_hthreads | src/test/testsuite/functional/timing.c | C | bsd-3-clause | 2,272 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE197_Numeric_Truncation_Error__int_fgets_to_char_45.c
Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml
Template File: sources-sink-45.tmpl.c
*/
/*
* @description
* CWE: 197 Numeric Truncation Error
* BadSource: fgets Read data from the cons... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s01/CWE197_Numeric_Truncation_Error__int_fgets_to_char_45.c | C | bsd-3-clause | 3,292 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__char_listen_socket_vprintf_52c.c
Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml
Template File: sources-vasinks-52c.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: listen... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s03/CWE134_Uncontrolled_Format_String__char_listen_socket_vprintf_52c.c | C | bsd-3-clause | 2,650 |
/* $NetBSD: cfx.c,v 1.1.1.2 2014/04/24 12:45:29 pettai Exp $ */
/*
* Copyright (c) 2003, PADL Software Pty Ltd.
* 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... | GaloisInc/hacrypto | src/C/NetBSD-7.0/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c | C | bsd-3-clause | 45,673 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE563_Unused_Variable__unused_uninit_variable_char_22b.c
Label Definition File: CWE563_Unused_Variable__unused_uninit_variable.label.xml
Template File: source-sinks-22b.tmpl.c
*/
/*
* @description
* CWE: 563 Unused Variable
* BadSource: Initialize data
* Sink... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE563_Unused_Variable/CWE563_Unused_Variable__unused_uninit_variable_char_22b.c | C | bsd-3-clause | 2,328 |
/***********************************************************************/
/* */
/* OCaml */
/* */
/* Xavier Ler... | ucsd-progsys/nate | eval/ocaml/stdlib/header.c | C | bsd-3-clause | 5,146 |
/* sane - Scanner Access Now Easy.
Copyright (C) 1996, 1997 David Mosberger-Tang and Andreas Beck
This file is part of the SANE package.
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;... | illwieckz/debian_copyist_brother | material/sources/brscan3-src-0.2.11-5/brscan/sanei/sanei_constrain_value.c | C | isc | 4,296 |
//*****************************************************************************
//
// Copyright (C) 2014 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
// ... | SiarheiVolkau/CC3200-Linux-SDK | examples/TCP Socket/main.c | C | mit | 41,530 |
/*
* Copyright (c) 2016 Craig Stout <cstout@chromium.org>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#if defined (LCD_LS027B7DH01)
#include <target/display/LS027B7DH01.h>
#elif defined (LCD_LS013B7DH03)
#in... | travisg/lk | target/dartuinoP0/display/memory_lcd_mono.c | C | mit | 1,115 |
#include <stdio.h>
int main ()
{
char c;
scanf ("%c",&c);
c='z'-(c-'a');
printf ("\n %c\n",c);
return 0;
}
| Enchak/c-programming-homework | B/02/18/04_symmetric_letters.c | C | mit | 150 |
/* Copyright (c) 2010-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "execv-const.h"
#include <unistd.h>
static char **argv_drop_const(const char *const argv[])
{
char **ret;
unsigned int i, count;
for (count = 0; argv[count] != NULL; count++) ;
ret = t_new(char *, count + 1);... | dscho/dovecot | src/lib/execv-const.c | C | mit | 830 |
// https://computing.llnl.gov/tutorials/pthreads/samples/hello.c
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
const int NUM_THREADS = 4;
const int N = 1000;
const int CHUNK_SIZE = N/NUM_THREADS;
static double x[N];
static double y[N];
static double z[N];
pthread_mutex_t mymutex = PTHREAD_MUTEX_INITIA... | YuanyuanZh/runtime | wlib/src/pthreads_playground.c | C | mit | 1,501 |
/*
SDL_image: An example image loading library for use with SDL
Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permiss... | zarboz/XBMC-PVR-mac | tools/darwin/depends/libsdl_image/IMG_xpm.c | C | gpl-2.0 | 11,413 |
#include "cgit.h"
#include "ui-ssdiff.h"
#include "html.h"
#include "ui-shared.h"
#include "ui-diff.h"
extern int use_ssdiff;
static int current_old_line, current_new_line;
static int **L = NULL;
struct deferred_lines {
int line_no;
char *line;
struct deferred_lines *next;
};
static struct deferred_lines *deferr... | johnkeeping/cgit | ui-ssdiff.c | C | gpl-2.0 | 9,342 |
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... | sushantmane/lustre-stable | lustre/obdclass/idmap.c | C | gpl-2.0 | 13,285 |
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mmio.h>
#include <soc/clock.h>
#include <soc/grf.h>
#include <soc/pmu.h>
#include <soc/tsadc.h>
#include <stdint.h>
struct rk3288_tsadc_regs {
u32 user_con;
u32 auto_con;
u32 int_en;
u32 int_pd;
u32 reserved0[(0x20 - 0x10) / 4];
u32 data0;
u32 data1;... | felixsinger/coreboot | src/soc/rockchip/rk3288/tsadc.c | C | gpl-2.0 | 2,411 |
/* File code8080.c: 2.2 (84/08/31,10:05:09) */
/*% cc -O -c %
*
*/
#include <stdio.h>
#include "defs.h"
#include "data.h"
/*
* Some predefinitions:
*
* INTSIZE is the size of an integer in the target machine
* BYTEOFF is the offset of an byte within an integer on the
* target m... | vandys/FUZIX | Applications/SmallC/code8080.c | C | gpl-2.0 | 16,718 |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* ... | aseprite-gpl/aseprite | src/allegro/src/x/xkeyboard.c | C | gpl-2.0 | 22,861 |
/*
* Copyright (c) 1996,1999 by Internet Software Consortium.
*
* $Id$
*
* Permission to use, copy, modify, and 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 PROVI... | hb9cwp/wireshark-jdsu | wsutil/inet_pton.c | C | gpl-2.0 | 6,022 |
#include <linux/interrupt.h>
#include <linux/kernel_stat.h>
#include <ifxmips_irq.h>
#include "mps.h"
#include "mps-irq.h"
#define MPS_REG_AD0_IRQ_BASE 0x40
#define MPS_REG_AD1_IRQ_BASE 0x44
#define MPS_REG_AD_IRQ_STATUS 0x00
#define MPS_REG_AD_IRQ_SET 0x08
#define MPS_REG_AD_IRQ_CLEAR 0x10
#define MPS_REG_AD_IRQ_EN... | 119/aircam-openwrt | package/lqtapi/src/mps/mps-irq.c | C | gpl-2.0 | 3,819 |
/*
* Broadcom Dongle Host Driver (DHD), common DHD core.
*
* Copyright (C) 1999-2011, 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 Lice... | CyanogenMod-Atrix/android_kernel_motorola_olympus | drivers/net/wireless/bcmdhd/dhd_common.c | C | gpl-2.0 | 64,424 |
/*
* Interface MIB architecture support for Solaris
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include "mibII/mibII_common.h"
#include "if-mib/ifTable/ifTable_constants.h"
#include "kernel_sunos5.h"
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include <net-snmp/data_a... | ingran/balzac | package/teltonika-snmpd/src/agent/mibgroup/if-mib/data_access/interface_solaris2.c | C | gpl-2.0 | 12,052 |
/*****************************************************************************
* common.c: misc common functions
*****************************************************************************
* Copyright (C) 2003-2015 x264 project
*
* Authors: Loren Merritt <lorenm@u.washington.edu>
* Laurent Aimar <fenri... | RuanJG/libx264 | common/common.c | C | gpl-2.0 | 49,868 |
/*
* escore-slim.c -- Slimbus interface for Audience earSmart chips
*
* Copyright 2011 Audience, Inc.
*
* Author: Greg Clemson <gclemson@audience.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by th... | meizuosc/m462 | sound/soc/meizu/audience/escore-slim.c | C | gpl-2.0 | 36,502 |
/*
* QEMU Ultrasparc APB PCI host
*
* Copyright (c) 2006 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | awilliam/qemu-kvm | hw/apb_pci.c | C | gpl-2.0 | 14,544 |
/*
* LZ4 Decompressor for Linux kernel
*
* Copyright (C) 2013, LG Electronics, Kyungsik Lee <kyungsik.lee@lge.com>
*
* Based on LZ4 implementation by Yann Collet.
*
* LZ4 - Fast LZ compression algorithm
* Copyright (C) 2011-2012, Yann Collet.
* BSD 2-Clause License (http://www.opensource.org/licenses/bsd-licen... | fjullien/barebox | lib/lz4/lz4_decompress.c | C | gpl-2.0 | 7,762 |
/* Test the `vmull_laneu32' ARM Neon intrinsic. */
/* This file was autogenerated by neon-testgen. */
/* { dg-do assemble } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-save-temps -O0" } */
/* { dg-add-options arm_neon } */
#include "arm_neon.h"
void test_vmull_laneu32 (void)
{
uint64x2... | ccompiler4pic32/pic32-gcc | gcc/testsuite/gcc.target/arm/neon/vmull_laneu32.c | C | gpl-2.0 | 658 |
#include <time.h>
extern void __tm_conv();
struct tm *
gmtime(timep)
__const time_t * timep;
{
static struct tm tmb;
__tm_conv(&tmb, timep, 0L);
return &tmb;
}
| mfld-fr/dev86 | libc/time/gmtime.c | C | gpl-2.0 | 174 |
/* Copyright (C) 2004-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2004.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published b... | NicoleRobin/glibc | elf/tst-dlopenrpath.c | C | gpl-2.0 | 1,832 |
/*
* Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com
* Written by Alex Tomas <alex@clusterfs.com>
*
* Architecture independence:
* Copyright (c) 2005, Bull S.A.
* Written by Pierre Peiffer <pierre.peiffer@bull.net>
*
* This program is free software; you can redistribute it and/or modi... | jorik041/Unleashed-Kernel-Series | fs/ext4/extents.c | C | gpl-2.0 | 136,546 |
/*
* AMD 76x Memory Controller kernel module
* (C) 2003 Linux Networx (http://lnxi.com)
* This file may be distributed under the terms of the
* GNU General Public License.
*
* Written by Thayne Harbaugh
* Based on work by Dan Hollis <goemon at anime dot net> and others.
* http://www.anime.net/~goemon/linux-ecc/... | nighthawk149/xpenology-4.2-kernel | drivers/edac/amd76x_edac.c | C | gpl-2.0 | 9,334 |
/*
* dev.c
*
* DSP-BIOS Bridge driver support functions for TI OMAP processors.
*
* Implementation of Bridge Mini-driver device operations.
*
* Copyright (C) 2005-2006 Texas Instruments, Inc.
*
* This package is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publi... | mephistophilis/samsung_nowplus_kernel | drivers/dsp/bridge/pmgr/dev.c | C | gpl-2.0 | 32,251 |
/*******************************************************************************
Implementation of Cisco Specific TLVs for LLDP
(c) Copyright SuSE Linux Products GmbH, 2011
Author(s): Hannes Reinecke <hare at suse dot de>
This program is free software; you can redistribute it and/or modify it
under the ter... | cleech/open-lldp | lldp_cisco_clif.c | C | gpl-2.0 | 3,676 |
/*
* File Name : linux/arch/arm/mach-emxx/emev_pdma.c
* Function : EM/EV PCM Direct interface used SW interrupt
* Release Version : Ver 1.03
* Release Date : 2011/3/22
*
* Copyright (C) 2010,2011 Renesas Electronics Corporation
*
* This program is free software; you can redistribute it and/or mod... | renesas/onekernel | arch/arm/mach-emxx/emev_pdma.c | C | gpl-2.0 | 10,556 |
/*
===========================================================================
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... | ariya/ioquake3 | code/renderer/tr_bsp.c | C | gpl-2.0 | 51,736 |
/*
* linux/fs/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* Some corrections by tytso.
*/
/* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname
* lookup logic.
*/
/* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture.
*/
#include <linux/init.h>
#include <linux/export.h... | geiti94/NEMESIS_KERNEL_N5 | fs/namei.c | C | gpl-2.0 | 104,404 |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2012 Alexander Block. All rights reserved.
*/
#include <linux/bsearch.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/sort.h>
#include <linux/mount.h>
#include <linux/xattr.h>
#include <linux/posix_acl_xattr.h>
#include <linux/radix-tree.h>
#in... | chenshuo/linux-study | fs/btrfs/send.c | C | gpl-2.0 | 186,002 |
/*
* linux/mm/vmscan.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
*
* Swap reorganised 29.12.95, Stephen Tweedie.
* kswapd added: 7.1.96 sct
* Removed kswapd_ctl limits, and swap out as many pages as needed
* to bring the system back to freepages.high: 2.4.97, Rik van Riel.
* Zone aware k... | Maxr1998/hellsCore-mako | mm/vmscan.c | C | gpl-2.0 | 101,044 |
#include <OOC/Make/LinkProgramC.d>
#include <__oo2c.h>
#include <setjmp.h>
static Object__StringArrayPtr OOC_Make_LinkProgramC__GetExternalLibs(const OOC_Repository__Module moduleList__ref[], OOC_LEN moduleList_0d, Object__String thisLibrary) {
register OOC_INT32 i0,i1,i2,i3,i4,i5,i6;
OOC_ALLOCATE_VPAR(moduleList,... | Classic-Tools/ooc | stage0/obj/OOC/Make/LinkProgramC.c | C | gpl-2.0 | 24,516 |
/*
* Copyright (C) 2016 Zeusis.
*
* 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 distribute... | dr4stic/android_kernel_leeco_msm8996 | drivers/usb/misc/ptn5150.c | C | gpl-2.0 | 35,046 |
/*Qualcomm Secure Execution Environment Communicator (QSEECOM) driver
*
* 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 ... | xiaognol/android_kernel_lg_f320s | drivers/misc/qseecom.c | C | gpl-2.0 | 95,801 |
/**
********************************************************************************
\file pdoucal.c
\brief Generic functions of user PDO CAL module
This file contains the generic functions of the user PDO CAL module.
\ingroup module_pdoucal
************************************************************************... | openPOWERLINK/openPOWERLINK_V2 | stack/src/user/pdo/pdoucal.c | C | gpl-2.0 | 8,389 |
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2012 - 2013, Digium, Inc.
*
* David M. Lee, II <dlee@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the... | leedm777/asterisk | main/crypt.c | C | gpl-2.0 | 4,663 |
/*
* Versatile Express V2M Motherboard Support
*/
#include <linux/device.h>
#include <linux/amba/bus.h>
#include <linux/amba/mmci.h>
#include <linux/io.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/smsc911x.h>
#include <linux/spinlock.h>
#include <linux/sysdev.h>
#include <linux/usb/is... | geeknik/StupidFast | arch/arm/mach-vexpress/v2m.c | C | gpl-2.0 | 8,093 |
/*
* File : 24LCxx.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Autho... | blueskycoco/rtt | bsp/stm32f20x/Drivers/24LCxx.c | C | gpl-2.0 | 4,084 |
/* Special implementation of the SPREAD intrinsic
Copyright (C) 2008-2013 Free Software Foundation, Inc.
Contributed by Thomas Koenig <tkoenig@gcc.gnu.org>, based on
spread_generic.c written by Paul Brook <paul@nowt.org>
This file is part of the GNU Fortran runtime library (libgfortran).
Libgfortran is free ... | iains/darwin-gcc-4-8 | libgfortran/generated/spread_i4.c | C | gpl-2.0 | 6,946 |
#include "cpu.h"
#include "exec/gdbstub.h"
#include "helper.h"
#include "qemu/host-utils.h"
#include "sysemu/arch_init.h"
#include "sysemu/sysemu.h"
#include "qemu/bitops.h"
#include "qemu/crc32c.h"
#include <zlib.h> /* For crc32 */
#ifndef CONFIG_USER_ONLY
static inline int get_phys_addr(CPUARMState *env, uint32_t ad... | JavaGuy147/RT-Xen-Scheduler | tools/qemu-xen/target-arm/helper.c | C | gpl-2.0 | 172,615 |
/*
* Copyright (C) 2009 SHARP CORPORATION 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.
*
* This program is distributed in the hope t... | PyYoshi/b2g_kernel_sharp_is01 | arch/arm/mach-msm/qdsp6/msm8k_cad_volume.c | C | gpl-2.0 | 41,634 |
/* System trusted keyring for trusted public keys
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licence
* as published by the Free S... | cneira/ebpf-backports | linux-3.10.0-514.21.1.el7.x86_64/kernel/system_keyring.c | C | gpl-2.0 | 3,409 |
/*
* 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... | cile381/sxe_sensation_kernel | drivers/usb/host/xhci.c | C | gpl-2.0 | 97,944 |
/*
Unix SMB/CIFS implementation.
a partial implementation of DES designed for use in the
SMB authentication protocol
Copyright (C) Andrew Tridgell 1998
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
t... | paul-chambers/netgear-r7800 | git_home/samba.git/source/libsmb/smbdes.c | C | gpl-2.0 | 12,629 |
/*
* Purpose: Test binding strings and ints, attempt 2nd query with results pending.
* Functions: dbbind dbcmd dbnextrow dbopen dbresults dbsqlexec
*/
#include "common.h"
static char software_version[] = "$Id: t0007.c,v 1.23 2010/12/30 18:54:08 freddy77 Exp $";
static void *no_unused_var_warn[] = { software_ver... | Distrotech/freetds | src/dblib/unittests/t0007.c | C | gpl-2.0 | 5,037 |
/***************************************************************************\
* *
* BitlBee - An IRC to IM gateway *
* Utility functions for file transfer *
* ... | vmiklos/bitlbee | lib/ftutil.c | C | gpl-2.0 | 5,060 |
/*
* IBM PowerPC IBM eBus Infrastructure Support.
*
* Copyright (c) 2005 IBM Corporation
* Joachim Fenkes <fenkes@de.ibm.com>
* Heiko J Schick <schickhj@de.ibm.com>
*
* All rights reserved.
*
* This source code is distributed under a dual license of GPL v2.0 and OpenIB
* BSD.
*
* OpenIB BSD License
*
* ... | heptalium/rpi-sources-3.16 | arch/powerpc/kernel/ibmebus.c | C | gpl-2.0 | 16,852 |
/* base64decode.c
* Copyright (C) 2006 Tillmann Werner <tillmann.werner@gmx.de>
*
* This file is free software; as a special exception the author gives
* unlimited permission to copy and/or distribute it, with or without
* modifications, as long as this notice is preserved.
*
* This program is distributed in the... | tillmannw/honeytrap | tools/base64decode.c | C | gpl-2.0 | 3,746 |
/**
* \file ui-command.c
* \brief Deal with UI only command processing.
*
* Copyright (c) 1997-2014 Angband developers
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software
* Foundation, ... | MaddTheSane/angband | src/ui-command.c | C | gpl-2.0 | 13,766 |
/* The "ls" standard command.
*
* FIXME: we should chdir into the directory we are listing if doing stats
* and then stat the shortname (this saves lots of filename walks and the
* resulting touches of atime).
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#incl... | vandys/FUZIX | Applications/util/ls.c | C | gpl-2.0 | 8,176 |
/* magic.c - PPP Magic Number routines.
*
* Copyright (C) 1989 Carnegie Mellon University.
*
* 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 you... | abeyt/pam_tacplus | libtac/lib/magic.c | C | gpl-2.0 | 1,860 |
/*
* 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 details.
*
* Copyright (C) 2005 by Christian Limpach
*
*/
/*
* Some codes in this file was modified
* for supporting ARM processor by Samsung Ele... | andreiw/xen3-arm-tegra | tools/xcutils/xc_restore.c | C | gpl-2.0 | 483 |
/****************************************************************
*
* brent.c: Minmization of a multivariable function according to
* Brent's algorithm.
*
****************************************************************
*
* Copyright 1996, 1997, 1998, 1999, 2000 - Brian Gough
* Copyright 2002-2018 - th... | dschopf/potfit | src/brent.c | C | gpl-2.0 | 4,697 |
/* BFD back-end for CISCO crash dumps.
Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... | scs/uclinux | user/gdb/bfd/cisco-core.c | C | gpl-2.0 | 13,317 |
/*
* Squashfs - a compressed read only filesystem for Linux
*
* Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
* Phillip Lougher <phillip@squashfs.org.uk>
*
* 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... | gabry3795/android_kernel_huawei_mt7_l09 | fs/squashfs/dir.c | C | gpl-2.0 | 6,476 |
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/* vms.c -- BFD back-end for VAX (openVMS/VAX) and
EVAX (openVMS/Alpha) files.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Written by Klaus K"ampf (kkaempf@rmi.de)
This... | uhhpctools/openuh-openacc | osprey/cygnus/bfd/vms.c | C | gpl-3.0 | 53,163 |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
****/
// wad2lib.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#incl... | RichardRohac/vulkan-halflife | utils/common/wadlib.c | C | gpl-3.0 | 5,780 |
/*
Copyright (C) 2011 Statoil ASA, Norway.
The file 'matrix_lapack.c' is part of ERT - Ensemble based Reservoir Tool.
ERT 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 L... | arielalmendral/ert | libert_util/src/matrix_lapack.c | C | gpl-3.0 | 17,682 |
/*
Unix SMB/CIFS implementation.
HTTP library - Basic authentication mechanism gensec module
Copyright (C) 2014 Samuel Cabrero <samuelcabrero@kernevil.me>
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 Fr... | ceph/samba | source4/lib/http/gensec/basic.c | C | gpl-3.0 | 3,764 |
/*
* 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 "MaxNumberOfTFC-UL.h"
int
MaxNumberOfTFC_UL_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_co... | BramBonne/snoopsnitch-pcapinterface | contrib/libosmo-asn1-rrc/src/MaxNumberOfTFC-UL.c | C | gpl-3.0 | 5,852 |
/******************************************************************************
* *
* License Agreement *
* *
... | marqs85/ossc | software/sys_controller_bsp/HAL/src/alt_gmon.c | C | gpl-3.0 | 9,254 |
/*
* This file is part of Cleanflight.
*
* Cleanflight 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.
*
* Cleanflight is distr... | toastedcornflakes/betaflight | src/main/target/COLIBRI_RACE/target.c | C | gpl-3.0 | 2,154 |
/*********************************************************************/
/* */
/* Optimized BLAS libraries */
/* By Kazushige Goto <kgoto@tacc.utexas.edu> */
/* ... | cnr-isti-vclab/meshlab | unsupported/plugins_unsupported/external/GotoBLAS2/driver/level3/zherk_beta.c | C | gpl-3.0 | 2,463 |
#include "fitz.h"
#include "mupdf.h"
/* TODO: store JPEG compressed samples */
/* TODO: store flate compressed samples */
static fz_error pdf_load_jpx_image(fz_pixmap **imgp, pdf_xref *xref, fz_obj *dict);
static void
pdf_mask_color_key(fz_pixmap *pix, int n, int *colorkey)
{
unsigned char *p = pix->samples;
int l... | mescher/mupdf | pdf/pdf_image.c | C | gpl-3.0 | 7,629 |
/******************************************************************************
* $Id: AKFS_VNorm.c 580 2012-03-29 09:56:21Z yamada.rj $
******************************************************************************
*
* Copyright (C) 2012 Asahi Kasei Microdevices Corporation, Japan
*
* Licensed under the Apache L... | s20121035/rk3288_android5.1_repo | hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/AKFS_VNorm.c | C | gpl-3.0 | 2,902 |
/*
* Include files
*/
#include "../pblas.h"
#include "../PBpblas.h"
#include "../PBtools.h"
#include "../PBblacs.h"
#include "../PBblas.h"
#ifdef HERM
#undef HERM
#endif
//WCC:add
// To disable warnings generated by gcc-9.
void wcc_Cdgesd2d(int ConTxt, int m, int n, char *A, int lda,
int rdest, int... | RBigData/pbdSLAP | src/PBLAS/wcc_PTOOLS/wcc_PB_Cdtypeset.c | C | mpl-2.0 | 12,097 |
#include "mupdf/fitz.h"
static const struct { const char *ent; int ucs; } html_entities[] = {
{"nbsp",160}, {"iexcl",161}, {"cent",162}, {"pound",163},
{"curren",164}, {"yen",165}, {"brvbar",166}, {"sect",167},
{"uml",168}, {"copy",169}, {"ordf",170}, {"laquo",171},
{"not",172}, {"shy",173}, {"reg",174}, {"macr",1... | PuzzleFlow/mupdf | source/fitz/xml.c | C | agpl-3.0 | 15,023 |
/****************************************************************
* *
* Copyright 2001, 2009 Fidelity Information Services, Inc *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
*... | CoherentLogic/fis-gtm-netbsd | sr_vvms/dse_help.c | C | agpl-3.0 | 1,880 |
/* GStreamer Push File Source
* Copyright (C) <2007> Tim-Philipp Müller <tim centricular net>
*
* 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, o... | roopar/gst-plugins-good | gst/debugutils/gstpushfilesrc.c | C | lgpl-2.1 | 5,702 |
/* *******************************************************************************
* Copyright (c) 2013-2019 Google, Inc. All rights reserved.
* *******************************************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, ... | AmesianX/dynamorio | core/drlibc/drlibc_module_macho.c | C | lgpl-2.1 | 6,416 |
/* Copyright (c) Mark Harmstone 2016-17
*
* This file is part of WinBtrfs.
*
* WinBtrfs is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public Licence as published by
* the Free Software Foundation, either version 3 of the Licence, or
* (at your option) any ... | maharmstone/btrfs | src/registry.c | C | lgpl-3.0 | 36,250 |
/*
*************************************************************************
* Ralink Tech Inc.
* 5F., No.36, Taiyuan St., Jhubei City,
* Hsinchu County 302,
* Taiwan, R.O.C.
*
* (c) Copyright 2002-2007, Ralink Technology, Inc.
*
* This program is free software; you can redistribute it and/or modify *
* it ... | wallamejorge/WirelessSensorGas | rtl/wirelessUSBDrivers/Wireless USB Adapter(RT2070,RT3070,RT2770,RT3072,RT3572,RT3370)/Linux/2011_0427_RT3572_Linux_STA_v2.5.0.0.DPO (2)/os/linux/cfg80211.c | C | apache-2.0 | 40,586 |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "refspec.h"
#include "git2/errors.h"
#include "util.h"
#include "posix.h"
#include "refs.h"
#... | chigraph/chigraph | third_party/libgit2/src/refspec.c | C | apache-2.0 | 9,497 |
/*
Tests for the Wi-Fi
*/
#include "unity.h"
#include "esp_log.h"
#include "esp_wifi_internal.h"
static const char* TAG = "test_wifi_lib_git_commit_id";
TEST_CASE("wifi lib git commit id","[wifi]")
{
TEST_ESP_OK( esp_wifi_internal_git_commit_id_check() );
}
| mashaoze/esp-idf | components/esp32/test/test_wifi_lib_git_commit.c | C | apache-2.0 | 270 |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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. A copy of the License is
* located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" f... | wcs1only/s2n | tests/cbmc/stubs/s2n_stuffer_read_base64.c | C | apache-2.0 | 1,096 |
/**
******************************************************************************
* @file lib_CodeRAM.c
* @author Application Team
* @version V4.4.0
* @date 2019-01-18
* @brief Codes executed in SRAM.
******************************************************************************
* @attention
... | geniusgogo/rt-thread | bsp/Vango_V85xx/Libraries/CMSIS/Vango/V85xx/Source/lib_CodeRAM.c | C | apache-2.0 | 990 |
/* $Id: tif_pixarlog.c,v 1.33 2010/07/25 18:46:05 drolon Exp $ */
/*
* Copyright (c) 1996-1997 Sam Leffler
* Copyright (c) 1996 Pixar
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) the abo... | jxt1234/Simple3D | third_party/FreeImage/Source/LibTIFF/tif_pixarlog.c | C | apache-2.0 | 39,274 |
/* SHA module */
/* This module provides an interface to NIST's Secure Hash Algorithm */
/* See below for information about the original code this module was
based upon. Additional work performed by:
Andrew Kuchling (amk@amk.ca)
Greg Stein (gstein@lyra.org)
Copyright (C) 2005 Gregory P. Smit... | google/google-ctf | third_party/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/shamodule.c | C | apache-2.0 | 19,237 |
/*--------------------------------------------------------------------
* guc.c
*
* Support for grand unified configuration scheme, including SET
* command, configuration file, and command line options.
* See src/backend/utils/misc/README for more information.
*
*
* Portions Copyright (c) 2005-2010, Greenplum in... | yuanzhao/gpdb | src/backend/utils/misc/guc.c | C | apache-2.0 | 221,600 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
static void ngx_http_wait_request_handler(ngx_event_t *ev);
static void ngx_http_process_request_line(ngx_event_t *rev);
static void ngx_http_process_request_headers(ngx_event_t *rev... | LomoX-Offical/nginx-openresty-windows | src/nginx/src/http/ngx_http_request.c | C | bsd-2-clause | 93,636 |
/* apps/errstr.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and no... | caidongyun/nginx-openresty-windows | nginx/objs/lib/openssl-1.0.1g/apps/errstr.c | C | bsd-2-clause | 4,703 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.