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 |
|---|---|---|---|---|---|
/*
* Multi2Sim
* Copyright (C) 2012 Rafael Ubal (ubal@ece.neu.edu)
*
* 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... | filippo-ceid/multi2sim | src/arch/southern-islands/emu/opencl-repo.c | C | gpl-3.0 | 6,076 |
/* Multiple Lua Programming Language : Intermediate Code Generator
* Copyright(C) 2014 Cheryl Natsu
* This file is part of multiple - Multiple Paradigm Language Interpreter
* multiple is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* ... | zooxyt/lua | mlua_icg.c | C | gpl-3.0 | 15,534 |
/**
******************************************************************************
* @file Examples_LL/USART/USART_Communication_TxRx_DMA/Src/main.c
* @author MCD Application Team
* @brief This example describes how to send/receive bytes over USART IP using
* the STM32F0xx USART LL API in DMA m... | Fdepraetre/Handmouse | Software/Handmouse_STM/Lib_DL/STM32Cube_FW_F0_V1.8.0/Projects/STM32F072RB-Nucleo/Examples_LL/USART/USART_Communication_TxRx_DMA/Src/main.c | C | gpl-3.0 | 19,128 |
/*
* FuchsTracker.c Copyright (C) 1999 Sylvain "Asle" Chipaux
*
* Depacks Fuchs Tracker modules
*
* Modified in 2006,2007,2014 by Claudio Matsuoka
*/
#include <string.h>
#include <stdlib.h>
#include "prowiz.h"
static int depack_fuchs(HIO_HANDLE *in, FILE *out)
{
uint8 *tmp;
uint8 max_pat;
/*int ssize;*/
... | DodgeeSoftware/OpenALWrapper | _dependencies/libxmp-4.4.0/src/loaders/prowizard/fuchs.c | C | gpl-3.0 | 3,794 |
/**
******************************************************************************
* @file I2C/I2C_TwoBoards_ComPolling/Src/stm32f4xx_it.c
* @author MCD Application Team
* @version V1.2.7
* @date 17-February-2017
* @brief Main Interrupt Service Routines.
* This file provides temp... | TRothfelder/Multicopter | libs/STM32Cube_FW_F4_V1.16.0/Projects/STM32F4-Discovery/Examples/I2C/I2C_TwoBoards_ComPolling/Src/stm32f4xx_it.c | C | gpl-3.0 | 5,686 |
/*
* sound/oss/ad1848.c
*
* The low level driver for the AD1848/CS4248 codec chip which
* is used for example in the MS Sound System.
*
* The CS4231 which is used in the GUS MAX and some other cards is
* upwards compatible with AD1848 and this driver is able to drive it.
*
* CS4231A and AD1845 are upward compa... | williamfdevine/PrettyLinux | sound/oss/ad1848.c | C | gpl-3.0 | 77,160 |
/**
* @file gensvm_debug.c
* @author G.J.J. van den Burg
* @date 2016-05-01
* @brief Functions facilitating debugging
*
* @details
* Defines functions useful for debugging matrices.
*
* @copyright
Copyright 2016, G.J.J. van den Burg.
This file is part of GenSVM.
GenSVM is free software: you can redistribu... | GjjvdBurg/GenSVM | src/gensvm_debug.c | C | gpl-3.0 | 2,141 |
/*
* Copyright (C) 2007-2009 Daniel Prevost <dprevost@photonsoftware.org>
*
* This file is part of Photon (photonsoftware.org).
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 or version 3 as published by the
* Free Software Foundation and appearing... | dprevost/photon | src/Nucleus/Tests/Hash/InsertPass.c | C | gpl-3.0 | 2,772 |
/*
* 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... | rb1205/inav | src/main/telemetry/hott.c | C | gpl-3.0 | 16,523 |
#include "config.h"
#include "hardware.h"
#include "data.h"
#include "instruction.h"
#include "rung.h"
#include "plclib.h"
#include "project.h"
int project_task(plc_t p)
{ //
/**************start editing here***************************/
BYTE one, two, three;
one = resolve(p, BOOL_DI, 1);
two = fe(p, BOOL_DI, 2... | kalamara/plcemu | src/project.c | C | gpl-3.0 | 768 |
/* vim: set ts=8 sw=4 sts=4 et: */
/*======================================================================
Copyright (C) 2008,2009,2014 OSSO B.V. <walter+rtpsniff@osso.nl>
This file is part of RTPSniff.
RTPSniff is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public Licen... | ossobv/rtpsniff | timer_interval.c | C | gpl-3.0 | 9,457 |
#include<stdio.h>
#include<big_integer.h>
#include<string.h>
#include<time.h>
#include"gen_lib.h"
int main(int argc,char** argv)
{
if(argc<3)
{
printf("usage %s <length> <num> \n",argv[0]);
exit(-1);
}
FILE* bash=fopen("bash.dat","w+");
FILE* python=fopen("py.dat","w+");
int length=atoi(argv[1]);
int num=a... | NosicLin/Codger | src/rtype_v3.0/debug/gen_cmp2.c | C | gpl-3.0 | 504 |
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to 2013 PrismTech
* Limited and its licensees. All rights reserved. See file:
*
* $OSPL_HOME/LICENSE
*
* for full copyright notice and license terms.
*
*/
#include <assert.h>
#includ... | SanderMertens/opensplice | src/tools/idlpp/code/idl_scope.c | C | gpl-3.0 | 9,149 |
/*
*
* Mouse driver
*
*/
#include <kernel/system.h>
#include <kernel/logging.h>
#include <kernel/pipe.h>
#include <kernel/module.h>
#include <kernel/mouse.h>
#include <kernel/args.h>
static uint8_t mouse_cycle = 0;
static uint8_t mouse_byte[4];
#define PACKETS_IN_PIPE 1024
#define DISCARD_POINT 32
#define MOUSE... | jpacanowski/GekonOS | kernel/mouse.c | C | gpl-3.0 | 5,159 |
/*
* Copyright 2014 Tilera 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 Software Foundation, version 2.
*
* This program is distributed in the hope that it will ... | williamfdevine/PrettyLinux | arch/tile/kernel/perf_event.c | C | gpl-3.0 | 24,932 |
#include "defs.h"
#include "fdefs.h"
#include <stdlib.h>
void
gasify(job)
char *job;
{
char command[MAXCOMM] ;
char g_type[MAXCOMM] ;
double temp_y ;
double temp_slope ;
double rho_shock ;
double temp_shock ;
double gas_frac ;
double rhobar ;
double metal ;
double rho ;
... | FavioVazquez/MexicanNumericalSimulationSchool | preschool/tipsy-2.2.3d/code/gasify.c | C | gpl-3.0 | 5,301 |
/*
** AACPlayer - Freeware Advanced Audio (AAC) Player for Android
** Copyright (C) 2011 Spolecne s.r.o., http://www.biophysics.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; either... | gmavenis/RadioPlayer | jni/aac-decoder/aac-ffmpeg-wma-decoder.c | C | gpl-3.0 | 10,374 |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fap.h>
#define EXIT_SUCCESS 0
char *readstdin(void);
int main()
{
char* input;
unsigned int input_len;
fap_packet_t* packet;
char fap_error_output[1024];
fap_init();
/* Get packet to parse from stdin */
input = readstdin... | n7nix/dantracker | faptest.c | C | gpl-3.0 | 1,515 |
#include <thread.h>
#include <processor.h>
#include <interrupt.h>
#include <printk.h>
_Atomic long long min_time = 0;
static struct thread *__select_thread(struct processor *proc)
{
/* throw the old process back on the queue */
spinlock_acquire(&proc->schedlock);
if(current_thread->flags & THREAD_DEAD)
current_t... | Dennisbonke/DB-OS | kernel/schedule.c | C | gpl-3.0 | 3,944 |
/*****************************************************************************\
* $Id: ipmiping.c,v 1.75 2010-02-08 22:02:31 chu11 Exp $
*****************************************************************************
* Copyright (C) 2007-2015 Lawrence Livermore National Security, LLC.
* Copyright (C) 2003-2007 The... | chu11/freeipmi | ipmiping/ipmiping.c | C | gpl-3.0 | 17,845 |
/*
* Copyright (c) 2008, Jerome Fimes, Communications & Systemes <jerome.fimes@c-s.fr>
* 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 ... | Alexander-M-Waldman/local_currency_site | geodjango/openjpeg-2.0.1/tests/test_tile_decoder.c | C | gpl-3.0 | 13,343 |
/*
* G. Rilling, last modification: 3.2007
* gabriel.rilling@ens-lyon.fr
*
* code based on a student project by T. Boustane and G. Quellec, 11.03.2004
* supervised by P. Chainais (ISIMA - LIMOS - Universite Blaise Pascal - Clermont II
* email : pchainai@isima.fr).
*/
/**************************************************... | pintomollo/asset | MEX/io.c | C | gpl-3.0 | 7,428 |
/*****************************************************************************
* Written by Chris Dunlap <cdunlap@llnl.gov>.
* Copyright (C) 2007-2021 Lawrence Livermore National Security, LLC.
* Copyright (C) 2001-2007 The Regents of the University of California.
* UCRL-CODE-2002-009.
*
* This file is part ... | dun/conman | inevent.c | C | gpl-3.0 | 16,114 |
//cmdtypist: the main of cmdtypist
/*
Program title: CMDTYPIST
Author: Chiatiah Calson
License: GPL 3 or later versions
Date and Time: 5 July 2017 @ 10:40PM
Program Size: 2.8MB
*/
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<ctype.h>
#include <unistd.h>
//cmdtyp... | Noslac/cmd_typist | cmd_typist.c | C | gpl-3.0 | 19,200 |
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo
* This benchmark is part of SWSC */
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[5];
atomic_int atom_1_r1_1;
atomic_int atom_1_r13_0;
void *t0(void *arg){
label_1:;
atomic_store_explicit(&vars[0], 1, mem... | nidhugg/nidhugg | tests/litmus/C-tests/MP+PPO073.c | C | gpl-3.0 | 1,993 |
#include "CAN.h"
#include "led.h"
#include "delay.h"
#include "usart.h"
//////////////////////////////////////////////////////////////////////////////////
//±¾³ÌÐòÖ»¹©Ñ§Ï°Ê¹Óã¬Î´¾×÷ÕßÐí¿É£¬²»µÃÓÃÓÚÆäËüÈκÎÓÃ;
//ALIENTEKÕ½½¢STM32¿ª·¢°å
//CANÇý¶¯ ´úÂë
//ÕýµãÔ×Ó@ALIENTEK
//¼¼ÊõÂÛ̳:www.openedv.com
//ÐÞ¸ÄÈÕÆÚ:201... | chempin/stm32f107- | 10.CAN/OV/can.c | C | gpl-3.0 | 4,689 |
/*
Liquid War 6 is a unique multiplayer wargame.
Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Christian Mauduit <ufoot@ufoot.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 F... | lijiaqigreat/liquidwar-web | reference/src/lib/mat/mat-testmain.c | C | gpl-3.0 | 1,546 |
/* Copyright (C) 2005-2012 by George Williams */
/*
* 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 conditions and the following... | rakeshyeka/PDFprocessor | pdf2htmlEX/fontforge-pdf2htmlEX/fontforgeexe/groupsdlg.c | C | gpl-3.0 | 50,023 |
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo
* This benchmark is part of SWSC */
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[5];
atomic_int atom_1_r1_1;
void *t0(void *arg){
label_1:;
atomic_store_explicit(&vars[0], 2, memory_order_seq_cst);
ato... | nidhugg/nidhugg | tests/litmus/C-tests/S+PPO645.c | C | gpl-3.0 | 1,822 |
/*
============================================================================
Name : lcd_scroll_text.c
Author : Kiran N <niekiran@gmail.com >
Version : 1.0
Copyright : Your copyright notice
Description : This application prints pre-stored strings on a LCD panel with shifting/scrolling effect
... | niekiran/EmbeddedLinuxBBB | Project_Src/lcd_scrollable_text/src/lcd_text_scroll.c | C | gpl-3.0 | 6,531 |
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo
* This benchmark is part of SWSC */
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[3];
atomic_int atom_0_r3_2;
atomic_int atom_1_r1_1;
void *t0(void *arg){
label_1:;
atomic_store_explicit(&vars[0], 2, memo... | nidhugg/nidhugg | tests/litmus/C-tests/DETOUR0477.c | C | gpl-3.0 | 1,695 |
#include <stdlib.h>
#include <stdio.h>
#include "array_heap.h"
int array_init(array* arr, int size) {
arr->data = realloc(NULL, sizeof(void*) * size);
if (0 == (size_t)arr->data) {
return -1;
}
arr->length = size;
arr->index = 0;
return 0;
}
int array_push(array* arr, void* data) {
((size_t*)arr->d... | kristov/vroom | module/array_heap.c | C | gpl-3.0 | 989 |
/*
* Copyright (C) 2006-2009 Daniel Prevost <dprevost@photonsoftware.org>
*
* This file is part of Photon (photonsoftware.org).
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 or version 3 as published by the
* Free Software Foundation and appearing... | dprevost/photon | src/Common/Tests/Options/IsShortPresentNullHandle.c | C | gpl-3.0 | 2,353 |
/* glpapi16.c (basic graph and network routines) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
*
* Copyright (C) 2000,01,02,03,04,05,06,07,08,2009 Andrew Makhorin,
* Department for Applied Informatics, Moscow Aviation Institute,... | macmanes-lab/BinPacker | glpk-4.40/src/glpapi16.c | C | gpl-3.0 | 18,723 |
#include "report_mib_feature.h"
#include "mib_feature_definition.h"
#include "report_manager.h"
#include "protocol.h"
#include "bus_slave.h"
#include "momo_config.h"
#include "report_log.h"
#include "report_comm_stream.h"
#include "system_log.h"
#include <string.h>
#define BASE64_REPORT_MAX_LENGTH 160 //( 4 * ( ( RAW... | WellDone/MoMo-Firmware | momo_modules/mainboard/src/mib/commands/report_mib_feature.c | C | gpl-3.0 | 5,340 |
/**
* \file stack.c
*
* Time-stamp: "2012-03-31 13:16:41 bkorb"
*
* This is a special option processing routine that will save the
* argument to an option in a FIFO queue.
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
* AutoOpts is Copyright (c) 1992-2012 ... | nobled/gnutls | src/libopts/stack.c | C | gpl-3.0 | 7,335 |
/**
******************************************************************************
* @file LibJPEG/LibJPEG_Encoding/Src/encode.c
* @author MCD Application Team
* @version V1.1.0
* @date 17-February-2017
* @brief This file contain the compress method.
**************************************... | TRothfelder/Multicopter | libs/STM32Cube_FW_F4_V1.16.0/Projects/STM32469I_EVAL/Applications/LibJPEG/LibJPEG_Encoding/Src/encode.c | C | gpl-3.0 | 5,814 |
/* ptinit.c - ptinit */
#include <xinu.h>
struct ptnode *ptfree; /* list of free message nodes */
struct ptentry porttab[NPORTS]; /* port table */
int32 ptnextid; /* next table entry to try */
/*------------------------------------------------------------------------
* ptinit -- initialize all ports
*----... | rhexsel/xinu-cMIPS | xinu/system/ptinit.c | C | gpl-3.0 | 1,044 |
/* This file is part of libcuzmem
Copyright (C) 2011 James A. Shackleford
libcuzmem 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 l... | tshack/libcuzmem | tuner_exhaust.c | C | gpl-3.0 | 6,949 |
/* Copyright 2004,2007,2008,2010,2011,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distri... | HopeFOAM/HopeFOAM | ThirdParty-0.1/scotch_6.0.3/src/libscotch/bgraph_bipart_bd.c | C | gpl-3.0 | 29,153 |
#include "../lib/includes.h"
#include "../lib/utils.h"
#include "../lib/methnum.h"
#include "../Enum_type.h"
#include "../Var/var.h"
#include "../T0/t0.h"
#include "upot.h"
void test_der ( Upot * U , U_type upot_t , T0_type t0_t, bool phi_eq_phibar );
#define TD_T(f,df,nf,str) do{ testderiv(f,df,Tmin ,Tmax ,N,... | AlexandreBiguet/NJLlikeModels | legacy/programs/njl-1/Upot/test_der.c | C | gpl-3.0 | 22,920 |
#include "gremlin.h"
void cs_kroneckerIupdate(const cs *A, int nI, const cs *C){
int i, j, k, cnt, an, am;
double *Ax;
an = A->n;
am = A->m;
Ax = A->x;
cnt = 0;
for(i = 0; i < an; i++){
for(j = 0 ; j < nI ; j++){
for(k = 0; k < am; k++){
C->x[cnt] = Ax[i*... | matthewwolak/gremlin | src/cs_kroneckerIupdate.c | C | gpl-3.0 | 376 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <volk_fft/volk_fft_prefs.h>
//#if defined(_WIN32)
//#include <Windows.h>
//#endif
void volk_fft_get_config_path(char *path)
{
if (!path) return;
const char *suffix = "/.volk_fft/volk_fft_config";
char *home = NULL;
if (home == NULL) h... | hamgravy/volk-fft | lib/volk_fft_prefs.c | C | gpl-3.0 | 1,442 |
/*
* Generic DSI Command Mode panel driver
*
* Copyright (C) 2013 Texas Instruments
* Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
*
* 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 Found... | williamfdevine/PrettyLinux | drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c | C | gpl-3.0 | 28,860 |
/* Copyright (C) 2014 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | jkadlec/knot-dns-zoneapi | tests/query_module.c | C | gpl-3.0 | 2,585 |
/*
* gtpm-mgr
*
* Version 1.00
* Copyright (C) 2012-2014 Nicolas Provost dev AT doronic DOT fr
*
* 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
* (a... | doronic/llib | src/tpm/mgr/gtpm_mgr.c | C | gpl-3.0 | 5,773 |
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimplayer_pdb.c
*
* 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 3 o... | elektroll/etaimp | libgimp/gimplayer_pdb.c | C | gpl-3.0 | 33,949 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include "common.h"
#include "seafile-session.h"
#include "bloom-filter.h"
#include "gc-core.h"
#include "utils.h"
#define DEBUG_FLAG SEAFILE_DEBUG_OTHER
#include "log.h"
#define MAX_BF_SIZE (((size_t)1) << 29) /* 64 MB */
/* Total num... | skmezanul/disk42 | server/gc/gc-core.c | C | gpl-3.0 | 13,299 |
/* radare - LGPL - Copyright 2008-2014 - pancake */
// TODO: implement a more inteligent way to store cached memory
// TODO: define limit of max mem to cache
#include "r_io.h"
static void cache_item_free(RIOCache *cache) {
if (!cache)
return;
if (cache->data)
free (cache->data);
free (cache);
}
R_API void r_... | jpenalbae/radare2 | libr/io/cache.c | C | gpl-3.0 | 2,674 |
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2014 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; eit... | ferdv/claws | src/procheader.c | C | gpl-3.0 | 28,320 |
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; e... | buzz/claws | src/prefs_folder_item.c | C | gpl-3.0 | 71,677 |
/******************************************************************************
* NTRU Cryptography Reference Source Code
* Copyright (c) 2009-2013, by Security Innovation, Inc. All rights reserved.
*
* ntru_crypto_hash.c is a component of ntru-crypto.
*
* Copyright (C) 2009-2013 Security Innovation
*
* This... | jschanck-si/NTRUEncrypt | src/ntru_crypto_hash.c | C | gpl-3.0 | 10,074 |
#include "config.h"
#include "syshead.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include <cmocka.h>
#include <assert.h>
#include "argv.h"
#include "buffer.h"
/* Defines for use in the tests and the mock parse_line() */
#define PATH1 ... | anoidgit/padavan | trunk/user/openvpn/openvpn-2.4.x/tests/unit_tests/openvpn/test_argv.c | C | gpl-3.0 | 4,359 |
/*
* Unix SMB/CIFS implementation.
* NetApi LocalGroup Support
* Copyright (C) Guenther Deschner 2008
*
* 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 Licen... | rchicoli/samba | source3/lib/netapi/localgroup.c | C | gpl-3.0 | 36,680 |
/* This file is part of the hkl library.
*
* The hkl library 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.
*
* The hkl library... | klauer/hkl | tests/hkl-matrix-t.c | C | gpl-3.0 | 3,973 |
/*-------------------------------------------------------------------------
*
* prepjointree.c
* Planner preprocessing for subqueries and join tree manipulation.
*
* NOTE: the intended sequence for invoking these operations is
* pull_up_sublinks
* inline_set_returning_functions
* pull_up_subqueries
* do ... | TextusData/Mover | thirdparty/postgresql-9.0.1/src/backend/optimizer/prep/prepjointree.c | C | gpl-3.0 | 66,368 |
/*
* This is a plugin for GIMP.
*
* Copyright (C) 1997 Xavier Bouchoux
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later ... | brion/gimp | plug-ins/common/sinus.c | C | gpl-3.0 | 32,096 |
/**
* @file udp_socket.c
* @author Ricardo Tubío (rtpardavila[at]gmail.com)
* @version 0.1
*
* @section LICENSE
*
* This file is part of udpip-broadcaster.
* udpip-broadcaster 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... | vieites4/udpip_broadcaster | src/udpev/udp_socket.c | C | gpl-3.0 | 11,081 |
/* «Camelion» - Perl storable/C struct back-and-forth translator
*
* Copyright (C) Alexey Shishkin 2016
*
* This file is part of Project «Camelion».
*
* Project «Camelion» 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 Fre... | kimiby/camelion | serials/sread.c | C | gpl-3.0 | 2,718 |
/*
* Copyright 2013, winocm. <winocm@icloud.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:
*
* Redistributions of source code must retain the above copyright notice, this
* lis... | p01arst0rm/decorum-linux | _resources/kernels/xnu-arm/pexpert/arm/common/pe_armsupport.c | C | gpl-3.0 | 3,815 |
#include <stdio.h>
#include <string.h>
#include "stdbool.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_log.h"
#include "bt.h"
#define GATTS_TAG "MAIN"
#define HCI_H4_CMD_PREAMBLE_SIZE (4)
/* HCI Command opcode group field(OGF) */
#define HCI_GRP_HOST_... | pcbreflux/espressif | esp32/app/ble_app_eddystone/main/app_bt.c | C | gpl-3.0 | 8,842 |
/*
* AverMedia RM-KS remote controller keytable
*
* Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Li... | williamfdevine/PrettyLinux | drivers/media/rc/keymaps/rc-avermedia-rm-ks.c | C | gpl-3.0 | 2,710 |
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... | RobsonRojas/frertos-udemy | FreeRTOSv9.0.0/FreeRTOS/Demo/PPC440_Xilinx_Virtex5_GCC/RTOSDemo/main.c | C | gpl-3.0 | 24,378 |
/*-------------------------------------------------------------------------
*
* wparser.c
* Standard interface to word parser
*
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* src/backend/tsearch/wparser.c
*
*--------------------------------------------------... | robins/postgres | src/backend/tsearch/wparser.c | C | gpl-3.0 | 13,513 |
/*
* object.c
*
* Copyright (C) 2012 - Dr.NP
*
* 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 progra... | drnp/bsp | src/lib/bsp-core/object.c | C | gpl-3.0 | 53,620 |
/*
Copyright (C) 2016 Sergo Pasoevi.
This pragram 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.
This program is d... | pasoev/dungeons | src/util.c | C | gpl-3.0 | 1,578 |
/*!
* \file db_mysql_list_entities_report_sql.c
* \brief Returns MYSQL SQL query to create list entities report.
* \author Paul Griffiths
* \copyright Copyright 2014 Paul Griffiths. Distributed under the terms
* of the GNU General Public License. <http://www.gnu.org/licenses/>
... | paulgriffiths/general_ledger | lib/database/mysql/db_mysql_list_entities_report_sql.c | C | gpl-3.0 | 652 |
/*
This project 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.
Deviation is distributed in the hope that it will be useful,
but WITHO... | Chen-Leon/DeviationX | src/pages/text/model_loadsave.c | C | gpl-3.0 | 943 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "p12plcy.h"
#include "secoid.h"
#include "secport.h"
#include "secpkcs5.h"
#define PKCS12_NULL 0x0000
t... | Yukarumya/Yukarum-Redfoxes | security/nss/lib/pkcs12/p12plcy.c | C | mpl-2.0 | 3,082 |
//*****************************************************************************
//
// startup_gcc.c - Startup code for use with GNU tools.
//
// Copyright (c) 2012-2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for... | trfiladelfo/unesp_mdt | boards/SW-TM4C-2.0.1.11577/examples/boards/ek-tm4c123gxl/usb_dev_serial/startup_gcc.c | C | mpl-2.0 | 16,631 |
//*****************************************************************************
//
// pushbutton.c - Various types of push buttons.
//
// Copyright (c) 2008-2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use so... | trfiladelfo/unesp_mdt | boards/SW-TM4C-2.0.1.11577/grlib/pushbutton.c | C | mpl-2.0 | 31,307 |
#include <stdio.h>
int main(int argc, char const *argv[])
{
//COQ=customer order quantity, COQV=COQ value, SV= Stock value
int COQ,COQV,Credit,SV;
if ((COQ<SV)&&(Credit>=COQV))
{
printf("Supply successfull\n");
}
else if ((COQ<SV)&&(Credit<COQV))
{
/* code */
printf("Amount given is less than value of sto... | saarques/Cprogramming | company_policy.c | C | mpl-2.0 | 472 |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http... | vshymanskyy/Espruino | src/jspin.c | C | mpl-2.0 | 13,871 |
/*-------------------------------------------------------------------------
*
* pqmq.c
* Use the frontend/backend protocol for communication over a shm_mq
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/ba... | zeroae/postgres-xl | src/backend/libpq/pqmq.c | C | mpl-2.0 | 7,913 |
#include "legato.h"
#include "interfaces.h"
#define dhubIO_DataType_t io_DataType_t
static bool IsEnabled = false;
static le_timer_Ref_t Timer;
#define LATITUDE_NAME "location/value/latitude"
#define LONGITUDE_NAME "location/value/longitude"
#define PERIOD_NAME "location/period"
#define ENABLE_NAME "location/enable... | legatoproject/legato-af | apps/sample/datahubGps/gpsSensor/gpsSensor.c | C | mpl-2.0 | 5,575 |
/* Copyright (C) 2015, Hsiang Kao (e0e1e) <0xe0e1e@gmail.com>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <openssl/evp.h>
#include "highway/encrypt... | MaticsL/highway_client-libuv | encrypt_rc4-md5.c | C | mpl-2.0 | 1,858 |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* 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
* https://www.openssl.org/source/l... | FriendSoftwareLabs/friendup | libs-ext/openssl/crypto/cversion.c | C | agpl-3.0 | 1,997 |
/****************************************************************
* *
* Copyright 2001, 2009 Fidelity Information Services, 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 *
*... | ChristyV/fis-gtm | sr_vvms/ojparams.c | C | agpl-3.0 | 7,183 |
/*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2018, 2021 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Fo... | shentino/kotaka | mud/home/Verb/sys/verb/ooc/wiz/sitebans.c | C | agpl-3.0 | 2,528 |
/*
===========================================================================
Return to Castle Wolfenstein multiplayer GPL Source Code
Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company.
This file is part of the Return to Castle Wolfenstein multiplayer GPL Source Code (RTCW MP Source Code).
RTCW ... | D4edalus/CoD4x1.8_Server_Pub | src/g_cmds.c | C | agpl-3.0 | 23,983 |
// regversion.c - Oniguruma (regular expression library)
// Copyright (c) 2002-2020 K.Kosako All rights reserved.
//
#include "regint.h"
#pragma hdrstop
extern const char * onig_version(void)
{
static char s[12];
/*xsnprintf*/slsprintf_s(s, sizeof(s), "%d.%d.%d", ONIGURUMA_VERSION_MAJOR, ONIGURUMA_VERSION_MINOR, O... | papyrussolution/OpenPapyrus | Src/OSF/oniguruma/src/regversion.c | C | agpl-3.0 | 608 |
/*
* Realmedia RTSP protocol (RDT) support.
* Copyright (c) 2007 Ronald S. Bultje
*
* 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.... | ging/isabel | lib/ffmpeg/Win32/src/ffmpeg/libavformat/rdt.c | C | agpl-3.0 | 18,890 |
#include "fitz-imp.h"
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
struct fz_style_context_s
{
int refs;
char *user_css;
int use_document_css;
};
static void fz_new_style_context(fz_context *ctx)
{
if (ctx)
{
ctx->style = fz_malloc_struct(ctx, fz_style_context);
ctx->style->r... | fluks/mupdf-x11-bookmarks | source/fitz/context.c | C | agpl-3.0 | 8,170 |
/* gzlib.c -- zlib functions common to reading and writing gzip files
* Copyright (C) 2004-2017 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
#if defined(_WIN32) && !defined(__BORLANDC__)
# define LSEEK _lseeki64
#else
#if defined(_LARGEFILE64_SOURCE) &... | sagiadinos/garlic-player | src/ext/zlib/gzlib.c | C | agpl-3.0 | 16,709 |
/* $OpenBSD: bcrypt_pbkdf.c,v 1.4 2013/07/29 00:55:53 tedu Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
* 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... | FriendSoftwareLabs/friendup | libs-ext/libssh2/src/bcrypt_pbkdf.c | C | agpl-3.0 | 6,092 |
/*
* Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
*
* 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
* https://www.openssl.org/source/licens... | FriendSoftwareLabs/friendup | libs-ext/openssl/providers/common/provider_util.c | C | agpl-3.0 | 7,174 |
/*
* qemu_domain.h: QEMU domain private state
*
* Copyright (C) 2006-2011 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; e... | sshah-solarflare/Libvirt-PCI-passthrough- | src/qemu/qemu_domain.c | C | lgpl-2.1 | 17,049 |
/*
aim_rxqueue.c
This file contains the management routines for the receive
(incoming packet) queue. The actual packet handlers are in
aim_rxhandlers.c.
*/
#include "aim.h"
/*
This is a modified read() to make SURE we get the number
of bytes we are told to, otherwise block.
*/
int Read(int fd, u_char... | midendian/libfaim | deprecated/aim_rxqueue.orig.c | C | lgpl-2.1 | 5,386 |
/* Copyright (C) 2008-2011 D. V. Wiebe
*
***************************************************************************
*
* This file is part of the GetData project.
*
* GetData 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
... | syntheticpp/dirfile | test/convert_int32_int64.c | C | lgpl-2.1 | 2,026 |
/*
* Copyright (C) 2007-2010 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.1 of the License, or (at your option) any later version.
*
* This l... | hjwsm1989/libvirt | src/util/iptables.c | C | lgpl-2.1 | 21,945 |
/*
* Multisim: a microprocessor architecture exploration framework
* Copyright (C) 2014 Tommy Thorn
*
* 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 Li... | tommythorn/multisim | loadelf_temp.c | C | lgpl-2.1 | 6,328 |
/*
* The implementation of rb tree.
* Copyright (C) 2008 - 2014 Wangbo
*
* 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... | activesys/libcstl | src/cstl_rb_tree.c | C | lgpl-2.1 | 42,916 |
/*
* crypt.c - blowfish-cbc code
*
* This file is part of the SSH Library
*
* Copyright (c) 2003 by Aris Adamantiadis
*
* The SSH 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 ... | tux-mind/platform_external_libssh | src/packet_crypt.c | C | lgpl-2.1 | 5,124 |
#include "clar_libgit2.h"
#include "git2/sys/repository.h"
#include "fileops.h"
#include "ignore.h"
#include "status_helpers.h"
#include "posix.h"
#include "util.h"
#include "path.h"
static void cleanup_new_repo(void *path)
{
cl_fixture_cleanup((char *)path);
}
void test_status_worktree_init__cannot_retrieve_the_st... | raybrad/libit2 | tests/status/worktree_init.c | C | lgpl-2.1 | 10,050 |
/*
* bsb2png.c - Convert a bsb raster image to a Portable Network Graphics (png).
* See http://www.libpng.org for details of the PNG format and how
* to use libpng.
*
* Copyright (C) 2004 Stefan Petersen <spetm@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* mod... | nohal/libbsb | bsb2png.c | C | lgpl-2.1 | 3,266 |
/******************************************************************************
*
* Copyright (C) 2006-2015 by
* The Salk Institute for Biological Studies and
* Pittsburgh Supercomputing Center, Carnegie Mellon University
*
* This program is free software; you can redistribute it and/or
* modify it under the ter... | jczech/appveyor_test | mcell/src/logging.c | C | lgpl-2.1 | 8,209 |
/* mgrp_test.c
*
* Test messenger group broadcast/receive functionality and concurrency.
* Each thread broadcasts a counter from 0 to ITERS, to all other threads
* (but not itself).
* Every receiving thread should sum received integers into a per-thread
* rx_sum variable.
* Every thread should accumulate the sam... | siriobalmelli/nonlibc | test/mgrp_test.c | C | lgpl-2.1 | 3,010 |
/* Copyright 2010, 2011 Michael Steinert
* This file is part of Log4g.
*
* Log4g 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 ... | msteinert/log4g | log4g/logging-event.c | C | lgpl-2.1 | 13,236 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* qimsys *
* Copyright (C) 2010-2016 by Tasuku Suzuki <stasuku@gmail.com> *
* Copyright (C) 2016 by Takahiro Hashimoto <kenya888@gmail.com> *
* ... | qt-users-jp/qimsys | src/plugins/clients/gtkimmodule/gtk2/qimsysimcontext.c | C | lgpl-2.1 | 24,160 |
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include "ibuf.h"
/** Set the effective read position. */
int ibuf_seek(ibuf* in, unsigned offset)
{
iobuf* io;
unsigned buf_start;
io = &(in->io);
buf_start = io->offset - io->buflen;
if (offset >= buf_start && offset <= io->offset)
io->bu... | bruceg/bglibs | iobuf/ibuf_seek.c | C | lgpl-2.1 | 572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.