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
/* * 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...
chickadee-tech/betaflight
src/main/target/STM32F3DISCOVERY/target.c
C
gpl-3.0
5,121
/* 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-openacc
osprey/libfi/mpp_scan/scanmax_sp_6.c
C
gpl-3.0
3,247
/*********************************************************************/ /* */ /* Optimized BLAS libraries */ /* By Kazushige Goto <kgoto@tacc.utexas.edu> */ /* ...
cnr-isti-vclab/meshlab
unsupported/plugins_unsupported/external/GotoBLAS2/driver/others/memory_qalloc.c
C
gpl-3.0
2,015
/* Copyright 2005, 2006, 2007 Dennis van Weeren Copyright 2008, 2009 Jakub Bednarski This file is part of Minimig Minimig 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 y...
rkrajnc/minimig-mist
fw/ctrl/menu.c
C
gpl-3.0
80,458
/* * This file is part of Cleanflight. * * Cleanflight is free software. You can redistribute * this software and/or modify this software 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/cleanflight
src/main/drivers/compass/compass_ak8963.c
C
gpl-3.0
14,689
/* GIMP - The GNU Image Manipulation Program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * gimpuiconfigurer.c * Copyright (C) 2009 Martin Nordholts <martinn@src.gnome.org> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License a...
mardy/gimb
app/gui/gimpuiconfigurer.c
C
gpl-3.0
20,013
/* * Copyright (C) 2006 by Martin J. Muench <mjm@codito.de> * * Part of mpd - mobile phone dumper * * Some code stolen from btxml.c by Andreas Oberritter * */ #include "wrap.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> /* Simple malloc() wrapper */ void *Malloc(size_t size)...
firebitsbr/pwn_plug_sources
src/bluetooth/bluebugger/source/wrap.c
C
gpl-3.0
527
/* * This file is part of the libsigrok project. * * Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de> * * 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,...
uwehermann/libsigrok
src/strutil.c
C
gpl-3.0
30,226
/* This file is part of the FreeRTOS.org distribution. FreeRTOS.org 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 and modified by the FreeRTOS exception. FreeRTOS.org is distrib...
RobsonRojas/frertos-udemy
Keil-FreeRTOS-Sample-Project/Keil-FreeRTOS/FreeRTOSv9.0.0/FreeRTOS/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/FEC.c
C
gpl-3.0
20,040
/**CFile**************************************************************** FileName [ioReadBaf.c] SystemName [ABC: Logic synthesis and verification system.] PackageName [Command processing package.] Synopsis [Procedures to read AIG in the binary format.] Author [Alan Mishchenko] Affiliatio...
Kinghsy/490_core
lib/abc/src/base/io/ioReadBaf.c
C
gpl-3.0
5,781
#include <parmetislib.h> /* Byte-wise swap two items of size SIZE. */ #define QSSWAP(a, b, stmp) do { stmp = (a); (a) = (b); (b) = stmp; } while (0) /* Discontinue quicksort algorithm when partition gets below this size. This particular magic number was chosen to work best on a Sun 4/260. */ #define MAX_THRESH 20...
DominicJones/cfdpack
lib/ParMetis-3.1.1/ParMETISLib/ikeyvalsort.c
C
gpl-3.0
4,929
/* GIO - GLib Input, Output and Streaming Library * * Copyright (C) 2006-2007 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or ...
staceyson/glib-2.0
gio/gappinfo.c
C
lgpl-2.1
28,691
/* * Copyright (c) 2012 Citrix Systems, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * Th...
OpenXT/surfman
plugins/glgfx/glgfx.c
C
lgpl-2.1
31,356
/***************************************************************************** * schroedinger.c: Dirac decoder module making use of libschroedinger. * (http://www.bbc.co.uk/rd/projects/dirac/index.shtml) * (http://diracvideo.org) ********************************************************************...
xkfz007/vlc
modules/codec/schroedinger.c
C
lgpl-2.1
57,647
/** ****************************************************************************** * @file stm32wbxx_hal_pcd_ex.c * @author MCD Application Team * @brief PCD Extended HAL module driver. * This file provides firmware functions to manage the following * functionalities of the USB...
prefetchnta/crhack
src/naked/arm-stm32/stm32wbxx/stm32wbxx_hal_pcd_ex.c
C
lgpl-2.1
9,702
/* radare - LGPL - Copyright 2014-2015 - pancake */ #include "r_util/r_str.h" #include <r_util.h> /* dex/dwarf uleb128 implementation */ R_API const ut8 *r_uleb128(const ut8 *data, int datalen, ut64 *v, const char **error) { ut8 c; ut64 s, sum = 0; const ut8 *data_end; bool malformed_uleb = true; if (v) { *v ...
wargio/radare2
libr/util/uleb128.c
C
lgpl-3.0
8,753
/* * XDD - a data movement and benchmarking toolkit * * Copyright (C) 1992-2013 I/O Performance, Inc. * Copyright (C) 2009-2013 UT-Battelle, LLC * * This 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 ...
eunsungc/gt6-RAMSES_8_5
xdd-7.0.0.rc-ramses3/src/bx/bx_worker_thread.c
C
apache-2.0
7,048
/** * FreeRDP: A Remote Desktop Protocol Implementation * T.124 Generic Conference Control (GCC) * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2014 Norbert Federa <norbert.federa@thincast.com> * Copyright 2014 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> * * License...
cedrozor/FreeRDP
libfreerdp/core/gcc.c
C
apache-2.0
59,329
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
rectang/lucy
core/LucyX/Search/ProximityMatcher.c
C
apache-2.0
12,748
#include <sys/time.h> #include <time.h> #include "warnp.h" #include "monoclock.h" /** * monoclock_get(tv): * Store the current time in ${tv}. If CLOCK_MONOTONIC is available, use * that clock; otherwise, use gettimeofday(2). */ int monoclock_get(struct timeval * tv) { #ifdef CLOCK_MONOTONIC struct timespec tp...
brainwater/spiped
lib/util/monoclock.c
C
bsd-2-clause
669
/*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * Copyright (c) 2011 The FreeBSD Foundation * All rights reserved. * Portions of this software were developed by David Chisnall ...
jrobhoward/SCADAbase
lib/libc/stdio/vfwprintf.c
C
bsd-3-clause
28,031
/* * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. * Copyright Siemens AG 2020 * * 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 distribution or at * htt...
jens-maus/amissl
openssl/test/http_test.c
C
bsd-3-clause
12,328
/** * OpenAL cross platform audio library * Copyright (C) 1999-2007 by authors. * 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 op...
DKGL/DKGL
DK/lib/OpenAL/OpenAL32/alFilter.c
C
bsd-3-clause
17,106
#include "atlas_misc.h" #include "camm_strat1.h" void ATL_USET(int len, const SCALAR alpha, TYPE *X, const int incX) { NO_INLINE; #ifndef SREAL len+=len; #endif #ifdef DCPLX len+=len; #endif #define VERS 3 #define N Mjoin(set_,VERS) #ifndef BITS #define BITS 4 #endif #ifndef CL #define CL 24 #endif #ifdef SR...
rakib-hasan/math-atlas
AtlasBase/kernel/CammMaguire/set_SSE_p4.c
C
bsd-3-clause
966
/* * * 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/end2end/tests/payload.c
C
bsd-3-clause
10,278
/**************************************************************************** * * Copyright (C) 2012-2019 PX4 Development Team. 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. Redi...
acfloria/Firmware
src/systemcmds/tests/test_ppm_loopback.c
C
bsd-3-clause
5,363
/* Copyright (c) 2009-2013 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "net.h" #include "ioloop.h" #include "hash.h" #include "strescape.h" #include "fd-set-nonblock.h" #include "login-proxy-state.h" #include <unistd.h> #include <fcntl.h> #define NOTIFY_RETRY_REOPEN_MSECS (60*1000) s...
Distrotech/dovecot
src/login-common/login-proxy-state.c
C
mit
3,843
/* * MP3 muxer * Copyright (c) 2003 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 your ...
retsu0/FFmepg-Android
jni/ffmpeg/libavformat/mp3enc.c
C
mit
16,996
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ console.c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Forrest Yu, 2005 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /* 回车键: 把光标移到第一列 换行键: 把光标前进到下一行 */ #include "type.h" #i...
RongbinZhuang/simpleOS
ver0/reference/chapter7/i/kernel/console.c
C
mit
1,638
/* LUFA Library Copyright (C) Dean Camera, 2015. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purp...
ManCaveMade/QuarkOne-Bootloader
src/LUFA/LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.c
C
mit
3,057
#include <stdio.h> #include <string.h> int is_prime(char*); int main() { char input[11]; fgets(input, 11, stdin); printf("%d", is_prime(input)); return 0; } int is_prime(char* input) { int i, length, number = 0; length = input[strlen(input) - 1] == '\n' ? strlen(input) - 1 : strlen(input); for (i = 0; i...
ivanmilevtues/po-homework
2015-2016/A/09/04/task1.c
C
mit
670
/****************************************************************************** * * Module Name: dswscope - Scope stack manipulation * *****************************************************************************/ /****************************************************************************** * * 1. Copyright No...
aclements/sv6
kernel/acpica/source/components/dispatcher/dswscope.c
C
mit
11,237
/******************************************************************************* * Copyright (c) 2002, 2010 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distributio...
nikll/pty4j
native/openpty.c
C
epl-1.0
1,746
#include "parser.h" #include "test.h" int main(int argc, char *argv[]) { BOOL ret; char *fname, *test; int fd; struct stat st; io_struct ps; if (argc < 3) { printf("usage: vluke <structure> <file>\n"); exit(1); } test = argv[1]; fname = argv[2]; fd = open(fname,O_RDONLY); if (fd == -1) { perror(f...
ipwndev/DSLinux-Mirror
user/samba/source/aparser/vluke.c
C
gpl-2.0
851
/* * Copyright (c) 2011 Synaptics Incorporated * Copyright (c) 2011 Unixphere * * 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 ...
kirilllavrov/android_kernel_huawei_s10101l
drivers/input/touchscreen/rmi4/rmi_spi.c
C
gpl-2.0
21,706
/* * * This source code is part of * * G R O M A C S * * GROningen MAchine for Chemical Simulations * * VERSION 3.2.0 * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others. * Copyright (c) 1991-2000, University of G...
tectronics/force-distribution-analysis.gromacs-4-5-3
src/mdlib/vsite.c
C
gpl-2.0
39,717
/* Copyright (c) 2009-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 ho...
tenorntex/lhbalanced
drivers/usb/otg/msm72k_otg.c
C
gpl-2.0
74,497
/* * linux/drivers/mmc/core/core.c * * Copyright (C) 2003-2004 Russell King, All Rights Reserved. * SD support Copyright (C) 2004 Ian Molton, All Rights Reserved. * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved. * MMCv4 support Copyright (C) 2006 Philip Langdale, All Rights Reserved. * * This ...
SmithGitHu/linux
drivers/mmc/core/core.c
C
gpl-2.0
69,002
// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/jbd2/commit.c * * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 * * Copyright 1998 Red Hat corp --- All Rights Reserved * * Journal commit routines for the generic filesystem journaling code; * part of the ext2fs journaling system. */ #include <linux/t...
Fe-Pi/linux
fs/jbd2/commit.c
C
gpl-2.0
34,815
/********************************************************************** * * Copyright (C) Imagination Technologies Ltd. All rights reserved. * * 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...
nushor/samsung_aries_ics_OLD
drivers/gpu/pvr/pvr/module.c
C
gpl-2.0
17,128
/* driver/i2c/chip/tap6185.c * * TI rt5501 Speaker Amp * * Copyright (C) 2010 HTC 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 pr...
Buckmarble/Lunar_kernel_sense_m7
drivers/i2c/chips/rt5501.c
C
gpl-2.0
30,535
/************************************************************************ * $Id: minibidi.c 6910 2006-11-18 15:10:48Z simon $ * * ------------ * Description: * ------------ * This is an implemention of Unicode's Bidirectional Algorithm * (known as UAX #9). * * http://www.unicode.org/reports/tr9/ * * Author...
hackpascal/line-is-not-emulator
src/puttyline/putty-0.60/minibidi.c
C
gpl-2.0
55,967
/* * xHCI host controller driver * * Copyright (C) 2008 Intel Corp. * * Author: Sarah Sharp * Some code borrowed from the Linux EHCI driver. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Soft...
olear/R104
drivers/usb/host/xhci-hub.c
C
gpl-2.0
32,288
/****************************************************************************** ** $Id$ ** ** Copyright (C) 2006-2007 ascolab GmbH. All Rights Reserved. ** Web: http://www.ascolab.com ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** a...
RayHightower/wireshark
plugins/opcua/opcua_application_layer.c
C
gpl-2.0
3,905
/* * drivers/video/radeonfb.c * framebuffer driver for ATI Radeon chipset video boards * * Copyright 2000 Ani Joshi <ajoshi@kernel.crashing.org> * * * ChangeLog: * 2000-08-03 initial version 0.0.1 * 2000-09-10 more bug fixes, public release 0.0.5 * 2001-02-19 mode bug fixes, 0.0.7 * 2001-07-05 fixed scrollin...
marcelo-duffles/linux-rat-2.6.10
drivers/video/radeonfb.c
C
gpl-2.0
88,606
/*************************************************************************** * Copyright (C) 2011 by Broadcom Corporation * * Evan Hunter - ehunter@broadcom.com * * * * This pr...
yangshanjin/openOCD
src/rtos/rtos_embkernel_stackings.c
C
gpl-2.0
2,609
/* * tkMacMenubutton.c -- * * This file implements the Macintosh specific portion of the * menubutton widget. * * Copyright (c) 1996 by Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * * RCS: @(#) $I...
AndresGG/sn-8.4
tk/mac/tkMacMenubutton.c
C
gpl-2.0
9,411
/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
Nico60/kernel_lge_hammerhead
drivers/gpu/msm/kgsl_iommu.c
C
gpl-2.0
61,701
/* * Copyright (c) International Business Machines Corp., 2006 * Copyright (c) Nokia Corporation, 2006, 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 * the Free Software Foundation; either version 2 of the Licen...
carlos-wong/l430_kernel
drivers/mtd_bak/ubi/io.c
C
gpl-2.0
38,031
/* polygon clipping functions. harry eaton implemented the algorithm described in "A Closed Set of Algorithms for Performing Set Operations on Polygonal Regions in the Plane" which the original code did not do. I also modified it for integer coordinates and faster computation. The lic...
szdiy/pcb-temorary
src/polygon1.c
C
gpl-2.0
83,865
/* GStreamer * Copyright (C) <2003> David A. Schleef <ds@schleef.org> * * 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 l...
loveyoupeng/rt
modules/media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstvalue.c
C
gpl-2.0
140,229
/* * thinkpad_acpi.c - ThinkPad ACPI Extras * * * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net> * Copyright (C) 2006-2009 Henrique de Moraes Holschuh <hmh@hmh.eng.br> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public L...
naota/hfsplus
drivers/platform/x86/thinkpad_acpi.c
C
gpl-2.0
235,029
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2. * * This program 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 ...
ycui1984/posixtestsuite
posixtestsuite/conformance/definitions/sys/mman_h/2-3.c
C
gpl-2.0
584
/* * Broadcom Dongle Host Driver (DHD), Linux-specific network interface * Basically selected code segments from usb-cdc.c and usb-rndis.c * * Copyright (C) 1999-2012, Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, th...
htc-first/android_kernel_htc_msm8930aa
drivers/net/wireless/bcmdhd_4334/dhd_linux.c
C
gpl-2.0
156,615
#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/device.h> #include <linux/slab.h> #include <linux/i2c.h> #include <linux/pm.h> #include <linux/gpio.h> #include <linux/delay.h> #include <linux/workqueue.h> #include <linux/wakelock.h> /* wake_lock, unlock */ #include <mach...
JellyBeanNitro/kernel-iproj-3.4
drivers/broadcast/tdmb/t3900/src/broadcast_t3900.c
C
gpl-2.0
8,113
/* $Id: macucs.c 5322 2005-02-16 23:30:10Z owen $ */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <time.h> #include "putty.h" #include "charset.h" #include "terminal.h" #include "misc.h" #include "mac.h" /* * Mac Unicode-handling routines. * * BJH: * What we _should_ do is to use the Text ...
supertanglang/line-is-not-emulator
src/puttyline/putty-0.60/mac/macucs.c
C
gpl-2.0
3,763
/*****************************************************************************/ /* */ /* Copyright 1999 - 2003, Huawei Tech. Co., Ltd. */ /* ALL RIGHTS RESERVED ...
gabry3795/android_kernel_huawei_mt7_l09
drivers/vendor/hisi/modem/med/hi6930/osa/src/v_int.c
C
gpl-2.0
3,786
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-ccp1" } */ typedef char char16[16] __attribute__ ((aligned (16))); char16 c16[4] __attribute__ ((aligned (4))); int f5 (int i) { __SIZE_TYPE__ s = (__SIZE_TYPE__)&c16[i]; /* 0 */ return 3 & s; } /* { dg-final { scan-tree-dump "return 0;" "ccp1" } } */ /*...
totalspectrum/gcc-propeller
gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-35.c
C
gpl-2.0
366
/* * Copyright (c) 2014, The Linux Foundation. All rights reserved. * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all copies. * THE SOFTWARE IS PROVIDED "AS ...
paul-chambers/netgear-r7800
package/qca-ssdk-shell/src/src/fal_uk/fal_cosmap.c
C
gpl-2.0
5,610
/* ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio. This file is part of ChibiOS. ChibiOS 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 ...
serdzz/ChibiOS
os/rt/src/chschd.c
C
gpl-3.0
19,314
/* Unix SMB/CIFS implementation. DNS server utils Copyright (C) 2010 Kai Blin <kai@samba.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; either version 3 of the License, or ...
framon/samba
source4/dns_server/dns_utils.c
C
gpl-3.0
10,153
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* ==================================================================== * Copyright (c) 2008 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
michael-chi/jumbo
v1/robot-node/stt/pocketsphinx/src/libpocketsphinx/ngram_search_fwdflat.c
C
gpl-3.0
33,675
#if defined(__ppc__) || defined(__ppc64__) /* ----------------------------------------------------------------------- ffi.c - Copyright (c) 1998 Geoffrey Keating PowerPC Foreign Function Interface Darwin ABI support (c) 2001 John Hornkvist AIX ABI support (c) 2002 Free Software Foundation, Inc. Permi...
LubosD/darling
src/libffi/powerpc/ppc-ffi_darwin.c
C
gpl-3.0
43,697
/** ************************************************************************** * request.c * * Copyright 2008 Bryan Ischo <bryan@ischo.com> * * This file is part of libs3. * * libs3 is free software: you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by ...
irods/libs3_original
src/request.c
C
gpl-3.0
50,518
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 2014 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ #include "db_config.h" #include "db_int.h" /* * __os_rmdir -- * Remove a directory. */ int __os_rmdir(env, name) ENV *env; const char *name; { DB_ENV *db...
zheguang/BerkeleyDB
src/os_windows/os_rmdir.c
C
agpl-3.0
763
/* liblxcapi * * Copyright © 2012 Serge Hallyn <serge.hallyn@ubuntu.com>. * Copyright © 2012 Canonical Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, as * published by the Free Software Foundation. * * This progra...
Blub/lxc
src/tests/shutdowntest.c
C
lgpl-2.1
2,671
/* ********************************************************** * Copyright (c) 2012 Google, Inc. All rights reserved. * Copyright (c) 2009 VMware, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * mo...
bl4ckic3/dynamorio
tools/nudgeunix.c
C
lgpl-2.1
5,878
/* linalg/tridiag.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2004, 2007 Gerard Jungman, Brian Gough, David Necas * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either ver...
PeterWolf-tw/NeoPraat
sources_5401/external/gsl/gsl_linalg__tridiag.c
C
lgpl-3.0
15,815
#include <stdlib.h> int main(void) { int a = 1; int b = 1; switch (a) { case 1 : b = 3; break; case 2 : b = 5; break; } return (0); }
TommesDee/cpachecker
test/programs/simple/switch-tests/switch3.c
C
apache-2.0
161
/* ** Copyright 2001, Travis Geiselbrecht. All rights reserved. ** Distributed under the terms of the NewOS License. */ #include <boot/stage2.h> #include <boot/shared/openfirmware.h> #include <kernel/kernel.h> #include <arch/cpu.h> #include <libc/string.h> #include "stage2_priv.h" static unsigned int primary_hash(unsi...
dioptre/newos
boot/ppc/stage2_mmu.c
C
bsd-3-clause
16,217
/* * FFV1 encoder template * * Copyright (c) 2003-2016 Michael Niedermayer <michaelni@gmx.at> * * 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 ...
endlessm/chromium-browser
third_party/ffmpeg/libavcodec/ffv1enc_template.c
C
bsd-3-clause
7,075
/* * Copyright (c) 2015, Texas Instruments Incorporated - http://www.ti.com/ * 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 copy...
MohamedSeliem/contiki
cpu/cc26xx-cc13xx/rf-core/smartrf-settings.c
C
bsd-3-clause
6,889
/* ../netlib/dgehrd.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the en...
alishakiba/libflame
src/map/lapack2flamec/f2c/c/dgehrd.c
C
bsd-3-clause
13,475
/* 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_Bsvd_find_...
yaowee/libflame
src/lapack/dec/bsvd/v/flamec/old/FLA_Bsvd_find_split.c
C
bsd-3-clause
1,885
/* The latency monitor allows to easily observe the sources of latency * in a Redis instance using the LATENCY command. Different latency * sources are monitored, like disk I/O, execution of commands, fork * system call, and so forth. * * ----------------------------------------------------------------------------...
Zheaoli/redis_read
src/latency.c
C
bsd-3-clause
27,309
/*<html><pre> -<a href="qh-qhull.htm" >-------------------------------</a><a name="TOP">-</a> libqhull.c Quickhull algorithm for convex hulls qhull() and top-level routines see qh-qhull.htm, libqhull.h, unix.c see qhull_a.h for internal functions Copyright (c) 1993-...
spirit-code/spirit
thirdparty/qhull/src/libqhull/libqhull.c
C
mit
51,960
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2019 Intel Corporation */ #include <unistd.h> #include <inttypes.h> #include <rte_mbuf.h> #include "rte_rawdev.h" #include "rte_ioat_rawdev.h" #include "ioat_private.h" #define MAX_SUPPORTED_RAWDEVS 64 #define TEST_SKIPPED 77 #define COPY_LEN 1024 int ioat_ra...
john-mcnamara-intel/dpdk
drivers/raw/ioat/ioat_rawdev_test.c
C
mit
20,614
/* * Copyright (c) 2001-2007, Tom St Denis * 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 cond...
sigma-random/libteecrypt
libteecrypt/lib/libtomcrypt/src/mac/hmac/hmac_memory.c
C
mit
3,768
/* * * arch/arm/mach-u300/core.c * * * Copyright (C) 2007-2010 ST-Ericsson SA * License terms: GNU General Public License (GPL) version 2 * Core platform support, IRQ handling and device definitions. * Author: Linus Walleij <linus.walleij@stericsson.com> */ #include <linux/kernel.h> #include <linux/init.h> #in...
arnet95/linux
arch/arm/mach-u300/core.c
C
gpl-2.0
55,389
/* * pcic.c: MicroSPARC-IIep PCI controller support * * Copyright (C) 1998 V. Roganov and G. Raiko * * Code is derived from Ultra/PCI PSYCHO controller support, see that * for author info. * * Support for diverse IIep based platforms by Pete Zaitcev. * CP-1200 by Eric Brower. */ #include <linux/config.h> #in...
zrafa/linuxkernel
linux-2.6.17.new/arch/sparc/kernel/pcic.c
C
gpl-2.0
27,310
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 Alexander Larsson * * 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 o...
montsuqi/monpe
objects/UML/realizes.c
C
gpl-2.0
13,321
/* * IEEE 802.15.4 dgram socket interface * * Copyright 2007, 2008 Siemens AG * * 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 tha...
kendling/android_kernel_google_dragon
net/ieee802154/dgram.c
C
gpl-2.0
11,497
/* Copyright (C) 1996, 1997, 1998 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 ...
nslu2/glibc
sysdeps/mach/hurd/mips/sigreturn.c
C
gpl-2.0
6,737
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ** ** Copyright (C), 2003, Victorian Partnership for Advanced Computing (VPAC) Ltd, 110 Victoria Street, Melbourne, 3053, Australia. ** ** Authors: ** Stevan M. Quenette, Senior Software ...
bmi-forum/bmi-pyre
StGermain/Base/Container/src/IndexMap.c
C
gpl-2.0
7,534
/* 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...
OnePlusOSS/android_kernel_oneplus_msm8994
sound/soc/codecs/wcd9xxx-mbhc.c
C
gpl-2.0
172,567
/* * Renesas USB DMA Controller Driver * * Copyright (C) 2015 Renesas Electronics Corporation * * based on rcar-dmac.c * Copyright (C) 2014 Renesas Electronics Inc. * Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com> * * This is free software; you can redistribute it and/or modify * it under the te...
kmihelich/linux-espressobin
drivers/dma/sh/usb-dmac.c
C
gpl-2.0
23,668
/* 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...
animania260/android_ani-kernel_galaxy_reverb
arch/arm/mach-msm/board-8930.c
C
gpl-2.0
57,343
/* * * Marvell Orion Alsa SOC Sound driver * * Author: Yuval Elmaliah * Author: Ethan Ku * Copyright (C) 2008 Marvell Ltd. * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation...
Globalscale/D3-Linux
arch/arm/plat-orion/mv_hal_drivers/mv_drivers_lsp/mv_audio_soc/mv88fx-rt5623.c
C
gpl-2.0
8,127
/* bnx2x_cmn.c: QLogic Everest network driver. * * Copyright (c) 2007-2013 Broadcom Corporation * Copyright (c) 2014 QLogic Corporation * 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...
devmapal/linux
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
C
gpl-2.0
138,415
// Auto-generated with: android/scripts/gen-entries.py --mode=wrapper audio/wrappers/alsa.entries // DO NOT EDIT THIS FILE #include <dlfcn.h> #include <alsa/asoundlib.h> /// /// W R A P P E R P O I N T E R S /// static snd_pcm_sframes_t (*__dll_snd_pcm_avail_update)(snd_pcm_t * pcm) = 0; static int (*__dll_snd_pc...
zeldin/platform_external_qemu
audio/wrappers/alsa.c
C
gpl-2.0
13,101
/* * f_ecm.c -- USB CDC Ethernet (ECM) link function driver * * Copyright (C) 2003-2005,2008 David Brownell * Copyright (C) 2008 Nokia Corporation * * 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 F...
ElectryDev/octokitty
drivers/usb/gadget/f_ecm.c
C
gpl-2.0
25,682
/*************************************************************************** NWNXFuncs.cpp - Implementation of the CNWNXFuncs class. Copyright (C) 2007 Doug Swarin (zac@intertex.net) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
jd28/nwnx2-linux
plugins/defenses/local/l_GetIsDeathAttackImmune.c
C
gpl-2.0
1,163
/**************************************************************** Siano Mobile Silicon, Inc. MDTV receiver kernel modules. Copyright (C) 2006-2010, Erez Cohen 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 Fo...
laufersteppenwolf/android_kernel_lge_d680
mediatek/platform/mt6577/kernel/drivers/cmmbdrv/siano/smsspidrv.c
C
gpl-2.0
17,003
/***************************************************************************** 1 Í·Îļþ°üº¬ *****************************************************************************/ #include "product_config.h" #include "vos.h" #include "Taf_Tafm_Remote.h" #include "UsimPsInterface.h" #include "Ssa_Define.h" #include...
wbrambley/Grace-kernel
drivers/vendor/hisi/modem/taf/gu/src/ccore/src/Mn/Task/Src/MnTask.c
C
gpl-2.0
26,467
/* * pata_ninja32.c - Ninja32 PATA for new ATA layer * (C) 2007 Red Hat Inc * Alan Cox <alan@redhat.com> * * Note: The controller like many controllers has shared timings for * PIO and DMA. We thus flip to the DMA timings in dma_start and flip back * in the dma_stop function. Thus we actually don't need...
jkoelndorfer/android-kernel-msm
drivers/ata/pata_ninja32.c
C
gpl-2.0
5,793
/* * Bridge multicast support. * * Copyright (c) 2010 Herbert Xu <herbert@gondor.apana.org.au> * * 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 yo...
Minia89/MetallizedKernelRebased
net/bridge/br_multicast.c
C
gpl-2.0
39,498
/* Implementation of the BSD usleep function using nanosleep. Copyright (C) 1996-2016 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 te...
Chilledheart/glibc
sysdeps/posix/usleep.c
C
gpl-2.0
1,316
#include <config.h> #include "testutils.h" #ifdef WITH_OPENVZ # include <stdio.h> # include <string.h> # include <unistd.h> # include "internal.h" # include "viralloc.h" # include "openvz/openvz_conf.h" # include "virstring.h" # define VIR_FROM_THIS VIR_FROM_OPENVZ static int testLocateConfFile(int vpsid ATTRIBUT...
ethernetdan/libvirt
tests/openvzutilstest.c
C
gpl-2.0
4,363
/* Install given floating-point environment. Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Le...
Chilledheart/glibc
sysdeps/i386/fpu/fesetenv.c
C
gpl-2.0
3,996
#include "fdiskP.h" /* * Don't use this function derectly, use fdisk_new_context_from_filename() */ int fdisk_probe_labels(struct fdisk_context *cxt) { size_t i; cxt->label = NULL; for (i = 0; i < cxt->nlabels; i++) { struct fdisk_label *lb = cxt->labels[i]; struct fdisk_label *org = cxt->label; int rc; ...
azuwis/debian_util-linux-extra
libfdisk/src/label.c
C
gpl-2.0
9,342