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
/* * Software multibuffer async crypto daemon. * * Copyright (c) 2014 Tim Chen <tim.c.chen@linux.intel.com> * * Adapted from crypto daemon. * * 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...
AiJiaZone/linux-4.0
virt/crypto/mcryptd.c
C
gpl-2.0
18,436
/* * arch/cris/arch-v32/drivers/nandflash.c * * Copyright (c) 2007 * * Derived from drivers/mtd/nand/spia.c * Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License versio...
felixhaedicke/nst-kernel
src/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
C
gpl-2.0
4,201
#include <linux/delay.h> #include <linux/timer.h> #include <linux/io.h> #include <linux/errno.h> #include <mach/cputype.h> #ifdef CONFIG_ARCH_MMP #define UTMI_REVISION 0x0 #define UTMI_CTRL 0x4 #define UTMI_PLL 0x8 #define UTMI_TX 0xc #define UTMI_RX 0x10 #define UTMI_IVREF 0x14 #define UTMI_T0 0x18 #defin...
JijonHyuni/HyperKernel-JB
virt/drivers/usb/gadget/mv_udc_phy.c
C
gpl-2.0
5,894
/* * linux/arch/arm/mach-pxa/idp.c * * 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. * * Copyright (c) 2001 Cliff Brake, Accelent Systems Inc. * * 2001-09-13: Cliff Brak...
go2ev-devteam/Gplus_2159_0801
openplatform/sdk/os/kernel-2.6.32/arch/arm/mach-pxa/idp.c
C
gpl-2.0
4,648
/* * MUSB OTG controller driver for Blackfin Processors * * Copyright 2006-2008 Analog Devices Inc. * * Enter bugs at http://blackfin.uclinux.org/ * * Licensed under the GPL-2 or later. */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/list.h> #include <linux/gpio....
iwinoto/v4l-media_build
media/drivers/usb/musb/blackfin.c
C
gpl-2.0
14,616
/* * linux/drivers/media/video/exynos/mfc/s5p_mfc_shm.c * * Copyright (c) 2010 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; ...
DevriesL/SM-G9208_ImageBreaker
drivers/media/platform/exynos/mfc/s5p_mfc_shm.c
C
gpl-2.0
1,608
/* ************************************************************************* * Ralink Tech Inc. * 5F., No.36, Taiyuan St., Jhubei City, * Hsinchu County 302, * Taiwan, R.O.C. * * (c) Copyright 2002-2007, Ralink Technology, Inc. * * This program is free software; you can redistribute it and/or modify * * it u...
go2ev-devteam/Gplus_2159_0801
openplatform/sdk/os/kernel-2.6.32/drivers/staging/rt2860/rt_linux.c
C
gpl-2.0
26,841
/* * linux/drivers/video/neofb.c -- NeoMagic Framebuffer Driver * * Copyright (c) 2001-2002 Denis Oliver Kropp <dok@directfb.org> * * * Card specific code is based on XFree86's neomagic driver. * Framebuffer framework code is based on code of cyber2000fb. * * This file is subject to the terms and conditions o...
mericon/Xp_Kernel_LGH850
virt/drivers/video/fbdev/neofb.c
C
gpl-2.0
56,494
/* * Copyright (C) 2012-2013 Renesas Solutions Corp. * Copyright (C) 2013 Magnus Damm * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.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 ...
mericon/Xp_Kernel_LGH850
virt/drivers/pinctrl/sh-pfc/pfc-r8a73a4.c
C
gpl-2.0
84,504
/* * Copyright (c) 2014 Nicolas Martyanoff * * Permission to use, copy, modify, and 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 DIS...
galdor/libstring
src/string.c
C
isc
4,309
/* * Copyright (c) 2008 Stefan Kempf <sisnkemp@gmail.com> * * Permission to use, copy, modify, and 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...
sisnkemp/compiler
comp/pass_deadcodeelim.c
C
isc
7,202
/* $OpenBSD: amdcf.c,v 1.1 2015/07/20 19:44:32 pirofti Exp $ */ /* * Copyright (c) 2007, Juniper Networks, 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 so...
orumin/openbsd-efivars
arch/octeon/dev/amdcf.c
C
isc
22,762
/* ============================================================= The MIT License (MIT) Copyright (c) 2015 Carlo Meroni 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, includi...
Flowx08/Celegans-simulation
src/Celegans.c
C
mit
232,413
#include "_signal.h" #include "core.h" #include "log.h" #include <signal.h> static struct _signal signals[] = { { SIGUSR1, "SIGUSR1", 0, signal_handler }, { SIGUSR2, "SIGUSR2", 0, signal_handler }, { SIGTTIN, "SIGTTIN", 0, signal_handler }, { SIGTTOU, "S...
kenshinx/rps
src/_signal.c
C
mit
2,992
/** ****************************************************************************** * File Name : ADC.c * Description : This file provides code for the configuration * of the ADC instances. ****************************************************************************** * ...
savent404/MX_AudioPlayer
MX_AudioPlayer/Src/adc.c
C
mit
4,697
/*- * Copyright (c) 2011 David Schultz * 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 unmodified, this li...
twrl/conurbation
sources/superlibs/owpenlibm/src/s_ctanh.c
C
mit
4,402
/* Copyright 2007 Walter Alini, Matías Bordese */ /* This file is part of biOps. biOps 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 lat...
blairg23/pattern-recognition
08_grad_project/Deliverables/biOps/src/tiffio.c
C
mit
5,086
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99 ft=cpp: */ #define DEBUG_PROPERTIES 0 #define DEBUG_GC 0 #include <stdlib.h> #include <string.h> #include <math.h> #include "ejs-value.h" #include "ejs-ops.h" #include "ejs-object.h" #include "ejs-number.h" #...
carlosalberto/echo-js
runtime/ejs-object.c
C
mit
94,518
#include <math.h> #include "gthreecamera.h" typedef struct { graphene_matrix_t projection_matrix; graphene_matrix_t projection_matrix_inverse; graphene_matrix_t world_matrix_inverse; float near; float far; } GthreeCameraPrivate; enum { PROP_0, PROP_NEAR, PROP_FAR, N_PROPS }; static GParamSpec ...
alexlarsson/gthree
gthree/gthreecamera.c
C
mit
6,131
/* * Copyright 2015 Luis Lafuente <llafuente@noboxout.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 copyright * notice, this list...
llafuente/flang
src/libast/ast-traverse.c
C
mit
8,452
/* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and bina...
MalmoUniversity-DA366A/calvin-arduino
system/src/sam3x/interrupt_sam_nvic.c
C
mit
1,683
/* This software module was originally developed by Apple Computer, Inc. in the course of development of MPEG-4. This software module is an implementation of a part of one or more MPEG-4 tools as specified by MPEG-4. ISO/IEC gives users of MPEG-4 free license to this software module or modifications thereof for use ...
andresgonzalezfornell/TFM
lib/libisomediafile/src/PrimaryItemAtom.c
C
mit
3,124
#include <errno.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <X11/Xlib.h> #include <X11/extensions/Xrandr.h> #include "list.h" #include "log.h" #include "xmalloc.h" #include "xoutputd.h" #include "y.tab.h" static const char *conne...
jlpc/xoutputd
xoutputd.c
C
mit
5,386
/* a thread-safe lock allowing for multiple readers or a single writer at any * given point in time */ #include <limits.h> #include <assert.h> #include "lock.h" #define MAX_READERS (INT_MAX - 1) void acquire_readlock(struct lock *l) { pthread_mutex_lock(&l->use_state_mutex); while(l->use_state < 0 || l->use_stat...
iburinoc/ibchat
util/lock.c
C
mit
1,438
/* * Copyright (c) 2012 Sander van der Burg * * 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,...
svanderburg/lib8svx
src/lib8svx/name.c
C
mit
1,981
#include "tss_emu.h" #include "tss.h" #include "gdebug.h" #include "system.h" #include "ctrl_reg_emu.h" #include "cpuseg_emu.h" #include "stack.h" #include "memory.h" static void itr_emu_high_0xD(vm_emu_datas *status, BYTE low_code); static void itr_emu_high_0x1(vm_emu_datas *status, BYTE low_c...
ddk50/tinyos
tss_emu.c
C
mit
3,793
/* ========================================================================= * Freetype GL - A C OpenGL Freetype engine * Platform: Any * WWW: http://code.google.com/p/freetype-gl/ * ------------------------------------------------------------------------- * Copyright 2011,2012 Nicolas P. Rougier. All r...
ibawt/ev
vendor/freetype-gl/demo-cartoon.c
C
mit
7,238
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include "chromosnet.h" #include "functions.h" #include "geometry.h" #include "help.h" #include "lineal.h" #include "modelonumerico.h" #include "MPI_pakal.h" #include "particion.h" #include "physi...
itztli/pakal
MPI_pakal.c
C
mit
7,888
/* ** Table handling. ** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h ** ** Major portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #define lj_tab_c #define LUA_CORE #include "lj_obj.h" #include...
wenhulove333/ScutServer
Sample/ClientSource/scripting/lua/luajit/LuaJIT-2.0.1/src/lj_tab.c
C
mit
18,589
//: generator/pp comment config //:not cScript #include "../release/libsheepy.h" //:end #define internal static #include <stdlib.h> #include <stdio.h> char *get(void **csv, size_t line, size_t col); char *get2(void **csv, intmax_t line, intmax_t col); #ifndef unitTest #endif int MAIN(int ARGC, char** ARGV); int arg...
RemyNoulin/libsheepy
example/csv.c
C
mit
1,559
/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : 91x_enet.c * Author : MCD Application Team * Version : V2.0 * Date : 12/07/2007 * Description : This file provides all the ENET software functions. ************************...
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/CycloneTCP_SSL_Crypto_Open_1_6_4/demo/common/st/str91x_fw_lib/src/91x_enet.c
C
mit
33,623
/* ---------------------------------------------------------------------------- */ /* Atmel Microcontroller Software Support */ /* SAM Software Package License */ /* --------------------------------------------------------------------...
inertialsense/InertialSenseSDK
hw-libs/libusb/device/cdc-serial/CDCDSerial.c
C
mit
8,184
/* $Id$ *====================================================================== * * DISCLAIMER * * This material was prepared as an account of work sponsored by an * agency of the United States Government. Neither the United States * Government nor the United States Department of Energy, nor Battelle, * nor a...
rangsimanketkaew/NWChem
src/peigs/src/c/pmmLSL.c
C
mit
6,815
/* Copyright (c) 1997-1999 Guenter Geiger, Miller Puckette, Larry Troxler, * Winfried Ritsch, Karl MacMillan, and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ /* MIDI I/O for Linux using ALSA */ #include <stdio....
jconst/SoundDrop
SoundDrop/libpd/pure-data/src/s_midi_alsa.c
C
mit
7,206
/** * The MIT License (MIT) * * Copyright (c) 2014 0x6d72 * * 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...
0x6d72/vayu
src/core/socket.c
C
mit
9,850
#include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define RESET_AT 10000000 #define RESET_TO 10000 unsigned int credits=100; unsigned int merchandise=10; unsigned int price=15; unsigned int stars=0; char saveName[64]="\0"; void Game_Help (void) { printf("The object of TAWS (Text Adventu...
cymonsgames/CymonsGames
taws/game.c
C
mit
4,638
/* text version of maze 'mazefiles/binary/apec2012.maz' generated by mazetool (c) Peter Harrison 2018 o---o---o---o---o---o---o---o---o---o---o---o---o---o---o---o---o | | o o---o---o---o---o---o---o---o---o---o---o---o---o---o---o o | | ...
ucgosupl/mm_legend_v2
test/unit_test/mazetool/mazefiles/APEC2012.c
C
mit
3,890
/*---------------------------------------------------------------------------------------------------------*/ /* */ /* Copyright (c) Nuvoton Technology Corp. All rights reserved. ...
Moonhint/Smart-Lock-Prototype
Embed2014/Keil/Library/USB/Source/HIDSys.c
C
mit
28,245
/* $Id: minissdp.c,v 1.44 2013/02/06 10:50:04 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2013 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include <stdio.h> #include <...
SecretsCoin/SecretsCoin
src/miniupnpc/miniupnp-miniupnpc_1_8/miniupnpd/minissdp.c
C
mit
23,160
#include <stdio.h> #include <string.h> #include "util.h" #include "output.h" #define SB_LOCATION_X 27 #define SB_LOCATION_Y 9 #define SB_WIDTH 26 #define SB_HEIGHT 6 void setScoreboard(void); void printMatrixOnBoardXY(char const **matrix, int x, int y); void printStringOnBoardXY(char const s[], int x, int y); int co...
gto76/race
src/scoreboard.c
C
mit
2,734
/************************************************************************************ * configs/eagle100/src/up_ethernet.c * arch/arm/src/board/up_ethernet.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary form...
Paregov/hexadiv
edno/software/nuttx/configs/eagle100/src/up_ethernet.c
C
mit
4,106
/***************************************************************************/ /* */ /* ttsbit.c */ /* */ /* ...
lymastee/gslib
ext/freetype/src/sfnt/ttsbit.c
C
mit
51,006
/* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project * 2006 */ /* ==================================================================== * Copyright (c) 2006 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ...
vbloodv/blood
extern/openssl.orig/apps/genpkey.c
C
mit
10,817
#include "ioExpanderPc.h" #include <stdbool.h> #define IO_EXPANDER_BIT_COUNT 8 bool ioExpanderPcInit(IOExpander* ioExpander) { return true; } // ALL BITS unsigned char ioExpanderPcReadValue(IOExpander* ioExpander) { unsigned int value = *(ioExpander->object); return (unsigned char) (value...
svanacker/cen-electronic
drivers/ioExpander/pc/ioExpanderPc.c
C
mit
1,423
#include <mun/codegen/compiler.h> #include <mun/codegen/move_resolver.h> #include <mun/array.h> #include "all.h" #include "parallel_move.h" void move_resolver_init(move_resolver* moves, flow_graph_compiler* compiler){ array_init(&moves->moves, 0x4); moves->compiler = compiler; } static void build_initial_moves_li...
MunVM/MunVM
src/codegen/move_resolver.c
C
mit
1,639
/** * libSeabCarve.c * * Masters Thesis Work * Christopher Stoll, 2015 -- v3, major refactoring */ #ifndef LIBSEAMCARVE_C #define LIBSEAMCARVE_C #include <stdio.h> #include <limits.h> #include <string.h> #include "pixel.h" #include "window.h" #include "libWrappers.c" #include "libBinarization.c" #include "libEne...
stollcri/MastersThesis
src/libSeamCarve.c
C
mit
63,375
/* * FIPS-180-2 compliant SHA-384/512 implementation * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of PolarSSL (http://www.polarssl.org) * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> * * All rights reserved. * * This program is free software; you can redistrib...
netgroup/dstreamon
d-streamon/lib/hash/C/sha4.c
C
mit
24,228
/* * This is the low level driver for the ttun interface. * It creates a TCP tunnel between two routers * Design and much of the code is from tun.c by Ahmed Youssef * * Copyright (C) 2016 GINI Cloud */ #include <slack/err.h> #include "tun.h" #include "packetcore.h" #include "classifier.h" #include "filter.h" ...
bernardkaminski/gini
backend/src/grouter/ttun.c
C
mit
8,614
//***************************************************************************** // talloc // // File: pool.h // Author: Martin Dorazil // Date: 19/05/2017 // // Copyright 2017 Martin Dorazil // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documen...
travisdoor/biscuit
thirdparty/talloc_1.4.0/src/pool.c
C
mit
5,693
#include <stdlib.h> #include "thc.h" int *prime_factors(int n, int *result_size) { int *result; int prime = 2; result = malloc(sizeof(int) * 1024); *result_size = 0; while (n > 1) { if (n % prime == 0) { result[(*result_size)++] = prime; while (n % prime == 0) { ...
hltbra/thc
samples/primefactors.c
C
mit
1,498
#include "stm32f4xx_hal.h" #include "stm32f4xx.h" #include "stm32f4xx_it.h" #include "tim.h" #include <stdbool.h> /******************************************************************************/ /* Cortex-M4 Processor Interruption and Exception Handlers */ /***********...
dumpram/stm32_real_time_test
Src/stm32f4xx_it.c
C
mit
3,820
/* Copyright (c) 2008-2013, The WinCoin Project, Inc. */ /* See LICENSE for licensing information */ /** \file memarea.c * \brief Implementation for memarea_t, an allocator for allocating lots of * small objects that will be freed all at once. */ #include "orconfig.h" #include <stdlib.h> #include "memarea.h" #incl...
Wincoinofficial/wincoin
src/tor/memarea.c
C
mit
10,033
/** * @file * * IPv6 fragmentation and reassembly. */ /* * Copyright (c) 2010 Inico Technologies Ltd. * 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 c...
abit-corp/phs-shield
LwIP/src/core/ipv6/ip6_frag.c
C
mit
22,923
// 22 april 2015 #include "test.h" // TODOs // - blank page affects menus negatively on Windows void die(const char *fmt, ...) { va_list ap; va_start(ap, fmt); fprintf(stderr, "[test program] "); vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); va_end(ap); abort(); } int onClosing(uiWindow *w, void *data) {...
tbodt/libui
test/main.c
C
mit
3,431
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__malloc_char_ncpy_17.c Label Definition File: CWE127_Buffer_Underread__malloc.label.xml Template File: sources-sink-17.tmpl.c */ /* * @description * CWE: 127 Buffer Under-read * BadSource: Set data pointer to before the allocated memory b...
maurer/tiamat
samples/Juliet/testcases/CWE127_Buffer_Underread/s02/CWE127_Buffer_Underread__malloc_char_ncpy_17.c
C
mit
3,520
/* * * TINKER Source Code * * * [2009] - [2013] Samuel Steven Truscott * All Rights Reserved. */ #include "time/alarm_manager.h" #include "config.h" #include "process/process.h" #include "memory/memory_manager.h" #include "time/time.h" #include "time/time_manager.h" #include "utils/collections/unbounded_list...
sam-truscott/tinker-kernel
kernel/src/kernel/c/time/alarm_manager.c
C
mit
6,556
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_connect_socket_execl_67b.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using ...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_execl_67b.c
C
mit
2,850
/************************************* * Calculating Pi with using method: * * integral 4.0/(1+x^2) dx = p * * Serial Version * ************************************/ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> // Reference value to estimate error double PI_ref=3.141592...
mohsinshaikh786/mock-repo
Solutions/c/src/pi-serial.c
C
cc0-1.0
1,182
#include <stdlib.h> #include <curses.h> #include <signal.h> static void finish(int sig); int main(int argc, char *argv[]) { int num = 0; /* initialize your non-curses data structures here */ (void) signal(SIGINT, finish); /* arrange interrupts to terminate */ (void) initscr(); /* initiali...
RoasterBot/roasterbot-analytics
python/csrc/ncurses_capp.c
C
cc0-1.0
1,660
/* ################################################################### ** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT. ** Filename : TU1.c ** Project : LedBlink ** Processor : MKL46Z256VLL4 ** Component : TimerUnit_LDD ** Version : Component 01.164, Driver 01....
santiagosalamandri/FREESCALE-MKL46Z256
Proyectos/LedBlink/Generated_Code/TU1.c
C
cc0-1.0
11,523
/* $Id: Multilevel.c,v 1.8 2011/02/28 16:19:43 erg Exp $ $Revision: 1.8 $ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made avai...
tomgr/graphviz-cmake
lib/sfdpgen/Multilevel.c
C
epl-1.0
35,603
/* $Id: exeval.c,v 1.15 2011/01/25 16:30:48 ellson Exp $ $Revision: 1.15 $ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made ava...
tomgr/graphviz-cmake
lib/expr/exeval.c
C
epl-1.0
48,442
/* * GPMC support functions * * Copyright (C) 2005-2006 Nokia Corporation * * Author: Juha Yrjola * * 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/kernel....
xoox/linux-2.6.18_pro500
arch/arm/mach-omap2/gpmc.c
C
gpl-2.0
9,258
/* @(#) $Id: ./src/analysisd/lists_make.c, 2011/09/08 dcid Exp $ */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public * License (version 3) as published by the FSF - Free Software ...
dcid/ossec-hids
src/analysisd/lists_make.c
C
gpl-2.0
3,543
#include "pm.h" typedef struct gdt_entry_s { u16 limit0_15; u16 base0_15; u8 base16_23; u8 type: 4; u8 dtype: 1; u8 dpl: 2; u8 present:1; u8 limit16_19: 4; u8 avl: 1; u8 l: 1; u8 dsize: 1; u8 granularity: 1; u8 base24_31; } __attribute__((packed,aligned(8))) gdt_entry_t; typedef struct tss_...
Saruta/atomos
arch/pm.c
C
gpl-2.0
3,493
/* * linux/arch/arm/mm/flush.c * * Copyright (C) 1995-2002 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/mm.h> #...
RIP95/android_kernel_zte_msm8960
arch/arm/mm/flush.c
C
gpl-2.0
8,840
/* * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any late...
fread-ink/linux-2.6.35.3-imx5-kindle4
drivers/dma/pxp/pxp_device.c
C
gpl-2.0
11,836
/* plane.c -- part of vulcan * * This program is copyright (C) 2006 Mauro Persano, and is free * software which is freely distributable under the terms of the * GNU public license, included as the file COPYING in this * distribution. It is NOT public domain software, and any * redistribution not permitted by the...
brand7n/vulcan
lib3d/plane.c
C
gpl-2.0
1,403
/* * Device probing and sysfs code. * * Copyright (C) 2005-2006 Kristian Hoegsberg <krh@bitplanet.net> * * 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, ...
mpalmer/linux-2.6
drivers/firewire/fw-device.c
C
gpl-2.0
26,067
#include <linux/init.h> #include <linux/module.h> #include <linux/interrupt.h> #include <mach/hardware.h> #include <asm/irq.h> #include <asm/mach/irq.h> #include <mach/irqs.h> #include "common.h" static void lh7a400_mask_irq (u32 irq) { INTC_INTENC = (1 << irq); } static void lh7a400_unmask_irq (u32 irq) { ...
leemgs/OptimusOneKernel-KandroidCommunity
arch/arm/mach-lh7a40x/irq-lh7a400.c
C
gpl-2.0
1,407
/* Login code for S/KEY Authentication. S/KEY is a trademark * of Bellcore. * * Mink is the former name of the S/KEY authentication system. * Many references for mink may still be found in this program. */ #include <sys/param.h> #ifdef QUOTA #include <sys/quota.h> #endif #include <sys/stat.h> #include ...
dkorunic/pam_skey
libskey/skeylogin.c
C
gpl-2.0
6,708
/* * Block driver for media (i.e., flash cards) * * Copyright 2002 Hewlett-Packard Company * Copyright 2005-2008 Pierre Ossman * * Use consistent with the GNU GPL is permitted, * provided that this copyright notice is * preserved in its entirety in all copies and derived works. * * HEWLETT-PACKARD COMPANY MAK...
andr00ib/victor-oficial-kernel
drivers/mmc/card/block.c
C
gpl-2.0
39,680
/**************************************************************** * * * Copyright 2001, 2002 Sanchez Computer Associates, Inc. * * * * This source code contains the intellectual property * * of its copyright holder(s), and is made available * * under a license. If you do not know the terms of * * ...
h4ck3rm1k3/FIS-GT.M
sr_port/exfun_frame.c
C
gpl-2.0
1,612
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. Copyright (C) 2007 HermitWorks Entertainment Corporation This file is part of the Space Trader source code. The Space Trader source code is free software; you can redistribute it and/or modify it u...
ballju/SpaceTrader-GPL-1.1.14
code/server/sv_init.c
C
gpl-2.0
22,853
/* libFLAC - Free Lossless Audio Codec library * Copyright (C) 2000-2009 Josh Coalson * Copyright (C) 2011-2013 Xiph.Org Foundation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributio...
bit-trade-one/SoundModuleAP
lib-src/libflac/src/libFLAC/lpc.c
C
gpl-2.0
48,038
/* $Id: string.c 3207 2010-06-16 14:49:37Z bennylp $ */ /* * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publ...
kaaustubh/pjsip
pjlib/src/pj/string.c
C
gpl-2.0
4,514
/* * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
smarr/Truffle
substratevm/src/com.oracle.svm.native.libchelper/src/getEnviron.c
C
gpl-2.0
2,831
/* * c_heap.c - (Min-/Max-)Heap and PrioSet * * Copyright (C) 2014 Tobias Boege <tobias@gambas-buch.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, or (at your opt...
justlostintime/gambas
main/lib/data/c_heap.c
C
gpl-2.0
10,211
/* * fs/bfs/dir.c * BFS directory operations. * Copyright (C) 1999,2000 Tigran Aivazian <tigran@veritas.com> * Made endianness-clean by Andrew Stribblehill <ads@wompom.org> 2005 */ #include <linux/time.h> #include <linux/string.h> #include <linux/fs.h> #include <linux/buffer_head.h> #include <linux/sched.h>...
Core2idiot/Kernel-Samsung-3.0...-
fs/bfs/dir.c
C
gpl-2.0
9,294
/* * print_file_size.c - Part of AFD, an automatic file distribution program. * Copyright (c) 2004 - 2016 Holger Kiehl <Holger.Kiehl@dwd.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 Foun...
holger24/AFD
src/UI/common/print_file_size.c
C
gpl-2.0
6,871
#include "mnb-pasteboard-marshal.h" #include <glib-object.h> #ifdef G_ENABLE_DEBUG #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) #define g_marshal_value_peek_char(v) g_value_get_char (v) #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) #define g_marshal_value_peek_int(v) g_v...
dudochkin-victor/gogoo-panel-pasteboard
src/mnb-pasteboard-marshal.c
C
gpl-2.0
4,014
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "../MATRIX/matrix.h" #include "../LINKLIST2/linklist2.h" #include "analysis.h" void usage(void){ printf("You must pass the name .path file as an argument\n"); printf("./run_analysis filename.path\n"); } int readPath(char * FileName){ char buf[2...
JoshuaSBrown/OPV_MonteCarloCode_V2
src/TOOLS/analysis.c
C
gpl-2.0
12,311
/* * This is the Fusion MPT base driver providing common API layer interface * for access to MPT (Message Passing Technology) firmware. * * This code is based on drivers/scsi/mpt2sas/mpt2_base.c * Copyright (C) 2007-2010 LSI Corporation * (mailto:DL-MPTFusionLinux@lsi.com) * * This program is free software; y...
munjeni/android_kernel_xperiago
drivers/scsi/mpt2sas/mpt2sas_base.c
C
gpl-2.0
120,696
/***************************************************************************** * * wave.c * * PHASEX: [P]hase [H]armonic [A]dvanced [S]ynthesis [EX]periment * * Copyright (C) 1999-2009 William Weston <weston@sysex.net> * * This program is free software; you can redistribute it and/or * modify it under the ter...
disabled/phasex-dev
src/wave.c
C
gpl-2.0
18,827
/** ****************************************************************************** * @file USB_Device/CDC_Standalone/Src/usbd_conf.c * @author MCD Application Team * @version V1.3.1 * @date 09-October-2015 * @brief This file implements the USB Device library callbacks and MSP *************...
kamfor/STMF4
STM/Projects/STM324xG_EVAL/Applications/USB_Device/CDC_Standalone/Src/usbd_conf.c
C
gpl-2.0
16,724
/* * Copyright (C) 2011 Bticino S.p.A. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is dis...
bticino/bubl
main.c
C
gpl-2.0
7,921
/* -*- mode: c; c-basic-offset: 8 -*- */ /* NCR (or Symbios) 53c700 and 53c700-66 Driver * * Copyright (C) 2001 by James.Bottomley@HansenPartnership.com **----------------------------------------------------------------------------- ** ** This program is free software; you can redistribute it and/or modify ** it u...
skywalker01/Samsung-Galaxy-S-Plus
drivers/scsi/53c700.c
C
gpl-2.0
71,207
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * Copyright (C) 20011 Red Hat, Inc. * * Author: David Zeuthen <davidz@redhat.com> */ #include "config.h" #include <pwd.h> #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE #include <polkitagent/polkitagent.h> #include "shell-polkit-authent...
magcius/gnome-shell
src/shell-polkit-authentication-agent.c
C
gpl-2.0
13,533
#include <stdio.h> #define N 21 #define M 21 unsigned char x[5][M]={-1}; void ufu(){ int i,k,j,l; time_t t; srand(time(&t)); int ii; for(ii=0;ii<2;ii++){ for(i=0;i<M;i++) x[ii][i]= -1; i=rand()%M; x[ii][M-1]= i; i=0; while(i<M-1){ k=0; j=rand()%M; for(l=0;l<i+1;l++){ if(x[ii][l]==j && j!=x[ii]...
anang0g0/kryptism
etc/okama.c
C
gpl-2.0
1,153
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright (C) 2007-2008 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * ve...
gcorvala/gsoc2008
libempathy-gtk/empathy-contact-dialogs.c
C
gpl-2.0
9,578
/* * * $Id: read_PCM.c 121 2005-04-11 14:17:18Z federico $ * * This file is part of Fenice * * Fenice -- Open Media Server * * Copyright (C) 2004 by * * - Giampaolo Mancini <giampaolo.mancini@polito.it> * - Francesco Varano <francesco.varano@polito.it> * - Marco Penno <marco.penno@polito.it> * - ...
zhuqingcode/fenice-1.11
mediainfo/read_PCM.c
C
gpl-2.0
3,293
#include <element.h> int update_FOG(UPDATE_FUNC_ARGS) { int r, rx, ry; for (rx=-1; rx<2; rx++) for (ry=-1; ry<2; ry++) if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry)) { r = pmap[y+ry][x+rx]; if (!r && rand()%2500==0) { if (parts[i].temp > 253.15) ...
me4502/Powder-Sim
src/elements/fog.c
C
gpl-2.0
1,052
/* * osd_clock * * Copyright (C) 2001, Jon Beckham <leftorium@<leftorium@leftorium.net> * Martijn van de Streek <martijn@foodfight.org> * 2017, Daniel González Cabanelas <dgcbueu@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the...
danitool/osd_clock
osd_clock.c
C
gpl-2.0
4,473
/* * main_stick * * send joystick control to paparazzi through ivy * * based on Force Feedback: Constant Force Stress Test * Copyright (C) 2001 Oliver Hamann * * 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 F...
pchickey/paparazzi-linux-release
sw/ground_segment/joystick/main_stick.c
C
gpl-2.0
5,779
/*****************************************************************************/ /* rfc959.c - General purpose routines for the FTP protocol (RFC 959) */ /* Copyright (C) 1998-2007 Brian Masney <masneyb@gftp.org> */ /* */ ...
pvtc/gftp-gtk3
lib/rfc959.c
C
gpl-2.0
53,870
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <time.h> #include <rnode.h> #include <rbinary_tree.h> int* create_int_data(int); void print_int_data(void*); int compare_int_data(void*, void*); int main(int argc, char **argv) { int c = 0; btree_t* tree = 0; node_t* aux = 0; int data_to_sear...
rgcr/dsrc
examples/example_bst.c
C
gpl-2.0
2,153
/* Reincarnation Server. This servers starts new system services and detects * they are exiting. In case of errors, system services can be restarted. * The RS server periodically checks the status of all registered services * services to see whether they are still alive. The system services are * expected t...
sudev/MinixMajor
code/servers/rs/main.c
C
gpl-2.0
23,814
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* * 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 your option) ...
sgros/MIF_NetworkManager
libnm-core/nm-setting-wired.c
C
gpl-2.0
40,087
/*************************************************************************** * Copyright (C) 2010 by Blade_Arma * * * * This program is free software; you can redistribute it and/or modify * * it unde...
tetious/pcsxr
plugins/bladesio1/settings.c
C
gpl-2.0
2,294
#include <efi.h> #include <efilib.h> #include "shelliface.h" #include "sb.h" /* XXX probably shouldn't ship defaulting to this */ EFI_GUID rh_guid = {0x0abba7dc, 0xe516, 0x4167, {0xbb,0xf5,0x4d,0x9d,0x1c,0x73,0x94,0x16}}; /* XXX this needs to be moved into gnu-efi */ EFI_GUID gEfiShellInterfaceGuid = EFI_SHELL_INTE...
vathpela/pesign
util/setupsb.c
C
gpl-2.0
13,673