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 |
|---|---|---|---|---|---|
#include <stdio.h>
#include <stdlib.h>
#include "global.h"
#include "page-splitting.h"
#include "tlb.h"
#include "statistics.h"
#include "useful.h"
#include "memory.h"
/*******************************************************************************
* Main memory.
*/
uint8_t *memory;
/*****************************... | bnewcomer/code-samples | Networks_and_Systems_Projects/prj3/simulator-src/memory.c | C | apache-2.0 | 2,295 |
#include "common.h"
#include "gpio.h"
#include "exti.h"
#include "spi.h"
#include "NRF24L0.h"
typedef enum
{
NOT_INIT=0,
TX_MODE,
RX_MODE,
}nrf_mode_e;
typedef enum
{
QUEUE_EMPTY = 0, //¶ÓÁпÕģʽ£¬Ö»¿ÉÈë¶ÓÁÐ
QUEUE_NORMAL, //Õý³£Ä£Ê½£¬¿ÉÕý³£³öÈë¶ÓÁУ¬¼´¶ÓÁв»¿Õ²»Âú
QUEUE_FULL... | hecate-xw/PointRace | src/drivers/NRF24L0/NRF24L0.c | C | apache-2.0 | 17,800 |
/**
*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 n... | marcojansen/android-inaetics | celix/remote_services/topology_manager/private/src/activator.c | C | apache-2.0 | 10,409 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <float.h>
#include "SiconosBlas.h"
#include "CSparseMatrix_internal.h"
#include "fc3d_Solvers.h"
#include "NonSmoothDrivers.h"
// avoid a conflict with old csparse.h in case fclib includes it
#define _CS_H
#include "fclib_interface.... | fperignon/siconos | numerics/src/FrictionContact/fc3d_LmgcDriver.c | C | apache-2.0 | 6,028 |
/**************************************************************************************************
Filename: SimpleController.c
Revised: $Date: 2008-04-03 11:05:31 -0700 (Thu, 03 Apr 2008) $
Revision: $Revision: 16711 $
Description: Sample application utilizing the Simple API.
... | jphome/zigbee_2.5.1 | Projects/zstack/Samples/SimpleApp/Source/SimpleController.c | C | apache-2.0 | 10,630 |
/* $Id$ */
/* Copyright 2003-2004 Edward Rudd
*
* 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 ... | OutOfOrder/mod_ftpd | providers/dbm/mod_ftpd_dbm.c | C | apache-2.0 | 4,766 |
/*
* 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/clientapi/op_client.c | C | apache-2.0 | 43,845 |
/*****************************************************************************
* Copyright 2014 Jeff <ggjogh@gmail.com>
*****************************************************************************
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | gitgjogh/yuvfmt | yuvdef.c | C | apache-2.0 | 6,745 |
/**
* FreeRDP: A Remote Desktop Protocol Client
* X11 Event Handling
*
* 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
... | arloliu/FreeRDP-PAL | client/X11/xf_event.c | C | apache-2.0 | 23,054 |
/**************************************************************************
*
* Copyright 2013 Advanced Micro Devices, Inc.
* 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 ... | execunix/vinos | xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_video.c | C | apache-2.0 | 9,511 |
/*
Copyright (c) 2009 Dave Gamble
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, publish, distr... | eggfly/LinkItProjects | RePhone_Create_Source_Code/cjson.c | C | apache-2.0 | 22,457 |
/*******************************************ÉêÃ÷***************************************
±¾Ç¶Èëʽ²Ù×÷ϵͳδ¾ÊÚȨ£¬½ûÖ¹Ó¦ÓÃÓÚÈκÎÉÌÒµÓÃ;
°æÈ¨ËùÓУ¬ÇÖȨ±Ø¾¿
http://www.trtos.com/
**************************************************************************************/
#include <Include.h>
#include <Driver_Include.h>... | tongjinlv/trtos | USER/Prj_Insect/Insect_main.c | C | apache-2.0 | 7,953 |
/*
* Copyright (c) 2010-2011 Apple Inc. All rights reserved.
*
* @APPLE_APACHE_LICENSE_HEADER_START@
*
* 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/lic... | frankeh/swift-corelibs-libdispatch | tests/dispatch_vm.c | C | apache-2.0 | 5,149 |
/**
* @file sanitycheck.c
*
* This file describes a standard DOS handler for use with a disk (Filesystemtype).
*/
/* PowerOS, Copyright (C) 2014. All rights reserved. */
#include "types.h"
#include "execbase_private.h"
#include "ports.h"
#include "devices.h"
#include "dos.h"
#include "dos_packets.h"
#include "dos_... | snayaksnayak/poweros_apps | apps/nyancat/nyancat.c | C | apache-2.0 | 10,616 |
/*
* Fixed function pipeline replacement using GL_NV_register_combiners
* and GL_NV_texture_shader
*
* Copyright 2006 Henri Verbeet
* Copyright 2008 Stefan Dösinger(for CodeWeavers)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* ... | howard5888/wine | wine-1.7.7/dlls/wined3d/nvidia_texture_shader.c | C | apache-2.0 | 58,896 |
/* Copyright (c) 2012 Nicira, 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | yeasy/lazyctrl | lcm/openvswitch-lc/lib/worker.c | C | apache-2.0 | 13,469 |
/*=============================================================================
Copyright 2008 Francois Laupretre (francois@tekwire.net)
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
... | flaupretre/managelogs | lib/path.c | C | apache-2.0 | 3,963 |
//
// File: %dev-serial.c
// Summary: "Device: Serial port access for Windows"
// Project: "Rebol 3 Interpreter and Run-time (Ren-C branch)"
// Homepage: https://github.com/metaeducation/ren-c/
//
//=////////////////////////////////////////////////////////////////////////=//
//
// Copyright 2013 REBOL Technologies
... | kealist/ren-c | src/os/windows/dev-serial.c | C | apache-2.0 | 8,060 |
/**
* ex0514.c
* sort on numeric or strings.
* add option -r to sort in decreasing order.
*/
#include <stdio.h>
#include <stdlib.h> /* for atof() */
#define MAXLINE 50
#define MAXLEN 100 /* max length of any input line */
static char *lineptr[ MAXLINE ];
static char *alloc( int size );
static void swap( char *v[],... | alexhilton/miscellaneous | c-work/exercises/kr/chap05/ex0514.c | C | apache-2.0 | 4,125 |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2022 INRIA.
*
* 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
*
*... | siconos/siconos | numerics/src/Unstable_or_deprecated/dr_nlgs.c | C | apache-2.0 | 3,264 |
/*
* NVS Sample for Zephyr using high level API, the sample illustrates the usage
* of NVS for storing data of different kind (strings, binary blobs, unsigned
* 32 bit integer) and also how to read them back from flash. The reading of
* data is illustrated for both a basic read (latest added value) as well as
* re... | kraj/zephyr | samples/subsys/nvs/src/main.c | C | apache-2.0 | 6,612 |
/*
* Copyright (c) 2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code mu... | matt2048/optee_os | core/arch/arm/mm/tee_mmu.c | C | bsd-2-clause | 18,978 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#define NGX_SSL_PASSWORD_BUFFER_SIZE 4096
typedef struct {
ngx_uint_t engine; /* unsigned engine:1; */
} ngx_openssl_conf_t;
static int ngx_ssl_password_callback(char *... | flonly2008/Nginx-1.7.3 | src/event/ngx_event_openssl.c | C | bsd-2-clause | 82,575 |
#include "xt/case/set.h"
#include "xt/case/mbin.h"
xt_core_bool_t xt_case_set_add(xt_case_set_t *set, void *object)
{
return xt_case_mbin_add((xt_case_mbin_t *) set, object);
}
xt_core_bool_t xt_case_set_add_replace(xt_case_set_t *set, void *object)
{
return xt_core_bool_false;
}
xt_case_set_t *xt_case_set_creat... | xtools/xt | case/set.impl.mbin.c | C | bsd-2-clause | 1,932 |
/*
* Copyright (C) Roman Arutyunyan
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include "ngx_rtmp.h"
#include "ngx_rtmp_amf.h"
#include "ngx_rtmp_streams.h"
#define NGX_RTMP_USER_START(s, tp) \
ngx_rtmp_header_t __h; ... | lu-zero/nginx-rtmp-module | ngx_rtmp_send.c | C | bsd-2-clause | 15,713 |
/*
* sophia database
* sphia.org
*
* Copyright (c) Dmitry Simonenko
* BSD License
*/
#include <sophia.h>
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
#include <libst.h>
static void
update_no_operator(void)
{
void *env = sp_env();
t( env != NULL );
t( sp_setst... | tarantool/sophia | test/generic/update.test.c | C | bsd-2-clause | 48,782 |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "random.h"
/***** STANDARD IMPLEMENTATION *****/
#ifndef VARZ_STUB
void VARZRandReseed() {
FILE *infile;
unsigned seed;
infile = fopen("/dev/random", "rb");
assert(infile);
assert(fread(&seed, 1, sizeof(seed), infile) ... | tofu702/tofu702_varz_daemon | random.c | C | bsd-2-clause | 1,274 |
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
* Copyright (c) 2008-2014 Yubico AB
* 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 ... | Yubico/yubikey-personalization-dpkg | ykcore/ykcore_windows.c | C | bsd-2-clause | 4,796 |
/*
Glidix dynamic linker
Copyright (c) 2014-2017, Madd Games.
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
li... | madd-games/glidix | dynld/src/print.c | C | bsd-2-clause | 2,526 |
/*-
* BSD LICENSE
*
* Copyright(c) 2015-2017 Ansyun <anssupport@163.com>. All rights reserved.
* 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 ... | opendp/dpdk-nginx | src/event/modules/ans_module.c | C | bsd-2-clause | 17,160 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* All files in libhpack are Copyright (C) 2014 Alvaro Lopez Ortega.
*
* Authors:
* * Alvaro Lopez Ortega <alvaro@gnu.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... | c9s/libhpack | libhpack/header_store.c | C | bsd-2-clause | 4,140 |
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/** @addtogroup STM32F1xx_HAL_Examples
* @{
*/
/** @addtogroup GPIO_IOToggle
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private define --------------------------... | cj1324/STM32F1Learn | main.c | C | bsd-2-clause | 4,459 |
/* Copyright (c) 2013 Julien Pommier ( pommier@modartt.com )
Based on original fortran 77 code from FFTPACKv4 from NETLIB
(http://www.netlib.org/fftpack), authored by Dr Paul Swarztrauber
of NCAR, in 1985.
As confirmed by the NCAR fftpack software curators, the following
FFTPACKv5 license applies to F... | ollierik/puro | include/pffft.c | C | bsd-2-clause | 67,135 |
#ifdef __linux__
#define _GNU_SOURCE
#endif
#include <platform.h>
#if defined(PLATFORM_IS_LINUX) || defined(PLATFORM_IS_BSD)
#include <sched.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/mman.h>
#endif
#if defined(PLATFORM_IS_BSD)
#include <pthread_np.h>
#endif
#if defined(PLATFORM_IS_FREEBSD)
#inc... | Praetonus/ponyc | src/libponyrt/platform/threads.c | C | bsd-2-clause | 5,956 |
/* SPDX-License-Identifier: BSD-2-Clause */
/***********************************************************************
* Copyright (c) 2017-2018, Intel Corporation
*
* All rights reserved.
***********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#inclu... | 01org/TPM2.0-TSS | test/integration/sys-evict-ctrl.int.c | C | bsd-2-clause | 2,233 |
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2010 Redpill Linpro 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-old | bin/varnishd/cache_http.c | C | bsd-2-clause | 23,593 |
/*-
* Copyright (c) 2005 Marcel Moolenaar
* All rights reserved.
*
* Copyright (c) 2009 The FreeBSD Foundation
* All rights reserved.
*
* Portions of this software were developed by Ed Schouten
* under sponsorship from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or with... | dcui/FreeBSD-9.3_kernel | sys/dev/vt/hw/vga/vga.c | C | bsd-3-clause | 23,418 |
/*
* Copyright (c) 1997, 1999 Hellmuth Michaelis. 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 ... | MarginC/kame | freebsd4/sys/i4b/layer4/i4b_i4bdrv.c | C | bsd-3-clause | 23,355 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__char_fscanf_preinc_68a.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-68a.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fscanf Read data from the console using fscanf()
* G... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s07/CWE190_Integer_Overflow__char_fscanf_preinc_68a.c | C | bsd-3-clause | 3,182 |
/*
* Copyright (c) 1997-2007 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* 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 ... | ystk/debian-heimdal | kdc/kerberos5.c | C | bsd-3-clause | 49,240 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__unsigned_int_rand_postdec_64b.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-64b.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSo... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__unsigned_int_rand_postdec_64b.c | C | bsd-3-clause | 2,444 |
/*
* Project name:
Demo3_3 : Counter with compare mode on Counter/Timer 2
* Author: Avans-TI, JW
* Revision History:
20101222: - initial release;
* Description:
This program counts events on pin T2 = PD7.
the result is in register TCNT2, shown on output port B
* Test configuration:
... | man1utdfan/AVRProgramming | dag3_3.c | C | bsd-3-clause | 2,055 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_console_w32_execvp_09.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-09.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the cons... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s06/CWE78_OS_Command_Injection__wchar_t_console_w32_execvp_09.c | C | bsd-3-clause | 5,270 |
// RUN: %clang_cc1 -D__ARM_FEATURE_SVE -D__ARM_FEATURE_SVE2 -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -D__ARM_FEATURE_SVE -D__ARM_FEATURE_SVE2 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -ta... | endlessm/chromium-browser | third_party/llvm/clang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_bsl1n.c | C | bsd-3-clause | 10,335 |
/********************************************************************************
* Add Intwine information here
********************************************************************************/
// This file contains device-specific data information
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN // Exclude ra... | IntwineConnect/cta2045-wifi-modules | Aztec/Assert.c | C | bsd-3-clause | 1,432 |
/*
* Copyright (C) 2007-2022 S[&]T, The Netherlands.
* 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... | stcorp/coda | libcoda/coda-cdf-type.c | C | bsd-3-clause | 17,533 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_environment_execlp_54b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-54b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from an... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s06/CWE78_OS_Command_Injection__wchar_t_environment_execlp_54b.c | C | bsd-3-clause | 2,134 |
/* ----------
* pg_lzcompress.c -
*
* This is an implementation of LZ compression for PostgreSQL.
* It uses a simple history table and generates 2-3 byte tags
* capable of backward copy information for 3-273 bytes with
* a max offset of 4095.
*
* Entry routines:
*
* int32
* pglz_compress(const char ... | cgohlke/imagecodecs | 3rdparty/postgresql/pg_lzcompress.c | C | bsd-3-clause | 26,456 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_loop_03.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml
Template File: sources-sink-03.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate usin... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_loop_03.c | C | bsd-3-clause | 4,031 |
/*
Copyright (c) 2011-2014 <comparator@gmx.de>
This file is part of the X13.Home project.
http://X13home.org
http://X13home.net
http://X13home.github.io/
BSD New License
See LICENSE file for license details.
*/
// MQTT-SN Library, Version 3.0.0
#include "config.h"
// Keep Alive Time
#define MQTTSN_T_KEEPALIVE ... | Wassili-Hense/Vers3 | devices/Source/mqttsn.c | C | bsd-3-clause | 38,096 |
/*
* Copyright (c) 2011,2012,2013,2015 Apple Inc. All rights reserved.
*
* corecrypto Internal Use License Agreement
*
* IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple")
* in consideration of your agreement to the following terms, and your download or use
* of this Apple so... | GaloisInc/hacrypto | src/C/corecrypto/ccrsa/src/ccrsa_sign_oaep.c | C | bsd-3-clause | 5,047 |
/*****************************************************************************
* mp4.c: x264 mp4 output module
*****************************************************************************
* Copyright (C) 2003-2009 x264 project
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Loren Merritt <lorenm@u.wash... | mdsalman729/flexpret_project | emulator/concurrit-poplsyntax/concurrit-poplsyntax/bench/x264/src/x264/output/mp4.c | C | bsd-3-clause | 9,228 |
/*-
* Copyright (c) 2013 Thomas Skibo
* 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 condit... | jrobhoward/SCADAbase | sys/arm/xilinx/zy7_devcfg.c | C | bsd-3-clause | 19,358 |
/**
* \file TestModelDefinition.c
* \brief ModelDefinition unit tests
* \author Sarah Keating
*
* <!--------------------------------------------------------------------------
* This file is part of libSBML. Please visit http://sbml.org for more
* information about SBML, and the latest version of l... | TheCoSMoCompany/biopredyn | Prototype/src/libsbml-5.10.0/src/sbml/packages/comp/sbml/test/TestModelDefinition.c | C | bsd-3-clause | 4,083 |
/****************************************************************************
** SCALASCA http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2013 **
** Fors... | pyrovski/scalasca | epik/adapter/MPI/epk_fmpiwrap_err.c | C | bsd-3-clause | 14,054 |
#include <linux/config.h>
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/user.h>
#include <linux/elfcore.h>
#include <linux/sched.h>
#include <linux/in6.h>
#include <linux/interrupt.h>
#include <linux/smp_lock.h>
#include <linux/vmalloc.h>
#include <linux/pci.h>
#include <linux/irq.h>
#include <asm/s... | ut-osa/syncchar | linux-2.6.16-unmod/arch/sh/kernel/sh_ksyms.c | C | bsd-3-clause | 2,864 |
// Copyright 2011 Google Inc. 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
//
// Unless required by applicable... | FishingCactus/litehtml | src/gumbo/tag.c | C | bsd-3-clause | 2,679 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_rand_predec_08.c
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-08.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand(), which may be zer... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s05/CWE191_Integer_Underflow__int_rand_predec_08.c | C | bsd-3-clause | 5,276 |
/*
* Copyright (c) 2015 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | MarilynDafa/Bulllord-Engine | plugins/video/webm/vp9/encoder/vp9_noise_estimate.c | C | mit | 10,724 |
//*****************************************************************************
//
// uartstdio.c - Utility driver to provide simple UART console functions.
//
// Copyright (c) 2007-2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying... | unmole/upcd_firmware | ti/utils/uartstdio.c | C | mit | 56,064 |
// This file has been automatically generated by goFB and should not be edited by hand
// Compiler written by Hammond Pearce and available at github.com/kiwih/goFB
// This file represents the implementation of the Basic Function Block for ArgoRx
#include "ArgoRx.h"
/* ArgoRx_preinit() is required to be called to
*... | PRETgroup/goFB | examples/goFB_only/c_tcrest/testcomm2_mem/c/ArgoRx.c | C | mit | 2,542 |
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_font.h>
#include <stdlib.h>
#include <math.h>
#include "common.c"
#define FPS 60
static struct Example {
ALLEGRO_DISPLAY *display;
ALLEGRO_FONT *font;
ALLEGRO_BITMAP *bitmaps[2][9];
ALLEGRO_COLOR bg, fg, info... | tsteinholz/SR-Gaming | Libraries/allegro5-5.1/examples/ex_filter.c | C | mit | 5,311 |
/* e_sinhf.c -- float version of e_sinh.c.
* Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
*/
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Per... | gil0mendes/Infinity-OS | 3rdparty/lib/libm/generic/e_sinhf.c | C | mit | 1,432 |
/*
* grafo.h
* Funções para um grafo não-direcionado sem pesos.
*
* The MIT License (MIT)
*
* Copyright (c) 2015 João V. F. Lima, UFSM
*
* 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 Sof... | joao-lima/elc1066-2015-2 | aula-10nov/grafo.c | C | mit | 2,488 |
/*
* VC-1 test bitstreams format muxer.
* Copyright (c) 2008 Konstantin Shishkov
*
* This file is part of Libav.
*
* Libav 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 o... | fillest/rtmp_load | src/libav/libavformat/vc1testenc.c | C | mit | 2,927 |
/*******************************************************************************
* File Name: IsrBtn1Pressed.c
* Version 1.70
*
* Description:
* API for controlling the state of an interrupt.
*
*
* Note:
*
********************************************************************************
* Copyright 2008-2015, Cypr... | jh247247/ECE3091-chickybot | chickybot.cydsn/codegentemp/IsrBtn1Pressed.c | C | mit | 12,042 |
/* crypto/dh/dh_lib.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial a... | dismalion/oooii | Ouroboros/External/OpenSSL/openssl-1.0.0e/crypto/dh/dh_lib.c | C | mit | 7,339 |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 Damien P. George
* Copyright (c) 2015 Josef Gajdusek
* Copyright (c) 2016 Scott Shawcroft for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person ob... | wa1tnr/ainsuSPI | shared-bindings/os/__init__.c | C | mit | 7,998 |
/*
*
* This file is part of libmpeg3
*
* LibMPEG3
* Author: Adam Williams <broadcast@earthling.net>
* Page: heroine.linuxbox.com
* Page: http://www.smalltalkconsulting.com/html/mpeg3source.html (for Squeak)
*
LibMPEG3 was originally licenced under GPL. It was relicensed by
the author under the LGPL a... | timfel/squeakvm | platforms/Cross/plugins/Mpeg3Plugin/libmpeg/video/motion.c | C | mit | 6,842 |
/**
* The Whirlpool hashing function.
*
* <P>
* <b>References</b>
*
* <P>
* The Whirlpool algorithm was developed by
* <a href="mailto:pbarreto@scopus.com.br">Paulo S. L. M. Barreto</a> and
* <a href="mailto:vincent.rijmen@cryptomathic.com">Vincent Rijmen</a>.
*
* See
* P.S.L.M. Barreto, V.... | dismalion/oooii | Ouroboros/External/OpenSSL/openssl-1.0.0e/crypto/whrlpool/wp_dgst.c | C | mit | 7,297 |
/******************************************************************************
*
* Module Name: abcompare - compare AML files
*
*****************************************************************************/
/******************************************************************************
*
* 1. Copyright Notice
... | kishoredbn/barrelfish | lib/acpica/source/tools/acpibin/abcompare.c | C | mit | 20,487 |
/*
* linux/fs/ext4/ialloc.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* BSD ufs-inspired inode and directory allocation by
* Stephen Tweedie (sct@redhat.com), 1993
* Big-endian to litt... | CandyDevices/kernel_samsung_msm8660-common | fs/ext4/ialloc.c | C | gpl-2.0 | 38,167 |
/* $Id$ */
/*
* Copyright (C) 2011 Teluu Inc. (http://www.teluu.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 version 2 of the License, or
* (at your option) any later vers... | xhook/asterisk-v11 | res/pjproject/pjmedia/src/pjmedia/vid_stream_info.c | C | gpl-2.0 | 11,184 |
/*
* Quick & dirty crypto testing module.
*
* This will only exist until we have a better testing mechanism
* (e.g. a char device).
*
* Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
* Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
*
* This program is free software; you can redistribute it... | xiandaicxsj/copyKvm | crypto/tcrypt.c | C | gpl-2.0 | 34,125 |
/*
* linux/fs/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* Some corrections by tytso.
*/
/* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname
* lookup logic.
*/
/* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture.
*/
#include <linux/init.h>
#include <linux/export.h... | dct2012/chromeos-3.14 | fs/namei.c | C | gpl-2.0 | 112,750 |
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include <X11/X.h>
#include "windowstr.h"
#include "regionstr.h"
#include "pixmapstr.h"
#include "scrnintstr.h"
#define PSZ 8
#include "cfb.h"
#undef PSZ
#include "cfb32.h"
#include "cfb8_32.h"
#include "mi.h"
#ifdef PANORAMIX
#include "panoramiX.h"
#includ... | mcr/xorg-xvnc4 | xorg-server/hw/xfree86/xf8_32bpp/cfbpntwin.c | C | gpl-2.0 | 4,123 |
/*
* Ghostview.c -- Ghostview widget.
* Copyright (C) 1992 Timothy O. Theisen
*
* 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... | UlricE/SiagOffice | xcommon/Ghostview.c | C | gpl-2.0 | 62,921 |
/*
* Copyright 2015 Amazon.com, Inc. or its affiliates.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree, or... | Fe-Pi/linux | drivers/net/ethernet/amazon/ena/ena_netdev.c | C | gpl-2.0 | 95,634 |
/*
* drivers/usb/file.c
*
* (C) Copyright Linus Torvalds 1999
* (C) Copyright Johannes Erdfelt 1999-2001
* (C) Copyright Andreas Gal 1999
* (C) Copyright Gregory P. Smith 1999
* (C) Copyright Deti Fliegl 1999 (new USB architecture)
* (C) Copyright Randy Dunlap 2000
* (C) Copyright David Brownell 2000-2001 (ker... | sarnobat/knoppix | drivers/usb/core/file.c | C | gpl-2.0 | 6,395 |
/*
* Copyright © 2008 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... | geeknik/StupidFast | drivers/gpu/drm/i915/intel_dp.c | C | gpl-2.0 | 44,552 |
/*****************************************************************************\
** mpi_none.c - Library routines for initiating jobs on without mpi support
** $Id$
*****************************************************************************
* Copyright (C) 2004 The Regents of the University of California.
* P... | cgvarela/slurm | src/plugins/mpi/none/mpi_none.c | C | gpl-2.0 | 4,391 |
/*
* SHA1 hash algorithm. Used in SSH-2 as a MAC, and the transform is
* also used as a `stirring' function for the PuTTY random number
* pool. Implemented directly from the specification by Simon
* Tatham.
*/
#include "ssh.h"
#include <nettle/sha1.h>
/* ----------------------------------------------------------... | zedfoxus/filezilla-client | src/putty/sshsha.c | C | gpl-2.0 | 7,109 |
/*
* Dominance frontier computation for SSA form
* Copyright (c) 2010 Pekka Enberg
*
* This file is released under the GPL version 2 with the following
* clarification and special exception:
*
* Linking this library statically or dynamically with other modules is
* making a combined work based on this ... | headius/jato | jit/dominance.c | C | gpl-2.0 | 4,546 |
/*Qualcomm Secure Execution Environment Communicator (QSEECOM) driver
*
* Copyright (c) 2012-2014, 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 ... | Rlasalle15/android_kernel_moto_shamu | drivers/misc/qseecom.c | C | gpl-2.0 | 124,840 |
/* CPP Library - lexical analysis.
Copyright (C) 2000-2017 Free Software Foundation, Inc.
Contributed by Per Bothner, 1994-95.
Based on CCCP program by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987
Broken out to separate file, Zack Weinberg, Mar 2000
This program is free software; ... | mickael-guene/gcc | libcpp/lex.c | C | gpl-2.0 | 107,142 |
/*
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL
*
* Ported the filesystem routines to 2.5.
* 2003-02-10 Petr Baudis <pasky@ucw.cz>
*/
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/statfs.h>
#inc... | gao-feng/net | fs/hostfs/hostfs_kern.c | C | gpl-2.0 | 21,116 |
/* Copyright (C) 1989, 1995, 1996 Aladdin Enterprises. All rights reserved.
This file is part of GNU Ghostscript.
GNU Ghostscript is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for... | ysleu/RTL8685 | uClinux-dist/user/cups/cups-1.0.5/pstoraster/gxccman.c | C | gpl-2.0 | 24,274 |
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#include <errno.h>
#include <sys/time.h>
#include <zlib.h>
/* Needed early for CONFIG_BSD etc. */
#include "config-host.h"
#ifndef _WIN32
#include <libgen.h>
#include <pwd.h>
#include <sys/times.h>
#include <sys/wait.h>
#include <termios.h>... | CoreSecurity/pycodin | pyqemu/vl.c | C | gpl-2.0 | 105,096 |
/*
* drivers/power/process.c - Functions for starting/stopping processes on
* suspend transitions.
*
* Originally from swsusp.
*/
#undef DEBUG
#include <linux/interrupt.h>
#include <linux/oom.h>
#include <linux/suspend.h>
#include <linux/module.h>
#include <linux/syscalls.h>
#include ... | Volidol1/android_kernel_lge_d605 | kernel/power/process.c | C | gpl-2.0 | 5,809 |
/**
* @file
* Representation of an email header (envelope)
*
* @authors
* Copyright (C) 2017 Richard Russon <rich@flatcap.org>
* Copyright (C) 2019 Pietro Cerutti <gahr@gahr.ch>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public... | flatcap/neomutt | email/envelope.c | C | gpl-2.0 | 10,202 |
/*
* arch/ppc/platforms/pmac_feature.c
*
* Copyright (C) 1996-2001 Paul Mackerras (paulus@cs.anu.edu.au)
* Ben. Herrenschmidt (benh@kernel.crashing.org)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ... | gerboland/linux-2.6.15-neuros-eabi | arch/ppc/platforms/pmac_feature.c | C | gpl-2.0 | 82,614 |
/*
* Copyright (c) 2003, 2007-11 Matteo Frigo
* Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
*
* 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 ... | dstuck/tinker_integrated_PIMC | tinker/fftw/api/plan-many-dft-c2r.c | C | gpl-2.0 | 1,839 |
/*
* 2002-10-18 written by Jim Houston jim.houston@ccur.com
* Copyright (C) 2002 by Concurrent Computer Corporation
* Distributed under the GNU GPL license version 2.
*
* Modified by George Anzinger to reuse immediately and to use
* find bit instructions. Also removed _irq on spinlocks.
*
* Small id to pointe... | me-oss/me-linux | lib/idr.c | C | gpl-2.0 | 10,963 |
/*
* SPU file system -- SPU context management
*
* (C) Copyright IBM Deutschland Entwicklung GmbH 2005
*
* Author: Arnd Bergmann <arndb@de.ibm.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... | xiandaicxsj/copyKvm | arch/powerpc/platforms/cell/spufs/context.c | C | gpl-2.0 | 4,546 |
/* md5.c - Functions to compute MD5 message digest of files or memory blocks
according to the definition of MD5 in RFC 1321 from April 1992.
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
Library. Bugs can be reported to bug-glib... | scassiba/opennap | md5.c | C | gpl-2.0 | 12,449 |
/* Character set conversion support for GDB.
Copyright 2001, 2003 Free Software Foundation, Inc.
This file is part of GDB.
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 vers... | scs/uclinux | user/gdb/gdb/charset.c | C | gpl-2.0 | 45,703 |
/*
* Copyright (C) Huawei Technologies Co., Ltd. 2012-2015. All rights reserved.
* foss@huawei.com
*
* If distributed as part of the Linux kernel, the following license terms
* apply:
*
* * This program is free software; you can redistribute it and/or modify
* * it under the terms of the GNU General Public Lice... | Honor8Dev/android_kernel_huawei_FRD-L04 | drivers/vendor/hisi/modem/drv/acore/kernel/drivers/hisi/modem/drv/balong_timer/timer_slice.c | C | gpl-2.0 | 10,359 |
/* Primary expression subroutines
Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012
Free Software Foundation, Inc.
Contributed by Andy Vaught
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Publi... | h4ck3rm1k3/gcc | gcc/fortran/primary.c | C | gpl-2.0 | 78,379 |
/*
* Copyright (C) 2014 Idwer Vollering <vidwer@gmail.com>
*
* Based on winbond.c
*
* Copyright 2008, Network Appliance Inc.
* Author: Jason McMullan <mcmullan <at> netapp.com>
* Licensed under the GPL-2 or later.
*/
#include <console/console.h>
#include <stdlib.h>
#include <spi_flash.h>
#include <spi-generic.... | groeck/coreboot | src/drivers/spi/amic.c | C | gpl-2.0 | 4,604 |
/*
* Copyright (C) huawei company
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/uaccess.h>
#include <mach/gpio.h>
#include <linux/module.h>
#incl... | KainXS/android_kernel_huawei_y301a2 | drivers/devdetect/hw_dev_dec.c | C | gpl-2.0 | 3,446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.