code
stringlengths
1.03k
250k
repo_name
stringlengths
7
70
path
stringlengths
4
177
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
1.03k
250k
/* * Read and write JSON. * * Copyright (c) 2014 Marko Kreen * * 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 "A...
markokr/libusual
usual/json.c
C
isc
38,477
/* Copyright information is at end of file */ #include "xmlrpc_config.h" #include <stddef.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include "stdargx.h" #include "xmlrpc-c/base.h" #include "xmlrpc-c/base_int.h" #include "xmlrpc-c/string_int.h" static void getString(xmlrpc_env *const envP, ...
arssivka/naomech
xmlrpc-c/src/xmlrpc_build.c
C
isc
12,744
#include <stdarg.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/endian.h> #include <sysexits.h> #include <mpg123.h> #include "audio.h" #include "mp3.h" struct mp3 { mpg123_handle *h; int fd; int first; int rate; int chann...
kdhp/play
mp3.c
C
isc
2,590
/* * Copyright 2005-2019 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (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 * https://www.openssl.org/source/lice...
ibc/MediaSoup
worker/deps/openssl/openssl/crypto/whrlpool/wp_block.c
C
isc
34,797
/* Copyright (c) 2016, 2021 Dennis Wölfing * * 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 IS" AND THE AUTHOR D...
dennis95/dennix
libc/src/stdio/printf.c
C
isc
1,043
/*- * builtin.c * This file is part of libmetha * * Copyright (c) 2008, Emil Romanus <emil.romanus@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...
nicholaides/Methanol-Web-Crawler
src/libmetha/builtin.c
C
isc
6,361
/* Copyright (c) 2019, 2022 Dennis Wölfing * * 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 IS" AND THE AUTHOR D...
dennis95/dennix
libc/src/stdio/__file_write.c
C
isc
1,293
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
pscedu/slash2-stable
zfs-fuse/src/lib/libzfs/libzfs_pool.c
C
isc
94,615
/* MIT License (From https://choosealicense.com/ ) Copyright (c) 2017 Jonathan Burget support@solarfusionsoftware.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includin...
TigerFusion/TigerEngine
TIGString.c
C
mit
36,020
// rd_route.c // Copyright (c) 2014-2015 Dmitry Rodionov // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #include <stdlib.h> // realloc() #include <libgen.h> // basename() #include <assert.h> // assert() #include <std...
XVimProject/XVim2
XVim2/Helper/rd_route.c
C
mit
3,016
/* * COPYRIGHT: Stealthy Labs LLC * DATE: 29th May 2015 * AUTHOR: Stealthy Labs * SOFTWARE: Tea Time */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <teatime.h> static int teatime_check_gl_version(uint32_t *major, uint32_t *minor); s...
stealthylabs/teatime
teatime.c
C
mit
19,398
#pragma config(Sensor, in1, linefollower, sensorLineFollower) #pragma config(Sensor, dgtl5, OutputBeltSonar, sensorSONAR_mm) #pragma config(Motor, port6, WhipCreamMotor, tmotorVex393, openLoop) #pragma config(Motor, port7, InputBeltMotor, tmotorServoContinuousRotation, openLoop) #pragma conf...
patkub/pltw-vex-robotc
CookieMaker_Sensor.c
C
mit
1,901
/** * Reverb for the OpenAL cross platform audio library * Copyright (C) 2008-2009 by Christopher Fitzgerald. * 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 ...
ghoulsblade/vegaogre
lugre/baselib/openal-soft-1.8.466/Alc/alcReverb.c
C
mit
31,015
#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <assert.h> #include <sys/epoll.h> #include "reactor.h" struct state { reactor_handler input; reactor_handler output; char buffer[4096]; data remaining; }; int fill(struct state *state) { ssize_t n; ...
fredrikwidlund/libreactor
example/fd.c
C
mit
1,952
/* * Search first occurence of a particular string in a given text [Finite Automata] * Author: Progyan Bhattacharya <progyanb@acm.org> * Repo: Design-And-Analysis-of-Algorithm [MIT LICENSE] */ #include "Search.h" static int NextState(int m, char* pattern, int state, int symbol) { if (state < m && pattern[stat...
Progyan1997/Design-and-Analysis-of-Algorithm
String Search/Finite Automata/Search.c
C
mit
1,307
/**************************************************************** Copyright (C) 2014 All rights reserved. > File Name: < echo_server.c > > Author: < Sean Guo > > Mail: < iseanxp+code@gmail.com > > Created Time: < 2014/06/19 > > ...
SeanXP/ARM-Tiny6410
linux/linux-example/socket_echo_server/echo_server.c
C
mit
6,157
#include <compiler.h> #if defined(CPUCORE_IA32) && defined(SUPPORT_MEMDBG32) #include <common/strres.h> #include <cpucore.h> #include <pccore.h> #include <io/iocore.h> #include <generic/memdbg32.h> #define MEMDBG32_MAXMEM 16 #define MEMDBG32_DATAPERLINE 128 #define MEMDBG32_LEFTMARGIN 8 typedef struct...
AZO234/NP2kai
generic/memdbg32.c
C
mit
3,962
/* crypto/cryptlib.c */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met:...
vbloodv/blood
extern/openssl.orig/crypto/thr_id.c
C
mit
9,864
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/wait.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include "server.h" #include "rio.h" int wri...
cheniison/Experiment
OS/WebServer/server.c
C
mit
4,428
#include <assert.h> #include <math.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // #include <antlr3.h> #include "toml.h" #include "toml-parser.h" // #include "tomlParser.h" // #include "tomlLexer.h" struct _TOMLStringifyData { TOMLError *error; int bufferSi...
mzgoddard/tomlc
toml.c
C
mit
25,919
/* Error handling */ #include "Python.h" void PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback) { PyThreadState *tstate = PyThreadState_GET(); PyObject *oldtype, *oldvalue, *oldtraceback; /* Save these in locals to safeguard against recursive invocation through Py_XDECREF */ oldtype = tsta...
jtauber/cleese
necco/python/Python/errors.c
C
mit
8,613
/* This is a managed file. Do not delete this comment. */ #include <include/lifecycle.h> static void echo(lifecycle_Foo this, char* hook) { corto_state s = corto_stateof(this); char *stateStr = corto_ptr_str(&s, corto_state_o, 0); corto_info("callback: %s [%s]", hook, stateStr); free(...
cortoproject/examples
c/modeling/lifecycle/src/Foo.c
C
mit
1,051
//#include <stdio.h> //#include <stdlib.h> //#include <stdint.h> //#include <stdbool.h> //#include <string.h> //#include <stddef.h> #include "esp_common.h" #include "coap.h" #include "shell.h" //#include <rtthread.h> //#define shell_printf rt_kshell_printf extern void endpoint_setup(void); extern const...
AccretionD/ESP8266_freertos_coap
app/user/coap.c
C
mit
12,020
#include <stdio.h> #include <stdlib.h> /* exit, free */ #include <string.h> /* for manipulating filename */ #include "defines.h" /* type definitions and macros for flags and MAX limits */ #include "structs.h" /* structures used (needs defines.h) */ Category* cats[ MAX_TOT_CATS...
pastoref/VendingMachine
support/categoryPartitionTool-TSL/main.c
C
mit
6,585
/* Aranea * Copyright (c) 2011-2012, Quoc-Viet Nguyen * See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/socket.h> #include <sys/stat.h> #include <aranea/aranea.h> #define CGI_E...
nqv/aranea
src/cgi.c
C
mit
5,878
#include "minunit.h" #include <lcthw/darray_algos.h> #include <stdlib.h> #include <time.h> #include <limits.h> static inline int intcmp(int **a, int **b) { return **a - **b; } static inline int sintcmp(int *a, int *b) { return *a - *b; } int make_random(DArray *array, size_t n) { srand(time(NULL)); s...
reem/LCTHW-Lib
tests/darray_algos_tests.c
C
mit
3,747
/* * (C) Copyright 2012 SAMSUNG Electronics * Jaehoon Chung <jh80.chung@samsung.com> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <dm.h> #include <malloc.h> #include <sdhci.h> #include <fdtdec.h> #include <linux/libfdt.h> #include <asm/gpio.h> #include <asm/arch/mmc.h> #include <asm/arch/...
guileschool/BEAGLEBONE-tutorials
BBB-firmware/u-boot-v2018.05-rc2/drivers/mmc/s5p_sdhci.c
C
mit
6,778
/* * The MIT License (MIT): http://opensource.org/licenses/mit-license.php * * Copyright (c) 2013-2014, Chris Behrens * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restrict...
comstud/filament
src/locking/fil_lock.c
C
mit
16,390
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "liste.h" #include "atl.h" #include "es.h" #define FILE_ATLETI "atleti.txt" #define FILE_ESERCIZI "esercizi.txt" #define MAX_NOME 25 #define LUNG_CODICE 5 #define non_strutturato ;; #ifdef _WIN32 #define F_CLEAR "cls" #else ...
supermirtillo/polito-c-apa
L08/E04/main.c
C
mit
8,509
// // console777.c // crypto777 // // Created by James on 4/9/15. // Copyright (c) 2015 jl777. All rights reserved. // #ifdef DEFINES_ONLY #ifndef crypto777_console777_h #define crypto777_console777_h #include <stdio.h> #include <stdio.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <stdlib....
mezzovide/btcd
libjl777/plugins/common/console777.c
C
mit
11,054
#include "icu.h" #include "unicode/uspoof.h" #define GET_SPOOF_CHECKER(_data) icu_spoof_checker_data* _data; \ TypedData_Get_Struct(self, icu_spoof_checker_data, &icu_spoof_checker_type, _data) VALUE rb_cICU_SpoofChecker; VALUE rb_mChecks; VALUE rb_mRestrictionLevel; typedef struct {...
fantasticfears/icu4r
ext/icu/icu_spoof_checker.c
C
mit
9,203
/* * Simple Vulkan application * * Copyright (c) 2016 by Mathias Johansson * * This code is licensed under the MIT license * https://opensource.org/licenses/MIT */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include "util/vulkan.h" #include "util/window.h" int main() {...
Mathias9807/Vulkan-Demo
src/main.c
C
mit
1,993
#include <stdio.h> struct Employee { unsigned int id; char name[256]; char gender; float salary; }; void addEmployee(FILE *f) { struct Employee emp; printf("Adding a new employee, please type his id \n"); int id; scanf("%d", &id); if (id > 0) { while (1) { //search if id already in use struct Employee t...
Macelai/operating-systems
system-call/main.c
C
mit
4,505
//Generated by the Argon Build System /*********************************************************************** Copyright (c) 2006-2011, Skype Limited. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Re...
skylersaleh/ArgonEngine
common/opus/silk/float/warped_autocorrelation_FLP.c
C
mit
3,596
/* Fontname: -Adobe-Times-Medium-R-Normal--11-80-100-100-P-54-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 191/913 BBX Build Mode: 0 */ const uint8_t u8g2_font_timR08_tf[...
WiseLabCMU/gridballast
Source/framework/main/u8g2/tools/font/build/single_font_files/u8g2_font_timR08_tf.c
C
mit
6,149
/* * @brief This file contains USB HID Keyboard example using USB ROM Drivers. * * @note * Copyright(C) NXP Semiconductors, 2013 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * LPC pro...
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/examples/usbd_rom/usbd_rom_hid_keyboard/hid_keyboard.c
C
mit
7,219
/* * Copyright (c) 2010, ETH Zurich. * All rights reserved. * * INTERFACE NAME: mem * INTEFACE FILE: ../if/mem.if * INTERFACE DESCRIPTION: Memory allocation RPC interface * * This file is distributed under the terms in the attached LICENSE * file. If you do not find this file, copies can be found by * writi...
daleooo/barrelfish
build/x86_64/lib/barrelfish/_for_lib_barrelfish/mem_flounder_bindings.c
C
mit
156,625
#include <stdio.h> #include <stdint.h> #include <ibcrypt/chacha.h> #include <ibcrypt/rand.h> #include <ibcrypt/sha256.h> #include <ibcrypt/zfree.h> #include <libibur/util.h> #include <libibur/endian.h> #include "datafile.h" #include "../util/log.h" int write_datafile(char *path, void *arg, void *data, struct forma...
iburinoc/ibchat
client/datafile.c
C
mit
5,238
/** * @file main.c * @brief Main routine * * @section License * * Copyright (C) 2010-2015 Oryx Embedded SARL. 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; eit...
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/CycloneTCP_SSL_Crypto_Open_1_6_4/demo/st/stm32f4_discovery/smtp_client_demo/src/main.c
C
mit
12,503
#include <assert.h> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <video/gl.h> #include <xxhash.h> #include <memtrack.h> #include "base/stack.h" #include "core/common.h" #include "base/math_ext.h" #include "core/asset.h" #include "core/configs.h" #include "core/frame.h" #include "core/logerr.h" #include <c...
m1nuz/neon-core
neon/src/core/application.c
C
mit
3,306
// // MultibandBank.c // FxDSP // // Created by Hamilton Kibbe on 11/24/13. // Copyright (c) 2013 Hamilton Kibbe. All rights reserved. // #include "MultibandBank.h" #include "LinkwitzRileyFilter.h" #include "RBJFilter.h" #include "FilterTypes.h" #include <stdlib.h> // Sqrt(2)/2 #define FILT_Q (0.70...
hamiltonkibbe/FxDSP
FxDSP/src/MultibandBank.c
C
mit
8,273
#include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<string.h> int main(){ int pid1,pid2,pid3,pid4; int p1[2],p2[2]; char bufr[30],rev[30]; int countL=0,countU=0,i=-1,j=0,countV=0,len; pipe(p1); pipe(p2); if(pid1=fork()==0){ if(pid2=fork()==0){ read(p2[0],bufr,sizeof(bu...
CSE-SOE-CUSAT/NOSLab
csb/extras/a-b-c-d-pipe.c
C
mit
1,716
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line.c :+: :+: :+: ...
gmange/RT
src/get_next_line.c
C
mit
4,184
#include <math.h> #include <stdio.h> #include <pthread.h> #include <stdlib.h> #define THREAD_COUNT 4 typedef struct { int start; int end; } range_t; void *calculate_range(void* range) { range_t* curr_range = (range_t*)range; void* result = (void*)1; for (int i = curr_range->start; i < curr_range...
arnaudoff/elsys
2015-2016/operating-systems/threads_homework/main.c
C
mit
1,476
#include "cf_internal.h" #define CACHE_SIZE 1024 #define INDEX(i) ((i) % CACHE_SIZE) static frame_cache_t* open_real_video_cache(cf_session_t* s) { frame_cache_t* cache = calloc(1, sizeof(frame_cache_t)); cache->wait_timer = s->proc->rtt + 2 * s->proc->rtt_val; cache->state = buffer_waiting; cache->frame_timer ...
yuanrongxi/sharing
sharing/buffer/cf_real_video.c
C
mit
10,971
/* * 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 ...
jlawton/ObjectiveAvro
Avro-C/src/resolved-reader.c
C
mit
107,543
/* * main.c * * Created on: 31 May 2016 * Author: ajuaristi <a@juaristi.eus> */ #include <stdio.h> #include <signal.h> #include <getopt.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <linux/videodev2.h> #include <sys/stat.h> #include "utils.h" #include "appbase.h" #include "uvc.h" #...
juaristi/appbase-cctv
daemon-main.c
C
mit
5,533
6650 #include "types.h" 6651 #include "x86.h" 6652 6653 void* 6654 memset(void *dst, int c, uint n) 6655 { 6656 if ((int)dst%4 == 0 && n%4 == 0){ 6657 c &= 0xFF; 6658 stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 6659 } else 6660 stosb(dst, c, n); 6661 return dst; 6662 } 6663 6664 int 6665 memcmp(const...
animesh2049/xv6
fmt/string.c
C
mit
2,236
#include<stdio.h> #include<math.h> #include<conio.h> #include<ctype.h> int i,j,cash=100; void wheel(); void game(int r); void game_over(); int suit_bet(); int cash_bet(); int roll_wheel(); int roll_dice(); void wheel_count(int c,int h,int s); void dice_count(int d,int h); int w[9][9]={ {32,32,32,32,2,32,32,32,32...
abrarShariar/Roll-the-dice
final.c
C
mit
4,262
#include "utlua.h" #ifdef __linux__ #include <limits.h> #include <linux/netfilter_ipv4.h> #endif #include <net/if.h> #define LUA_TCPD_CONNECTION_TYPE "<tcpd.connect>" #define LUA_TCPD_SERVER_TYPE "<tcpd.bind %s %d>" #define LUA_TCPD_ACCEPT_TYPE "<tcpd.accept %s %d>" #if FAN_HAS_OPENSSL typedef struct { SSL_CTX *s...
luafan/luafan
src/tcpd.c
C
mit
34,905
#include <stdint.h> const uint8_t #if defined __GNUC__ __attribute__((aligned(4))) #elif defined _MSC_VER __declspec(align(4)) #endif mrblib_extman_irep[] = { 0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0x5a,0x89,0x00,0x00,0x44,0xcb,0x4d,0x41, 0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x32,0x2d,0x30,0x30,...
sdottaka/mruby-bin-scite-mruby
tools/scite/mrblib/mrblib_extman.c
C
mit
89,318
/******************************************************************** Software License Agreement: The software supplied herewith by Microchip Technology Incorporated (the "Company") for its PIC(R) Microcontroller is intended and supplied to you, the Company's customer, for use solely and exclusively on Microchip ...
timwuu/PK3SP24
v2014_07_22/apps/usb/host/hid_bridgeHost/firmware/src/system_config/exp16/pic24fj64gb002_pim/system.c
C
mit
6,072
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <errno.h> #include <string.h> #include <fcntl.h> /* Definition of AT_* constants */ #ifndef _MSC_VER #include <unistd.h> #include <dirent.h> #else #pragma warning(disable:4996) #endif #include "logging.h" #include "config.h" #include "...
usrecnik/ddlfs
src/dbro_refresh.c
C
mit
5,152
/***************************************************************** * syscall.c * adapted from MIT xv6 by Zhiyi Huang, hzy@cs.otago.ac.nz * University of Otago * ********************************************************************/ #include "types.h" #include "defs.h" #include "param.h" #include "mem...
fosler/xv6-rpi-port
source/syscall.c
C
mit
3,791
/******************************************************************************* Copyright © 2016, STMicroelectronics International N.V. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
svanacker/cen-electronic
drivers/tof/vl53l0x/vl53l0x_api_strings.c
C
mit
17,182
/** * The MIT License (MIT) * * * Copyright (C) 2013 Yu Jing (yujing5b5d@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without li...
yuikns/eiparser
src/dirTraversal.c
C
mit
4,209
#include "../common/gba.h" #include "../common/fixed.c" typedef struct{ union{ struct{ fixed x; fixed y; }; fixed vec[2]; }; } Vec2; fixed DotProduct(Vec2 a, Vec2 b){ return fixMult(a.x, b.x) + fixMult(a.y, b.y); } Vec2 VecSub(Vec2 a, Vec2 b){ Vec2 retVal = {a.x - b.x, a.y - b.y}; return retVal; } ...
Benjins/GBADev
3dproper/main.c
C
mit
5,048
/** * @file sdram.c * @brief SDRAM configuration * * @section License * * Copyright (C) 2010-2015 Oryx Embedded SARL. 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 Foundat...
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/CycloneTCP_SSL_Crypto_Open_1_6_4/demo/common/atmel/boards/sam3x_ek/sdram.c
C
mit
7,070
/* Copyright (c) 2015 Mathias Panzenböck * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pub...
panzi/mediaextract
src/au.c
C
mit
2,119
/*--------------------------------------------------------------------------------- Name : amixer.c Author : Marvin Raaijmakers Description : Plugin for keyTouch that can change the volume (using amixer). Date of last change: 24-Sep-2006 History : 24-Sep-2006 Added two new pl...
paulmadore/G-Keymap
Reference Code/keymap/keytouch-2.2.4/plugins/amixer.c
C
mit
13,098
#include "strm.h" #include <math.h> static int num_plus(strm_stream* strm, int argc, strm_value* args, strm_value* ret) { strm_value x, y; strm_get_args(strm, argc, args, "NN", &x, &y); if (strm_int_p(x) && strm_int_p(y)) { *ret = strm_int_value(strm_value_int(x)+strm_value_int(y)); return STRM_OK; } ...
matz/streem
src/number.c
C
mit
4,205
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-18.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data u...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c
C
mit
5,742
/* $Id: get_attachments.c,v 1.13 2015/07/20 10:35:53 tm Exp $ * * PDFlib TET sample application. * * PDF text extractor which also searches PDF file attachments. * The file attachments may be attached to the document or * to page-level annotations of type FileAttachment. The former construct * also covers PDF 1....
kentaiwami/masamon
masamon/TET/c/get_attachments.c
C
mit
7,568
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2016 Scott Shawcroft for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
adafruit/micropython
ports/nrf/common-hal/microcontroller/Pin.c
C
mit
6,219
#include "../include/csl.h" void MultipleEscape ( ) { _MultipleEscape ( _Context_->Lexer0 ) ; } void CSL_Strlen ( ) { DataStack_Push ( (int64) Strlen ( (char*) DataStack_Pop ( ) ) ) ; } void CSL_Strcmp ( ) { DataStack_Push ( (int64) Strcmp ( (byte*) DataStack_Pop ( ), (byte*) DataStack_Pop ( ) ) ) ; } ...
dennisj001/openvmtil64
src/primitives/strings.c
C
mit
1,290
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 Damien P. George * Copyright (c) 2016 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
Peetz0r/micropython-esp32
extmod/vfs_fat.c
C
mit
12,566
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_connect_socket_w32_execv_34.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-34.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data usin...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_w32_execv_34.c
C
mit
6,320
#include "genfft.h" /** * NAME: cc1fft * * DESCRIPTION: complex to complex FFT * * USAGE: * void cc1fft(complex *data, int n, int sign) * * INPUT: - *data: complex 1D input vector * - n: number of samples in input vector data * - sign: sign of the Fourier kernel * * OUTP...
sun031/Jan
FFTlib/cc1fft.c
C
epl-1.0
3,110
/* * This file contains pieces of the Linux TCP/IP stack needed for modular * TOE support. * * Copyright (C) 2006-2009 Chelsio Communications. All rights reserved. * See the corresponding files in the Linux tree for copyrights of the * original Linux code a lot of this file is based on. * * Written by Dimitris...
nal-epfl/line-sigcomm14
PF_RING-5.6.2/drivers/PF_RING_aware/chelsio/cxgb3-2.0.0.1/src/t3_tom/module_support/module_support-tom-2.6.23.c
C
gpl-2.0
5,114
/* * Synopsys DesignWare I2C adapter driver (master only). * * Partly based on code of similar driver from U-Boot: * Copyright (C) 2009 ST Micoelectronics * * and corresponding code from Linux Kernel * Copyright (C) 2006 Texas Instruments. * Copyright (C) 2007 MontaVista Software Inc. * Copyright (...
masahir0y/barebox-yamada
drivers/i2c/busses/i2c-designware.c
C
gpl-2.0
15,486
/* Name: usbdrv.c * Project: AVR USB driver * Author: Christian Starkjohann * Creation Date: 2004-12-29 * Tabsize: 4 * Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH * License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt) * This Revision: $Id: usbdrv.c,v 1.1.1.1 2008-01-22 20:2...
sambrista/9-buttons-arcade-controller
usbdrv/usbdrv.c
C
gpl-2.0
23,890
/***************************************************************************** * xa.c : xa file demux module for vlc ***************************************************************************** * Copyright (C) 2005 Rémi Denis-Courmont * $Id$ * * Authors: Rémi Denis-Courmont <rem # videolan.org> * * This progra...
r1k/vlc
modules/demux/xa.c
C
gpl-2.0
7,523
#include <string.h> #include <stdlib.h> #include "libterm.h" #include "cursor.h" #include "screen.h" #include "bitarr.h" int cursor_visibility(int tid, int sid, char visibility) { if(SCR(tid, sid).curs_invisible != !visibility) { SCR(tid, sid).curs_invisible = !visibility; if(!record_update(tid, sid, visibility...
atrigent/libterm
src/cursor.c
C
gpl-2.0
3,083
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Implementation of the Transmission Control Protocol(TCP). * * Authors: Ross Biro * Fred N. van Kempen, <wa...
ShogoFujii/PS-MPTCP
net/ipv4/tcp_output.c
C
gpl-2.0
99,138
/* Copyright (C) 2005-2006 Jean-Marc Valin File: fftwrap.c Wrapper for various FFTs 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 ...
gabrieldelsaint/uol-messenger
src/libuolfone/wengophone-ng/current/wifo/phapi/speex/libspeex/fftwrap.c
C
gpl-2.0
7,664
/* * IPv6 Address [auto]configuration * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published ...
lawnn/Dorimanx-LG-G2-D802-Kernel
net/ipv6/addrconf.c
C
gpl-2.0
130,583
/* Copyright (c) 2010-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...
Gaojiquan/android_kernel_zte_digger
drivers/video/msm/hdmi_msm.c
C
gpl-2.0
145,025
/* SPDX-License-Identifier: LGPL-2.1-or-later */ #include "errno-util.h" #include "format-table.h" #include "hexdecoct.h" #include "homectl-pkcs11.h" #include "libcrypt-util.h" #include "memory-util.h" #include "openssl-util.h" #include "pkcs11-util.h" #include "random-util.h" #include "strv.h" struct pkcs11_callback...
endlessm/systemd
src/home/homectl-pkcs11.c
C
gpl-2.0
16,567
/* $Id: elsa_ser.c,v 1.1.1.1 2011/08/19 02:08:59 ronald Exp $ * * stuff for the serial modem on ELSA cards * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. * */ #include <linux/serial.h> #include <linux/serial_reg.h> #inc...
embeddedarm/linux-2.6.35-ts4800
drivers/isdn/hisax/elsa_ser.c
C
gpl-2.0
17,033
/* * Multiple format streaming server * Copyright (c) 2000, 2001, 2002 Fabrice Bellard * * 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 (at y...
sofian/drone
lib/ffmpeg/ffserver.c
C
gpl-2.0
152,555
/* * arch/arm/mach-tegra/baseband-xmm-power.c * * Copyright (C) 2011 NVIDIA 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 i...
bedalus/hxore
arch/arm/mach-tegra/baseband-xmm-power.c
C
gpl-2.0
61,756
/* SET.C - performing :set - command * * NOTE: Edit this file with tabstop=4 ! * * 1996-02-29 created; * 1998-03-14 V 1.0.1 * 1999-01-14 V 1.1.0 * 1999-03-17 V 1.1.1 * 1999-07-02 V 1.2.0 beta * 1999-08-14 V 1.2.0 final * 2000-07-15 V 1.3.0 final * 2001-10-10 V 1.3.1 * 2003-07-03 V 1.3.2 * * Copyright 199...
XVilka/bvim
set.c
C
gpl-2.0
12,671
/************************************************************** * Copyright (C) 2010 STMicroelectronics. All Rights Reserved. * This file is part of the latest release of the Multicom4 project. This release * is fully functional and provides all of the original MME functionality.This * release is now considere...
project-magpie/tdt-driver
multicom-4.0.6/src/bsp/stx7200/st231/video1/name.c
C
gpl-2.0
1,425
/* * 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 ...
VilleEvitaCake/android_kernel_htc_msm8960
drivers/mmc/core/core.c
C
gpl-2.0
80,989
/* * linux/arch/arm/kernel/traps.c * * Copyright (C) 1995-2009 Russell King * Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds * * 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 * publ...
Mazout360/lge-kernel-gb
arch/arm/kernel/traps.c
C
gpl-2.0
19,685
/* BGP-4, BGP-4+ daemon program Copyright (C) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro This file is part of GNU Kroute. GNU Kroute is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your...
AirbornWdd/qpimd
bgpd/bgpd.c
C
gpl-2.0
144,930
#include <linux/module.h> #include <linux/init.h> #include <linux/skbuff.h> #include <linux/netfilter/x_tables.h> #include <linux/netfilter/xt_NFLOG.h> #include <net/netfilter/nf_log.h> #include <net/netfilter/nfnetlink_log.h> MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>"); MODULE_DESCRIPTION("Xtables: packet l...
leemgs/OptimusOneKernel-KandroidCommunity
net/netfilter/xt_NFLOG.c
C
gpl-2.0
1,599
/* * linux/arch/arm/kernel/setup.c * * Copyright (C) 1995-2001 Russell King * * 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. */ #include <linux/module.h> #include <linux/ker...
GlitchKernel/Glitch
arch/arm/kernel/setup.c
C
gpl-2.0
25,452
/* * fs/fs-writeback.c * * Copyright (C) 2002, Linus Torvalds. * * Contains all the functions related to writing back and waiting * upon dirty inodes against superblocks, and writing back dirty * pages against inodes. ie: data writeback. Writeout of the * inode itself is not handled here. * * 10Apr2002 Andr...
xplodwild/packaged-linux-linaro-3.2-ci
fs/fs-writeback.c
C
gpl-2.0
38,100
/* Linux PINMUX.C */ #include <asm/arch/am_regs.h> #include <asm/arch/am_eth_reg.h> #include <asm/arch/pinmux.h> int clear_mio_mux(unsigned mux_index, unsigned mux_mask) { unsigned mux_reg[] = {PERIPHS_PIN_MUX_0, PERIPHS_PIN_MUX_1, PERIPHS_PIN_MUX_2,PERIPHS_PIN_MUX_3, PERIPHS_PIN_MUX_4,PERIPHS_PIN_MUX_5,PERIPH...
bogdanov-d-a/Amlogic-reff16-uboot
arch/arm/cpu/aml_meson/m2/pinmux.c
C
gpl-2.0
2,559
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
renolui/RenoStudio
Player/firmware/target/sh/archos/lcd-archos-bitmap.c
C
gpl-2.0
7,922
/* * Customer code to add GPIO control during WLAN start/stop * Copyright (C) 1999-2010, Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU General Public License ver...
sdadier/gb_kernel_2.6.32.9-mtd
Kernel/drivers/net/wireless/bcm4329/dhd_custom_gpio.c
C
gpl-2.0
8,018
/** ============================================================================ * @file zsp800m_map.c * * @path $(APUDRV)/gpp/src/arch/ZSP800M/ * * @desc Defines the configuration mapping information for the APU DRIVER * driver. * * @ver 0.01.00.00 * ====================================...
adamdmcbride/Nufront_linux_kernel
drivers/char/apu/gpp/src/arch/ZSP800M/zsp800m_map.c
C
gpl-2.0
9,567
/* * This file is part of the coreboot project. * * Copyright (C) 2012 ChromeOS Authors * * 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 d...
coreboot-gs45/coreboot
src/cpu/intel/haswell/romstage.c
C
gpl-2.0
9,829
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2012 Sam Lantinga 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 op...
qtekfun/htcDesire820Kernel
external/qemu/distrib/sdl-1.2.15/src/video/vgl/SDL_vglmouse.c
C
gpl-2.0
1,382
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*** This file is part of systemd. Copyright 2010 Lennart Poettering systemd 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...
lnykryn/systemd
src/core/unit.c
C
gpl-2.0
116,041
/* Copyright (c) 2012, 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 hope...
javelinanddart/android_kernel_3.10_ville
drivers/media/rc/gpio-ir-recv.c
C
gpl-2.0
6,544
/* * Network block device - make block devices work over TCP * * Note that you can not swap over this thing, yet. Seems to work but * deadlocks sometimes - you can not swap over TCP in general. * * Copyright 1997-2000, 2008 Pavel Machek <pavel@ucw.cz> * Parts copyright 2001 Steven Whitehouse <steve@chygwyn.com>...
MatiasBjorling/lightnvm-moved-to-OpenChannelSSD-Linux
drivers/block/nbd.c
C
gpl-2.0
22,865
/* Source for: * Cypress TrueTouch(TM) Standard Product I2C touchscreen driver. * drivers/input/touchscreen/cyttsp-i2c.c * * Copyright (C) 2009, 2010 Cypress Semiconductor, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * vers...
cmvega/cmvega
drivers/input/touchscreen/cyttsp-i2c.c
C
gpl-2.0
80,215
#include <acpi/acpi.h> #include "accommon.h" #include "acnamesp.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME("rsutils") u8 acpi_rs_decode_bitmask(u16 mask, u8 * list) { u8 i; u8 bit_count; ACPI_FUNCTION_ENTRY(); /* Decode the mask bits */ for (i = 0, bit_count = 0; ma...
luckasfb/OT_903D-kernel-2.6.35.7
kernel/drivers/acpi/acpica/rsutils.c
C
gpl-2.0
11,290