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 |
|---|---|---|---|---|---|
/*
* Copyright 2017, Victor van der Veen
*
* 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 a... | vusec/typearmor | static/arms_dyninst_cfg.c | C | apache-2.0 | 29,822 |
/*
* Copyright (c) 2015 - 2016, 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, th... | scottdarch/Noer | FRDMK66NoEr/SDK_2.1_FRDM-K66F-GCC-Full/boards/frdmk66f/usb_examples/usb_host_hid_generic/freertos/app.c | C | apache-2.0 | 8,382 |
/*
* Copyright 2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | jldodds/s2n | crypto/s2n_dhe.c | C | apache-2.0 | 10,095 |
/*******************************************ÉêÃ÷***************************************
±¾Ç¶Èëʽ²Ù×÷ϵͳδ¾ÊÚȨ£¬½ûÖ¹Ó¦ÓÃÓÚÈκÎÉÌÒµÓÃ;
°æÈ¨ËùÓУ¬ÇÖȨ±Ø¾¿
http://www.trtos.com/
**************************************************************************************/
#include <Include.h>
#include <Driver_Include.h>... | tongjinlv/trtos | USER/Prj_CXHeftSensor/CXHeftSensor_main.c | C | apache-2.0 | 2,235 |
// ʹÓÃforÑ»·½«Êý×évaluesÖеÄÔªËØ³õʼֵÉèΪ0
#include <stdio.h>
int main(void){
int values[10];
int index;
for(index = 0; index < 10; ++index){
values[index] = 0;
printf("values[%i] = %i\n", index, values[index]);
}
return 0;
}
| tendoasan/ProgrammingInC | chapter07/exce2.c | C | apache-2.0 | 245 |
/*
Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
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... | freeVM/freeVM | enhanced/buildtest/tests/vts/vm/src/test/vm/jni/static_methods/CallStaticByteMethodVTest/CallStaticByteMethodVTest.c | C | apache-2.0 | 5,534 |
/*
* Copyright 1999-2006 University of Chicago
*
* 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... | gridcf/gct | xio/src/test/http_pingpong_test.c | C | apache-2.0 | 17,075 |
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_blufi_api.h"
#include "btc/btc_task.h"
#include "btc_blufi_prf.h"
#include "btc/btc_manage.h"
#include "osi/future.h"
#if (BLUFI_INCLUDED == TRUE)
esp_err_t esp_blufi_register_callba... | espressif/esp-idf | components/bt/common/api/esp_blufi_api.c | C | apache-2.0 | 3,642 |
#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 |
#include <signal.h>
#include <unistd.h>
#include <stdio.h>
#define damo
void user_func(int no) {
switch (no) {
case 1:
printf("Get SIGHUP.\n");
break;
case 2:
printf("Get SIGINT\n");
break;
case 3:
printf("Get SIGQUIT \n");
break;
default:
printf("What wan yi a \n\n");
break;
}
}
int main() {
pr... | zzsoszz/MyPaper | linux/test/src/testsig3.c | C | apache-2.0 | 620 |
/*****************************************************************************
* 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 |
#include "timer.h"
#include <stdbool.h>
#include <inc/hw_ints.h>
#include <inc/hw_memmap.h>
#include <driverlib/rom.h>
#include <driverlib/timer.h>
#include <driverlib/sysctl.h>
uint32_t timerSeconds;
void initializeTimer(void)
{
timerSeconds = 0;
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);
ROM_T... | Scorillo47/hab | gps-radio-tiva-c/src/timer.c | C | apache-2.0 | 777 |
/* 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) 2004-2006, Parrot Foundation.
*/
#undef environ
#undef bool
/*
* Local variables:
* c-file-style: "parrot"
* End:
* vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
*/
| fernandobrito/parrot | config/gen/platform/darwin/begin.c | C | artistic-2.0 | 198 |
/*
* 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 |
const char errno_lua[] =
"-- errno.lua (internal file)\n"
"\n"
"do\n"
"\n"
"local ffi = require 'ffi'\n"
"\n"
"ffi.cdef[[\n"
" char *strerror(int errnum);\n"
" int errno_get();\n"
" int errno_set(int new_errno);\n"
"]]\n"
"\n"
"local exports = require('errno')\n"
"exports.strerror = function(errno)\n"
" if ... | venkatarajasekhar/bee | src/lua/errno.lua.c | C | bsd-2-clause | 808 |
/*
* 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 |
/* { dg-do run } */
extern void abort (void);
struct container
{
unsigned char data[1];
};
unsigned char space[6] = {1, 2, 3, 4, 5, 6};
int
foo (struct container *p)
{
return p->data[4];
}
int
main ()
{
if (foo ((struct container *) space) != 5)
abort ();
return 0;
}
| alpine9000/BitOS | tests/gcc.c-torture/20080222-1.c | C | bsd-2-clause | 284 |
/*-
* 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 |
#include "posix.h"
#include "dbg.h"
int
posix_current_user_in_group(gid_t gid)
{
int n_groups;
gid_t * group_ids = NULL;
int is_in_group = 0;
n_groups = getgroups(0, NULL);
check((n_groups != -1), "Could not get group list");
group_ids = calloc(sizeof(gid_t),n_groups);
check_mem(group_i... | nmandery/rhizofs | src/posix.c | C | bsd-3-clause | 630 |
/*-
* 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 |
#include <sys/time.h>
#include <string.h>
#include <time.h>
#include "hashfs.h"
gchar *
hashfs_basename (const gchar *name)
{
gchar *ptr, *base;
for (ptr = (gchar *) name; *ptr; ptr++) {
if (*ptr == '/') {
base = ptr + 1;
}
}
return base;
}
gchar *
hashfs_current_time (void)
{
char buf[256];
time_t t... | chrippa/hashfs | src/hashfs/util.c | C | bsd-3-clause | 565 |
// 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 |
/* Author: Makarius
Main Isabelle application executable.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
static void fail(const char *msg)
{
fprintf(stderr, "%s\n", msg);
exit(2);
}
int main(int argc, char *argv[])
{
char **cmd_line = NULL;
in... | MerelyAPseudonym/isabelle | Admin/Linux/Isabelle.c | C | bsd-3-clause | 787 |
/*
* 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 |
// RUN: %ucc -fsyntax-only %s
a = _Generic((char)1, char: 5);
b = _Generic(+(char)1, int: 8);
| 8l/ucc-c-compiler | test2/type_propagation/unary_op.c | C | mit | 95 |
/* 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 |
#include <stdio.h>
int main() {
int n, v, p, a = 0;
scanf("%d%d%d", &n, &v, &p);
if (v > 1) {
return -1;
}
if (p > 7) {
return -1;
}
if (v == 1) {
a = (n | (1 << p));
}
else {
a = (1 << p) ^ n;
}
printf("%d", a);
return 0;
}
| mariqngirginov/po-homework | 2015-2016/V/16/09/task2.c | C | mit | 248 |
/*
*
* 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 |
#version 330 core
in vec3 TexCoords;
out vec4 color;
uniform samplerCube skybox;
void main()
{
color = texture(skybox, TexCoords);
}
| Rawks/SkeletonGL | assets/shaders/skyboxF.c | C | mit | 140 |
/*
* 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 |
#include <stdio.h>
/*
* This program shows that a context-insensitive analysis loses precision.
* In this case, we can improve the results with inlining.
*/
int foo(int k, int N) {
while (k < N) {
int i = 0;
int j = k;
while (i < j) {
i = i + 1;
j = j - 1;
}
k = k + 1;
}
return... | vhscampos/range-analysis | tests/t6.c | C | gpl-2.0 | 425 |
/* $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 |
/*
* Author: MontaVista Software, Inc. <source@mvista.com>
*
* 2008 (c) MontaVista Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without any warranty of any kind, whether express
* or implied.
*/
#include <linux/init.h>
#inc... | fzqing/linux-2.6 | mvl_patches/pro-1569.c | C | gpl-2.0 | 447 |
#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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.