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 |
|---|---|---|---|---|---|
/* arch/arm/mach-msm/cpufreq.c
*
* MSM architecture cpufreq driver
*
* Copyright (C) 2007 Google, Inc.
* Copyright (c) 2007-2010, The Linux Foundation. All rights reserved.
* Author: Mike A. Chan <mikechan@google.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, ... | ISTweak/android_kernel_samsung_msm8660 | arch/arm/mach-msm/cpufreq.c | C | gpl-2.0 | 12,297 |
/***************************************************************************
Hana Awase driver by Zsolt Vasvari
edge connector
----------------------------
GND |A| 1| GND
GND |B| 1| 1P "3"
+5V |C| 3| +5V
NC |D| 4| NC
+12V |E| 5| +12V
SPEAKER(+)|F| 6|SPEAKER(... | scs/uclinux | user/games/xmame/xmame-0.106/src/drivers/hanaawas.c | C | gpl-2.0 | 9,006 |
#include <linux/capability.h>
#include <linux/blkdev.h>
#include <linux/gfp.h>
#include <linux/blkpg.h>
#include <linux/hdreg.h>
#include <linux/backing-dev.h>
#include <linux/buffer_head.h>
#include <linux/blktrace_api.h>
#include <asm/uaccess.h>
static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_ar... | Pesach85/ph85-p880-kernel-project | block/ioctl.c | C | gpl-2.0 | 8,283 |
unsigned char M_pydoc_data[] = {
99,0,0,0,0,0,0,0,0,1,0,0,0,64,0,0,
0,115,4,0,0,0,100,0,0,83,40,1,0,0,0,78,
40,0,0,0,0,40,0,0,0,0,40,0,0,0,0,40,
0,0,0,0,115,41,0,0,0,47,117,115,114,47,108,105,
98,47,112,121,116,104,111,110,50,46,55,47,112,121,100,111,
99,95,100,97,116,97,47,95,95,105,110,105,116,95,95,46,
112,12... | jansky/qotd-viewer | standalone/M_pydoc_data.c | C | gpl-2.0 | 390 |
/**
* $Id$
*
* Audio mixer core. Combines all the active streams into a single sound
* buffer for output.
*
* Copyright (c) 2005 Nathan Keynes.
*
* 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 ... | lutris/lxdream | src/aica/audio.c | C | gpl-2.0 | 16,921 |
/*
* Samsung S5P Multi Format Codec V5/V6
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* Kamil Debski, <k.debski@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; ei... | tiagormk/linux-vitamins-odroidxu | drivers/media/platform/exynos/mfc/s5p_mfc.c | C | gpl-2.0 | 72,297 |
/*
* 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/dtksh/ksh93/src/lib/libast/string/strlook.c | C | gpl-2.0 | 3,790 |
/* radare - LGPL - Copyright 2009-2015 - pancake */
#define USE_THREADS 1
#include <sdb.h>
#include <r_core.h>
#include <r_io.h>
#include <stdio.h>
#include <getopt.c>
#include "../blob/version.c"
#if USE_THREADS
#include <r_th.h>
static char *rabin_cmd = NULL;
static int threaded = 0;
#endif
static struct r_core_t ... | sapir/radare2 | binr/radare2/radare2.c | C | gpl-3.0 | 23,567 |
/**
******************************************************************************
* @addtogroup PIOS PIOS Core hardware abstraction layer
* @{
* @addtogroup PIOS_TIM Timer Functions
* @brief PIOS Timer control code
* @{
*
* @file pios_tim.c
* @author The OpenPilot Team, http://www.openpilot.org Co... | droidicus/dRonin | flight/PiOS/STM32F4xx/pios_tim.c | C | gpl-3.0 | 16,691 |
/*******************************************************************************
* FILENAME: cymetadata.c
*
* PSoC Creator 3.1
*
* DESCRIPTION:
* This file defines all extra memory spaces that need to be included.
* This file is automatically generated by PSoC Creator.
*
*************************************... | vivier/SCSI2SD | software/SCSI2SD/v3/USB_Bootloader.cydsn/Generated_Source/PSoC5/cymetadata.c | C | gpl-3.0 | 3,916 |
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* 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
* righ... | ErikMinekus/sm-ripext | libuv/src/unix/fs.c | C | gpl-3.0 | 55,671 |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2017-2019 - Andrés Suárez
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as pu... | spec-chum/RetroArch | record/drivers/record_ffmpeg.c | C | gpl-3.0 | 51,992 |
/*
* Unix SMB/CIFS implementation.
* Samba VFS module for GPFS filesystem
* Copyright (C) Christian Ambach <cambach1@de.ibm.com> 2006
* Copyright (C) Christof Schmitt 2015
* Major code contributions by Chetan Shringarpure <chetan.sh@in.ibm.com>
* and Gomati Mohanan <gomati.mohanan@i... | lidan-fnst/samba | source3/modules/vfs_gpfs.c | C | gpl-3.0 | 66,858 |
/*
Unix SMB/CIFS implementation.
DSDB schema header
Copyright (C) Stefan Metzmacher <metze@samba.org> 2006-2007
Copyright (C) Andrew Bartlett <abartlet@samba.org> 2006-2008
Copyright (C) Matthieu Patou <mat@matws.net> 2011
This program is free software; you can redistribute it and/or modify
it un... | ceph/samba | source4/dsdb/schema/schema_set.c | C | gpl-3.0 | 26,316 |
/*
* 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... | ChrisNisbet01/cleanflight | src/main/flight/altitudehold.c | C | gpl-3.0 | 9,731 |
#ifdef KATCP_EXPERIMENTAL
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sysexits.h>
#include <sys/stat.h>
#include <katcp.h>
#include <katpriv.h>
#include <katcl.h>
#include <avltree.h>
#define WIT_MAGIC 0x120077e1
/* sorry, sensor w... | ska-sa/katcp_devel | katcp/dpx-sensor.c | C | gpl-3.0 | 15,661 |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... | Passtechsoft/TPEAlpGen | blender/source/blender/editors/uvedit/uvedit_buttons.c | C | gpl-3.0 | 6,316 |
/*
* io_table.c
*
*/
#include <avr/io.h>
#include "global.h"
#include "config.h"
#include "io_table.h"
// logical input to physical IO port mapping
// V2.x hardware
#ifndef HARDWARE_V1
#define IO_TABLE \
ENTRY(PB16, &PORTA, PIN0_bm) \
ENTRY(PB15, &PORTA, PIN1_bm) \
ENTRY(PB14, &PORTA, PIN2_bm) \
ENTR... | kuro68k/Superplay | Joystick/joystick/io_table.c | C | gpl-3.0 | 3,336 |
/* Generated automatically. DO NOT EDIT! */
#define SIMD_HEADER "simd-avx2.h"
#include "../common/n2bv_8.c"
| Shangxz/HackIllinois2017 | tone-analysis/fftw-3.3.6-pl1/dft/simd/avx2/n2bv_8.c | C | gpl-3.0 | 109 |
/* mdb_load.c - memory-mapped database load tool */
/*
* Copyright 2011-2015 Howard Chu, Symas Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of this license is avai... | unprompted/tildefriends | deps/liblmdb/mdb_load.c | C | agpl-3.0 | 10,566 |
/*
*
* Nagios Plugin check_bacula
*
* Christian Masopust, (c)2005
*
* Version $Id: check_bacula.c,v 1.0 2005/02/25
*/
/*
Copyright (C) 2005 Christian Masopust
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License a... | gagoel/bacula | examples/nagios/check_bacula/check_bacula.c | C | agpl-3.0 | 8,889 |
/*
* This file is part of libudfread
* Copyright (C) 2014 VLC authors and VideoLAN
*
* Authors: Petri Hintukainen <phintuka@users.sourceforge.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 Sof... | vlc-mirror/libudfread | src/udfread-version.c | C | lgpl-2.1 | 1,106 |
/*
CAN driver interface.
*/
#include <windows.h>
#include "can.h"
// GetProcAddress doesn't have an UNICODE version for NT
#ifdef UNDER_CE
#define myTEXT(str) TEXT(str)
#else
#define myTEXT(str) str
#endif
#define MAX_NB_CAN_PORTS 16
CANPort canports[MAX_NB_CAN_PORTS] = {{0,},{0,},{0,},{0,},{0,},{0,},{0,},... | pkzju/superconsole | canDriver/can.c | C | lgpl-2.1 | 4,688 |
/* GDK - The GIMP Drawing Kit
* gdkdisplaymanager-broadway.c
*
* Copyright (C) 2005 Imendio AB
* Copyright 2010 Red Hat, Inc.
*
* Author: Matthias clasen
*
* 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 th... | davidt/gtk | gdk/broadway/gdkdisplaymanager-broadway.c | C | lgpl-2.1 | 4,859 |
/*
Copyright (C) 2009 William Hart
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... | wbhart/flint2 | fmpz_poly/test/t-scalar_addmul_fmpz.c | C | lgpl-2.1 | 3,603 |
/*
* Copyright (C) 2005-2008 Justin Karneges
*
* 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, merg... | psi-im/iris | src/jdns/src/jdns/jdns_sys.c | C | lgpl-2.1 | 24,049 |
/*
* Copyright © 2006 Red Hat, 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 in all copies
* and that both that copyright notice and this permission notice
* app... | pocketbook-free/browser | cairo-1.8.10/test/pattern-get-type.c | C | lgpl-2.1 | 2,909 |
/*******************************************************************
*
* CAUTION: This file is automatically generated by HSI.
* Version:
* DO NOT EDIT.
*
* Copyright (C) 2010-2017 Xilinx, Inc. All Rights Reserved.*
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this softwa... | TWW12/lzw | final_project/lzw_compression/lzw_compression.sdk/decompression_bsp/ps7_cortexa9_0/libsrc/emacps_v3_3/src/xemacps_g.c | C | unlicense | 1,991 |
/*
* @brief
*
* @note
* Author: Mikeqin Fengling.Qin@gmail.com
*
* @par
* This is free and unencumbered software released into the public domain.
* For details see the UNLICENSE file at the root of the source tree.
*/
#include "board.h"
#include "avalon_timer.h"
/* 1ms */
#define TICKRATE 1000
struct timer_n... | Canaan-Creative/Avalon-nano | firmware/pmu741/code/src/avalon_timer.c | C | unlicense | 2,658 |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.9
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. ... | centic9/subversion-ppa | subversion/bindings/swig/ruby/svn_diff.c | C | apache-2.0 | 88,914 |
/****************************************************************************
*
* 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... | chanijjani/TizenRT | os/drivers/serial/serial.c | C | apache-2.0 | 37,512 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | biospi/seamass-windeps | src/hdf5-1.10.0-patch1/tools/lib/h5trav.c | C | apache-2.0 | 38,128 |
/*
* log.c : routines for requesting and parsing log reports
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional in... | tux-mind/platform_external_subversion | subversion/libsvn_ra_neon/log.c | C | apache-2.0 | 20,399 |
// ¶ÁÈ¡idx/grpµÄÌùͼÎļþ¡£
// ΪÌá¸ßËÙ¶È£¬²ÉÓûº´æ·½Ê½¶ÁÈ¡¡£°Ñidx/grp¶ÁÈëÄڴ棬Ȼºó¶¨ÒåÈô¸É¸ö»º´æ±íÃæ
// ¾³£·ÃÎʵÄpic·ÅÔÚ»º´æ±íÃæÖÐ
#include <stdlib.h>
#include "jymain.h"
static struct PicFileCache pic_file[PIC_FILE_NUM];
LIST_HEAD(cache_head); //¶¨ÒåcacheÁ´±íÍ·
static int currentCacheNum=0; ... | yippeesoft/NotifyTools | 3guoheros/3gyjz-pc/desperate-angel-src/JYMINI/piccache.c | C | apache-2.0 | 20,317 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2010. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
* compliance with the License. You should have received a copy of the
* Erlang Public Licens... | racker/omnibus | source/otp_src_R14B02/erts/emulator/beam/io.c | C | apache-2.0 | 124,486 |
/*
* NIST SP800-38C compliant CCM implementation
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: GPL-2.0
*
* 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 Softw... | RaspiRepo/AWS-IoT-SDK-for-Windows | extern_libs/library/ccm.c | C | apache-2.0 | 13,295 |
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/mm_types.h>
#include <linux/module.h>
#include <generated/autoconf.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/cdev.h>
#include <linux/kdev_t.h>
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#... | zhengdejin/X1_Code | kernel-3.10/drivers/misc/mediatek/dispsys/mt8127/ddp_ovl.c | C | apache-2.0 | 29,835 |
#include <stdio.h>
#include <stdlib.h>
#include <cc3.h>
#include <cc3_ilp.h>
#include <cc3_color_info.h>
void simple_get_mean(cc3_color_info_pkt_t * s_pkt);
int main(void) {
cc3_color_info_pkt_t s_pkt;
cc3_uart_init (0,
CC3_UART_RATE_115200,
CC3_UART_MODE_8N1,
CC3_UART_BINMODE_TEXT);
cc3_camera_in... | Joelgranados/cmucam3 | projects/simple-get-mean/main.c | C | apache-2.0 | 1,826 |
/*
* Copyright (c) 2011, Dongsheng Song <songdongsheng@live.cn>
*
* 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 u... | songdongsheng/libpthread | test/test_once.c | C | apache-2.0 | 1,668 |
#include <winpr/crt.h>
#include <winpr/print.h>
#include <winpr/bitstream.h>
#include <freerdp/freerdp.h>
#include <freerdp/codec/zgfx.h>
#include <freerdp/log.h>
/* Sample from [MS-RDPEGFX] */
static const BYTE TEST_FOX_DATA[] = "The quick brown "
"fox jumps over t"
... | DavBfr/FreeRDP | libfreerdp/codec/test/TestFreeRDPCodecZGfx.c | C | apache-2.0 | 6,722 |
/*
* Copyright (C) Igor Sysoev
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
static void ngx_destroy_cycle_pools(ngx_conf_t *conf);
static ngx_int_t ngx_cmp_sockaddr(struct sockaddr *sa1, struct sockaddr *sa2);
static ngx_int_t ngx_init_zone_pool(ngx_cycle_t *cycle,
ngx_shm_zone_t *... | colin/nginx | src/core/ngx_cycle.c | C | bsd-2-clause | 35,186 |
/* $FreeBSD: soc2013/dpl/head/sys/contrib/ipfilter/netinet/ip_auth.c 250467 2013-04-08 19:20:27Z glebius $ */
/*
* Copyright (C) 1998-2003 by Darren Reed & Guido van Rooij.
*
* See the IPFILTER.LICENCE file for details on licencing.
*/
#if defined(KERNEL) || defined(_KERNEL)
# undef KERNEL
# undef _KERNEL
# define... | dplbsd/soc2013 | head/sys/contrib/ipfilter/netinet/ip_auth.c | C | bsd-2-clause | 28,881 |
/*
* Copyright (c) 2011 Hypertriton, Inc. <http://hypertriton.com/>
*
* 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 ... | varialus/agar | original/TrunkRevision9625/math/m_polyhedron.c | C | bsd-2-clause | 6,091 |
#include "tommath_private.h"
#ifdef S_MP_SQR_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
/* low level squaring, b = a*a, HAC pp.596-597, Algorithm 14.16 */
mp_err s_mp_sqr(const mp_int *a, mp_int *b)
{
mp_int t;
int ix, pa;
mp_err er... | ThisDrunkDane/Odin | src/libtommath/s_mp_sqr.c | C | bsd-2-clause | 1,818 |
/****************************************************************************
* fs/mmap/fs_munmap.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided ... | IUTInfoAix/terrarium_2015 | nuttx/fs/mmap/fs_munmap.c | C | bsd-2-clause | 7,059 |
/*-
* Copyright (c) 2000 Alfred Perlstein <alfred@freebsd.org>
* Copyright (c) 2000 Paul Saab <ps@freebsd.org>
* Copyright (c) 2000 John Baldwin <jhb@freebsd.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... | dplbsd/zcaplib | head/sys/boot/i386/libi386/pxe.c | C | bsd-2-clause | 16,978 |
/*-
* 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/libarchive/test/test_write_disk_secure.c | C | bsd-2-clause | 8,194 |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
******************************************************************************/
#ifdef HAVE_C... | tpm2-software/tpm2-tss | src/tss2-esys/esys_iutil.c | C | bsd-2-clause | 63,834 |
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Firmware management parameters (FWMP) APIs
*/
#include "2common.h"
#include "2crc8.h"
#include "2misc.h"
#include "2secdata.h"
#include "2secdat... | coreboot/vboot | firmware/2lib/2secdata_fwmp.c | C | bsd-3-clause | 3,623 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE688_Function_Call_With_Incorrect_Variable_or_Reference_as_Argument__basic_05.c
Label Definition File: CWE688_Function_Call_With_Incorrect_Variable_or_Reference_as_Argument__basic.label.xml
Template File: point-flaw-05.tmpl.c
*/
/*
* @description
* CWE: 688 Funct... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE688_Function_Call_With_Incorrect_Variable_or_Reference_as_Argument/CWE688_Function_Call_With_Incorrect_Variable_or_Reference_as_Argument__basic_05.c | C | bsd-3-clause | 3,181 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE369_Divide_by_Zero__int_zero_divide_05.c
Label Definition File: CWE369_Divide_by_Zero__int.label.xml
Template File: sources-sinks-05.tmpl.c
*/
/*
* @description
* CWE: 369 Divide by Zero
* BadSource: zero Fixed value of zero
* GoodSource: Non-zero
* Sinks:... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE369_Divide_by_Zero/s02/CWE369_Divide_by_Zero__int_zero_divide_05.c | C | bsd-3-clause | 4,374 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE124_Buffer_Underwrite__CWE839_listen_socket_54b.c
Label Definition File: CWE124_Buffer_Underwrite__CWE839.label.xml
Template File: sources-sinks-54b.tmpl.c
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: listen_socket Read data using a listen so... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE124_Buffer_Underwrite/s01/CWE124_Buffer_Underwrite__CWE839_listen_socket_54b.c | C | bsd-3-clause | 2,192 |
/*
** 2005 November 29
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
********************... | amyvmiwei/chromium | third_party/sqlite/src/os.c | C | bsd-3-clause | 7,529 |
/*
* Copyright (c) 2011 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... | guorendong/iridium-browser-ubuntu | third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/decode.c | C | bsd-3-clause | 7,893 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__wchar_t_declare_ncpy_07.c
Label Definition File: CWE127_Buffer_Underread.stack.label.xml
Template File: sources-sink-07.tmpl.c
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the allocated memory... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE127_Buffer_Underread/s04/CWE127_Buffer_Underread__wchar_t_declare_ncpy_07.c | C | bsd-3-clause | 4,223 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_memmove_09.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml
Template File: sources-sink-09.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Initial... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s06/CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_memmove_09.c | C | bsd-3-clause | 4,104 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__char_fscanf_square_22b.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-22b.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fscanf Read data from the console using fscanf()
* G... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__char_fscanf_square_22b.c | C | bsd-3-clause | 3,405 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE404_Improper_Resource_Shutdown__fopen_w32_close_32.c
Label Definition File: CWE404_Improper_Resource_Shutdown.label.xml
Template File: source-sinks-32.tmpl.c
*/
/*
* @description
* CWE: 404 Improper Resource Shutdown or Release
* BadSource: fopen Open a file u... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE404_Improper_Resource_Shutdown/CWE404_Improper_Resource_Shutdown__fopen_w32_close_32.c | C | bsd-3-clause | 2,807 |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "install.h"
const char progname[] = "installer";
void
cb_info (const char *str, void *data)
{
fprintf (stderr, "%s\n", str);
}
void
cb_warn (const char *str, void *data)
{
fprintf (stderr, "%s: warning: %s\n", progname, str);
}
int
main (int ar... | io7m/coreland-sdl-ada-annex | installer.c | C | isc | 1,279 |
#ifdef HAVE_CONFIG_H
#include "../ext_config.h"
#endif
#include <php.h>
#include "../php_ext.h"
#include "../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/memory.h"
#include "kernel/object.h"
/**
* OO operatio... | phalcon/zephir | ext/stub/typeoff.zep.c | C | mit | 4,178 |
/**
* \file drm_lock.c
* IOCTLs for locking
*
* \author Rickard E. (Rik) Faith <faith@valinux.com>
* \author Gareth Hughes <gareth@valinux.com>
*/
/*
* Created: Tue Feb 2 08:37:54 1999 by faith@valinux.com
*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc.... | shinpei0208/gdev | mod/linux/nouveau-3.3.0/drivers/gpu/drm/drm_lock.c | C | mit | 10,691 |
/* cuserid(3)
*
* Author: Terrence W. Holm Sept. 1987
*/
#include <lib.h>
#include <pwd.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#ifndef L_cuserid
#define L_cuserid 9
#endif
char *cuserid(user_name)
char *user_name;
{
PRIVATE char userid[L_cuserid];
struc... | ducis/operating-system-labs | src.clean/lib/libc/other/cuserid.c | C | mit | 598 |
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* 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
* righ... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/uv/src/win/error.c | C | mit | 8,355 |
/*
+------------------------------------------------------------------------+
| Zephir Language |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Zephir Team (http://www.zephir-lang.com) |
+----------... | Playsino/Ouchbase | ext/kernel/iterator.c | C | mit | 1,897 |
/* Copyright (c) 2007-2009, Stanford University
* 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 ... | kishoredbn/barrelfish | lib/phoenix/tpool.c | C | mit | 8,837 |
/* Copyright (c) 2010 Vladimir Chalupecky
*
* 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, pu... | lsy176/umeshu | old/src/mesh.c | C | mit | 17,007 |
/*
* Copyright (c) 2015 Travis Geiselbrecht
*
* 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,... | ErikCorryGoogle/lk | platform/bcm2835/uart.c | C | mit | 4,159 |
/*
* 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 <stdarg.h>
#include <ctype.h>
#include "git2/object.h"
#include "git2/refdb.h"
#include "commo... | IbpTeam/node-nodegit | vendor/libgit2/src/repository.c | C | mit | 40,471 |
/* drivers/battery/rt5033_charger.c
* RT5033 Charger Driver
*
* Copyright (C) 2013 Richtek Technology Corp.
* Author: Patrick Chang <patrick_chang@richtek.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... | fortunaFiWn/android_kernel_samsung_fortunave3g | drivers/battery/rt5033_charger.c | C | gpl-2.0 | 39,485 |
/*
* board/mx1ads/mx1ads.c
*
* (c) Copyright 2004
* Techware Information Technology, Inc.
* http://www.techware.com.tw/
*
* Ming-Len Wu <minglen_wu@techware.com.tw>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published b... | niamster/uboot-marvell-openrd-ultimate | board/mx1ads/mx1ads.c | C | gpl-2.0 | 3,931 |
/* $Xorg: process.c,v 1.6 2001/02/09 02:05:38 xorgcvs Exp $ */
/*
Copyright 1989, 1998 The Open Group
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 th... | fcarvajaldev/nx-libs | nx-X11/programs/nxauth/process.c | C | gpl-2.0 | 47,561 |
/*
* Copyright (C) 2000-2005 Serge Vakulenko, <vak@cronyx.ru>
*
* This file 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.
*
* You can redistribute this file and/or modify it under the term... | alexrayne/uos-embedded | sources/kernel/twait.c | C | gpl-2.0 | 1,068 |
/* ply-logger.c - logging and tracing facilities
*
* Copyright (C) 2007 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later v... | pkt/pkt-plymouth | src/libply/ply-logger.c | C | gpl-2.0 | 14,058 |
/*
* wp/hash.c
*
* FPAC project
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "hash.h"
#include "crc.h"
typedef struct {
int hash_bits;
unsigned char **record_table;
int record_size;
int key_offset;
int key_size;
unsigned short *table;
unsigned short *lis... | jafo2128/fpac | wp/hash.c | C | gpl-2.0 | 4,908 |
/*
* Copyright 2008-2013 Various Authors
* Copyright 2004-2005 Timo Hirvonen
*
* 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 l... | vinegret/cmus | op/mixer_oss.c | C | gpl-2.0 | 5,462 |
/* Test the `vpadals8' 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_vpadals8 (void)
{
int16x4_t out_int1... | ccompiler4pic32/pic32-gcc | gcc/testsuite/gcc.target/arm/neon/vpadals8.c | C | gpl-2.0 | 596 |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | RazerRom/kernel_lge_hammerhead | arch/arm/mach-msm/krait-regulator.c | C | gpl-2.0 | 42,419 |
/*
* polling/bitbanging SPI master controller driver utilities
*
* 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.
... | robacklin/uclinux-linux | drivers/spi/spi-bitbang.c | C | gpl-2.0 | 13,495 |
/* $Id$ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; eit... | svn2github/pjsip | pjsip-apps/src/pjsua/pjsua_app_common.c | C | gpl-2.0 | 9,439 |
/*
* Copyright (c) 2008-2009 QUALCOMM USA, INC.
*
* All source code in this file is licensed under the following license
*
* 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.
*
*... | PaulMilbank/g300_kernel | drivers/media/video/msm/mt9v114.c | C | gpl-2.0 | 46,062 |
/****************************************************************************
*
* Realmode X86 Emulator Library
*
* Copyright (C) 1996-1999 SciTech Software, Inc.
* Copyright (C) David Mosberger-Tang
* Copyright (C) 1999 Egbert Eich
*
* ================================================... | atmark-techno/atmark-dist | user/xorg-xserver/xorg-server-1.12.4/hw/xfree86/x86emu/decode.c | C | gpl-2.0 | 32,414 |
/*************************************************************************/ /*!
@Title Resource Allocator
@Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
@Description
Implements generic resource allocation. The resource
allocator was originally intended to manage address spa... | nels83/android_kernel_samsung_santos10 | drivers/staging/mrst/pvr/services4/srvkm/common/ra.c | C | gpl-2.0 | 63,395 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2019 Richard Palethorpe <rpalethorpe@suse.com>
*
* Trivial Extended Berkeley Packet Filter (eBPF) test.
*
* Sanity check loading and running bytecode.
*
* Test flow:
* 1. Create array map
* 2. Load eBPF program
* 3. Attach program to socket
* 4.... | linux-test-project/ltp | testcases/kernel/syscalls/bpf/bpf_prog01.c | C | gpl-2.0 | 2,740 |
#include "builtin.h"
static void flush_current_id(int patchlen, unsigned char *id, unsigned char *result)
{
char name[50];
if (!patchlen)
return;
memcpy(name, sha1_to_hex(id), 41);
printf("%s %s\n", sha1_to_hex(result), name);
}
static int remove_space(char *line)
{
char *src = line;
char *dst = line;
unsi... | H1ghT0p/git | builtin/patch-id.c | C | gpl-2.0 | 4,096 |
/* Linear search functions.
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Gener... | nslu2/glibc | misc/lsearch.c | C | gpl-2.0 | 1,676 |
/* -*- Mode: C; c-set-style: gnu indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* 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... | dnk/mate-desktop | libmate-desktop/test-ditem.c | C | gpl-2.0 | 3,930 |
/******************************************************************************
*
* $Id: master.c,v ec403cf308eb 2013/02/12 14:46:43 fp $
*
* Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH
*
* This file is part of the IgH EtherCAT Master.
*
* The IgH EtherCAT Master is free software; you c... | ahzahraee/etherlabmaster | master/master.c | C | gpl-2.0 | 97,066 |
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "buffer.h"
#include "exit.h"
#include "cdb_make.h"
#include "open.h"
#include "stralloc.h"
#include "getln.h"
#include "strerr.h"
#include "byte.h"
#include "scan.h"
#include "fmt.h"
#include "ip4.h"
#define FATAL "rbldns-data... | ysleu/RTL8685 | uClinux-dist/user/fongw/djbdns-1.05/rbldns-data.c | C | gpl-2.0 | 2,972 |
/* $Header$ */
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* 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 above copyright notices and this permiss... | playingaround2017/test123 | src/libtiff/tif_write.c | C | gpl-2.0 | 20,115 |
/* -*- Mode: c; c-basic-offset: 2 -*-
*
* photos-comments-api.c - Flickr flickr.photos.comments.* API calls
*
* Copyright (C) 2007-2012, David Beckett http://www.dajobe.org/
*
* This file is licensed under the following three licenses as alternatives:
* 1. GNU Lesser General Public License (LGPL) V2.1 or any ... | dajobe/flickcurl | src/photos-comments-api.c | C | gpl-2.0 | 7,437 |
/*
* Module-based torture test facility for locking
*
* 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... | rickyzhang82/bbb-linux | kernel/locking/locktorture.c | C | gpl-2.0 | 22,573 |
int main () {
f('XYZ',ab);
f('X\nY',ab);
f('\n',ab);
}
| miguelinux/coccinelle | tests/multichars.c | C | gpl-2.0 | 61 |
/*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* RAW - implementation of IP "raw" sockets.
*
* Authors: Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mu... | lexmar93/Siyah-i777 | net/ipv4/raw.c | C | gpl-2.0 | 25,200 |
/*
* Copyright (C) 2011-2017 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
*
* ... | BalintBanyasz/kernel_rockchip | drivers/gpu/disp/mali/common/mali_pp_job.c | C | gpl-2.0 | 10,562 |
/*
* linux/mm/memory.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
*/
/*
* demand-loading started 01.12.91 - seems it is high on the list of
* things wanted, and it should be easy to implement. - Linus
*/
/*
* Ok, demand-loading was easy, shared pages a little bit tricker. Shared
* pages start... | getitnowmarketing/archos_kernel_27 | mm/memory.c | C | gpl-2.0 | 84,234 |
/* GLIB - Library of useful routines for C programming
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* 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; e... | xbmc/atv2 | xbmc/lib/libmms/glib-2.20.4/glib/grel.c | C | gpl-2.0 | 10,857 |
/*
* usbserial.c - usb serial gadget command
*
* Copyright (c) 2011 Eric Bénard <eric@eukrea.com>, Eukréa Electromatique
* based on dfu.c which is :
* Copyright (c) 2009 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This progr... | jkent/mini210s-barebox | commands/usbserial.c | C | gpl-2.0 | 2,737 |
/*
* 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... | ORNL-TechInt/lustre | libcfs/libcfs/winnt/winnt-prim.c | C | gpl-2.0 | 17,671 |
/*
* Tetris (C) Copyright 1995, Vadim Antonov
* Port to uOS (C) 2010, Serge Vakulenko
*/
#include <runtime/lib.h>
#include <stream/stream.h>
#include <gpanel/gpanel.h>
#include <random/rand15.h>
#include "board-1986be91.h"
#define PITWIDTH 12
#define PITDEPTH 24
#define NSHAPES 7
#define NBLOCKS 5
#define FIN ... | alexrayne/uos-embedded | examples/arm-1986be91/tetris.c | C | gpl-2.0 | 6,950 |
/*
* Copyright (c) 2013-2014 TRUSTONIC LIMITED
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will... | HB72K/android_kernel_lgk10_mt6582 | drivers/misc/mediatek/gud/mt6752/gud/MobiCoreDriver/main.c | C | gpl-2.0 | 37,200 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.