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 |
|---|---|---|---|---|---|
/* 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 <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 |
/* 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 |
/*
* 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 |
/*
* 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 |
#define _XOPEN_SOURCE
#include <stdlib.h>
#include "zdtmtst.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <termios.h>
#include <sys/ioctl.h>
const char *test_doc = "Check a controlling terminal, if a proper fd belongs to another session leader";
c... | efiop/criu | test/zdtm/static/tty03.c | C | lgpl-2.1 | 2,090 |
/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
* (Software) available for public use and benefit with the expectation
* that others will use, modify and enhance the Software and contribute
* tho... | MeshSr/ofs-sw | udatapath/datapath.c | C | lgpl-2.1 | 22,571 |
/* -*- OpenSAF -*-
*
* (C) Copyright 2010 The OpenSAF Foundation
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
* under the GNU Les... | kenzaburo/OpenSaf-FrameWork | osaf/services/saf/cpsv/cpd/cpd_main.c | C | lgpl-2.1 | 1,526 |
#include <hildon/hildon.h>
#include <exempi/xmp.h>
#include <json-glib/json-glib.h>
#include <libintl.h>
#include <sharing-tag.h>
#include <locale.h>
#include <math.h>
#include <string.h>
#include <gst/gst.h>
#include "places.h"
#define SCHEMA_IPTC "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
#define SCHEMA_EXIF "h... | community-ssu/sharing-service-facebook | src/places.c | C | lgpl-2.1 | 13,837 |
/*
(c) Copyright 2001-2010 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hundt <andi@fischlustig.de>,
Sven Neumann <neo@di... | ecbtnrt/my-dfb | src/core/input.c | C | lgpl-2.1 | 94,789 |
/* $Id: glade-databox.c 4 2008-06-22 09:19:11Z rbock $ */
/* -*- Mode: C; c-basic-offset: 4 -*-
* libglade - a library for building interfaces from XML files at runtime
* Copyright (C) 1998-2001 James Henstridge <james@daa.com.au>
* Copyright 2001 Ximian, Inc.
*
* glade-databox.c: support for canvas widgets in li... | drahnr/gtkdatabox-radioactive | ui/glade-databox.c | C | lgpl-2.1 | 1,875 |
/* Test driver for thbrk
*/
#define MAXLINELENGTH 1000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <thai/thbrk.h>
/* run with "-i" argument to get the interactive version
otherwise it will run the self test and exit */
int main (int argc, char* argv[])
{
thchar_t str[MAXLINELENGTH];
... | pexip/os-libthai | tests/test_thbrk.c | C | lgpl-2.1 | 2,400 |
/**
* OpenAL cross platform audio library
* Copyright (C) 1999-2007 by authors.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your op... | jims/openal-soft | Alc/ALc.c | C | lgpl-2.1 | 89,222 |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <rpnmacros.h>
#include <unistd.h>
#include <zfstlib.h>
#include <malloc.h>
#include <string.h>
int c_armn_compress32(unsigned char *, float *, int, int, int, int);
int c_armn_uncompress32(float *fld, unsigned char *zstream, int ni, int nj, int nk, int... | mfvalin/rmnlib | compresseur/armn_compress_32.c | C | lgpl-2.1 | 32,194 |
/*
* Copyright (C) 2009-2012 Felipe Contreras
*
* Author: Felipe Contreras <felipe.contreras@gmail.com>
*
* This file may be used under the terms of the GNU Lesser General Public
* License version 2.1.
*/
#include "gstav_h264enc.h"
#include "gstav_venc.h"
#include "plugin.h"
#include <libavcodec/avcodec.h>
#in... | felipec/gst-av | gstav_h264enc.c | C | lgpl-2.1 | 2,840 |
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
* Copyright (C) <2003> David Schleef <ds@schleef.org>
* Copyright (C) <2010> Sebastian Dröge <sebastian.droege@collabora.co.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library G... | jahrome/gst-plugins-good | gst/videofilter/gstvideobalance.c | C | lgpl-2.1 | 25,489 |
/* Static5 is engaged with type BIGINT and ggd(vec) */
#include "lie.h"
#ifdef __STDC__
static entry gcd(entry x,entry y);
static entry abs_minimum(vector* v_vec);
static boolean equal_elements(vector* v_vec);
#endif
static bigint* bin_from_int(i) intcel* i;
{ entry k = i->intval; freemem(i); return entry2bigint(k); ... | garetxe/lie-singlets | static/static5.c | C | lgpl-2.1 | 3,038 |
//
// YTS.c
//
// $Author: why $
// $Date: 2005/09/20 23:42:51 $
//
// Copyright (C) 2004 why the lucky stiff
//
// Well, this is the Yaml Testing Suite in the form of a plain C
// API. Basically, this is as good as C integration gets for Syck.
// You've got to have a symbol table around. From there, you can
// query... | ystk/tools-yocto1-rpm | syck/tests/YTS.c | C | lgpl-2.1 | 56,537 |
/*
* Library signature type test program
*
* Copyright (C) 2014-2022, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Fre... | libyal/libsigscan | tests/sigscan_test_signature.c | C | lgpl-3.0 | 11,212 |
/*
* Copyright (c) 2001-2003 Swedish Institute of Computer Science.
* 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 not... | PheeL79/diOS | src/osal/network/lwip/sys_arch.c | C | lgpl-3.0 | 14,130 |
#include <rlib/rbinfmt.h>
static void
dump_opt_hdr (RPeOptHdr * opt)
{
r_print ("\tLinkerVer: %u.%u\n", opt->major_linker_ver, opt->minor_linker_ver);
r_print ("\tEntrypoint: 0x%.8x\n", opt->addr_entrypoint);
r_print ("\tCode addr: 0x%.8x\n", opt->base_code);
r_print ("\tCode size: 0x%.8x\n", opt->size_code... | ieei/rlib | example/rpedump.c | C | lgpl-3.0 | 4,789 |
#include "zjson.h"
#define Start 0x1<<1
#define ObjectInitial 0x1<<2
#define MemberKey 0x1<<3
#define KeyValueDelimiter 0x1<<4
#define MemberValue 0x1<<5
#define MemberDelimiter 0x1<<6
#define ObjectFinish 0x1<<7
#define ArrayInitial ... | zuoxinyu/zlibc | misc/zjson/src/parser.c | C | lgpl-3.0 | 10,987 |
/*
* Mounts a BitLocker Drive Encrypted (BDE) volume
*
* Copyright (C) 2011-2015, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published ... | windworst/libbde | bdetools/bdemount.c | C | lgpl-3.0 | 55,128 |
/*
* Copyright(c) 2013 Tim Ruehsen
* Copyright(c) 2015-2016 Free Software Foundation, Inc.
*
* This file is part of libwget.
*
* Libwget 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... | darnir/wget2 | libwget/http_highlevel.c | C | lgpl-3.0 | 9,190 |
/*
* =====================================================================================
*
* Filename: select-sort.c
*
* Description:
*
* Version: 1.0
* Created: 12/23/2016 04:47:42 PM
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organ... | fengbohello/practice | clang/algorithm/select-sort.c | C | lgpl-3.0 | 2,362 |
/* radare - LGPLv3 - Copyright 2014-2015 - pancake, jvoisin, jfrankowski */
#include <dirent.h>
#include <r_core.h>
#include <r_lib.h>
#include <yara.h>
#undef R_API
#define R_API static
#undef R_IPI
#define R_IPI static
// true if the plugin has been initialized.
static int initialized = false;
static bool print_s... | radare/radare2-extras | yara/yara/core_yara.c | C | lgpl-3.0 | 13,849 |
/***********************************************************************
Copyright (c) 2006-2011, Skype Limited. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, (subject to the limitations in the disclaimer below)
are permitted provided that the following con... | fingi/csipsimple | jni/silk/sources/SILK_SDK_SRC_FLP_v1.0.8/src/SKP_Silk_noise_shape_analysis_FLP.c | C | lgpl-3.0 | 18,214 |
#include "samplesat.h"
#include "memalloc.h"
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
uint32_t num_sorts = 100;
uint32_t num_consts = 1000;
uint32_t buf_len = 11;
#define ENABLE 0
typedef struct inclause_buffer_t {
int32_t size;
input_literal_t ** data;
} inclause_buffer_t... | SRI-CSL/pce | src/test_samplesat.c | C | lgpl-3.0 | 7,311 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fasta.h"
#include "util.h"
fastap fa_alloc(int maxlen) {
fastap fa;
fa = (fastap) malloc(sizeof(struct fasta));
fa->id = (char *) malloc(maxlen+1);
fa->data = (char *) malloc(maxlen+1);
fa->maxlen = maxlen;
return fa;
}
int fa_next(fasta... | gdbzork/bode_cpp | tools_legacy/src/util/fasta.c | C | lgpl-3.0 | 1,384 |
/*
counters.c - code pertaining to encoders and other counting methods
Part of Grbl
Copyright (c) 2014 Adam Shelly
Grbl 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... | ashelly/grbl | counters.c | C | lgpl-3.0 | 3,323 |
/*
Copyright 2015 Infinitycoding all rights reserved
This file is part of the mercury c-library.
The mercury c-library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either versio... | infinitycoding/mercury | sys/linux/I386/signal.c | C | lgpl-3.0 | 1,257 |
/* radare - LGPL - Copyright 2009-2017 - pancake */
#include <r_debug.h>
#include <r_list.h>
/* Print out the JSON body for memory maps in the passed map region */
static void print_debug_map_json(RDebug *dbg, RDebugMap *map, bool prefix_comma) {
dbg->cb_printf ("%s{", prefix_comma ? ",": "");
if (map->name && *map... | skuater/radare2 | libr/debug/map.c | C | lgpl-3.0 | 10,722 |
#include "fat.h"
#include "disk.h"
#include "malloc.h"
void read_fs(struct fat_fs *b) {
read_sector((unsigned char *) &(b->bpb), 0, 0);
b->total_sectors = b->bpb.n_sectors;
b->fat_size = b->bpb.spf;
b->root_size = ((b->bpb.n_dirents * 32)
+ (b->bpb.bps - 1)) / b->bpb.bps;
b->first_data = b->bpb.n_hidden
... | Firewiz/fireOS | fat.c | C | unlicense | 1,548 |
#include<stdio.h>
void heap_sort(int[], int);
void build_max_heap(int[], int);
void max_heapify(int[],int,int);
void swap(int*, int*);
void display(int[],int);
int main(){
int n = 11;
int a[] = {55,3,2,5,77,44,65,53,88,31,9};
display(a,n);
heap_sort(a,n);
display(a,n);
return 0;
}
void heap_sort(int a[], int n)... | miansari/sorting-programs-in-C | heapsort.c | C | unlicense | 1,129 |
// vi: nu:noai:ts=4:sw=4
//
// c_defs
//
// Created by bob on 1/14/19.
//
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, c... | 2kranki/libCmn | programs/c_defs/src/c_defs.c | C | unlicense | 3,011 |
//
// Author: Wolfgang Spraul
//
// This is free and unencumbered software released into the public domain.
// For details see the UNLICENSE file at the root of the source tree.
//
#include "model.h"
#include "control.h"
// for slx9 and slx9
#define NUM_ROWS 4
#define FRAMES_DATA_START 0
//#define FRAMES_DATA_LEN ... | DeanoC/fpgatools | libs/parts.c | C | unlicense | 90,903 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2006-2020. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | lrascao/otp | erts/emulator/sys/common/erl_check_io.c | C | apache-2.0 | 95,170 |
/*
* Bean Java VM
* Copyright (C) 2005-2015 Christian Lins <christian@lins.me>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | cli/bean | src/exec/inc.c | C | apache-2.0 | 1,204 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
#include <string.h>
#include <unistd.h>
#include <ckit/event.h>
#include <ckit/debug.h>
#include <ckit/time.h>
int event_open(void)
{
return kqueue();
}
void event_clos... | erimatnor/libckit | src/event_kqueue.c | C | apache-2.0 | 3,368 |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* COPYRIGHT (C) 2007
* THE REGENTS OF THE UNIVERSITY OF MICHIGAN
* ALL RIGHTS RESERVED
*
* Permission is granted to use, copy, create derivative works
* and redistribute this software and such derivative works
* for any purpose, so long as the na... | gerritjvv/cryptoplayground | kerberos/kdc/src/krb5-1.16/src/plugins/preauth/pkinit/pkinit_matching.c | C | apache-2.0 | 22,754 |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/krb5/krb/pac.c */
/*
* Copyright 2008 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* ... | gerritjvv/cryptoplayground | kerberos/kdc/src/krb5-1.16/src/lib/krb5/krb/pac.c | C | apache-2.0 | 34,236 |
/**
* @file ff_lpc546xx.c
* @brief board ID for the NXP LPC54608Xpresso board
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file exc... | google/DAPLink-port | source/board/ff_lpc546xx.c | C | apache-2.0 | 1,177 |
/*
* 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 ... | axbannaz/axis2-c | src/core/transport/http/common/http_simple_response.c | C | apache-2.0 | 18,252 |
/**
* FreeRDP: A Remote Desktop Protocol Client
* RDP Security
*
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | mister-r/FreeRDP | libfreerdp-core/security.c | C | apache-2.0 | 18,889 |
/******************** (C) COPYRIGHT 2012 WildFire Team **************************
* 文件名 :main.c
* 描述 :华邦 2M串行flash测试,并将测试信息通过串口1在电脑的超级终端中打印出来。
* 实验平台:野火STM32开发板
* 库版本 :ST3.5.0
*
* 作者 :wildfire team
* 论坛 :http://www.amobbs.com/forum-1008-1.html
* 淘宝 :http://firestm32.taobao.com
***********... | sdlylshl/Gateway | Gateway_STM32/user/System/SPI/main.c | C | apache-2.0 | 3,926 |
/** @file
An example program which illustrates adding and manipulating an
HTTP response MIME header:
Usage: response_header_1.so
add read_resp_header hook
get http response header
if 200, then
add mime extension header with count of zero
add mime ex... | persiaAziz/trafficserver | example/response_header_1/response_header_1.c | C | apache-2.0 | 10,717 |
#include <assert.h>
#include <pthread.h>
#include <stdint.h>
#include <time.h>
#include "../lib/includes.h"
#include "../lib/blacklist.h"
#include "../lib/logger.h"
#include "../lib/xalloc.h"
#include "iterator.h"
#include "aesrand.h"
#include "shard.h"
#include "state.h"
struct iterator {
cycle_t cycle;
uint8_t ... | scarito/zmap-android | src/iterator.c | C | apache-2.0 | 2,428 |
/*
* Copyright 2012 Rackspace
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | cp16net/virgo-base | lib/virgo_conf.c | C | apache-2.0 | 6,480 |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | wmpluto/esp-idf | examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c | C | apache-2.0 | 12,057 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.