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 |
|---|---|---|---|---|---|
/*
* This file is part of wl1271
*
* Copyright (C) 2008-2010 Nokia Corporation
*
* Contact: Luciano Coelho <luciano.coelho@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Fo... | TouchpadCM/compat-wireless-3.4-rc3-1 | drivers/net/wireless/wl12xx/main.c | C | gpl-2.0 | 147,286 |
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; ei... | sTeeLM/MINIME | toolkit/srpm/SOURCES/cde-2.2.4/lib/DtSvc/DtEncap/Symbolic.c | C | gpl-2.0 | 14,105 |
/*
* Copyright (C) 2011-2014 MediaTek Inc.
*
* 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.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;... | bq/aquaris-M4.5 | drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c | C | gpl-2.0 | 114,508 |
/*
* linux/fs/super.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* super.c contains code to handle: - mount structures
* - super-block tables
* - filesystem drivers list
* - mount system call
* ... | shankarathi07/linux_samsung_ics | fs/super.c | C | gpl-2.0 | 31,275 |
#include "cmdq_platform.h"
#include "cmdq_core.h"
#include "cmdq_reg.h"
#include <linux/vmalloc.h>
#include <mach/mt_clkmgr.h>
#include <linux/seq_file.h>
#include "smi_debug.h"
#include "m4u.h"
#define MMSYS_CONFIG_BASE cmdq_dev_get_module_base_VA_MMSYS_CONFIG()
typedef struct RegDef {
int offset;
const char *n... | DKingCN/android_kernel_jiayu_s3_h560 | drivers/misc/mediatek/cmdq/mt6752/cmdq_platform.c | C | gpl-2.0 | 23,146 |
/* Copyright (c) 2008-2013, 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... | paul-xxx/kernel_sony_fuji-3.7 | drivers/char/diag/diagfwd.c | C | gpl-2.0 | 47,466 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_show_tab.c :+: :+: :+: ... | CoZZmOnAvT/42-Piscine-C | d08/tmp/ex06/ft_show_tab.c | C | gpl-3.0 | 1,733 |
#ifdef TI83P
# include <ti83pdefs.h>
# include <ti83p.h>
void YName() __naked
{
__asm
push af
push hl
push iy
ld iy,#flags___dw
BCALL(_YName___db)
pop iy
pop hl
pop af
ret
__endasm;
}
#endif
| catastropher/tisdcc-deadproject | lib/old/YName.c | C | gpl-3.0 | 193 |
/**
* This file is part of Hercules.
* http://herc.ws - http://github.com/HerculesWS/Hercules
*
* Copyright (C) 2012-2015 Hercules Dev Team
* Copyright (C) Athena Dev Teams
*
* Hercules is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... | dor003/Herc | src/common/conf.c | C | gpl-3.0 | 15,602 |
/*
dev: Mickeymouse, Moutarde and Nepta
manager: Word
Copyright © 2011
You should have received a copy of the
GNU General Public License along with this program.
If not, see <http://www.gnu.org/licenses/>.
*/
#include "bullet.h"
/**
* \fn Bullet* createBullet(Tower *tower)
* \brief create a new bullet
* a n... | ycaihua/Tower-Defense-1 | src/tower/bullet.c | C | gpl-3.0 | 1,216 |
/****************************************************************\
* *
* Library for HSP sets (high-scoring segment pairs) *
* *
* Guy St.C. Slater.. mailto:guy@ebi.ac.uk ... | hotdogee/exonerate-gff3 | src/comparison/hspset.c | C | gpl-3.0 | 51,355 |
/*
* Copyright (c) 2000-2005, 2008-2011 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exc... | LubosD/darling | src/configd/SystemConfiguration.fproj/SCDNotifierCancel.c | C | gpl-3.0 | 2,715 |
/* Moonshine - a Lua-based chat client
*
* Copyright (C) 2010 Dylan William Hardison
*
* This file is part of Moonshine.
*
* Moonshine is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 o... | bdonlan/moonshine | src/async-queue-test.c | C | gpl-3.0 | 2,762 |
/*
* linux/kernel/math/div.c
*
* (C) 1991 Linus Torvalds
*/
/*
* temporary real division routine.
*/
#include <linux/math_emu.h>
static void shift_left(int * c)
{
__asm__ __volatile__("movl (%0),%%eax ; addl %%eax,(%0)\n\t"
"movl 4(%0),%%eax ; adcl %%eax,4(%0)\n\t"
"movl 8(%0),%%eax ; adcl %%eax,8(%0)\n\t... | honyyang/Linux-0.12 | linux-0.12/kernel/math/div.c | C | gpl-3.0 | 2,099 |
/*
* Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.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 3 of the License, or
* (at your option) any later version.... | GNOME/grits | examples/volume/volume.c | C | gpl-3.0 | 5,906 |
/*
* Copyright (C) 2008-2009 Martin Willi
* Hochschule fuer Technik Rapperswil
*
* 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... | ccwf2006/one-key-ikev2-vpn | strongswan-5.5.1/src/libcharon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c | C | gpl-3.0 | 4,765 |
/*
Creative Machines Lab Aracna Firmware
aracna.c - Main Program File
Copyright (c) Creative Machines Lab, Cornell University, 2012 - http://www.creativemachines.org
Authored by Jeremy Blum - http://www.jeremyblum.com
LICENSE: GPLv3
This program is free software: you can redistribute it and/or modify
it under t... | booi/aracna | aracna-embedded-code/aracna/aracna.c | C | gpl-3.0 | 6,751 |
/*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2005, Herve Drolon, FreeImage T... | AlienCowEatCake/ImageViewer | src/ThirdParty/OpenJPEG/openjpeg-2.4.0/src/lib/openmj2/image.c | C | gpl-3.0 | 3,859 |
/*
FreeRTOS V7.3.0 - Copyright (C) 2012 Real Time Engineers Ltd.
FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | ilikecake/Rocket-controller | software/freertos/freertos/Source/portable/MPLAB/PIC32MX/port.c | C | gpl-3.0 | 10,779 |
/*
* PktGen by Steffen Schulz © 2009
*
* Braindead TCP server that waits for a packet and then
* - replies with stream of packets
* - with inter-packet delays read as integers from stdin
*
* Disables Nagle Algo to prevent buffering in local network stack
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <... | chandanmogal/ipsec-tfc | code/perfect-hiding-cc/tcpgen.c | C | gpl-3.0 | 2,149 |
/* armor.c - Armor filters
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008, 2010
* Free Software Foundation, Inc.
*
* Author: Timo Schulz
*
* This file is part of OpenCDK.
*
* The OpenCDK library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gener... | freedesktop-unofficial-mirror/gstreamer-sdk__gnutls | lib/opencdk/armor.c | C | gpl-3.0 | 21,279 |
// tutorial06.c
// A pedagogical video player that really works!
//
// Code based on FFplay, Copyright (c) 2003 Fabrice Bellard,
// and a tutorial by Martin Bohme (boehme@inb.uni-luebeckREMOVETHIS.de)
// Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1
// Use
//
// gcc -o tutorial02 tutorial02.c -lavutil ... | lopesivan/ffmpeg-with-c-and-cpp | tutorial/ffmpegtutorial/tutorial06.c | C | gpl-3.0 | 24,098 |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2016-2019 - Brad Parker
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as publ... | RobLoach/RetroArch | gfx/drivers_context/sixel_ctx.c | C | gpl-3.0 | 5,106 |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the ADLINK Software License Agreement Rev 2.7 2nd October
* 2014 (the "License... | PrismTech/opensplice | src/abstraction/os/lynxos5/code/os_time.c | C | gpl-3.0 | 802 |
/* Copyright (c) 2008, 2009
* Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
* Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
* Micah Cowan (micah@cowan.name)
* Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
* Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
*... | maire/screen | src/teln.c | C | gpl-3.0 | 11,094 |
/* str*()-like functions for raw memory "lines" (non-NUL terminated strings).
*
* Especially when we're parsing input in an ESL_BUFFER, we need to be
* able to parse non-writable raw memory buffers. Because an
* ESL_BUFFER may have memory mapped a file, we cannot assume that the
* input is NUL-terminated, and we ... | Janelia-Farm-Xfam/Bio-HMM-Logo | src/easel/esl_mem.c | C | gpl-3.0 | 29,498 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* A 32-bit implementation of the NIST P-256 elliptic curve. */
#include <string.h>
#include "prtypes.h"
#includ... | thespooler/nss | lib/freebl/ecl/ecp_256_32.c | C | mpl-2.0 | 50,400 |
/*
This file is part of SUPPL - the supplemental library for DOS
Copyright (C) 1996-2000 Steffen Kaiser
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version ... | joyent/sdcboot | freedos/source/command/suppl/src/eestrcon.c | C | mpl-2.0 | 2,977 |
/* Swfdec
* Copyright (C) 2007-2008 Benjamin Otte <otte@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any lat... | freedesktop-unofficial-mirror/swfdec__swfdec | swfdec/swfdec_video_movie_as.c | C | lgpl-2.1 | 4,812 |
/* GTK - The GIMP Toolkit
* Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
*
* 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 of the License, or (at your option... | Adamovskiy/gtk | gtk/gtkcssselector.c | C | lgpl-2.1 | 61,597 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "librepo/version.h"
#include "fixtures.h"
#include "testsys.h"
#include "test_version.h"
START_TEST(test_version_check_macro)
{
ck_assert(LR_VERSION_CHECK(LR_VERSION_MAJOR,
LR_VERSION_MINOR,
... | Tojaj/librepo | tests/test_version.c | C | lgpl-2.1 | 1,082 |
/*
题目:定义Fibonacci 数列如下:
/ 0 n=0
f(n)= 1 n=1
\ f(n-1)+f(n-2) n=2
输入n,用最快的方法求该数列的第n 项。
分析:在很多C 语言教科书中讲到递归函数的时候,都会用Fibonacci 作为例子。
因此很多程序员对这道题的递归解法非常熟悉,但....呵呵,你知道的。。
ANSWER:
This is the traditional problem of application of mathematics...
let A=
{1 1}
{1 0}
f(n) = A^(n-1)[0,0]
this gives a O(log n) solution.
int f(int n)... | lolodo/algorithm | C/windows_c/src/Case019.c | C | lgpl-2.1 | 2,261 |
/*
Copyright (C) 2018 Daniel Schultz
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option)... | wbhart/flint2 | nmod_mpoly/mpolyd.c | C | lgpl-2.1 | 10,274 |
/* radare - LGPL - Copyright 2010-2019 - pancake, maijin */
#include <r_types.h>
#include <r_list.h>
#include <r_flag.h>
#include <r_core.h>
#define USE_R2 1
#include <spp/spp.h>
static bool is_valid_project_name(const char *name) {
int i;
if (r_str_endswith (name, ".zip")) {
return false;
}
for (i = 0; name[i]... | ret2libc/radare2 | libr/core/project.c | C | lgpl-3.0 | 23,220 |
/*
* Copyright © 2009 Adrian Johnson
*
* 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... | zwcloud/CairoSharp | source/Native/cairo/test/mesh-pattern-accuracy.c | C | lgpl-3.0 | 3,430 |
/**
* Copyright 2005-2007 ECMWF
*
* Licensed under the GNU Lesser General Public License which
* incorporates the terms and conditions of version 3 of the GNU
* General Public License.
* See LICENSE and gpl-3.0.txt for details.
*/
/***************************************************************************
* Enrico ... | erdc-cm/grib_api | src/action_class_write.c | C | lgpl-3.0 | 5,456 |
/* tio_str-- Test file for mpc_inp_str and mpc_out_str.
Copyright (C) 2009, 2011, 2013, 2014 INRIA
This file is part of GNU MPC.
GNU MPC is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 o... | evaautomation/mpc | tests/tio_str.c | C | lgpl-3.0 | 6,507 |
/**
******************************************************************************
* @file DMA/DMA_FLASHToRAM/Src/stm32f1xx_it.c
* @author MCD Application Team
* @version V1.3.0
* @date 18-December-2015
* @brief Main Interrupt Service Routines.
* This file provides template for al... | hyller/CodeLibrary | stm32cubef1/STM32Cube_FW_F1_V1.3.0/Projects/STM3210E_EVAL/Examples/DMA/DMA_FLASHToRAM/Src/stm32f1xx_it.c | C | unlicense | 5,715 |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2001, 2010 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
#include "db_config.h"
#include "db_int.h"
/*
* __os_id --
* Return the current process ID.
*
* PUBLIC: void __os_id __P((DB_ENV *, pid_t *, db_threadid_t*... | racker/omnibus | source/db-5.0.26.NC/os/os_pid.c | C | apache-2.0 | 1,092 |
/*
* Copyright (c) 2018 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <misc/printk.h>
#include <board.h>
#include <gpio.h>
#include <i2c.h>
#include <spi.h>
#include <sensor.h>
/* #define ARGONKEY_TEST_LOG 1 */
#define WHOAMI_REG 0x0F
#define WHOAMI_ALT_REG 0x4... | mbolivar/zephyr | samples/boards/96b_argonkey/src/main.c | C | apache-2.0 | 8,806 |
#include "config/config.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/errno.h>
#include <string.h>
#include "dispatch_test.h"
#define _test_print(_file, _line, _desc, \
_expr, _fmt1, _val1, _fmt2, _val... | JackieXie168/libdispatch | doc/opengcd/trunk/libdispatch-197/testing/dispatch_test.c | C | apache-2.0 | 4,442 |
/*
* OCILIB - C Driver for Oracle (C Wrapper for Oracle OCI)
*
* Website: http://www.ocilib.net
*
* Copyright (c) 2007-2016 Vincent ROGIER <vince.rogier@ocilib.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | ysmgigi/dbss | src/ocilib-4.2.1/src/exception.c | C | apache-2.0 | 30,607 |
/*
* $Id$
* Copyright (C) 2008 AIST, National Institute of Advanced Industrial Science and Technology
*/
/*
* took from Ruby. Thank you, Ruby!
*/
int endian()
{
static int init = 0;
static int endian = 0;
char *p;
if (init) return endian;
init = 1;
p = &init;
return endian = p[0]?1:0;
}
... | ohkawatks/orbe | repository/AIST/sw_services/orbe_src_v1_00_a/src/endianCheck.c | C | apache-2.0 | 321 |
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT plantower_pms7003
/* sensor pms7003.c - Driver for plantower PMS7003 sensor
* PMS7003 product: http://www.plantower.com/en/content/?110.html
* PMS7003 spec: http://aqicn.org/air/view/sensor/spec/pms7003.pd... | Vudentz/zephyr | drivers/sensor/pms7003/pms7003.c | C | apache-2.0 | 4,354 |
/*
socket.c
Created: Feb 2001 by Philip Homburg <philip@f-mnx.phicoh.com>
Open a TCP connection
*/
#define _POSIX_C_SOURCE 2
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <... | veritas-shine/minix3-rpi | minix/commands/swifi/socket.c | C | apache-2.0 | 5,758 |
/*
* Copyright (c) 2018 Makaio GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <shell/shell_rtt.h>
#include <init.h>
#include <SEGGER_RTT.h>
#include <logging/log.h>
BUILD_ASSERT_MSG(!(IS_ENABLED(CONFIG_LOG_BACKEND_RTT) &&
COND_CODE_0(CONFIG_LOG_BACKEND_RTT_BUFFER, (1), (0))),
"Conflicting log RTT ... | ldts/zephyr | subsys/shell/shell_rtt.c | C | apache-2.0 | 2,990 |
#include "private.h"
#include <Elementary.h>
#include "config.h"
#include "termio.h"
#include "media.h"
#include "options.h"
#include "options_wallpaper.h"
#include "extns.h"
#include "media.h"
#include "main.h"
#include <sys/stat.h>
typedef struct _Background_Item
{
const char *path;
Eina_Bool selected;
Elm... | ihorlaitan/terminology | src/bin/options_wallpaper.c | C | bsd-2-clause | 15,837 |
/****************************************************************************
* arch/arm/src/nuc1xx/nuc_lowputc.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | IUTInfoAix/terrarium_2015 | nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c | C | bsd-2-clause | 12,821 |
/*
* Copyright (c) 2001 Alexander Kabaev
* 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 con... | dplbsd/zcaplib | head/lib/libkse/thread/thr_rtld.c | C | bsd-2-clause | 6,843 |
/* $Id$ */
#include "platform.h"
#include "di_defs.h"
#include "pc.h"
#include "dqueue.h"
#include "adapter.h"
#include "entity.h"
#include "um_xdi.h"
#include "um_idi.h"
#include "debuglib.h"
#include "divasync.h"
#define DIVAS_MAX_XDI_ADAPTERS 64
/* -----------------------------------------------------------------... | andrewjylee/omniplay | linux-lts-quantal-3.5.0/drivers/isdn/hardware/eicon/um_idi.c | C | bsd-2-clause | 24,027 |
/* -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the com... | xianyi/OpenBLAS | relapack/src/zsytrf_rec2.c | C | bsd-3-clause | 13,490 |
/*============================================================================*
* *
* This file is part of the Zoto Software suite. *
* *
* Copyright (C) 2004 Zoto, Inc. 123 South Hudson, OKC, OK 73102 *
... | kordless/zoto-server | zulu-2.0/python_module/zsp_packets.c | C | bsd-3-clause | 3,830 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE90_LDAP_Injection__w32_wchar_t_connect_socket_31.c
Label Definition File: CWE90_LDAP_Injection__w32.label.xml
Template File: sources-sink-31.tmpl.c
*/
/*
* @description
* CWE: 90 LDAP Injection
* BadSource: connect_socket Read data using a connect socket (clie... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE90_LDAP_Injection/CWE90_LDAP_Injection__w32_wchar_t_connect_socket_31.c | C | bsd-3-clause | 8,856 |
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* MT SCP RV32i configuration */
#include "cache.h"
#include "csr.h"
#include "hooks.h"
#include "registers.h"
#define SCP_SRAM_END (CONFIG_IPC_SH... | coreboot/chrome-ec | baseboard/mtscp-rv32i/baseboard.c | C | bsd-3-clause | 1,621 |
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 7.00.0499 */
/* at Mon Dec 01 09:02:10 2008
*/
/* Compiler settings for e:/builds/tinderbox/XR-Trunk/WINNT_5.2_Depend/mozilla/other-licenses/ia2/Accessibl... | leighpauls/k2cro4 | third_party/xulrunner-sdk/win/include/accessibility/Accessible2_i.c | C | bsd-3-clause | 1,711 |
/*
* @description Expression is always true via if (unsigned int >= 0)
*
* */
#include "std_testcase.h"
#ifndef OMITBAD
void CWE571_Expression_Always_True__unsigned_int_01_bad()
{
/* Ensure (0 <= intBad < UINT_MAX) and that uIntBad is pseudo-random */
unsigned int uIntBad = (unsigned int)(ra... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE571_Expression_Always_True/CWE571_Expression_Always_True__unsigned_int_01.c | C | bsd-3-clause | 1,609 |
#include "Stencil1D.h"
int cncMain(int argc, char *argv[]) {
CNC_REQUIRE(argc == 4, "Usage: %s NUM_TILES TILE_SIZE NUM_TIMESTEPS\n", argv[0]);
// Create a new graph context
Stencil1DCtx *context = Stencil1D_create();
// initialize graph context parameters
context->numTiles = atoi(argv[1]);
c... | habanero-rice/cnc-framework | examples/tutorial/4-improved.app/Main.c | C | bsd-3-clause | 575 |
/*
* Copyright (c) 2013 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... | windyuuy/opera | chromium/src/third_party/libvpx/source/libvpx/vp9/common/vp9_convolve.c | C | bsd-3-clause | 13,122 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c
Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml
Template File: sources-sinks-64b.tmpl.c
*/
/*
* @description
* CWE: 457 Use of Uninitialized Variable
* BadSource: no_init Don't initi... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE457_Use_of_Uninitialized_Variable/s01/CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c | C | bsd-3-clause | 1,932 |
/***********************************************************************
* Copyright (c) 2009, Secure Endpoints 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:
*
* - Redistributions... | pexip/os-heimdal | lib/roken/simple_exec_w32.c | C | bsd-3-clause | 10,338 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml
Template File: sources-sink-22a.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate u... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c | C | bsd-3-clause | 4,955 |
/*
*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | miselin/grpc | src/core/lib/surface/completion_queue.c | C | bsd-3-clause | 16,842 |
//*****************************************************************************
//
// fontcmss46b.c - Font definition for the 46 point Cmss bold font.
//
// Copyright (c) 2008-2010 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this softwar... | vastsoun/bbmc-starterware | grlib/fonts/fontcmss46b.c | C | bsd-3-clause | 32,274 |
#include <omp.h>
#include <math.h>
#define ceild(n,d) ceil(((double)(n))/((double)(d)))
#define floord(n,d) floor(((double)(n))/((double)(d)))
#define max(x,y) ((x) > (y)? (x) : (y))
#define min(x,y) ((x) < (y)? (x) : (y))
/*
* Order-1, 3D 7 point stencil
* Adapted from PLUTO and Pochoir test bench
*
* Tare... | tareqmalas/girih | pluto_examples/gen_kernels/lbpar_3d7pt4_4_8_64/3d7pt.lbpar.c | C | bsd-3-clause | 7,590 |
/*
* Copyright © 2018-2019, VideoLAN and dav1d authors
* Copyright © 2018-2019, Two Orioles, LLC
* 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 ... | endlessm/chromium-browser | third_party/dav1d/libdav1d/src/itx_tmpl.c | C | bsd-3-clause | 9,450 |
/* Copyright (c) 2007-2016, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file geoip.c
* \brief Functions related to maintaining an IP-to-country database;
* to summarizing client connections by country to entry guards, bridges,
* and directory servers; and for statistics on answering... | BreakoutCoin/Breakout-Chain-Client | src/tor/or/geoip.c | C | mit | 58,156 |
/* swdp-m0sub.c
*
* Copyright 2015 Brian Swetland <swetland@frotz.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | nvll/lk | app/mdebug/swd-m0sub.c | C | mit | 4,971 |
/*
* Changes:
* Jan 22, 2010: Created (Cristiano Giuffrida)
*/
#include "inc.h"
/*===========================================================================*
* do_up *
*===========================================================================*/
PUBLIC int do_up(m_ptr)
message *m_p... | ducis/operating-system-labs | src.clean/servers/rs/request.c | C | mit | 19,836 |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | sidhujag/devcoin-wallet | src/curl/lib/asyn-ares.c | C | mit | 19,853 |
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */
#include <ctype.h>
#include <stdlib.h>
/* We do not use strtol here for backwards compatibility in behaviour on
overflow.
*/
... | ducis/operating-system-labs | src.clean/lib/libc/ansi/atol.c | C | mit | 629 |
/* adddma.c
*/
#include <lib.h>
#define adddma _adddma
#include <unistd.h>
#include <stdarg.h>
int adddma(proc_e, start, size)
endpoint_t proc_e;
phys_bytes start;
phys_bytes size;
{
message m;
m.m2_i1= proc_e;
m.m2_l1= start;
m.m2_l2= size;
return _syscall(MM, ADDDMA, &m);
}
| ducis/operating-system-labs | src.clean/lib/libc/other/_adddma.c | C | mit | 314 |
/*
* Syscall interface to knfsd.
*
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/
#include <linux/slab.h>
#include <linux/namei.h>
#include <linux/ctype.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/lockd/lockd.h>
#include <linux/sunrpc/addr.h>
#include <linux/sunrpc/gss_api.h>
#include <linu... | zoobab/vzkernel | fs/nfsd/nfsctl.c | C | gpl-2.0 | 31,358 |
/*
* Copyright (C) 2012 Spreadtrum Communications Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it w... | voltagex/kernel-sprdb2g_gonk4.0_6821 | arch/arm/mach-sc8825/board_sp6825gb/board.c | C | gpl-2.0 | 11,412 |
/*
* Secure Digital Host Controller Interface ACPI driver.
*
* Copyright (c) 2012, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* Th... | wgoossens/linux-nios2 | drivers/mmc/host/sdhci-acpi.c | C | gpl-2.0 | 10,570 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2013 Intel Corporation. All rights reserved.
*
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdbool.h>
#include <glib... | cktakahasi/bluez | tools/sco-tester.c | C | gpl-2.0 | 18,002 |
/*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: NETLINK kernel command channel.
*
* Author: Alexandre Cassen, <acassen@linux-vs.org... | xmllovemm/keepalived_modify | keepalived/vrrp/vrrp_netlink.c | C | gpl-2.0 | 18,234 |
/*
* Note: this file originally auto-generated by mib2c using
* : mib2c.int_watch.conf 13957 2005-12-20 15:33:08Z tanders $
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include "statPPTP.h"
#include "triton.h"
/*
* Th... | musman2012/commented-accel | accel-pppd/extra/net-snmp/statPPTP.c | C | gpl-2.0 | 3,252 |
/*
* Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* Modifyed by: Edison Fernández <edison.fernandez@ridgerun.com>
* Added support to use it with Nitrogen6x
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | captivo/linux-captivo | drivers/media/platform/mxc/capture/tc358743_h2c.c | C | gpl-2.0 | 111,500 |
/*
* vhost-vdpa
*
* Copyright(c) 2017-2018 Intel Corporation.
* Copyright(c) 2020 Red Hat, Inc.
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#include <linux/vhost.h>
#include <linux/vfio.h>
#incl... | dslutz/qemu | hw/virtio/vhost-vdpa.c | C | gpl-2.0 | 14,501 |
/* *
* Copyright (C) 2009 Texas Instruments 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 version.
*
* This progr... | merlinholland/kernel | drivers/media/video/davinci/dm365_aew.c | C | gpl-2.0 | 22,941 |
/*
* COM1 NS16550 support
* originally from linux source (arch/ppc/boot/ns16550.c)
* modified to use CONFIG_SYS_ISA_MEM and new defines
*/
#include <config.h>
#include <ns16550.h>
#define LCRVAL LCR_8N1 /* 8 data, 1 stop, no parity */
#define MCRVAL (MCR_DTR | MCR_RTS) /* RTS/DTR */
#define FCRVAL (FCR_FIFO... | diverger/uboot-lpc32xx | drivers/serial/ns16550.c | C | gpl-2.0 | 1,977 |
/*
* ProFTPD - mod_sftp RFC4716 keystore
* Copyright (c) 2008-2016 TJ Saunders
*
* 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... | pghmcfc/proftpd | contrib/mod_sftp/rfc4716.c | C | gpl-2.0 | 16,496 |
/* packet-hdmi.c
* Routines for HDMI dissection
* Copyright 2014 Martin Kaiser <martin@kaiser.cx>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... | jfzazo/wireshark-hwgen | src/epan/dissectors/packet-hdmi.c | C | gpl-2.0 | 10,017 |
/*
* xplus4-main.c - Watcom main.c for xplus4 wrapper.
*
* Written by
* Marco van den Heuvel <blackystardust68@yahoo.com>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under t... | AreaScout/vice-gles2 | src/arch/watcom-source-wrappers/xplus4-main.c | C | gpl-2.0 | 987 |
/*****************************************************************************/
/* */
/* Ittiam WPS SOFTWARE */
/* */
... | voltagex/kernel-sprdb2g_gonk4.0_6821 | drivers/net/wireless/trout/mac/src/Library/WPS/Protocols/wps_key.c | C | gpl-2.0 | 14,127 |
/* SPDX-License-Identifier: GPL-2.0-only */
#include <delay.h>
#include <device/mmio.h>
#include <console/console.h>
#include <console/uart.h>
#include <soc/addressmap.h>
#include <soc/otp.h>
/*
* This is a driver for the eMemory EG004K32TQ028XW01 NeoFuse
* One-Time-Programmable (OTP) memory used within the SiFive ... | felixsinger/coreboot | src/soc/sifive/fu540/otp.c | C | gpl-2.0 | 2,193 |
/* -*- C -*-
//C- -------------------------------------------------------------------
//C- DjView4
//C- Copyright (c) 2006 Leon Bottou
//C-
//C- This software is subject to, and may be distributed under, the
//C- GNU General Public License, either version 2 of the license,
//C- or (at your option) any later version. ... | Stannislav/djvulibre-3.5.25 | tools/tiff2pdf.c | C | gpl-2.0 | 159,904 |
/*
* Copyright (c) 1999-2005 Petko Manolov (petkan@users.sourceforge.net)
*
* 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.
*
* ChangeLog:
* .... Most of the time spent on re... | ipwndev/DSLinux-Mirror | linux-2.6.x/drivers/usb/net/pegasus.c | C | gpl-2.0 | 36,647 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim:expandtab:shiftwidth=2:tabstop=2: */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use thi... | EpicCM/SPH-D700-Kernel | external/webkit/WebCore/plugins/gtk/gtk2xtbin.c | C | gpl-2.0 | 26,348 |
/* Separate lexical analyzer for GNU C++.
Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2010
Free Software Foundation, Inc.
Hacked by Michael Tiemann (tiemann@cygnus.com)
This file is part of GCC.
GCC is free software; you can red... | h4ck3rm1k3/gcc | gcc/cp/lex.c | C | gpl-2.0 | 19,780 |
/* packet-forces.c
* RFC 5810
* Routines for dissecting IETF ForCES protocol layer messages.Now support the following TML types:TCP+UDP,SCTP.
* Copyright 2009, NDSC & Zhejiang Gongshang University,Fenggen Jia <fgjia@mail.zjgsu.edu.cn or fenggen.jia@gmail.com>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* ... | slowfranklin/wireshark | epan/dissectors/packet-forces.c | C | gpl-2.0 | 41,483 |
/*
* This file is part of the coreboot project.
*
* Copyright 2014 Google 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; version 2 of the License.
*
* This program is distribute... | acorn-marvell/coreboot | src/mainboard/google/veyron_rialto/reset.c | C | gpl-2.0 | 902 |
/* Duplicate handle for selection of locales.
Copyright (C) 1997, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of th... | nslu2/glibc | locale/duplocale.c | C | gpl-2.0 | 1,954 |
/* packet-bpkmreq.c
* Routines for Baseline Privacy Key Management Request dissection
* Copyright 2002, Anand V. Narwani <anand[AT]narwani.org>
*
* $Id: packet-bpkmreq.c 45015 2012-09-20 01:29:52Z morriss $
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald... | P1sec/LTE_monitor_c2xx | wireshark/plugins/docsis/packet-bpkmreq.c | C | gpl-2.0 | 4,716 |
/* hostlist_sctp.c 2008 Stig Bjorlykke
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* 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 Sof... | morynicz/pyroshark | ui/gtk/hostlist_sctp.c | C | gpl-2.0 | 2,658 |
/*
* Fence mechanism for dma-buf and to allow for asynchronous dma access
*
* Copyright (C) 2012 Canonical Ltd
* Copyright (C) 2012 Texas Instruments
*
* Authors:
* Rob Clark <robdclark@gmail.com>
* Maarten Lankhorst <maarten.lankhorst@canonical.com>
*
* This program is free software; you can redistribute it ... | kofemann/linux-redpatch | drivers/base/fence.c | C | gpl-2.0 | 11,942 |
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
This file is part of systemd.
Copyright 2010 Lennart Poettering
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the Li... | Mic92/systemd | src/test/test-hostname.c | C | gpl-2.0 | 980 |
/* Copyright (C) 1991, 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | nslu2/glibc | sysdeps/generic/system.c | C | gpl-2.0 | 1,207 |
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2007-2008, Trinity College Computing Center
* Written by David Chappell <David.Chappell@trincoll.edu>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of... | leedm777/asterisk | apps/app_readexten.c | C | gpl-2.0 | 8,312 |
/*
* arch/arm/mach-tegra/board-smba1002.c
*
* Copyright (C) 2011 Eduardo José Tagle <ejtagle@tutopia.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*... | fosser2/android-tegra-nv-3.1.10-rel-15r7 | arch/arm/mach-tegra/board-smba1002.c | C | gpl-2.0 | 6,001 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.