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 |
|---|---|---|---|---|---|
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* memcached - memory caching daemon
*
* http://www.danga.com/memcached/
*
* Copyright 2003 Danga Interactive, Inc. All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the LICENSE file for... | abhinavdangeti/memcached | daemon/memcached.c | C | bsd-3-clause | 228,702 |
/* linux/arch/arm/mach-s3c2410/clock.c
*
* Copyright (c) 2004-2005 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* S3C2410 Clock control support
*
* Based on, and code from linux/arch/arm/mach-versatile/clock.c
**
** Copyright (C) 2004 ARM Limited.
** Written by Deep Blue Solutions Limited.
*
*
* T... | ut-osa/syncchar | linux-2.6.16-unmod/arch/arm/mach-s3c2410/clock.c | C | bsd-3-clause | 9,896 |
/*
* Copyright (c) 2012-2017, RISE SICS AB
* 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... | nvt/veloxvm | core/expr-list.c | C | bsd-3-clause | 11,446 |
/*********************************************************************
* Copyright 1993, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
* $Header: /upc/share/CVS/netcdf-3/ncgen/genj.c,v 1.2 2010/05/17 23:26:44 dmh Exp $
*****************************************************... | gnu3ra/SCC15HPCRepast | INSTALLATION/netcdf-4.2.1.1/ncgen/genj.c | C | bsd-3-clause | 17,270 |
/* $OpenBSD: cast.c,v 1.2 2000/06/06 06:49:47 deraadt Exp $ */
/*-
* CAST-128 in C
* Written by Steve Reid <sreid@sea-to-sky.net>
* 100% Public Domain - no warranty
* Released 1997.10.11
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: releng/9.3/sys/opencrypto/cast.c 171238 2007-07-05 06:59:14Z peter $")... | dcui/FreeBSD-9.3_kernel | sys/opencrypto/cast.c | C | bsd-3-clause | 8,005 |
/*
* (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*
*
* Module: CARDINAL operations with overflow checking
* Author: Ceriel J.H. Jacobs
* Version: $Header: /cvsup/minix/src/lib/ack/libm2/ucheck.c,v 1.1 200... | EchoLiao/minix-study | lib/ack/libm2/ucheck.c | C | bsd-3-clause | 1,129 |
#if defined(_WIN32) || defined(__CYGWIN__)
# define testLibNoSONAME_EXPORT __declspec(dllexport)
#else
# define testLibNoSONAME_EXPORT
#endif
testLibNoSONAME_EXPORT int testLibNoSONAME(void) { return 0; }
| hlzz/dotfiles | dev/cmake-3.5.1/Tests/ExportImport/Export/testLibNoSONAME.c | C | bsd-3-clause | 206 |
/* $FreeBSD: src/sys/alpha/tlsb/mcclock_tlsb.c,v 1.7 2000/03/18 07:46:34 mjacob Exp $ */
/* $NetBSD: mcclock_tlsb.c,v 1.8 1998/05/13 02:50:29 thorpej Exp $ */
/*
* Copyright (c) 1997, 2000 by Matthew Jacob
* NASA AMES Research Center.
* All rights reserved.
*
* Redistribution and use in source and binary forms, w... | MarginC/kame | freebsd5/sys/alpha/tlsb/mcclock_tlsb.c | C | bsd-3-clause | 3,796 |
// Copyright (c) 2013, Thomas L. Falch
// For conditions of distribution and use, see the accompanying LICENSE and README files
// This file is a part of the Scattered Point Visualization application
// developed at the Norwegian University of Science and Technology
#include <stdlib.h>
#include <stdio.h>
#include <a... | acelster/scatter-pt-viz | test.c | C | bsd-3-clause | 13,404 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_console_popen_67b.c
Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml
Template File: sources-sink-67b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the console... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s02/CWE78_OS_Command_Injection__char_console_popen_67b.c | C | bsd-3-clause | 2,069 |
/* $Id$
*/
/* "compression module */
/*****************************************************************************/
/* */
/* The compression software is a python module implemented in C that, when */
/* accessed through the pyfits module, s... | spacetelescope/PyFITS | src/compressionmodule.c | C | bsd-3-clause | 37,153 |
/*
* admin.c: the ADMIN command
*
* Copyright 2002 the Ithildin Project.
* See the COPYING file for more information on licensing and use.
*/
#include <ithildin/stand.h>
#include "ircd.h"
IDSTRING(rcsid, "$Id: admin.c 579 2005-08-21 06:38:18Z wd $");
MODULE_REGISTER("$Rev: 579 $");
/*
@DEPENDENCIES@: ircd
*/
... | elly/ithildin | modules/ircd/commands/admin.c | C | bsd-3-clause | 1,456 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_file_w32_spawnlp_54a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-54a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_file_w32_spawnlp_54a.c | C | bsd-3-clause | 3,715 |
/* $KAME: bf_skey.c,v 1.7 2002/02/27 01:33:59 itojun Exp $ */
/* crypto/bf/bf_skey.c */
/* Copyright (C) 1995-1997 Eric Young (eay@mincom.oz.au)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@mincom.oz.au).
* The implementation was written so as to conform with Nets... | GaloisInc/hacrypto | src/C/FreeBSD/FreeBSD-10.0/crypto/blowfish/bf_skey.c | C | bsd-3-clause | 4,369 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_min_predec_53c.c
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-53c.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: min Set data to the minimum value for int
* Good... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s05/CWE191_Integer_Underflow__int_min_predec_53c.c | C | bsd-3-clause | 1,632 |
/* --COPYRIGHT--,BSD
* Copyright (c) 2014, Texas Instruments Incorporated
* 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 ab... | ekawahyu/MSP430Ware | examples/MSP430i2xx/pmm/pmm_ex1_lpm4-5.c | C | bsd-3-clause | 4,637 |
/*-------------------------------------------------------------*/
/*--- Library top-level functions. ---*/
/*--- bzlib.c ---*/
/*-------------------------------------------------------------*/
/* ---------------------------------------------------... | spl/ivy | examples/multi-threaded/bzip2-1.0.4/bzlib.c | C | bsd-3-clause | 46,203 |
#include <stdio.h>
#include <stddef.h>
#include <mcnet.h>
#define PACKET(id, code) case 0x##id: { \
mcnet_packet_##id##_t* tmp = (mcnet_packet_##id##_t*)packet; \
printf("Packet ID: 0x%02x\n", tmp->pid); \
code \
printf("Packet size: %llu\n", (unsigned long long int)mcnet_generator_size(parser->data, packet))... | deoxxa/libmcnet | example.c | C | bsd-3-clause | 4,328 |
#include "stdafx.h"
#include <stdio.h>
#include <malloc.h>
#include <assert.h>
#include "Coroutine.h"
#include "DispatchBind.h"
#include "core.h"
Coroutine* CreateCoroutine(uint32_t size)
{
Coroutine* p = (Coroutine*)createObject(sizeof(Coroutine), 14);
if (size > 0) {
p->parameterCount = size;
p->params = (int6... | jadedrip/silang | clib/Coroutine.c | C | bsd-3-clause | 1,504 |
/*
* A simple example for the use of PAPI, the number of flops you should
* get is about INDEX^3 on machines that consider add and multiply one flop
* such as SGI, and 2*(INDEX^3) that don't consider it 1 flop such as INTEL
* -Kevin London
*/
#include "papi_test.h"
#define INDEX 1000
#ifdef _WIN32
char format_... | tcreech/papi-4.0.0-64-solaris11.2 | src/ctests/flops.c | C | bsd-3-clause | 2,896 |
#include <mjolnir/mjol.h>
#include <mjolnir/vga.h>
void
mjolinitvga(struct mjolgame *game)
{
;
}
| vendu/OS-Zero | usr/games/mjolnir/vga.c | C | bsd-3-clause | 103 |
/* This code was auto-generated by ./generate_SSE_intrinsics.py. The
* command line arguments used were:
*
* ./generate_SSE_intrinsics.py -N 4
*/
#include <stdlib.h>
#include <xmmintrin.h>
#define A_OFFSET_11 (0*4+0)*64 // 0
#define A_OFFSET_12 (0*4+1)*64 // 64
#define A_OFFSET_13 (0*4+2)*64 // 128
#define A_OFFS... | FreeON/spammpack | src-C/prototype/stream_multiply/kernel.c | C | bsd-3-clause | 64,585 |
#include "memcached.h"
#include <signal.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#define ARR_SIZE(x) (sizeof(x) / sizeof(x[0]))
#define STATIC_STRLEN(x) ( sizeof(x) - 1 )
#define MAGIC_BYTES "\xe2\x92\x11\x60\xf5\x6c\xba\x8b\x2a\x28\xa7\x04\xe0\x42\xb6\x0e"
#define MAGIC_LEN STATIC_STRLEN(MAGIC_BY... | dkrotx/memcached-dd | dd.c | C | bsd-3-clause | 6,417 |
/*-
* Copyright (c) 2009 Alexander Motin <mav@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... | TigerBSD/TigerBSD | FreeBSD/sys/cam/ata/ata_all.c | C | isc | 31,652 |
/*
* The Yices SMT Solver. Copyright 2014 SRI International.
*
* This program may only be used subject to the noncommercial end user
* license agreement which is downloadable along with this program.
*/
/*
* SUPPORT FOR CONSTRUCTING FRESH BIT-VECTOR VALUES
* AND MAINTAINING SETS OF USED VALUES
*
* This is use... | maelvalais/ocamlyices2 | ext/yices/src/model/small_bvsets.c | C | isc | 1,743 |
/*-
* Copyright (c) 2011, Bryan Venteicher <bryanv@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
* n... | TigerBSD/TigerBSD | FreeBSD/sys/dev/virtio/network/if_vtnet.c | C | isc | 98,272 |
/* error.c: common exception handling for Subversion
*
* ====================================================================
* 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... | TigerBSD/TigerBSD | FreeBSD/contrib/subversion/subversion/libsvn_subr/error.c | C | isc | 22,537 |
/*
* Copyright (c) 2007-2011, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include "helper.h"
... | kishoredbn/barrelfish | usr/drivers/solarflare/helper.c | C | mit | 2,998 |
/* Copyright (c) 2012-2013, The Linux Foundation. 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 ... | hanjae/lumiab0 | dev/panel/msm/mipi_toshiba_video_720p.c | C | mit | 5,454 |
/* crypto/objects/obj_xref.c */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
* 2006.
*/
/* ====================================================================
* Copyright (c) 2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, ... | NickAger/elm-slider | ServerSlider/HTTPServer/Packages/COpenSSL-0.14.0/Sources/obj_xref.c | C | mit | 6,589 |
#include "clar_libgit2.h"
#include "git2/refdb.h"
#include "refdb.h"
static git_repository *g_repo;
static int g_expected = 0;
void test_threads_refdb__initialize(void)
{
g_repo = NULL;
}
void test_threads_refdb__cleanup(void)
{
cl_git_sandbox_cleanup();
g_repo = NULL;
}
#define REPEAT 20
#define THREADS 20
sta... | dwings/atom-windows | resources/app/node_modules/git-utils/deps/libgit2/tests/threads/refdb.c | C | mit | 4,292 |
#include "testarea.h"
// structure definition for composite testarea_testservice_testfinalcompositea
struct _testarea_testservice_testfinalcompositea_t {
mal_integer_t f_intfield;
mal_integer_t f_intfield2;
};
// fields accessors for composite testarea_testservice_testfinalcompositea
mal_integer_t testarea_tests... | gbonnefille/malc | test/testarea/src/testarea_testservice_testfinalcompositea.c | C | mit | 2,881 |
#include <stdio.h>
#include "wich.h"
#include "refcounting.h"
int main(int ____c, char *____v[])
{
setup_error_handlers();
ENTER();
VECTOR(v);
VECTOR(w);
v = Vector_new((double []){1.0,2.0,3.0}, 3);
REF((void *)v.vector);
v = Vector_add(v,Vector_from_int(4,(v).vector->length));
REF((void *)v.vector);
w = V... | hanjoes/wich-c | test/samples/refcounting/promotion_vec_op.c | C | mit | 460 |
/* Copyright (c) 2010-2011, Code Aurora Forum. 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 c... | beidl/lk_umia | platform/msm_shared/mmc.c | C | mit | 79,079 |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 Damien P. George
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | danicampora/micropython | stmhal/sdcard.c | C | mit | 15,878 |
/*
* dns_srv.c
*
* This file contains the code for KMS SRV record lookup in DNS (_vlmcs._tcp.example.com IN SRV 0 0 1688 mykms.example.com)
*
*/
#ifndef CONFIG
#define CONFIG "config.h"
#endif // CONFIG
#include CONFIG
#ifndef NO_DNS
#include "dns_srv.h"
#include <string.h>
#include <stdio.h>
#ifndef _WIN32
#i... | kebe7jun/linux-kms-server | vlmcsd/dns_srv.c | C | mit | 8,524 |
/*
* Copyright (c) 2009, Google Inc.
* All rights reserved.
*
* Copyright (c) 2009-2010, Code Aurora Forum. 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 ... | jcsullins/moboot | platform/msm_shared/smem_ptable.c | C | mit | 4,134 |
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
#include "cedric.h"
/* the following function uses standard C library calls to
* return the date and time in a format useful to CEDRIC
*/
#if defined (IBMRISC) || defined (HP)
void cdate(buffer)
#elif defined (CRAY)
void CDATE(buffer)
#else
void cdate_(buff... | mmbell/Doppler_retrieval | pt2ced/CDATE.c | C | mit | 465 |
/*
* Copyright (C) 2007 Marco Gerards <marco@gnu.org>
* Copyright (C) 2009 David Conrad
*
* This file is part of Libav.
*
* Libav 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
* versio... | fillest/rtmp_load | src/libav/libavcodec/dirac.c | C | mit | 9,678 |
/**
* \file
* \brief Rudimentary ELF32 loader and handling routines.
*/
/*
* Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INF... | utsav2601/cmpe295A | lib/elf/elf32.c | C | mit | 18,996 |
#include "dll1.h"
#include "stdlib.h"
#include "stdio.h"
struct struct_dll1
{
int body;
};
/*@ predicate predicate_dll1(struct struct_dll1* s) =
malloc_block_struct_dll1(s) &*&
struct_dll1_body(s, ?value);
@*/
struct struct_dll1* get_struct_dll1()
//@ requires true;
//@ ensures predicate_dll1(res... | willempx/verifast | examples/linking/dll_uses_dll/dll1_source1.c | C | mit | 686 |
/**
\brief K20-specific definition of the "spi" bsp module.
\author Xavi Vilajosana <xvilajosana@eecs.berkeley.edu>, May 2012.
*/
#include "spi.h"
#include "board.h"
#include "common.h"
//=========================== defines =========================================
#define SPI_SPEED_KHZ 6000 //6Mhz
#define SPI_IN... | barriquello/iotstack | openwsn-fw-work/firmware/openos/bsp/boards/k20/bsp/spi.c | C | mit | 13,827 |
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <fcntl.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <xf86drm.h>
#include <wlr/config.h>
#include <drm_fourcc.h>
#include <wayland-server-core.h>
#include <xcb/xcb.h>
#inclu... | swaywm/wlroots | backend/x11/backend.c | C | mit | 21,146 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: ... | Shakadak/libft | src/char/ft_isspace.c | C | mit | 1,005 |
29 atime=1386526222.23850101
30 ctime=1374498496.409311053
| mollstam/UnrealPy | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/freetype-2.5.2/src/cff/PaxHeaders.20917/cf2stack.c | C | mit | 59 |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU... | vovythevov/Cleaver | teem/src/bin/vprobe.c | C | mit | 20,075 |
/*
* common UDP/RAW code
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* $Id: datagram.c,v 1.1.1.1 2010/12/02 04:18:04 walf_wu Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as ... | smx-smx/dsl-n55u-bender | release/src-ra/linux/linux-2.6.21.x/net/ipv6.orig/datagram.c | C | gpl-2.0 | 17,376 |
/* * Copyright (C) 2007-2009 Collabora Ltd.
*
* 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.
*
* This l... | kenvandine/empathy | libempathy/empathy-dispatcher.c | C | gpl-2.0 | 55,328 |
/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | shinru2004/HTC-C525c | sound/soc/msm/msm-pcm-routing.c | C | gpl-2.0 | 90,798 |
/* Interface between gdb and its extension languages.
Copyright (C) 2014-2020 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;... | mattstock/binutils-bexkat1 | gdb/extension.c | C | gpl-2.0 | 28,309 |
/*
* libhugetlbfs - Easy use of Linux hugepages
* Copyright (C) 2005-2006 David Gibson & Adam Litke, IBM Corporation.
*
* 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 versio... | rodrigc/kernel-tests | default/libhugetlbfs/libhugetlbfs/tests/get_hugepage_region.c | C | gpl-2.0 | 4,197 |
/* Copyright (C) 1999-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1999.
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 ... | walac/glibc | elf/cache.c | C | gpl-2.0 | 23,706 |
/*
* linux/fs/pipe.c
*
* Copyright (C) 1991, 1992, 1999 Linus Torvalds
*/
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/log2.h>
#include <linux/mount.h>
#include <linux/magic.h... | infraredbg/Lenovo_A820_kernel_kk | kernel/fs/pipe.c | C | gpl-2.0 | 30,075 |
/*
* ARM64 kexec gzip binary image support.
*/
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include <libfdt.h>
#include <stdlib.h>
#include "crashdump-arm64.h"
#include "dt-ops.h"
#include "image-header.h"
#include "kexec-arm64.h"
#include "fs2dt.h"
#include "kexec-syscall.h"
#in... | androidrbox/kexec-tools | kexec/arch/arm64/kexec-gzip-image-arm64.c | C | gpl-2.0 | 913 |
/****************************************************************************
* Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy ... | ysleu/RTL8685 | uClinux-dist/lib/ncurses/ncurses/tinfo/add_tries.c | C | gpl-2.0 | 4,121 |
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*
* Tom St Denis, tomstdenis@gmail.com, http://l... | ipwndev/DSLinux-Mirror | user/dropbear/libtomcrypt/src/encauth/gcm/gcm_test.c | C | gpl-2.0 | 10,203 |
/* Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
*
* 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.
*/
/* Kernel module implementing an IP set type: the hash... | neutronth/ipset | kernel/net/netfilter/ipset/ip_set_hash_net.c | C | gpl-2.0 | 10,800 |
/* Target-dependent code for the Texas Instruments MSP430 for GDB, the
GNU debugger.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Contributed by Red Hat, 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 Gene... | mattstock/binutils-bexkat1 | gdb/msp430-tdep.c | C | gpl-2.0 | 28,585 |
/* GStreamer
* Copyright (C) <2007> Leandro Melo de Sales <leandroal@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your opt... | community-ssu/gst-plugins-bad | gst/dccp/gstdccpclientsrc.c | C | gpl-2.0 | 11,998 |
/*
* This file is part of formatter.
*
* formatter 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.
*
* formatter is distri... | AustESE-Infrastructure/calliope | calliope-0.2.2/formatter/src/dom.c | C | gpl-2.0 | 27,357 |
#include <linux/unistd.h>
#include <linux/time.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
//#include <asm/semaphore.h>
#include <linux/proc_fs.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/suspend... | FOSSEE/FOSSEE-netbook-kernel-source | drivers/input/touchscreen/gsl1680_ts/wmt_ts.c | C | gpl-2.0 | 24,645 |
/*
** Splint - annotation-assisted static program checker
** Copyright (C) 1994-2003 University of Virginia,
** Massachusetts Institute of Technology
**
** 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 Sof... | ravenexp/splint | src/constraintExpr.c | C | gpl-2.0 | 69,047 |
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "nfsmount.h"
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software prog... | wesen/lemonix | tool/util-linux-2.12r/mount/nfsmount_clnt.c | C | gpl-2.0 | 8,794 |
/*
** 2011 March 16
**
** 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.
**
***********************... | cleanslate/CleanSlate | third-party/sqlcipher/src/test_vfstrace.c | C | gpl-2.0 | 32,596 |
// MELFAS HEX Studio v0.6 [2009.10.12]
const uint16_t MELFAS_binary_nLength = 0x34C4; // 13.2 KBytes ( 13508 )
const uint8_t MELFAS_binary[] = {
// Model name : MMH-SATLAS
// Module revision : R10
// Firmware version : V08
0x02, 0x29, 0xA5, 0x02, 0x00, 0x1E, 0x43, 0xE8, 0x20, 0x22, 0x22, 0x02,... | geeknik/StupidFast | drivers/input/keyboard/MMH_SATLAS_R10_V08_bin.c | C | gpl-2.0 | 83,835 |
/*
* $Id: pcigame.c,v 1.10 2001/04/26 10:24:46 vojtech Exp $
*
* Copyright (c) 2000-2001 Vojtech Pavlik
*
* Based on the work of:
* Raymond Ingles
*
* Sponsored by SuSE
*/
/*
* Trident 4DWave and Aureal Vortex gameport driver for Linux
*/
/*
* This program is free software; you can redistribute it and/... | rickgaiser/linux-2.4.17-ps2 | drivers/char/joystick/pcigame.c | C | gpl-2.0 | 5,426 |
#include "stdafx.h"
#include "stdio.h"
#include "stdlib.h"
/*
* Note: this version may only work in Visual Studio.
* It would be nice to get it working in gcc, but jno didn't seem to have an effect.
* Maybe an instruction ordering problem? Does something reset the overflow bit in the flag register?
*/
int a(){
... | ewimberley/AdvancedMemoryChallenges | integerOverflowDetectionAssmbly.c | C | gpl-2.0 | 915 |
/*
* This file is part of mpv.
*
* mpv 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.
*
* mpv is distributed in the h... | tobiasjakobi/mpv | video/img_format.c | C | gpl-2.0 | 20,073 |
/*
LUFA Library
Copyright (C) Dean Camera, 2014.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purp... | rktrlng/avrm | lufa-avrm32u4/firmware/Keyboard/Keyboard.c | C | gpl-2.0 | 7,899 |
/*
* BCMSDH Function Driver for the native SDIO/MMC driver in the Linux Kernel
*
* Copyright (C) 1999-2012, 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 ... | Eason91/kernel_lge_x3 | drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_sdmmc.c | C | gpl-2.0 | 40,895 |
/* PVCS version log
*
* 7 07/09/07 5:10p Paulkwong
*
* 6 07/09/07 11:21a Paulkwong
* Full ioctl function
*
* 5 07/08/14 3:53p Paulkwong
* Add polling function
*
* 4 07/07/02 6:11p Paulkwong
* Verify with unit test
*
* 3 07/06/25 11:43a Paulkwong
*
* 2 07/03/05 10:32a Paulkwong
*
... | v1ron/kernel-wm8505 | drivers/input/touchscreen/wm9715-ts_800_480.c | C | gpl-2.0 | 34,774 |
#include "xparameters.h"
int $Sub$$_sys_write(unsigned int fh, const unsigned char *buf, unsigned int len, int mode)
{
unsigned int volatile *uart_base = (unsigned int *)STDOUT_BASEADDRESS;
int i;
for (i =0; i < len;i++) {
/* wait if TNFUL */
while (*(uart_base + 11) & (1 << 14)) ;
*(uart_base + 12)... | EPiCS/reconos | demos/sort_demo/xilkernel/sort_demo_bsp/microblaze_0/libsrc/standalone_v3_03_a/src/cortexa9/armcc/_sys_write.c | C | gpl-2.0 | 349 |
/*
* "splice": joining two ropes together by interweaving their strands.
*
* This is the "extended pipe" functionality, where a pipe is used as
* an arbitrary in-memory buffer. Think of a pipe as a small kernel
* buffer that you can use to transfer data from one end to the other.
*
* The traditional unix read/wr... | tellapart/ubuntu-precise | fs/splice.c | C | gpl-2.0 | 48,341 |
/*
* linux/mm/page_alloc.c
*
* Manages the free list, the system allocates free pages here.
* Note that kmalloc() lives in slab.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
* Swap reorganised 29.12.95, Stephen Tweedie
* Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999
* Re... | user98/android_kernel_samsung_grandneove3g | mm/page_alloc.c | C | gpl-2.0 | 179,875 |
#include <stdio.h>
#include <malloc.h>
#include "define.c"
#define STACK_INIT_SIZE 20 //存储空间初始分配量
#define STACKINCREMENT 5 //存储空间分配增量
typedef int SElemType;
//创建一个栈的数据类型
typedef struct stack{
SElemType *base;//栈底指针,构造之前和销毁之后均为NULL
SElemType *top;//栈顶指针
int stacksize;//栈空间大小,以元素为单位
}SqStack;
/*top指针初... | gxzty/path_of_C | Unit_1/数据结构和算法/清华DSA/数据结构/Stack.c | C | gpl-2.0 | 4,340 |
/*
* Copyright (C) 2010 Samsung Electronics.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be use... | alesaiko/UK-PRO5 | drivers/misc/modem_v1/modem_io_device.c | C | gpl-2.0 | 44,672 |
/*
* Generic process-grouping system.
*
* Based originally on the cpuset system, extracted by Paul Menage
* Copyright (C) 2006 Google, Inc
*
* Notifications support
* Copyright (C) 2009 Nokia Corporation
* Author: Kirill A. Shutemov
*
* Copyright notices from the original cpuset code:
* -------------... | iJo09/Hybridmax_Kernel_I9505_Lollipop-1 | kernel/cgroup.c | C | gpl-2.0 | 141,565 |
/**
* @file mlan_txrx.c
*
* @brief This file contains the handling of TX/RX in MLAN
*
* (C) Copyright 2009-2014 Marvell International Ltd. All Rights Reserved
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by M... | acorn-marvell/brillo_pxa_kernel | drivers/marvell/sd8787/wlan_src/mlan/mlan_txrx.c | C | gpl-2.0 | 11,652 |
/**********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eith... | teknoa/freeciv-android | jni/freeciv/client/gui-android/plrdlg.c | C | gpl-2.0 | 1,441 |
/*
* Copyright (c) 2013, TripNDroid Mobile Engineering
*
* 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.
*
* Thi... | maz-1/firefly-rk3288-kernel | block/tripndroid-iosched.c | C | gpl-2.0 | 7,505 |
/*
* Race for the Galaxy AI
*
* Copyright (C) 2009-2011 Keldon Jones
*
* 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 v... | jamieQ/RFTG | ai_client.c | C | gpl-2.0 | 10,486 |
/*
* Copyright (C) 2004-2012 Free Software Foundation, Inc.
*
* This file is part of GnuTLS.
*
* GnuTLS 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 op... | DDTChen/CookieVLC | vlc/contrib/android/gnutls/src/certtool-cfg.c | C | gpl-2.0 | 40,418 |
/*
Broadcom B43 wireless driver
Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>
Copyright (c) 2005 Stefano Brivio <stefano.brivio@polimi.it>
Copyright (c) 2005-2009 Michael Buesch <m@bues.ch>
Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org>
Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@wa... | dlarm/backports | drivers/net/wireless/b43/main.c | C | gpl-2.0 | 156,957 |
/*****************************************************************************
* a52.c: parse A/52 audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2001-2002 the VideoLAN team
* $Id$
*
* Authors: Stéphane Borel <stef@via.ecp.fr>... | MessiahAndrw/Stereoscopic-VLC | modules/codec/a52.c | C | gpl-2.0 | 14,087 |
/* Copyright (c) 2002,2007-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 i... | CaptainThrowback/kernel_htc_m8ql | drivers/gpu/msm/adreno.c | C | gpl-2.0 | 58,653 |
/*
*
* Copyright (c) 2015, Red Hat, Inc.
* Copyright (c) 2015, Masatake YAMATO
*
* Author: Masatake YAMATO <yamato@redhat.com>
*
* This source code is released for free distribution under the terms of the
* GNU General Public License version 2 or (at your option) any later version.
*
*/
#include "gene... | Akronix/geany | ctags/main/xtag.c | C | gpl-2.0 | 3,538 |
/*
* Copyright (c) 2002, Intel Corporation. All rights reserved.
* Copyright (c) 2012, Cyril Hrubis <chrubis@suse.cz>
*
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*
* The file descriptor fildes shall have b... | chenhuacai/ltp | testcases/open_posix_testsuite/conformance/interfaces/mmap/6-6.c | C | gpl-2.0 | 2,083 |
/* GStreamer
* Copyright (C) 2011 David Schleef <ds@entropywave.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any la... | luisbg/gst-plugins-bad | gst/inter/gstintersubsink.c | C | gpl-2.0 | 7,226 |
/*
* vivi/misc.c: functions used in vivi
*
* Copyright (C) MIZI Research, Inc. 2002
*
* 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 optio... | xcvista/vivi | lib/misc.c | C | gpl-2.0 | 4,530 |
/*
* linux/lib/string.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* stupid library routines.. The optimized versions should generally be found
* as inline code in <asm-xx/string.h>
*
* These are buggy as well..
*
* * Fri Jun 25 1999, Ingo Oeser <ioe@informatik.tu-chemnitz.de>
* - Added strsep() ... | shminer/LG-F460-Kernel | lib/string.c | C | gpl-2.0 | 17,873 |
/*
* ccio-rm-dma.c:
* DMA management routines for first generation cache-coherent machines.
* "Real Mode" operation refers to U2/Uturn chip operation. The chip
* can perform coherency checks w/o using the I/O MMU. That's all we
* need until support for more than 4GB phys mem is needed.
*
* This is the... | muromec/linux-ezxdev | arch/parisc/kernel/ccio-rm-dma.c | C | gpl-2.0 | 5,148 |
/*
* Copyright 2012 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it w... | neverware/pesign | src/pesigcheck_context.c | C | gpl-2.0 | 2,391 |
/*
* 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... | ion-storm/Unleashed-N5 | mm/memory.c | C | gpl-2.0 | 114,166 |
/*
** Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved.
** Copyright (C) 2006-2013 Sourcefire, Inc.
**
** 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. You may no... | threatstream/snort | src/target-based/sftarget_reader.c | C | gpl-2.0 | 33,887 |
/*
* drivers/cpufreq/cpufreq_ondemand.c
*
* Copyright (C) 2001 Russell King
* (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
* Jun Nakajima <jun.nakajima@intel.com>
* (c) 2013 The Linux Foundation. All rights reserved.
*
* This program is free softw... | davidmueller13/custom_kernel_lt03lte_aosp_6.0 | drivers/cpufreq/cpufreq_ondemand.c | C | gpl-2.0 | 44,471 |
/******************************************************************************
*
* Name: hwtimer.c - ACPI Power Management Timer Interface
*
*****************************************************************************/
/******************************************************************************
*
* 1. Copyr... | MicroTrustRepos/microkernel | src/l4/pkg/acpica/lib-acpi/src/acpica/components/hardware/hwtimer.c | C | gpl-2.0 | 11,001 |
/**********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eith... | jheusala/freeciv-extended | common/events.c | C | gpl-2.0 | 14,176 |
/* AFS filesystem file handling
*
* Copyright (C) 2002, 2007 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 License
* as published by the Free Software Foun... | gilou811/Archos_OPENAOS_Kernel_ICS | fs/afs/file.c | C | gpl-2.0 | 8,395 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* Marco size/position constraints */
/*
* Copyright (C) 2002, 2003 Red Hat, Inc.
* Copyright (C) 2003, 2004 Rob Adams
* Copyright (C) 2005, 2006 Elijah Newren
*
* This program is free software; you can redistribute it and/or
* modify it under t... | infirit/marco | src/core/constraints.c | C | gpl-2.0 | 57,792 |
/* CPP main program, using CPP Library.
* Copyright (C) 1995 Free Software Foundation, Inc.
* Written by Per Bothner, 1994-95.
* Copyright (C) 2003-2011 Kim Woelders
*
* 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... | jordemort/edje | src/bin/epp/cppmain.c | C | gpl-2.0 | 3,608 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.