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
/* * Copyright (c) 2004,2012 Kustaa Nyholm / SpareTimeLabs * * 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...
subaklab/myflight
src/main/common/printf.c
C
gpl-3.0
6,103
/* * Kernel-based Virtual Machine driver for Linux * * This module enables machines with Intel VT-x extensions to run virtual * machines without emulation or binary translation. * * Copyright (C) 2006 Qumranet, Inc. * * Authors: * Avi Kivity <avi@qumranet.com> * Yaniv Kamay <yaniv@qumranet.com> * * T...
felixhaedicke/nst-kernel
src/arch/x86/kvm/vmx.c
C
gpl-2.0
96,797
/* * Copyright (c) 2007-2011 Nicira Networks. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WIT...
Andiry/Linux-xHCI-development
net/openvswitch/flow.c
C
gpl-2.0
35,704
/* * IOMMU implementation for Cell Broadband Processor Architecture * * (C) Copyright IBM Corporation 2006-2008 * * Author: Jeremy Kerr <jk@ozlabs.org> * * 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 Soft...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-4.19/arch/powerpc/platforms/cell/iommu.c
C
gpl-2.0
34,916
/* * Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. */ /* * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gp...
fwmiller/Conserver-Freescale-Linux-U-boot
rpm/BUILD/linux-3.0.35/drivers/mxc/security/sahara2/km_adaptor.c
C
gpl-2.0
21,252
/* * A driver for the Griffin Technology, Inc. "PowerMate" USB controller dial. * * v1.1, (c)2002 William R Sowerbutts <will@sowerbutts.com> * * This device is a anodised aluminium knob which connects over USB. It can measure * clockwise and anticlockwise rotation. The dial also acts as a pushbutton with * a spr...
EAVR/EV3.14
ev3sources/extra/linux-03.20.00.13/drivers/input/misc/powermate.c
C
gpl-2.0
15,205
/* * Copyright 2009 Jerome Glisse. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy,...
NooNameR/k3_bravo
drivers3/gpu2/drm/radeon/radeon_ttm.c
C
gpl-2.0
22,598
/* * Copyright 2011 Freescale Semiconductor, Inc. * Copyright 2011 Linaro Ltd. * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gpl-lic...
SanDisk-Open-Source/SSD_Dashboard
uefi/linux-source-3.8.0/arch/arm/mach-imx/lluart.c
C
gpl-2.0
1,321
/* * User level driver support for input subsystem * * Heavily based on evdev.c by Vojtech Pavlik * * 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 *...
mkvdv/au-linux-kernel-autumn-2017
linux/drivers/input/misc/uinput.c
C
gpl-3.0
23,650
/* * CPU subsystem support */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/cpu.h> #include <linux/topology.h> #include <linux/device.h> #include <linux/node.h> #include <linux/gfp.h> #include <linux/slab.h> #include <linux/percpu.h> #include <li...
dperezde/little-penguin
linux/drivers/base/cpu.c
C
gpl-2.0
12,138
/* Copyright (c) 2010-2011, Code Aurora Forum. 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 ho...
sgs3/SGH-T999V_Kernel
drivers/media/video/msm_zsl/gemini/msm_gemini_dev.c
C
gpl-2.0
5,006
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * 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 as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be ...
JijonHyuni/HyperKernel-JB
virt/fs/xfs/xfs_fsops.c
C
gpl-2.0
19,130
/***************************************************************************** Copyright(c) 2012 FCI Inc. All Rights Reserved File name : fc8150_tun.c (BGA & QFN) Description : fc8150 tuner driver History : ---------------------------------------------------------------------- 2012/01/20 initial ...
jokersax/lgogsprint3.4kernel
drivers/broadcast/oneseg/fc8150/drv/fc8150_tun.c
C
gpl-2.0
15,794
/************************************************************************** * * Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA * 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"...
sahdman/rpi_android_kernel
linux-3.1.9/drivers/gpu/drm/ttm/ttm_bo.c
C
mit
47,176
// SPDX-License-Identifier: GPL-2.0 #include <linux/bug.h> #include <linux/kernel.h> #include <linux/bitops.h> #include <linux/math64.h> #include <linux/log2.h> #include <linux/err.h> #include <linux/module.h> #include "qcom-vadc-common.h" /* Voltage to temperature */ static const struct vadc_map_pt adcmap_100k_104ef...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-5.4/drivers/iio/adc/qcom-vadc-common.c
C
gpl-2.0
10,376
/******************************************************************************* Intel PRO/10GbE Linux driver Copyright(c) 1999 - 2008 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 pu...
sahdman/rpi_android_kernel
linux-3.1.9/drivers/net/ixgb/ixgb_ee.c
C
mit
17,529
/* * Some debug functions * * MIPS floating point support * * Copyright (C) 1994-2000 Algorithmics Ltd. * http://www.algor.co.uk * * This program is free software; you can distribute it and/or modify it * under the terms of the GNU General Public License (Version 2) as * published by the Free Software Foun...
wkritzinger/asuswrt-merlin
release/src-rt-7.x.main/src/linux/linux-2.6.36/arch/mips/math-emu/ieee754d.c
C
gpl-2.0
3,765
/* * linux/arch/arm/mach-omap2/board-omap3evm.c * * Copyright (C) 2008 Texas Instruments * * Modified from mach-omap2/board-3430sdp.c * * Initial code: Syed Mohammed Khasim * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2...
wkritzinger/asuswrt-merlin
release/src-rt-7.x.main/src/linux/linux-2.6.36/arch/arm/mach-omap2/board-omap3evm.c
C
gpl-2.0
18,128
/* orig : i386 init_task.c */ #include <linux/mm.h> #include <linux/module.h> #include <linux/sched.h> #include <linux/init.h> #include <linux/init_task.h> #include <linux/fs.h> #include <linux/mqueue.h> #include <asm/uaccess.h> #include <asm/pgtable.h> static struct fs_struct init_fs = INIT_FS; static struct files_...
impedimentToProgress/UCI-BlueChip
snapgear_linux/linux-2.6.21.1/arch/m32r/kernel/init_task.c
C
mit
1,078
/* Byte-wise substring search, using the Two-Way algorithm. * Copyright (C) 2008 Eric Blake * Permission to use, copy, modify, and distribute this software * is freely granted, provided that this notice is preserved. */ /* FUNCTION <<memmem>>---find memory segment INDEX memmem ANSI_SYNOPSIS #include <string.h...
GarethNelson/Zoidberg
userland/newlib/newlib/libc/string/memmem.c
C
gpl-2.0
3,117
/* * linux/arch/arm/mach-at91/gpio.c * * Copyright (C) 2005 HP Labs * * 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 ver...
ystk/linux-poky-debian
arch/arm/mach-at91/gpio.c
C
gpl-2.0
28,199
/* * AMD 10Gb Ethernet driver * * This file is available to you under your choice of the following two * licenses: * * License 1: GPLv2 * * Copyright (c) 2014 Advanced Micro Devices, Inc. * * This file is free software; you may copy, redistribute and/or modify * it under the terms of the GNU General Public L...
systemdaemon/systemd
src/linux/drivers/net/ethernet/amd/xgbe/xgbe-ptp.c
C
gpl-2.0
10,239
/* * Generic helpers for smp ipi calls * * (C) Jens Axboe <jens.axboe@oracle.com> 2008 */ #include <linux/rcupdate.h> #include <linux/rculist.h> #include <linux/kernel.h> #include <linux/export.h> #include <linux/percpu.h> #include <linux/init.h> #include <linux/gfp.h> #include <linux/smp.h> #include <linux/cpu.h> ...
wurikiji/ttFS
ulinux/linux-3.10.61/kernel/smp.c
C
gpl-2.0
18,706
/* * File: pn_dev.c * * Phonet network device * * Copyright (C) 2008 Nokia Corporation. * * Contact: Remi Denis-Courmont <remi.denis-courmont@nokia.com> * Original author: Sakari Ailus <sakari.ailus@nokia.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of th...
felixhaedicke/nst-kernel
src/net/phonet/pn_dev.c
C
gpl-2.0
5,080
/* * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. 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 as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any...
dperezde/little-penguin
linux-eudyptula/drivers/irqchip/irq-mxs.c
C
gpl-2.0
3,400
#include "reiserfs.h" #include <linux/errno.h> #include <linux/fs.h> #include <linux/pagemap.h> #include <linux/xattr.h> #include <linux/slab.h> #include "xattr.h" #include <linux/security.h> #include <asm/uaccess.h> static int security_get(struct dentry *dentry, const char *name, void *buffer, size_t size, int hand...
talnoah/android_kernel_htc_dlx
virt/fs/reiserfs/xattr_security.c
C
gpl-2.0
3,005
/* rc-main.c - Remote Controller core module * * Copyright (C) 2009-2010 by Mauro Carvalho Chehab <mchehab@redhat.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 version 2 of the L...
kularny/GeniSys.Kernel
drivers/media/rc/rc-main.c
C
gpl-2.0
31,186
/* * CoreChip-sz SR9700 one chip USB 1.1 Ethernet Devices * * Author : Liu Junliang <liujunliang_ljl@163.com> * * Based on dm9601.c * * 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 i...
mpe/powerpc
drivers/net/usb/sr9700.c
C
gpl-2.0
13,255
/* * linux/arch/sh/boards/magicpanel/setup.c * * Copyright (C) 2007 Markus Brunner, Mark Jonas * * Magic Panel Release 2 board setup * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */...
talnoah/android_kernel_htc_dlx
virt/arch/sh/boards/board-magicpanelr2.c
C
gpl-2.0
10,719
/* * Linux Guest Relocation (LGR) detection * * Copyright IBM Corp. 2012 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/init.h> #include <linux/export.h> #include <linux/timer.h> #include <linux/slab.h> #include <asm/facility.h> #include <asm/sysinfo.h> #include <asm/ebcdic.h> #inclu...
eabatalov/au-linux-kernel-autumn-2017
linux/arch/s390/kernel/lgr.c
C
gpl-3.0
4,365
/* * Copyright (C) 2004 IBM Corporation * * Author: Serge Hallyn <serue@us.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 Foundation, version 2 of the * License. */ #include <lin...
mkvdv/au-linux-kernel-autumn-2017
linux/kernel/utsname.c
C
gpl-3.0
3,695
/* * Support for IDE interfaces on Celleb platform * * (C) Copyright 2006 TOSHIBA CORPORATION * * This code is based on drivers/ide/pci/siimage.c: * Copyright (C) 2001-2002 Andre Hedrick <andre@linux-ide.org> * Copyright (C) 2003 Red Hat * * This program is free software; you can redistribute it and/or modify...
mericon/Xp_Kernel_LGH850
virt/drivers/ide/scc_pata.c
C
gpl-2.0
22,450
/* This file is part of the program psim. Copyright (C) 1994-1996, Andrew Cagney <cagney@highland.com.au> 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...
zxombie/aarch64-freebsd-binutils
sim/ppc/hw_pal.c
C
gpl-2.0
9,416
/* * linux/arch/arm/mm/dma-mapping.c * * Copyright (C) 2000-2004 Russell King * * 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. * * DMA uncached mapping support. */ #inclu...
keeeener/nicki
kernel/arch/arm/mm/dma-mapping.c
C
gpl-2.0
46,012
/* * Author(s)......: Horst Hummel <Horst.Hummel@de.ibm.com> * Holger Smolinski <Holger.Smolinski@de.ibm.com> * Bugreports.to..: <Linux390@de.ibm.com> * Copyright IBM Corp. 2000, 2001 * */ #define KMSG_COMPONENT "dasd-eckd" #include <linux/timer.h> #include <asm/idals.h> #define PRINTK_HEADER "dasd_er...
geminy/aidear
oss/linux/linux-4.7/drivers/s390/block/dasd_3990_erp.c
C
gpl-3.0
70,793
//------------------------------------------------------------------------------ // <copyright file="bmi.c" company="Atheros"> // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. // // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is her...
sktjdgns1189/android_kernel_samsung_SHW-M340S
drivers/stagings/ath6kl/bmi/src/bmi.c
C
gpl-2.0
33,537
/* * Copyright (c) 2010-2011 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
prasidh09/cse506
unionfs-3.10.y/drivers/net/wireless/ath/ath9k/htc_drv_init.c
C
gpl-2.0
26,608
/* * linux/drivers/i2c/chips/twl4030-power.c * * Handle TWL4030 Power initialization * * Copyright (C) 2008 Nokia Corporation * Copyright (C) 2006 Texas Instruments, Inc * * Written by Kalle Jokiniemi * Peter De Schrijver <peter.de-schrijver@nokia.com> * Several fixes by Amit Kucheria <amit.kucheria@verdure...
systemdaemon/systemd
src/linux/drivers/mfd/twl4030-power.c
C
gpl-2.0
25,688
/* * Driver for ESS Solo-1 (ES1938, ES1946, ES1969) soundcard * Copyright (c) by Jaromir Koutek <miri@punknet.cz>, * Jaroslav Kysela <perex@perex.cz>, * Thomas Sailer <sailer@ife.ee.ethz.ch>, * Abramo Bagnara <abramo@alsa-project.org>, * Ma...
AiJiaZone/linux-4.0
virt/sound/pci/es1938.c
C
gpl-2.0
55,936
/* Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu before changing it! Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. This file is part of the GNU C ...
freedesktop-unofficial-mirror/gstreamer-sdk__libdvdnav
msvc/contrib/getopt.c
C
gpl-2.0
28,567
/* 'aes_xcbc.c' Obfuscated by COBF (Version 1.06 2006-01-07 by BB) at Fri Oct 12 22:15:16 2012 */ #include"cobf.h" #ifdef _WIN32 #if defined( UNDER_CE) && defined( bb337) || ! defined( bb329) #define bb355 1 #define bb332 1 #else #define bb351 bb343 #define bb333 1 #define bb331 1 #endif #define bb348 1 #include"unc...
sktjdgns1189/android_kernel_samsung_SHV-E110S
drivers/net/wirelessa/ipsecdrvtl/ac.c
C
gpl-2.0
5,737
/* drivers/misc/fm34_we395.c - fm34_we395 voice processor driver * * Copyright (C) 2012 Samsung Corporation. * * 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. ...
vet-note/android_kernel_samsung_smdk4210
drivers/misc/fm34_we395.c
C
gpl-2.0
14,942
/* * watchdog_core.c * * (c) Copyright 2008-2011 Alan Cox <alan@lxorguk.ukuu.org.uk>, * All Rights Reserved. * * (c) Copyright 2008-2011 Wim Van Sebroeck <wim@iguana.be>. * * This source code is part of the generic code that can be used * by all the watchdog timer drivers. * * Based on source code of th...
SanDisk-Open-Source/SSD_Dashboard
uefi/linux-source-3.8.0/drivers/watchdog/watchdog_core.c
C
gpl-2.0
4,853
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2016 IBM Corporation. */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/irq.h> #include <linux/smp.h> #include <linux/interrupt.h> #include <linux/cpu.h> #include <linux/of.h> #include <asm/smp.h> #include <asm/irq.h> #include <asm/errno...
CSE3320/kernel-code
linux-5.8/arch/powerpc/sysdev/xics/icp-opal.c
C
gpl-2.0
4,387
/* * Copyright 2007 Robert Schwebel <r.schwebel@pengutronix.de>, Pengutronix * Copyright (C) 2009 Sascha Hauer (kernel@pengutronix.de) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; eit...
JijonHyuni/HyperKernel-JB
virt/arch/arm/mach-imx/mach-pca100.c
C
gpl-2.0
10,691
/* * Driver for the Conexant CX23885 PCIe bridge * * Copyright (c) 2007 Steven Toth <stoth@linuxtv.org> * * 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 Lice...
JijonHyuni/HyperKernel-JB
virt/drivers/media/video/cx23885/cx23885-video.c
C
gpl-2.0
40,135
/* * Copyright (c) International Business Machines Corp., 2006 * * 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. ...
geminy/aidear
oss/linux/linux-4.7/drivers/mtd/ubi/debug.c
C
gpl-3.0
15,674
/* * Copyright (c) 2015-2016, Fred Morcos <fred.morcos@gmail.com> * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the above copyright notice and this permission notice appear * in all copies. * * THE SOFTWARE...
fredmorcos/attic
projects/backy/libcore/print.c
C
isc
2,009
/* $OpenBSD: cread.c,v 1.13 2009/01/18 21:46:50 miod Exp $ */ /* $NetBSD: cread.c,v 1.2 1997/02/04 18:38:20 thorpej Exp $ */ /* * Copyright (c) 1996 * Matthias Drochner. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fol...
orumin/openbsd-efivars
lib/libsa/cread.c
C
isc
10,442
/* FreeRTOS V7.4.0 - Copyright (C) 2013 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. *************************************************************************** * ...
andyOsaft/02_SourceCode
freeRTOS/FreeRTOSV7.4.0/FreeRTOSV7.4.0/FreeRTOS/Demo/CORTEX_MB9B500_IAR_Keil/main-full.c
C
mit
28,151
/* This software module was originally developed by Apple Computer, Inc. in the course of development of MPEG-4. This software module is an implementation of a part of one or more MPEG-4 tools as specified by MPEG-4. ISO/IEC gives users of MPEG-4 free license to this software module or modifications thereof for use ...
andresgonzalezfornell/TFM
lib/libisomediafile/src/MovieFragmentAtom.c
C
mit
7,783
/* * ============================================================================= * * Filename: cqi_pool.c * * Description: connection queue item pool. * * Created: 10/18/2012 07:56:53 PM * * Author: Fu Haiping (forhappy), haipingf@gmail.com * Company: ICT ( Institute Of C...
forhappy/LLDB
src/server/cqi_pool.c
C
mit
4,584
#include "pci.h" #include "pciids.h" #include "kstdio.h" #include "heap.h" #include "ehci.h" #define headerAddress(bus,dev,func,reg) \ ((uint32_t)((((bus) & 0xFF) << 16) | (((dev) & 0x1F) << 11) | \ (((func) & 0x07) << 8) | (((reg) & 0x3F) << 2) | 0x80000000L)) \ uint8_t pci_read_8(int bus, int dev, int fu...
zzh8829/OSPP
zos/src/pci.c
C
mit
3,137
/** ****************************************************************************** * @file CRYP/CRYP_TDESECBmode/stm32f4xx_it.c * @author MCD Application Team * @version V1.8.0 * @date 04-November-2016 * @brief Main Interrupt Service Routines. * This file provides template for al...
craftit/BMC2-Firmware
Firmware/ext/STM32F4xx_DSP_StdPeriph_Lib/Project/STM32F4xx_StdPeriph_Examples/CRYP/CRYP_TDESECBmode/stm32f4xx_it.c
C
mit
4,599
#include "math.h" #include "robot.h" #include "stdio.h" #include "stdlib.h" #include "sys/time.h" #include "time.h" #define TIMES 500 int get_info(int argc, char **argv, double *arms, double *angles, double *gx, double *gy); void moveArm(int arm, double angle); void output(mat3_t m, double error, struct timeval tv, c...
benjamin-james/robot
src/pc_demo.c
C
mit
2,708
#include <psl1ght/lv2/net.h> #include <psl1ght/lv2/errno.h> #include <sys/socket.h> #include <sys/select.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <string.h> #define __LINUX_ERRNO_EXTENSIONS__ #include <errno.h> int h_errno = 0; #define FD(socket) (socket & ~...
andoma/PSL1GHT
sprx/libnet/socket.c
C
mit
10,924
/* * Copyright © 2012-2013 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...
rib/intel-gpu-tools
tests/prime_self_import.c
C
mit
10,481
/* Copyright (c) 2017, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file test_hs_cell.c * \brief Test hidden service cell functionality. */ #define HS_INTROPOINT_PRIVATE #define HS_SERVICE_PRIVATE #include "test.h" #include "test_helpers.h" #include "log_test_helpers.h" #include "c...
hexxcointakeover/hexxcoin
src/tor/src/test/test_hs_cell.c
C
mit
3,900
/* External utility functions for Modelica packages Modelica_Utilities.Internal The functions are mostly non-portable. The following #define's are used to define the system calls of the operating system _WIN32 : System calls of Windows'95, Windows'NT (Note, that these sy...
pombredanne/metamorphosys-desktop
metamorphosys/META/analysis_tools/FAME/MSL/3.2/Modelica/Resources/C-Sources/ModelicaInternal.c
C
mit
25,865
#include <stdbool.h> #include <string.h> #include <stdio.h> #include <assert.h> #include "hkl_tree.h" #include "hkl_alloc.h" /* * HklPair */ HklPair* hkl_pair_new() { HklPair* pair = hkl_alloc_object(HklPair); pair->key = hkl_string_new(); pair->value = NULL; return pair; } HklPair* hkl_pair_new_from_d...
hkl/hkl
src/hkl_tree.c
C
mit
9,955
/***************************** Include Files *******************************/ #include "example_core_lite.h" #include "xparameters.h" #include <stdio.h> #include <stdlib.h> #include "xil_io.h" /************************** Constant Definitions ***************************/ uint32_t a_tests[] = {1,321097,45,4294967295,0,...
inmcm/Zynq_Custom_Core_Templates
example_core_lite_1.0/drivers/example_core_lite_v1_0/src/example_core_lite_selftest.c
C
mit
4,428
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */ /* @UNSAFE: whole file */ #include "lib.h" #include "ioloop.h" #include "write-full.h" #include "network.h" #include "sendfile-util.h" #include "istream.h" #include "istream-internal.h" #include "ostream-internal.h" #include <unistd.h> #inc...
via/dovecot-clouddb
src/lib/ostream-file.c
C
mit
24,954
/* main7-3.c ¼ìÑébo7-3.cµÄÖ÷³ÌÐò */ #include"c1.h" typedef char InfoType; #define MAX_Info 80 /* ÐÅÏ¢×Ö·û´®×î´ó³¤¶È+1 */ #define MAX_VERTEX_NAME 3 /* ¶¥µã×Ö·û´®×î´ó³¤¶È+1 */ typedef char VertexType[MAX_VERTEX_NAME]; #include"c7-3.h" #include"bo7-3.c" Status visit(VertexType v) { printf("%s ",v); retur...
blacop/DsCppR
YanWeiMinClangSln/ch7/Main7-3.c
C
mit
1,253
#include <assert.h> #include <string.h> #include "binson_writer.h" /* { "A": "B", "B": 1, "C": 3.0, "D": false, "E": "0x0102", "F": { }, "G": [ false, "A", "0x0102", 1, 5.142912663207646E25, false, false, false, false, false, false, false, false...
assaabloy-ppi/binson-c-light
utest/generated_test_cases/writer/w_304116b25e9a621bcac4565b2625080b.c
C
mit
5,861
/* * dpkg - main program for package management * script.c - maintainer script routines * * Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk> * Copyright © 2007-2013 Guillem Jover <guillem@debian.org> * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Genera...
nisc-code/dpkg
dpkg-1.17.5ubuntu5.3/src/script.c
C
mit
10,035
#include <malloc.h> #include <stdio.h> #include <string.h> #include <3ds.h> #include "action.h" #include "../task/task.h" #include "../../error.h" #include "../../info.h" #include "../../list.h" #include "../../prompt.h" #include "../../ui.h" #include "../../../core/linkedlist.h" #include "../../../core/screen.h" #in...
leo60228/CTRM
source/ui/section/action/erasetwlsave.c
C
mit
6,274
#include "plugins.h" #include "btlog.h" #include <dlfcn.h> #include <stdlib.h> #include <string.h> const struct object_vtable plugin_vtable = { (void (*) (void *)) plugin_delete, (void * (*) (const void *)) plugin_copy, NULL }; struct plugin * plugin_create (const char * filename) { void * handle ...
endeav0r/bt
src/plugins/plugins.c
C
mit
2,755
/* * Copyright 2017 Thomas Sterrenburg * * Licensed under the MIT License (the License); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at https://opensource.org/licenses/MIT */ #include <stdio.h> #include <curl/curl.h> #include <string.h> #include "fin...
thomas-sterrenburg/fingerprinting-poc
src/main.c
C
mit
9,349
#include "pQueue.h" #include <stdlib.h> #include <stdio.h> void initPQueue(pQueue **queue) { //We allocate memory for the priority queue type //and we initialize the values of the fields (*queue) = (pQueue *) malloc(sizeof(pQueue)); (*queue)->first = NULL; (*queue)->size = 0; return; } void addPQueu...
romhack/aBsenTminDeD
pQueue.c
C
mit
3,857
#include "injected.h" #include <mach-o/dyld_images.h> #include <mach-o/loader.h> #include <mach-o/nlist.h> #include <string.h> #include <dlfcn.h> /* These values are overwritten on a per-injection basis by the injector. */ /* Must not be defined as consts, or the compiler will optimize them. */ struct dyld_all_image_i...
LIJI32/MIP
MIP/injector/payloads/injected32.c
C
mit
4,058
/* * sfcn_linSendEnergia.c Simple C-MEX S-function for function call. * * ABSTRACT: * The purpose of this sfunction is to call a simple legacy * function during simulation: * * void linSendEnergia(int16 u1, int32 u2, uint8 u3, uint8 u4[], uint8 u5) * * Simulink version :...
dakmord/RPS
matlab_repo/srcs/TM4C1294NPDT/blocks/mex/sfcn_linSendEnergia.c
C
mit
14,721
#include <windows.h> #include <stdio.h> #include <psapi.h> #include <string.h> #include <time.h> #include <math.h> #define WINDOWNAME "Counter-Strike: Global Offensive" #define PLRSZ 0x18 #define SERVERDLL "server.dll" #define CLIENTDLL "client.dll" const DWORD plr_num_offset = 0x93DCF8; const DWORD plr_list_offset =...
remizovm/keng_esp_hack
esp.c
C
mit
4,536
#include <z80e/ti/asic.h> #include <z80e/debugger/debugger.h> #include <z80e/disassembler/disassemble.h> #include <z80e/runloop/runloop.h> #include "tui.h" #include <z80e/debugger/commands.h> #include <z80e/log/log.h> #include <z80e/ti/hardware/t6a04.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #inclu...
KnightOS/z80e
frontends/tui/main.c
C
mit
8,311
/* ** functions.c for functions.c in /home/kiwi/CPool_evalexpr ** ** Made by Lyes Kaïdi ** Login <kiwi@epitech.net> ** ** Started on Fri Oct 28 17:44:44 2016 Lyes Kaïdi ** Last update Fri Oct 28 17:47:02 2016 Lyes Kaïdi */ #include "./include/calc.h" #include "./include/my_functs.h" int next_token_index = 0;...
LyesKaidi/Eval_Expr
functions.c
C
mit
2,147
// Copyright 2017 jem@seethis.link // Licensed under the MIT license (http://opensource.org/licenses/MIT) #include "key_handlers/key_normal.h" #include "core/matrix_interpret.h" #include "hid_reports/keyboard_report.h" /* TODO: fn keycode */ bit_t is_layer_keycode(keycode_t keycode) { return ( keycode >= KC_L0 ...
ahtn/keyplus
src/key_handlers/key_normal.c
C
mit
4,365
#include <Python.h> #include <stdio.h> #include <complex.h> #include "julia.c" static PyObject *_julia_Julia(PyObject *self, PyObject *args){ double min_r, max_r, min_i, max_i, resolution; Py_complex z; double complex Z; if(!PyArg_ParseTuple(args, "ddddDd", &min_r, &max_r, &min_i, &max_i, &z, &resolu...
jfamestad/julia
pyjulia.c
C
mit
1,532
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
pfalcon/micropython
ports/stm32/pyb_i2c.c
C
mit
37,207
/* main.c */ #define F_CPU 8000000 #include <stdio.h> #include <string.h> #include <util/delay.h> #include <avr/interrupt.h> #include <avr/io.h> #include "../lib/ring_buffer.h" #include "../lib/serial.h" /* Basic test of interrupt based serial functionality */ int main(void) { uart_init(); sei();...
alexburn97/AVR-C-Development-Board
3_Interrupt_Serial/src/main.c
C
mit
1,148
#define _POSIX_SOURCE #define _POSIX_C_SOURCE 200112L #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <stdlib.h> int main(int argc, char**argv){ if ((argc != 2) || (0 == strcmp(argv[1], "-h"))){ printf("usage: %s path\n", argv[0]); return 1; } int retval = 0; /* p...
zorts/external_links
readlink.c
C
mit
1,508
int myAtoi(char* str) { while(1){ if(NULL == str){ return 0; } char v = *str; if(v == ' ' || v == '\t' || v == '\n' || v == '\r'){ str++; }else{ break; } } int positive = 1; char* start=NULL; if((*str) == '...
nolink/algorithm
Leetcode/N008atoi.c
C
mit
1,406
/*************************************************************************************** * This header file is an implementation for search_anagram * Author: huhao * Date: 2017.07.22 * Modification record: * ***************************************************************************************/ #include <string...
huhumt/programming_pearls_practice
column002_aha_algorithm/search_anagram/search_anagram.c
C
mit
5,513
/* * Copyright (c) 1998-2005 The TCPDUMP project * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code * distributions retain the above copyright notice and this paragraph * in its entirety, and (2) distributions including binary code i...
hsluoyz/WinDump
print-slow.c
C
mit
9,213
/*This file has been prepared for Doxygen automatic documentation generation.*/ /*! \file ********************************************************************* * * \brief MACB driver for EVK1100 board. * * This file defines a useful set of functions for the MACB interface on * AVR32 devices. * * - Compiler: ...
andyOsaft/02_SourceCode
freeRTOS/FreeRTOSV7.4.0/FreeRTOSV7.4.0/FreeRTOS/Demo/lwIP_AVR32_UC3/DRIVERS/MACB/macb.c
C
mit
32,968
#include <pthread.h> #include <stdio.h> #include <stdlib.h> // compile by gcc -o syc_m syc_m.c -pthread // ./syc_m int MAX = 10; int count = 1; pthread_mutex_t mutex; void print_star(int i) { int j; pthread_mutex_lock(&mutex); for (j = 1; j <= i; j++) { printf("*"); } // printf(" %d"...
USMC1941/CS214-Rutgers
Recitations/Section_07/Code/recitation_11_14_code/syc_m.c
C
mit
1,385
/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of th...
abhimanbhau/C-Compiler_Dummy
Lab2/cdlab/y.tab.c
C
mit
43,315
/** * Example implementation of the dialog choice UI pattern. */ #include "dialog_choice_window.h" #include "xadow.h" static Window *s_diag_window; static TextLayer *s_label_layer; static BitmapLayer *s_icon_layer; static ActionBarLayer *s_action_bar_layer; static uint8_t resp_buffer[3]; static SmartstrapAttribute ...
Seeed-Studio/Xadow_Strap
src/dialog_choice_window.c
C
mit
5,380
/*=== buffer: ptr-is-NULL=0, sz=1024 buffer buffer: ptr-is-NULL=-1, sz=0 buffer buffer: ptr-is-NULL=0, sz=1024 buffer buffer: ptr-is-NULL=-1, sz=0 buffer rc=0, result=undefined rc=1, result=TypeError: not buffer rc=1, result=TypeError: not buffer rc=1, result=TypeError: not buffer ===*/ int test_1(duk_context *ctx) { ...
JoshEngebretson/duktape
api-testcases/test-require-buffer.c
C
mit
2,133
/* Simple DirectMedia Layer Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
gdewald/Sputter
jni/external/sdl/src/audio/arts/SDL_artsaudio.c
C
mit
11,070
/** * @file ic_frame_constructor.c * @author Paweł Kaźmierzewski <p.kazmierzewski@inteliclinic.com> * @author Wojtek Weclewski <w.weclewski@inteliclinic.com> * @date February, 2017 * @brief Brief description * * Description */ #include "ic_frame_constructor.h" #pragma GCC visibility push(hidden) typ...
inteliclinic/neuroon-unified-communication
src/ic_frame_constructor.c
C
mit
7,569
/* myrootkit.c: fill in the blanks to write your first rootkit! */ #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/unistd.h> MODULE_LICENSE("GPL"); MODULE_AUTHOR("Your name here"); // syscall_table perm addr in the kernel unsigne...
bekher/rt-techtalk
basic/myrootkit.c
C
mit
1,331
/* ################################################################### ** This component module is generated by Processor Expert. Do not modify it. ** Filename : RTC.c ** Project : SeismicPi_Firmware ** Processor : MK22FN128VLH10 ** Component : RTC_LDD ** Version : Component 01.16...
SeismicPi/SeismicPi
Firmware/SeismicPi_Firmware/Generated_Code/RTC.c
C
mit
18,182
/** * OpenAL cross platform audio library * Copyright (C) 2009 by Chris Robinson. * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your ...
fjz13/Medusa
External/openal/Alc/effects/modulator.c
C
mit
10,189
/* * The MIT License (MIT) * * Copyright (c) 2019 Ha Thach (tinyusb.org) * * 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...
hathach/tinyusb
examples/device/cdc_dual_ports/src/usb_descriptors.c
C
mit
9,553
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_popen_06.c Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml Template File: sources-sink-06.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_listen_socket_popen_06.c
C
mit
7,110
/* ** 2015-04-17 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** **************************...
wanliming11/MurlocAlgorithms
Last/OpenSource/sqlite-317/sqlite-src-3170000/tool/fuzzershell.c
C
mit
40,964
#include <z80e/debugger/commands.h> #include <z80e/debugger/debugger.h> #include <z80e/disassembler/disassemble.h> #include <z80e/log/log.h> #include <string.h> #include <strings.h> #include <stdlib.h> #include <stdio.h> #include <stdarg.h> enum { REGISTER, MEMORY, EXECUTION, }; enum { READ = (1 << 0), WRITE = ...
matrefeytontias/z80e-sdl-win
z80e-sdl/debugger/commands/on.c
C
mit
6,817
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_rand_square_09.c Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-09.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: rand Set data to result of rand(), which may be zero ...
maurer/tiamat
samples/Juliet/testcases/CWE190_Integer_Overflow/s04/CWE190_Integer_Overflow__int_rand_square_09.c
C
mit
4,957
/* * Copyright (C) 1996-2000,2002,2007 Michael R. Elkins <me@mutt.org> * * 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 opt...
hihellobolke/mutt-extra
hdrline.c
C
mit
19,546
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__malloc_free_char_11.c Label Definition File: CWE416_Use_After_Free__malloc_free.label.xml Template File: sources-sinks-11.tmpl.c */ /* * @description * CWE: 416 Use After Free * BadSource: Allocate data using malloc(), initialize memory bl...
maurer/tiamat
samples/Juliet/testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__malloc_free_char_11.c
C
mit
5,310
/* * File: main.c * Author: topseten * * Created on December 28, 2014, 11:17 PM */ #include "main.h" #define MAX_LINE 256 void vfree(const void*,void **,void *); void test(Ring_T data); int main(int argc, char** argv) { // test ////////////////////////////////////////////////////////////////...
crazyhuaer/netbeanscode
C/study/smarthome/main.c
C
cc0-1.0
14,036