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 |
|---|---|---|---|---|---|
/* @(#)abs.c 1.3 */
/* 3.0 SID # 1.2 */
/*LINTLIBRARY*/
int
abs(arg)
register int arg;
{
return (arg >= 0 ? arg : -arg);
}
| sergev/vak-opensource | compilers/pcc-e1kb/libc/gen/abs.c | C | apache-2.0 | 125 |
int
param_verbosity
= 0;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int
argc,
char* argv[])
{ /* main for send-osdp-command */
char
arguments[1024];
char
command[1024];
char
shell_command[1024];
int
status;
char
... | JixunW-BSquare/libosdp-conformance | src-ui/send-osdp-command.c | C | apache-2.0 | 2,871 |
int main(){
int x,y;
int a[10];
x=1U;
while (x <= 10U){
y=10-x;
a[y] = -1;
x++;
}
return 1;
}
| ssvlab/esbmc-gpu | regression/esbmc/03_nec14/main.c | C | apache-2.0 | 134 |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/strided/special/smskabs2/benchmark/c/benchmark.length.c | C | apache-2.0 | 3,735 |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Zynga Inc.
* Copyright 2010 NorthScale, Inc.
*
* 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 c... | zbase/libvbucket | src/vbucketkeygen.c | C | apache-2.0 | 3,932 |
/*
* physicalMgr.c
*
* Copyright 2012 James Cowgill
*
* 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 ... | jcowgill/chaff | kernel/src/mm/physical.c | C | apache-2.0 | 4,837 |
/*-------------------------------------------------------------------------
*
* fe-exec.c
* functions related to sending a query down to the QEs from the QD
* This is similar to interfaces/libpq/fe-exec.c, but contains GP enhancements
* and doesn't support protocol2.
*
* Portions Copyright (c) 2006-2009, G... | janebeckman/gpdb | src/backend/gp_libpq_fe/fe-exec.c | C | apache-2.0 | 87,376 |
/**
* Copyright 2017 IBM Corporation
*
* 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... | mfcloud/python-zvm-sdk | zthin-parts/zthin/src/vmapiImageVolumeShare.c | C | apache-2.0 | 3,106 |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "func.h"
void sequential (int n, int seed, int * circle_count)
{
int i;
srand(seed);
*circle_count = 0;
for (i=0; i<n; i++)
{
double x, y;
x = (double) rand() / ((double)RAND_MAX + 1.0e0);
y = (double) rand() / ((double... | lstorchi/mpisttest | pimc/sequential.c | C | apache-2.0 | 427 |
/* Generic definitions */
#define PACKAGE it.unimi.dsi.fastutil.longs
#define VALUE_PACKAGE it.unimi.dsi.fastutil.ints
/* Assertions (useful to generate conditional code) */
#unassert keyclass
#assert keyclass(Long)
#unassert keys
#assert keys(primitive)
#unassert valueclass
#assert valueclass(Integer)
#unassert val... | karussell/fastutil | src/it/unimi/dsi/fastutil/longs/Long2IntMaps.c | C | apache-2.0 | 15,124 |
/**
* @file stm32f4_driver_i2c.c
* @brief I2C driver implementation for STM32F4 chips
* @author Florin Iucha <florin@signbit.net>
* @copyright Apache License, Version 2.0
*/
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 0x8000-0000/fx3 | source/chips/stm32fxxx/src/stm32f4_driver_i2c.c | C | apache-2.0 | 3,324 |
#include <stdio.h>
#include <stdlib.h>
#include <libnet.h>
int main (void)
{
NET_DRIVERNAME *drivers;
int i, j, class;
char buf[1024];
net_init();
puts ("Defined network classes:");
for (j = 0; j < NET_CLASS_MAX; j++)
if (net_classes[j].name)
printf ("%d\t%s\n", j, net_classes[j].name);
puts ("Ch... | Aliced3645/DataCenterMarketing | libnet/tests/classes.c | C | apache-2.0 | 872 |
/* Copyright (C) 2017 haniu (niuhao.cn@gmail.com)
*
* 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... | newser/TitanSDK | platform/source/network/ssh/message/tt_ssh_msg_userauth_failure.c | C | apache-2.0 | 6,738 |
/*
* Copyright 2009 Maarten Lankhorst
* Copyright 2011 Andrew Eikum for CodeWeavers
*
* 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 yo... | howard5888/wine | wine-1.7.7/dlls/mmdevapi/main.c | C | apache-2.0 | 8,803 |
/**
* @file: animator.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <utils/vec.h>
#include <display/animator.h>
#include <display/dtile.h>
#include <display/dpenguin.h>
#define MAX_ANIMATION 10
/**
* Description d'une animation.
*/
struct animation {
void *o;
int type;
struct vec3 trans;
... | tomtix/penguins | display/animator.c | C | apache-2.0 | 6,762 |
/******************************************************************************
*
* Copyright 2017 Xaptum, Inc.
*
* 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
*
* h... | xaptum/ecdaa | common/amcl-extensions/ecp2_ZZZ.c | C | apache-2.0 | 3,280 |
//- Copyright 2013 the Neutrino authors (see AUTHORS).
//- Licensed under the Apache License, Version 2.0 (see LICENSE).
#include "alloc.h"
#include "behavior.h"
#include "builtin.h"
#include "freeze.h"
#include "heap.h"
#include "interp.h"
#include "io/iop.h"
#include "runtime.h"
#include "tagged-inl.h"
#include "try... | tundra/neutrino | src/c/value.c | C | apache-2.0 | 117,872 |
#include "../atrshmlog_internal.h"
/**
* \file atrshmlogimpl_set_fence_8.c
*/
/**
* \brief We switch a fence on or off
*
* \return
* The old flag for fence.
*
* test t_set_fence_8.c
*/
atrshmlog_ret_t atrshmlog_set_thread_fence_8(const atrshmlog_int32_t i_switch)
{
return atrshmlog_set_thread_fence(&atrs... | atrsoftgmbh/atrshmlog | src/impls/atrshmlogimpl_set_fence_8.c | C | apache-2.0 | 356 |
/*
* Copyright 2014-2017 Jetperch LLC
*
* 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 agre... | mliberty1/embc | test/dbc_test.c | C | apache-2.0 | 2,749 |
//
// Created by zhangrongxiang on 2017/10/9 13:13
// File c
//
#include <netinet/in.h>
#include <sys/socket.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/select.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
#define MAXLINE 1024
#define IPADDRESS "127... | zhangrxiang/learn-c | basic/2017/10/09/c.c | C | apache-2.0 | 2,186 |
/**
* Copyright [2015] Tianfu Ma (matianfu@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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | matianfu/buddy | buddy.c | C | apache-2.0 | 3,346 |
/*
* consolemap.c
*
* Mapping from internal code (such as Latin-1 or Unicode or IBM PC code)
* to font positions.
*
* aeb, 950210
*/
#include <linux/kd.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/malloc.h>
#include <asm/segment.h>
#include "consolemap.h"
static unsigned char * translation... | straceX/Ectoplasm | linux-1.2.0/linux/drivers/char/consolemap.c | C | apache-2.0 | 9,369 |
#include <tcl.h>
#include <hwloc.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "topology.h"
#include "cpubind.h"
#include "bitmap.h"
/*
* Helper function for parse_cpubind_args below. Processes all the options
*/
static int parse_set_options (Tcl_Interp* interp, int objc, Tcl_Obj* CONST ob... | andreas-kupries/tcl-hwloc | generic/cpubind.c | C | bsd-2-clause | 7,067 |
#include <assert.h>
#include "id.h"
#include "id_internal.h"
bool check_id(ast_t* id_node, const char* desc, int spec)
{
assert(id_node != NULL);
assert(ast_id(id_node) == TK_ID);
assert(desc != NULL);
const char* name = ast_name(id_node);
assert(name != NULL);
char prev = '\0';
// Ignore leading $, h... | jemc/ponyc | src/libponyc/ast/id.c | C | bsd-2-clause | 3,655 |
#include "ledctl.h"
#include "led_info.h"
#include "brightness.h"
#include "trigger.h"
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
/* For usage, errors */
char *program_name;
int handle_set_brightness(char *led_str, char *brightness_str) {
int err;
char *strtol_endptr;
... | fennekki/ledctl | ledctl.c | C | bsd-2-clause | 6,390 |
/*
Copyright (c) 2013, Jon Wolfe, Anibit Technology
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of condition... | anibit/lightdancer | code/lightdancer/spwm.c | C | bsd-2-clause | 2,248 |
/*
Copyright (c) 2014, William Magato
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the f... | wilseypa/llamaOS | src/sys/glibc-2.17/sysdeps/llamaos/nsswitch.c | C | bsd-2-clause | 1,898 |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... | kit-transue/software-emancipation-discover | model_server/obj/src/gettime.c | C | bsd-2-clause | 4,854 |
/** \file sst25x.c
*
* \brief Provides access to the SST25x series of serial flash memory chips.
*
* The SST25x series of serial flash memory chips are a group of external,
* non-volatile memory chips from Silicon Storage Technology. Using
* external (i.e. not integrated with the microcontroller) memory off... | someone42/bitsafe-tester | sst25x.c | C | bsd-2-clause | 14,787 |
/*
* mpc -- A Multiple Protocol Client.
* Copyright (c) 2013, FengGu <flygoast@gmail.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 reta... | flygoast/mpc | src/mpc_epoll.c | C | bsd-2-clause | 5,412 |
/* Copyright (C) 2013-2016, The Regents of The University of Michigan.
All rights reserved.
This software was developed in the APRIL Robotics Lab under the
direction of Edwin Olson, ebolson@umich.edu. This software may be
available under alternative licensing terms; contact the address above.
Redistribution and use i... | leonidk/apriltrack | src/common/time_util.c | C | bsd-2-clause | 4,300 |
/**
* \file
*
* Copyright (c) 2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* 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 ... | sam-geek/ArduinoModule-CMSIS-Atmel | CMSIS-Atmel/CMSIS/Device/ATMEL/samc21/source/iar/startup_samc21.c | C | bsd-2-clause | 9,531 |
/*-
* Copyright (c) 2012-2013 Jan Breuer,
*
* All Rights Reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of... | cerik/scpi-parser | examples/test-tcp/main.c | C | bsd-2-clause | 5,709 |
/*
Copyright 2017 Regents of the University of California
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo... | dhimnsen/OpenSpeechPlatform-UCSD | xcode/libosp/beam_forming/beam_forming.c | C | bsd-2-clause | 3,069 |
/******************************************************************************
*
* Module Name: dmtbdump - Dump ACPI data tables that contain no AML code
*
*****************************************************************************/
/******************************************************************************... | cmsd2/ChrisOS | libs/acpica/source/common/dmtbdump.c | C | bsd-2-clause | 84,099 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
static ngx_int_t ngx_test_full_name(ngx_str_t *name);
static ngx_atomic_t temp_number = 0;
ngx_atomic_t *ngx_temp_number = &temp_number;
ngx_atomic_int_t ngx_random_number = 123456;
ngx... | liqingqiya/nginx | src/core/ngx_file.c | C | bsd-2-clause | 26,311 |
/* generated */
#include "class.h"
static const struct range ranges[] = {
{ 0x10B60UL, 0x10B72UL },
{ 0x10B78UL, 0x10B7FUL }
};
const struct class utf8_Inscriptional_Pahlavi = {
ranges,
sizeof ranges / sizeof *ranges
};
| katef/libfsm | src/libre/class/utf8_Inscriptional_Pahlavi.c | C | bsd-2-clause | 228 |
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2011 Varnish Software AS
* All rights reserved.
*
* Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:... | drwilco/varnish-cache-drwilco | bin/varnishd/cache/cache_center.c | C | bsd-2-clause | 45,271 |
/*
* Copyright 2018 Shannon Stewman
*
* See LICENCE for the full copyright terms.
*/
#include <assert.h>
#include <stdlib.h>
#include <adt/hashset.h>
typedef int item_t;
#include "hashset.inc"
static int
cmp_int(const void *a, const void *b)
{
const int *pa = * (const int * const *) a;
const int *pb = * (con... | katef/libfsm | tests/hashset/hashset1.c | C | bsd-2-clause | 2,182 |
/**
Copyright © 2015 2coding. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following d... | 2coding/Codec | src/base64.c | C | bsd-3-clause | 4,646 |
/**
* @file
*
* @brief cryptographic interface using the libcrypto library (part of the OpenSSL project)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include "crypto.h"
#include "gpg.h"
#include "helper.h"
#include "openssl_operations.h"
#include <kdbassert.h>
#include <kdbe... | BernhardDenner/libelektra | src/plugins/crypto/openssl_operations.c | C | bsd-3-clause | 16,010 |
/*-
* Copyright (c) 2003-2004 Tim J. Robbins.
* 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 o... | dcui/FreeBSD-9.3_kernel | sys/fs/msdosfs/msdosfs_fileno.c | C | bsd-3-clause | 5,275 |
/* $NetBSD: hpcioman.c,v 1.6 2002/01/13 14:00:38 takemura Exp $ */
/*-
* Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by UCHIYAMA Yasushi.
*
* Redistribution and use in source and binary forms, with or wi... | MarginC/kame | netbsd/sys/dev/hpc/hpcioman.c | C | bsd-3-clause | 6,054 |
/*
* flushbuf.c - flush a buffer
*/
/* $Header: flushbuf.c,v 1.6 91/06/10 17:07:10 ceriel Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include "loc_incl.h"
#include <sys/types.h>
off_t _lseek(int fildes, off_t offset, int whence);
ssize_t _write(int d, const char *buf, size_t nbytes);
int _isatty(int d);
exter... | davidgiven/minix2 | minix-1.7/fs/usr/src/lib/stdio/flushbuf.c | C | bsd-3-clause | 2,865 |
#include <stdbool.h>
#include <assert.h>
#include <setjmp.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "CuTest.h"
#include <stdint.h>
#include "bt.h"
#include "bt_selector_sequential.h"
static bt_pieceselector_i iface = {
.new = bt_sequential_selector_new,
.peer_giveback_piece = bt... | willemt/yabtorrent | tests/test_selector_sequential.c | C | bsd-3-clause | 3,959 |
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdio.h>
#include "usart_driver.h"
#include "xmegabaud.h"
#include "uart.h"
/***USART Buffers ***/
USART_data_t USARTBuf_gsm;
USART_data_t USARTBuf_mbus;
USART_data_t USARTBuf_ext;
void init_usart_gsm(void)
{
/* Select USART and initiali... | ganehag/brown-fox | uart.c | C | bsd-3-clause | 4,647 |
#include <linux/types.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/dmi.h>
#include <linux/bootmem.h>
#include <linux/slab.h>
static char * __init dmi_string(struct dmi_header *dm, u8 s)
{
u8 *bp = ((u8 *) dm) + dm->length;
char *str = "";
if (s) {
s--;
while (s... | ut-osa/syncchar | linux-2.6.16-unmod/arch/i386/kernel/dmi_scan.c | C | bsd-3-clause | 7,143 |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*/
#include "ad_pfs.h"
void ADIOI_PFS_Flush(ADIO_File fd, int *error_code)
{
int err, np_total, np_comm;
static char myname[] = "ADIOI_PFS_FLUSH";
/* fsync is no... | gnu3ra/SCC15HPCRepast | INSTALLATION/mpich2-1.4.1p1/src/mpi/romio/adio/ad_pfs/ad_pfs_flush.c | C | bsd-3-clause | 1,254 |
/*
* FreeRTOS Kernel V10.1.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, ... | openthread/ot-rtos | third_party/freertos/repo/FreeRTOS/Demo/lwIP_Demo_Rowley_ARM7/USB/USB-CDC.c | C | bsd-3-clause | 27,375 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_connect_socket_w32_spawnv_68a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-68a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data u... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_w32_spawnv_68a.c | C | bsd-3-clause | 5,861 |
/*
* Copyright (c) 2005-2017 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... | nschloe/seacas | packages/seacas/libraries/chaco/util/cpvec.c | C | bsd-3-clause | 2,472 |
/* --COPYRIGHT--,BSD
* Copyright (c) 2014, Texas Instruments Incorporated
* 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 copy... | ekawahyu/MSP430Ware | eclipse/plugins/com.ti.mcu.msp430.driverlib.product.ui_1.90.0.65/resources/empty/MSP430F5xx_6xx/driverlib/MSP430F5xx_6xx/deprecated/flash.c | C | bsd-3-clause | 15,521 |
/* BFD support for the ARM processor
Copyright 1994, 1997, 1999, 2000, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it a... | shaotuanchen/sunflower_exp | tools/source/binutils-2.16.1/bfd/cpu-arm.c | C | bsd-3-clause | 12,335 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53a.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-53a.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: realloc Allocate data using realloc()
* GoodSource: All... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE401_Memory_Leak/s03/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53a.c | C | bsd-3-clause | 3,530 |
/*
* Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993
* The Regents of the University of California. All rights reserved.
* (c) UNIX System Laboratories, Inc.
* All or some portions of this file are derived from material licensed
* to the University of California by American Telephone and Telegraph
* Co. or Unix... | MarginC/kame | freebsd5/sys/kern/kern_prot.c | C | bsd-3-clause | 46,480 |
/* const.c
*
* Globally declared constants
*
*
*
* SYNOPSIS:
*
* extern double nameofconstant;
*
*
*
*
* DESCRIPTION:
*
* This file contains a number of mathematical constants and
* also some needed size parameters of the computer arithmetic.
* The values are supplied as arrays of hexadecimal int... | huard/scipy-work | scipy/special/cephes/const.c | C | bsd-3-clause | 9,640 |
/****************************************************************************
* *
* cryptlib TLS Extension Management *
* Copyright Peter Gutmann 1998-2011 *
* *
****************************************************************************/
#if defined( INC_ALL )
... | GaloisInc/hacrypto | src/C/cryptlib/cryptlib-3.4.2/session/ssl_ext.c | C | bsd-3-clause | 44,932 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | gnu3ra/SCC15HPCRepast | INSTALLATION/hdf5-1.8.15-patch1/tools/perform/overhead.c | C | bsd-3-clause | 12,848 |
#include "font_rsrc.h"
#include <snlsys/mem_allocator.h>
#include <snlsys/ref_count.h>
#include <snlsys/snlsys.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H
#include <stdbool.h>
#ifndef NDEBUG
#define FT(func) ASSERT(0 == FT_##func)
#else
#define FT(func) FT_##func
#endif
struct font_syst... | vaplv/font_rsrc | src/font_rsrc.c | C | bsd-3-clause | 11,682 |
/**
* SmartCard-HSM PKCS#11 Module
*
* Copyright (c) 2013, CardContact Systems GmbH, Minden, Germany
* 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 ... | sc-hsm-ultralite/sc-hsm-ultralite | src/pkcs11/session.c | C | bsd-3-clause | 12,200 |
/*
* Copyright (c) 2015, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of... | flit/argon-rtos | test/kinetis/fsl_lpspi.c | C | bsd-3-clause | 54,675 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE195_Signed_to_Unsigned_Conversion_Error__rand_malloc_16.c
Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml
Template File: sources-sink-16.tmpl.c
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: rand Se... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s02/CWE195_Signed_to_Unsigned_Conversion_Error__rand_malloc_16.c | C | bsd-3-clause | 3,322 |
/* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42) (by Poul-Henning Kamp):
* <joerg@FreeBSD.ORG> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is... | jhbsz/OSI-OS | share/examples/libusb20/bulk.c | C | bsd-3-clause | 5,772 |
/* md2edge.c - edge sharing for MD2 model triangles */
/* Copyright NVIDIA Corporation, 2000. */
/* $Id: //sw/main/apps/OpenGL/mjk/md2shader/md2edge.c#17 $ */
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef __APPLE__
#include <GLUT/glut.h> // for GLfloat
#else
#include <GL/glut.h> // for GLfloat... | ayoubg/gem5-graphics | cgToolkit/usr/local/Cg/examples/OpenGL/advanced/gs_md2render/md2edge.c | C | bsd-3-clause | 33,258 |
/* starwars, Copyright (c) 1998-2014 Jamie Zawinski <jwz@jwz.org> and
* Claudio Matsuoka <claudio@helllabs.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all cop... | AstralDynamics/photo-tagger | xscreensaver-5.29/hacks/glx/starwars.c | C | bsd-3-clause | 28,653 |
#ifdef WITHOPENMP
#include <omp.h>
#endif
#include "cmontecarlo.h"
rk_state mt_state;
void
initialize_random_kit (unsigned long seed)
{
rk_seed (seed, &mt_state);
}
INLINE tardis_error_t
line_search (double *nu, double nu_insert, int64_t number_of_lines,
int64_t * result)
{
tardis_error_t ret_val = TARDIS_... | rajul/tardis | tardis/montecarlo/src/cmontecarlo.c | C | bsd-3-clause | 29,960 |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* (C) 2008 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "hydra.h"
static int exists(char *filename)
{
struct stat file_stat;
if ((stat(filename, &file_stat) < 0) || !(S_ISREG(file_stat.st_mode))) {
return 0; ... | gnu3ra/SCC15HPCRepast | INSTALLATION/mpich2-1.4.1p1/src/pm/hydra/utils/args/args.c | C | bsd-3-clause | 10,863 |
/* $NetBSD: if_lmc_common.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */
/*-
* Copyright (c) 1997-1999 LAN Media Corporation (LMC)
* All rights reserved. www.lanmedia.com
*
* This code is written by Michael Graff <graff@vix.com> for LMC.
* The code is derived from permitted modifications to software created
* by... | MarginC/kame | openbsd/sys/dev/pci/if_lmc_common.c | C | bsd-3-clause | 11,677 |
/* $NetBSD: hpc_machdep.c,v 1.70 2003/09/16 08:18:22 agc Exp $ */
/*-
* Copyright (c) 1994-1998 Mark Brinicombe.
* Copyright (c) 1994 Brini.
* All rights reserved.
*
* This code is derived from software written for Brini by Mark Brinicombe
*
* Redistribution and use in source and binary forms, with or without
... | jhbsz/OSI-OS | sys/arm/xscale/i8134x/crb_machdep.c | C | bsd-3-clause | 11,597 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_64a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-64a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_64a.c | C | bsd-3-clause | 5,842 |
/* $OpenBSD: osf1_mount.c,v 1.4 1996/10/30 16:37:20 niklas Exp $ */
/* $NetBSD: osf1_mount.c,v 1.6 1996/02/17 23:08:36 jtk Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Chris G. Demetriou
*
* Permission to use, copy, modify and distribute this software and... | MarginC/kame | openbsd/sys/compat/osf1/osf1_mount.c | C | bsd-3-clause | 12,629 |
/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ppapi/c/pp_resource.h"
#include "ppapi... | cvsuser-chromium/chromium | native_client_sdk/src/gonacl_appengine/src/life/life.c | C | bsd-3-clause | 9,729 |
#include "newtonmin.h"
double cholmod(double *A, int N, double *L, double eps,double maxinp) {
/*
* Algorithm 5.5.2 Dennis, Schnabel, Numerical Methods for Unconstrained Optimization and
* Non-Linear Equations
*/
int i,j,k,step,step2;
double ls;
double *U22;
double maxadd,maxdiag,minl,minl2,minljj;
U2... | rafat2/optim | optim/src/newtonmin.c | C | bsd-3-clause | 42,891 |
/**
******************************************************************************
* @file bsp_usart.c
* @author fire
* @version V1.0
* @date 2013-xx-xx
* @brief ÖØ¶¨Ïòc¿âprintfº¯Êýµ½usart¶Ë¿Ú
******************************************************************************
* @attention
... | LITEOS/LiteOS_Hackathon | Hackathon_170108_麦多的奇妙之旅_水质监控系统/主机程序/HardWare/usart/bsp_usart.c | C | bsd-3-clause | 2,813 |
#include "i2c_eeprom.h"
#include "usi_i2c_master.h"
#include <util/delay.h>
void EEPROM_write(unsigned char chip_addr, unsigned int addr, unsigned char* data, unsigned int data_size)
{
unsigned int i;
unsigned char data_buffer[data_size + 3]; // Setup new data buffer
unsigned char block = (addr >> 13) &... | UCHIC/WaterMonitor | Previous_Designs/Hybrid_Prototype/Software/ATtiny84_Code_2/i2c_eeprom.c | C | bsd-3-clause | 1,977 |
/* Demangler for GNU C++
Copyright 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999,
2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.uucp)
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
Modified by Satish Pai (pai@apollo.hp.com) for HP de... | avaitla/Haskell-to-C---Bridge | gccxml/GCC/libiberty/cplus-dem.c | C | bsd-3-clause | 134,408 |
/*
* The Yices SMT Solver. Copyright 2014 SRI International.
*
* This program may only be used subject to the noncommercial end user
* license agreement which is downloadable along with this program.
*/
/*
* Print a context (for debugging mostly)
* Moved the code here to clean-up yices_reval.c
*/
#include "co... | maelvalais/ocamlyices2 | ext/yices/src/context/dump_context.c | C | isc | 4,308 |
/* This is a managed file. Do not delete this comment. */
#include <corto>
#include "src/store/object.h"
extern ut_tls CORTO_KEY_MOUNT_RESULT;
corto_entityAdmin corto_mount_admin = {0, 0, UT_RWMUTEX_INIT, 0, 0, UT_MUTEX_INIT, UT_COND_INIT};
void corto_mount_subscribeOrMount(
corto_mount this,
corto_query *qu... | cortoproject/corto | src/vstore/mount.c | C | mit | 45,146 |
/************************************************
unixsocket.c -
created at: Thu Mar 31 12:21:29 JST 1994
Copyright (C) 1993-2007 Yukihiro Matsumoto
************************************************/
#include "rubysocket.h"
#ifdef HAVE_SYS_UN_H
struct unixsock_arg {
struct sockaddr_un *sockaddr;
sock... | richo/unrubby | ruby/ext/socket/unixsocket.c | C | mit | 13,209 |
// RUN: %check -e %s
main()
{
(f)(); // CHECK: /error: undeclared identifier "f"/
}
| 8l/ucc-c-compiler | test2/functions/implicit_bad.c | C | mit | 86 |
/* $OpenBSD$ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@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 S... | klaxalk/tmux | window-client.c | C | mit | 9,320 |
//
// echodemo.c
// crypto777
//
// Copyright (c) 2015 jl777. All rights reserved.
//
#define BUNDLED
#define PLUGINSTR "db777"
#define PLUGNAME(NAME) db777 ## NAME
#define STRUCTNAME struct PLUGNAME(_info)
#define STRINGIFY(NAME) #NAME
#define PLUGIN_EXTRASIZE sizeof(STRUCTNAME)
#include "sophia.h"
#define DEFINE... | Bitcoinsulting/multigateway-v2 | libjl777/plugins/sophia/sophia_main.c | C | mit | 31,684 |
#include <allegro5/allegro.h>
#include <math.h>
#include "game.h"
#include "physics.h"
/*
FixUp is called when the player has collided with 'something' and takes
the current player's velocity and the vector normal of whatever has been
hit as arguments.
It's job is primarily to remove whatever proportion of the v... | tsteinholz/SR-Gaming | Libraries/allegro5-5.1/demos/skater/src/physics.c | C | mit | 16,698 |
/**
* \file
* \brief System-wide tracing
*/
/*
* Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstrasse 6, CH... | BarrelfishOS/barrelfish | lib/trace/trace.c | C | mit | 3,188 |
/*====================================================================================================*/
/*====================================================================================================*/
#include "stm32f4_system.h"
#include "stm32f4_spi.h"
#include "module_mpu9250.h"
#include "experiment_stm32f4... | wuyou33/QCopterFlightControl | Software/TEST_QCopterFC_IMU_WF/Program/Modules/module_mpu9250.c | C | mit | 12,841 |
#include <math.h>
void eulsum(float *sum, float term, int jterm, float wksp[])
{
int j;
static int nterm;
float tmp,dum;
if (jterm == 1) {
nterm=1;
*sum=0.5*(wksp[1]=term);
} else {
tmp=wksp[1];
wksp[1]=term;
for (j=1;j<=nterm-1;j++) {
dum=wksp[j+1];
wksp[j+1]=0.5*(wksp[j]+tmp);
tmp=dum;
}
... | bamford/astrobamf | nr/cpy/recipes/eulsum.c | C | mit | 476 |
#include "shoveler/schema/base.h"
#include <assert.h>
#include "shoveler/component_field.h"
#include "shoveler/component_type.h"
#include "shoveler/schema.h"
const char* const shovelerComponentTypeIdFont = "font";
const char* const shovelerComponentTypeIdFontAtlas = "font_atlas";
const char* const shovelerComponentT... | FabianHahn/shoveler-spatialos | shoveler/schema/src/schema/base.c | C | mit | 4,471 |
/*
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 to in writing, software
distrib... | janfietz/tmb_musicplayer | src/targets/toddlermusicbox/fw/board.c | C | mit | 8,579 |
/* Generated by CIL v. 1.7.0 */
/* print_CIL_Input is false */
struct _IO_FILE;
struct timeval;
extern void signal(int sig , void *func ) ;
extern float strtof(char const *str , char const *endptr ) ;
typedef struct _IO_FILE FILE;
extern int atoi(char const *s ) ;
extern double strtod(char const *str , char co... | tum-i22/obfuscated-programs | tigress-generated-programs/empty-Seed2-RandomFuns-Type_char-ControlStructures_11-BB1-ForBound_constant-Operators_PlusA_MinusA_Lt_Gt_Le_Ge_Eq_Ne_Mult_Div_Mod.c | C | mit | 2,728 |
/**
* @file
* Packet buffer management
*/
/*
* Copyright (c) 2017, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn... | kishoredbn/barrelfish | lib/net/pbuf.c | C | mit | 23,332 |
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
Copyright (C) 2012 Tommi Rantala <tt.rantala@gmail.com>
Copyright (C) 2013 Linaro Limited
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and asso... | SyndicateRogue/libunwind | src/aarch64/Ginit.c | C | mit | 6,296 |
/**
******************************************************************************
* @file system_stm32f10x.c
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File.
*
* 1. This file provides two funct... | eleqian/WiDSO | MCU/VirtualCOMPort/sys/system_stm32f10x_iap.c | C | mit | 29,291 |
/*
* Copyright © 2013 Jason Ekstrand
*
* 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, publis... | kwm81/weston | fullscreen-shell/fullscreen-shell.c | C | mit | 23,621 |
/*========================================================================*/
/*cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc*/
/*========================================================================*/
/* */
/* ... | yuhangwang/PINY | src/energy/control/energy_control_surf.c | C | epl-1.0 | 4,172 |
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | menghang/android_kernel_xiaomi_msm8996 | drivers/net/wireless/cnss/cnss_common.c | C | gpl-2.0 | 12,167 |
/*
*
* $Id: pvrusb2-ctrl.c,v 1.1.1.1 2007/06/12 07:27:09 eyryu Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.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 ver... | sdwuyawen/linux2.6.21_helper2416 | drivers/media/video/pvrusb2/pvrusb2-ctrl.c | C | gpl-2.0 | 14,201 |
/*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* Hopefully this will be a rather complete VT102 implementation.
*
* Beeping thanks to John T Kohl.
*
* Virtual Consoles, Screen Blanking, Screen Dumping, Color, Graphics
* Chars, and VT100 enhancements by Peter MacDonald.
*
* Copy and paste function by ... | damoxc/linux | drivers/tty/vt/vt.c | C | gpl-2.0 | 105,156 |
/*
* arch/arm/kernel/return_address.c
*
* Copyright (C) 2009 Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
* for Pengutronix
*
* 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 Foundati... | Jcfunk/navelA-990 | arch/arm/kernel/return_address.c | C | gpl-2.0 | 1,517 |
/*
Copyright (C) 2011 ABRT Team
Copyright (C) 2011 RedHat inc.
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... | martinky82/abrt | src/daemon/abrt-handle-event.c | C | gpl-2.0 | 14,643 |
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include <linux/sizes.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include "musb_core.h"
#define RNDIS_REG(x) (0x80 + ((x - 1) * 4))
#define EP_MODE_AUTOREG_NONE 0
#define EP_MODE_AUTOREG_ALL_NEOP 1
#define EP_MODE... | alianmohammad/linux-kernel-3.18-hacks | drivers/usb/musb/musb_cppi41.c | C | gpl-2.0 | 19,131 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.