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
/* * MOV demuxer * Copyright (c) 2001 Fabrice Bellard. * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at yo...
naeemshah/avbin
ffmpeg/libavformat/mov.c
C
gpl-3.0
71,875
/*---------------------------------------------------------------------------* * SRecTestAudio.c * * * * Copyright 2007, 2008 Nuance Communciations, Inc. * * ...
s20121035/rk3288_android5.1_repo
external/srec/srec/test/SRecTestAudio/src/SRecTestAudio.c
C
gpl-3.0
109,286
/* * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in...
darlinghq/darling
src/dyld/unit-tests/test-cases/weak-coalesce/foo2.c
C
gpl-3.0
1,250
/* Test of exp() function. Copyright (C) 2012-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) a...
cooljeanius/wget
gnulib/tests/test-exp-ieee.c
C
gpl-3.0
1,157
/* ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
galengold/split70
qmk_firmware/lib/chibios/demos/AVR/RT-ARDUINOLEONARDO/usbcfg.c
C
gpl-3.0
13,771
/* * 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 "CNAVclockModel.h" static int memb_cnavToc_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_c...
BramBonne/snoopsnitch-pcapinterface
contrib/libosmo-asn1-rrc/src/CNAVclockModel.c
C
gpl-3.0
19,523
/*********************************************************** * This file is part of glyr * + a commnadline tool and library to download various sort of music related metadata. * + Copyright (C) [2011] [Christopher Pahl] * + Hosted at: https://github.com/sahib/glyr * * glyr is free software: you can redistribute it and...
rwstauner/glyr
lib/intern/guitartabs/chordie_com.c
C
gpl-3.0
4,568
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope tha...
uhhpctools/openuh
osprey/libfi/mathlb/ieee_binary_scale_d_i.c
C
gpl-3.0
8,753
/* ========================================================================== */ /* * P y m a 5 7 * * P y t h o n i n t e r f a c e t o t h e M A 5 7 p a c k a g e */ /* ========================================================================== */ /* $Revision:$ ...
joeywen/nlpy
nlpy/linalg/src/_pyma57.c
C
gpl-3.0
19,271
#include "pdf-imp.h" #include "mupdf/fitz/document.h" #undef DEBUG_PROGESSIVE_ADVANCE #ifdef DEBUG_PROGESSIVE_ADVANCE #define DEBUGMESS(A) do { fz_warn A; } while (0) #else #define DEBUGMESS(A) do { } while (0) #endif static inline int iswhite(int ch) { return ch == '\000' || ch == '\011' || ch == '\012' || ch ...
lustersir/MuPDF
source/pdf/pdf-xref.c
C
agpl-3.0
71,956
/* * Small jpeg decoder library * * *** NOTE: This is a modified version to deal with the ax203 "JPEG" fmt * *** This version can not decompress regular JPEG files, see * *** README.ax203-compression for details * * Copyright (c) 2006, Luc Saillard <luc@saillard.org> * * ax203 modifications: * Copyright (c) ...
jbreeden/libgphoto2
camlibs/ax203/tinyjpeg.c
C
lgpl-2.1
27,060
/* GStreamer * * Copyright 2007 Nokia Corporation * Copyright 2007 Collabora Ltd, * @author: Philippe Kalaf <philippe.kalaf@collabora.co.uk> * * Copyright (C) <2005> Wim Taymans <wim.taymans@gmail.com> * <2007> Edward Hervey <bilboed@bilboed.com> * * This library is free software; you can redist...
roopar/gst-plugins-good
gst/rtp/gstrtph263depay.c
C
lgpl-2.1
11,512
/* * Copyright (c) 1997-2001 Silicon Graphics, Inc. All Rights Reserved. */ /* * chknumval - check out new encoding of errors within numval of a pmResult * * also drives pmStore, __pmConnectLogger and __pmControlLog testing */ #include <ctype.h> #include <pcp/pmapi.h> #include "libpcp.h" int main(int argc, ch...
adfernandes/pcp
qa/src/chknumval.c
C
lgpl-2.1
7,843
/* * Motif * * Copyright (c) 1987-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; either version 2 of the Lice...
unix-junkie/motif
tests/Auto/lib/Create/instances/RadioB.c
C
lgpl-2.1
16,209
/* * General DV muxer/demuxer * Copyright (c) 2003 Roman Shaposhnik * * Many thanks to Dan Dennedy <dan@dennedy.org> for providing wealth * of DV technical info. * * Raw DV format * Copyright (c) 2002 Fabrice Bellard * * 50 Mbps (DVCPRO50) and 100 Mbps (DVCPRO HD) support * Copyright (c) 2006 Daniel Maas <dm...
prajnashi/ffmpeg
libavformat/dv.c
C
lgpl-2.1
15,668
/* * Copyright (C) Xiaozhe Wang (chaoslawful) * Copyright (C) Yichun Zhang (agentzh) */ #ifndef DDEBUG #define DDEBUG 0 #endif #include "ddebug.h" #include "ngx_http_lua_control.h" #include "ngx_http_lua_util.h" #include "ngx_http_lua_coroutine.h" static int ngx_http_lua_ngx_exec(lua_State *L); static int ngx_...
qiqjiao/study
nginx/nginx-1.6.2/module/lua-nginx-module-0.9.10/src/ngx_http_lua_control.c
C
lgpl-3.0
12,781
/* ** $Id: progbar.c 434 2008-02-03 07:30:11Z mgwang $ ** ** progbar.c: The ProgressBar control demo program. ** ** Copyright (C) 2001 ~ 2002 Wei Yongming. ** Copyright (C) 2003 ~ 2007 Feynman Software. ** ** Create date: 2001/11/01 */ /* ** This source is free software; you can redistribute it and/or ** modify it u...
hyller/CodeLibrary
minigui/mg-samples-3.0.12/ctrl_dlg/progbar.c
C
unlicense
5,569
/***************************************************************************//** * \file cy_usbfs_dev_drv_io_dma.c * \version 2.20.1 * * Provides data transfer API implementation of the USBFS driver. * ******************************************************************************** * \copyright * Copyright 2018-2020 Cy...
mbedmicro/mbed
targets/TARGET_Cypress/TARGET_PSOC6/psoc6pdl/drivers/source/cy_usbfs_dev_drv_io_dma.c
C
apache-2.0
44,659
/* V4L2 controls framework implementation. Copyright (C) 2010 Hans Verkuil <hverkuil@xs4all.nl> 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, ...
OLIMEX/DIY-LAPTOP
SOFTWARE/A64-TERES/linux-a64/drivers/media/v4l2-core/v4l2-ctrls.c
C
apache-2.0
85,807
/* * * Copyright 2016 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
yang-g/grpc
src/core/lib/security/credentials/jwt/jwt_credentials.c
C
apache-2.0
6,470
/* main.c - Application main entry point * * This is a self-contained test for exercising the TCP protocol stack. Both * the server and client side run on ths same device using a DUMMY interface * as a loopback of the IP packets. * */ /* * Copyright (c) 2020 Intel Corporation * * SPDX-License-Identifier: Apac...
zephyrproject-rtos/zephyr
tests/net/tcp/src/main.c
C
apache-2.0
35,495
/** ****************************************************************************** * @file stm32f4xx_hal_i2c.c * @author MCD Application Team * @version V1.6.0 * @date 04-November-2016 * @brief I2C HAL module driver. * This file provides firmware functions to manage the following ...
solderneer/ARMsat
firmware/satellite/system/src/stm32f4xx/stm32f4xx_hal_i2c.c
C
apache-2.0
174,045
/* * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> * Marius Groeger <mgroeger@sysgo.de> * * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> * Alex Zuepke <azu@sysgo.de> * * (C) Copyright 2002 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> * * (C) C...
indashnet/InDashNet.Open.UN2000
lichee/brandy/u-boot-2011.09/arch/arm/lib/reset.c
C
apache-2.0
1,658
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
wufuyue/cwm_mtk_recovery_cn_cm10.1
minui/graphics.c
C
bsd-2-clause
12,789
/*- * Copyright 2016 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
AlexeySa/rspamd
src/libcryptobox/siphash/siphash.c
C
bsd-2-clause
7,279
#include "casemethod.h" #include "sugar.h" #include "../ast/astbuild.h" #include "../ast/id.h" #include "../pkg/package.h" #include <assert.h> /* The following sugar handles case methods. Case methods are the methods appearing in the source code appearing to be overloaded. A match method is the set of case methods f...
ryanai3/ponyc
src/libponyc/pass/casemethod.c
C
bsd-2-clause
22,183
/* * iterator/iter_scrub.c - scrubbing, normalization, sanitization of DNS msgs. * * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
fastly/unbound
iterator/iter_scrub.c
C
bsd-3-clause
24,061
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* l1rm.c - test the high level api */ #include "rodsClient.h" #define USER_NAME "rods" #define RODS_ZONE "oneZone" /* NOTE : You have to change FILE_NAME, P...
iPlantCollaborativeOpenSource/iRODS3.3-iplant
lib/test/src/l1rm.c
C
bsd-3-clause
2,292
/* Copyright (c) 2013 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. */ /* PWM control module for STM32 */ #include "clock.h" #include "gpio.h" #include "hooks.h" #include "hwtimer.h" #include "pwm.h" #include "pwm...
md5555/ec
chip/stm32/pwm.c
C
bsd-3-clause
3,528
/* _______ ____ __ ___ ___ * \ _ \ \ / \ / \ \ / / ' ' ' * | | \ \ | | || | \/ | . . * | | | | | | || ||\ /| | * | | | | | | || || \/ | | ' ' ' * | | | | |...
boyjimeking/paintown
src/util/sound/dumb/src/allegro/dats3mq.c
C
bsd-3-clause
1,998
/* * Copyright (c) 2003, 2007-8 Matteo Frigo * Copyright (c) 2003, 2007-8 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 Software Foundation; either version 2 of the Li...
gemusehaken/sunflower-simulator
benchmarks/source/superh/fftw-3.3alpha1/dft/simd/codelets/t2sv_8.c
C
bsd-3-clause
12,714
#include "yaml_private.h" /* * Allocate a dynamic memory block. */ YAML_DECLARE(void *) yaml_malloc(size_t size) { return malloc(size ? size : 1); } /* * Reallocate a dynamic memory block. */ YAML_DECLARE(void *) yaml_realloc(void *ptr, size_t size) { return ptr ? realloc(ptr, size ? size : 1) : malloc...
fastred/IBAnalyzer
Pods/Yams/Sources/CYaml/src/api.c
C
mit
36,664
/* Generated by CIL v. 1.7.0 */ /* print_CIL_Input is false */ struct _IO_FILE; struct timeval; extern float strtof(char const *str , char const *endptr ) ; extern void signal(int sig , void *func ) ; typedef struct _IO_FILE FILE; extern int atoi(char const *s ) ; extern double strtod(char const *str , char co...
tum-i22/obfuscated-programs
tigress-generated-programs/empty-Seed1-RandomFuns-Type_short-ControlStructures_0-BB2-ForBound_input-Operators_PlusA_MinusA_Lt_Gt_Le_Ge_Eq_Ne_Mult_Div_Mod.c
C
mit
2,830
/* Copyright (c) 2006-2007 Apple Inc. * Please see the LICENSE file for copyright and distribution information. */ #include "ruby_libxml.h" #include "ruby_xml_reader.h" /* * Document-class: LibXML::XML::Reader * * The XML::Reader class provides a simpler, alternative way of parsing an XML * document in contrast ...
cykod/Webiva
vendor/gems/libxml-ruby-1.1.3/ext/libxml/ruby_xml_reader.c
C
mit
31,327
/* pam_session.c - PAM Session Management */ /* * $Id: pam_session.c,v 1.3 2001/01/22 06:07:29 agmorgan Exp $ */ #include <stdio.h> #include "pam_private.h" int pam_open_session(pam_handle_t *pamh, int flags) { D(("called")); IF_NO_PAMH("pam_open_session", pamh, PAM_SYSTEM_ERR); if (__PAM_FROM_MODUL...
impedimentToProgress/UCI-BlueChip
snapgear_linux/lib/libpam/libpam/pam_session.c
C
mit
743
/* db_statement.c - statement parser * * Copyright (c) 2009 by David Michael Betz. All rights reserved. * */ #include <stdlib.h> #include <string.h> #include "db_compiler.h" /* statement handler prototypes */ static void ParseDef(ParseContext *c); static void ParseEndDef(ParseContext *c); static voi...
dbetz/propgcc-demos
ebasic3/db_statement.c
C
mit
26,305
/* @(#)e_hypot.c 1.3 95/01/18 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided...
bitcoin-hivemind/hivemind
src/fdlibm/src/e_hypot.c
C
mit
3,099
/*++ /* NAME /* netstring 3 /* SUMMARY /* netstring stream I/O support /* SYNOPSIS /* #include <netstring.h> /* /* void netstring_setup(stream, timeout) /* VSTREAM *stream; /* int timeout; /* /* void netstring_except(stream, exception) /* VSTREAM *stream; /* int exception; /* /* const char *netstring_strerror(err) /* i...
Dexus/ubuntu-trusty-postfix
src/util/netstring.c
C
epl-1.0
13,941
/* Blackfin Performance Monitor model. Copyright (C) 2010-2020 Free Software Foundation, Inc. Contributed by Analog Devices, Inc. This file is part of simulators. 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 ...
mattstock/binutils-bexkat1
sim/bfin/dv-bfin_pfmon.c
C
gpl-2.0
4,220
/* * Copyright (c) 1994 by Xerox Corporation. All rights reserved. * Copyright (c) 1996 by Silicon Graphics. All rights reserved. * Copyright (c) 1998 by Fergus Henderson. All rights reserved. * Copyright (c) 2000-2004 by Hewlett-Packard Company. All rights reserved. * * THIS MATERIAL IS PROVIDED AS IS, WITH...
headius/jato
boehmgc/pthread_support.c
C
gpl-2.0
48,804
/* * Copyright (C) 2005-2014 Junjiro R. Okajima * * This program, aufs 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...
CyberGrandChallenge/linux-source-3.13.11-ckt21-cgc
ubuntu/aufs/dcsub.c
C
gpl-2.0
5,595
/* * drivers/gpu/ion/omap_tiler_heap.c * * Copyright (C) 2011 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed...
superatmos/i9100g_kernel_ics
drivers/gpu/ion/omap/omap_tiler_heap.c
C
gpl-2.0
9,387
/* * pmcraid.c -- driver for PMC Sierra MaxRAID controller adapters * * Written By: Anil Ravindranath<anil_ravindranath@pmc-sierra.com> * PMC-Sierra Inc * * Copyright (C) 2008, 2009 PMC Sierra Inc * * This program is free software; you can redistribute it and/or modify * it under the terms of the G...
AdaLovelance/lxcGrsecKernels
linux-3.14.37/drivers/scsi/pmcraid.c
C
gpl-2.0
172,920
/* * Intel I/OAT DMA Linux driver * Copyright(c) 2007 - 2009 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distribut...
sigma-random/linux
drivers/dma/ioat/dca.c
C
gpl-2.0
18,047
/* md.c : Multiple Devices driver for Linux Copyright (C) 1998, 1999, 2000 Ingo Molnar completely rewritten, based on the MD driver code from Marc Zyngier Changes: - RAID-1/RAID-5 extensions by Miguel de Icaza, Gadi Oxman, Ingo Molnar - RAID-6 extensions by H. Peter Anvin <hpa@zytor.com> - boo...
penhoi/linux-3.14.56
drivers/md/md.c
C
gpl-2.0
231,693
/* Copyright (C) 2015-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. 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 by the Free Software Foundation; either version 2.1 of the ...
NicoleRobin/glibc
nss/tst-nss-getpwent.c
C
gpl-2.0
2,934
/* ** Zabbix ** Copyright (C) 2001-2015 Zabbix SIA ** ** 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 pro...
gtt116/zabbix
src/libs/zbxsysinfo/sysinfo.c
C
gpl-2.0
34,220
/* * Neighbour Discovery for IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * Mike Shaver <shaver@ingenia.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 Fre...
jcadduono/idleKernel-note3
net/ipv6/ndisc.c
C
gpl-2.0
47,476
/* linux/arch/arm/mach-s5pv310/pm-hotplug.c * * Copyright (c) 2010 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * S5PV310 - Dynamic CPU hotpluging * * 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 * publish...
carvsdriver/android_kernel_samsung_n5110-common
arch/arm/mach-exynos/pm-hotplug.c
C
gpl-2.0
6,688
/* * Copyright (C) 2014-2015 Freescale Semiconductor, Inc. * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gpl-license.html * http://w...
dremaker/imx6ul_linux
arch/arm/mach-imx/clk-imx7d.c
C
gpl-2.0
66,133
/* * File operations used by nfsd. Some of these have been ripped from * other parts of the kernel because they weren't exported, others * are partial duplicates with added or changed functionality. * * Note that several functions dget() the dentry upon which they want * to act, most notably those that create dir...
souljaboy11792/linux
fs/nfsd/vfs.c
C
gpl-2.0
56,614
/* Copyright (c) 2008-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...
gweedo767/android_kernel_motorola_msm8960-common
drivers/video/msm/msm_dss_io_8x60.c
C
gpl-2.0
16,821
/*************************************************************************** * Copyright (C) 2005 by Dominic Rath * * Dominic.Rath@gmx.de * * * * Copyrig...
brinkleyjk/openocd_mips
src/flash/nor/stm32f2x.c
C
gpl-2.0
31,940
/* * test-svn-fe: Code to exercise the svn import lib */ #include "git-compat-util.h" #include "vcs-svn/svndump.h" #include "vcs-svn/svndiff.h" #include "vcs-svn/sliding_window.h" #include "vcs-svn/line_buffer.h" static const char test_svnfe_usage[] = "test-svn-fe (<dumpfile> | [-d] <preimage> <delta> <len>)"; st...
Koltsov/123
test-svn-fe.c
C
gpl-2.0
1,287
/* Copyright (c) 2008-2016, 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...
duowing/HTC10
drivers/char/diag/diagfwd.c
C
gpl-2.0
47,235
/* Specific implementation of the PACK intrinsic Copyright (C) 2002-2021 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran runtime library (libgfortran). Libgfortran is free software; you can redistribute it and/or modify it under the terms of the GNU ...
Gurgel100/gcc
libgfortran/generated/pack_i2.c
C
gpl-2.0
7,544
/* * 53c710 driver. Modified from Drew Eckhardts driver * for 53c810 by Richard Hirst [richard@sleepie.demon.co.uk] * Check out PERM_OPTIONS and EXPECTED_CLOCK, which may be defined in the * relevant machine specific file (eg. mvme16x.[ch], amiga7xx.[ch]). * There are also currently some defines at the top of 53c...
odit/rv042
linux/kernel_2.6/linux/drivers/scsi/53c7xx.c
C
gpl-2.0
195,839
#include "cache.h" #include "object.h" #include "blob.h" #include "tree.h" #include "commit.h" #include "tag.h" static struct object **obj_hash; static int nr_objs, obj_hash_size; unsigned int get_max_object_index(void) { return obj_hash_size; } struct object *get_indexed_object(unsigned int idx) { return obj_hash...
schaary/studipET2012
object.c
C
gpl-2.0
6,033
#include <linux/init.h> #include <linux/module.h> #include <linux/kdev_t.h> #include <linux/cdev.h> #include <linux/sched.h> #include <linux/mm.h> #include <linux/fs.h> #include <linux/platform_device.h> #include <linux/xlog.h> #include <linux/slab.h> #include <linux/interrupt.h> #include <asm/uaccess.h> #include <lin...
rimistri/mediatek
mt6592/mediatek/platform/mt6592/kernel/drivers/mjc/mjc_kernel_driver.c
C
gpl-2.0
22,460
#include <tommath.h> #ifdef BN_MP_INVMOD_SLOW_C /* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fr...
ipwndev/DSLinux-Mirror
user/dropbear/libtommath/bn_mp_invmod_slow.c
C
gpl-2.0
4,042
/* Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company. Copyright (C) 2004 Michael Liebscher Copyright (C) 1997-2001 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General License as published by the Free Software Foundation; ...
id-Software/DOOM-iOS
code/iphone/cvar.c
C
gpl-2.0
7,648
/* This testcase is part of GDB, the GNU debugger. Copyright 2002-2020 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or ...
mattstock/binutils-bexkat1
gdb/testsuite/gdb.mi/nsintrall.c
C
gpl-2.0
1,604
/* SPDX-License-Identifier: LGPL-2.1-or-later */ #include "fuzz.h" #include "fuzz-journald.h" #include "journald-kmsg.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { Server s; if (size == 0) return 0; dummy_server_init(&s, data, size); dev_kmsg_recor...
darkcircle/systemd
src/journal/fuzz-journald-kmsg.c
C
gpl-2.0
389
/******************************************************************************/ /* Copyright (c) Crackerjack Project., 2007 */ /* */ /* 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 */ /...
shekkbuilder/ltp
testcases/kernel/syscalls/quotactl/quotactl01.c
C
gpl-2.0
7,321
/* Return array order attribute of DIE. Copyright (C) 2003, 2005, 2009 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper <drepper@redhat.com>, 2003. Red Hat elfutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
ystk/debian-elfutils
libdw/dwarf_arrayorder.c
C
gpl-2.0
3,436
/* Implement __enable_execute_stack for Windows32. Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either versi...
Gurgel100/gcc
libgcc/config/i386/enable-execute-stack-mingw32.c
C
gpl-2.0
1,344
/* * Copyright (c) 2002-2003, Intel Corporation. All rights reserved. * Created by: rusty.lynch REMOVE-THIS AT intel DOT com * 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. Test assertion #17 by verifying tha...
ycui1984/posixtestsuite
posixtestsuite/conformance/interfaces/sigaction/17-21.c
C
gpl-2.0
2,176
/* * Implements an IPX socket layer. * * This code is derived from work by * Ross Biro : Writing the original IP stack * Fred Van Kempen : Tidying up the TCP/IP * * Many thanks go to Keith Baker, Institute For Industrial Information * Technology Ltd, Swansea University for allowing me to work on this * in m...
janrinze/loox7xxport
net/ipx/af_ipx.c
C
gpl-2.0
50,905
/* * ntptrace - show the chain from an NTP host leading back to * its source of time * * Jeffrey Mogul DECWRL 13 January 1993 * * Inspired by a script written by Glenn Trewitt * * Large portions stolen from ntpdate.c */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include "ntp_fp.h" #include "ntp.h" #in...
atmark-techno/atmark-dist
user/ntp/ntptrace/ntptrace.c
C
gpl-2.0
16,505
/* ** CXSC is a C++ library for eXtended Scientific Computing (V 2.5.4) ** ** Copyright (C) 1990-2000 Institut fuer Angewandte Mathematik, ** Universitaet Karlsruhe, Germany ** (C) 2000-2014 Wiss. Rechnen/Softwaretechnologie ** Universitaet Wuppertal, Germa...
GeorgiaTechMSSE/ReliableMD
src-cxsc/CXSC/rts/i_ep10.c
C
gpl-3.0
3,005
/************************************************************************** * * Copyright © 2009 VMware, Inc., Palo Alto, CA., USA * 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 d...
xynopsis/grsec-kernel
drivers/gpu/drm/vmwgfx/vmwgfx_irq.c
C
gpl-3.0
8,822
/* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team * * 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...
blaa/claws
src/html.c
C
gpl-3.0
19,454
/** * Copyright 2015 University of Applied Sciences Western Switzerland / Fribourg * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *...
mertenats/heia
embeddedsystems12/tp7/aitc.c
C
gpl-3.0
4,057
/* Minibuffer input and completion. Copyright (C) 1985-1986, 1993-2013 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 o...
121onto/emacs-24-with-24bit-colors
src/minibuf.c
C
gpl-3.0
74,049
/*------------------------------------------------------------------------- * * lock.c * POSTGRES primary lock mechanism * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org...
arcivanov/postgres-xl
src/backend/storage/lmgr/lock.c
C
mpl-2.0
122,045
/* local histogram equalisation * * Copyright: 1991, N. Dessipris * * Author: N. Dessipris * Written on: 24/10/1991 * Modified on : * 25/1/96 JC * - rewritten, adapting im_spcor() * - correct result, 2x faster, partial, simpler, better arg checking * 8/7/04 * - expand input rather than output with new im_e...
leiyangyou/libvips
libvips/histogram/hist_local.c
C
lgpl-2.1
8,526
/* * domain_addr.c: helper APIs for managing domain device addresses * * Copyright (C) 2006-2016 Red Hat, Inc. * Copyright (C) 2006 Daniel P. Berrange * * 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...
libvirt/libvirt
src/conf/domain_addr.c
C
lgpl-2.1
75,904
/* * pkcs15-westcos.c: pkcs15 support for westcos card * * Copyright (C) 2009 francois.leblanc@cev-sa.com * * 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...
Nitrokey/OpenSC-main
src/pkcs15init/pkcs15-westcos.c
C
lgpl-2.1
7,765
/* PackTab - Pack a static table * Copyright (C) 2001 Behdad Esfahbod. * * 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...
khaledhosny/fribidi
gen.tab/packtab.c
C
lgpl-2.1
9,602
/*------------------------------------------------------------------------- * * catalog.c * routines concerned with catalog naming conventions and other * bits of hard-wired knowledge * * * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the Univ...
hornn/interviews
src/backend/catalog/catalog.c
C
apache-2.0
33,979
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later /* Copyright 2013-2015 IBM Corp. */ #include <device.h> #include <include/opal-internal.h> #include <fsp-leds.h> #include "spira.h" #include "hdata.h" const struct slca_entry *slca_get_entry(uint16_t slca_index) { struct HDIF_common_hdr *slca_hdr; int coun...
open-power/skiboot
hdata/slca.c
C
apache-2.0
3,749
/*- * Copyright (c) 2004-2009 Apple Inc. * 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 o...
dplbsd/zcaplib
head/contrib/openbsm/bin/auditd/auditd_fbsd.c
C
bsd-2-clause
6,229
/***************************************************************************** * Copyright (c) 2009, OpenJAUS.com * All rights reserved. * * This file is part of OpenJAUS. OpenJAUS is distributed under the BSD * license. See the LICENSE file for details. * * Redistribution and use in source and binary...
tectronics/openjaus.trial33c
libjaus/src/message/command/communications/setDataLinkSelectMessage.c
C
bsd-3-clause
16,518
/* * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2015-2016 Cryptography Research, Inc. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source dis...
jens-maus/amissl
openssl/crypto/ec/curve448/scalar.c
C
bsd-3-clause
7,142
/* * This file is part of the Soletta Project * * Copyright (C) 2015 Intel Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain ...
thiagomacieira/soletta
src/bin/sol-fbp-runner/runner.c
C
bsd-3-clause
14,202
/* * * Copyright 2015, Google Inc. * 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 condi...
ppietrasa/grpc
test/core/security/security_connector_test.c
C
bsd-3-clause
17,100
#include <CUnit/CUnit.h> #include <stdio.h> #include "hashtable.h" #include <saffire/general/hashtable.h> void test_hashtable_replace_does_not_affect_original_after_shallow_copy() { t_hash_table *original = ht_create(); ht_add_str(original, "key", "original_value"); t_hash_table *copy = ht_copy(original, ...
jaytaph/saffire
unittests/core/hashtable/hashtable.c
C
bsd-3-clause
996
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" FLA_Error FLA_Obj_extrac...
dxander/libflame
src/base/flamec/check/base/main/FLA_Obj_extract_imag_part_check.c
C
bsd-3-clause
823
/*- * Copyright (C) 2010, Romain Tartiere. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This p...
x414e54/grouping-proof
nfc-tools-read-only/test/test_mifare_classic_mad.c
C
bsd-3-clause
10,349
/* ************************************************************************* * Ralink Tech Inc. * 5F., No.36, Taiyuan St., Jhubei City, * Hsinchu County 302, * Taiwan, R.O.C. * * (c) Copyright 2002-2010, Ralink Technology, Inc. * * This program is free software; you can redistribute it and/or modify * * it u...
chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916
phy/rlt_phy.c
C
mit
9,188
#include <stdio.h> int main() { int arr[1000], i = 0; do scanf("%d", &arr[i]); while(arr[i++] != 42 && i < 1000); int n = i, j; for(i = 0; i < n; i++) { for(j = 0; j < n - i - 1; j++) { if(arr[j] > arr[j+1]) { arr[j] = arr[j] + arr[j+1...
ivanmilevtues/po-homework
2015-2016/V/29/02/task3.c
C
mit
540
/* quirc -- QR-code recognition library * Copyright (C) 2010-2012 Daniel Beer <dlbeer@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. ...
masterhou/FBI
source/quirc/decode.c
C
mit
19,889
#include "smbus.h" #define SMBUS_IO_BASE 0x0f00 static void enable_smbus(void) { device_t dev = PCI_DEV(0x0, 0x1f, 0x3); printk(BIOS_SPEW, "SMBus controller enabled\n"); pci_write_config32(dev, 0x20, SMBUS_IO_BASE | 1); printk(BIOS_DEBUG, "%08x", pci_read_config32(dev, 0x20)); /* Set smbus enable */ pci_write...
librecore-org/librecore
src/southbridge/intel/i82801ex/early_smbus.c
C
gpl-2.0
3,571
/* Copyright (c) 2011, 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 hope th...
mahound/Cyanogenmod_kernel_samsung_loganreltexx
drivers/media/video/msm/sensors/sr030pc50_v4l2.c
C
gpl-2.0
34,775
/* Copyright (C) 2009-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. 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 by the Free Software Foundation; either version 2.1 of the ...
lbxl2345/glibc
stdio-common/reg-modifier.c
C
gpl-2.0
4,319
/****************************************************************************** * * Module Name: psopcode - Parser/Interpreter opcode information table * *****************************************************************************/ /* * Copyright (C) 2000 - 2003, R. Byron Moore * All rights reserved. * * Redi...
sensysnetworks/uClinux
linux-2.4.x/drivers/acpi/parser/psopcode.c
C
gpl-2.0
57,949
/**************************************************************************************** * driver/input/touchscreen/hannstar_sis.c *Copyright :ROCKCHIP Inc *Author : sfm *Date : 2010.2.5 *This driver use for rk28 chip extern touchscreen. Use i2c IF ,the chip is Hannstar *description£º *********************...
allwinner/linux-2.6.36
drivers/input/touchscreen/sis_i2c.c
C
gpl-2.0
25,083
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the ...
alyubomirov/Amlogic_s905-kernel
drivers/amlogic/wifi/rtl8192EU/os_dep/linux/os_intfs.c
C
gpl-2.0
114,354
/* 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...
alan707/senuti
libxpod/Libraries/glib-2.13.7/glib/gbacktrace.c
C
gpl-2.0
6,681
/* * Copyright (C) 2014, Intel Corporation. * * 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 usef...
CM-CHT/android_kernel_intel_cherrytrail
drivers/video/adf/intel/core/vlv/vlv_debugfs.c
C
gpl-2.0
4,669