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 |
|---|---|---|---|---|---|
// SPDX-License-Identifier: GPL-2.0
/*
* driver: reading from and writing to system console on S/390 via SCLP
*
* Copyright IBM Corp. 1999, 2009
*
* Author(s): Martin Peschke <mpeschke@de.ibm.com>
* Martin Schwidefsky <schwidefsky@de.ibm.com>
*/
#include <linux/kmod.h>
#include <linux/types.h>
#include <l... | CSE3320/kernel-code | linux-5.8/drivers/s390/char/sclp_rw.c | C | gpl-2.0 | 12,378 |
/*
dmx3191d.c - driver for the Domex DMX3191D SCSI card.
Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
Portions Copyright (C) 2004 by Christoph Hellwig <hch@lst.de>
Based on the generic NCR5380 driver by Drew Eckhardt et al.
This program is free software; you can redistribute it an... | mkvdv/au-linux-kernel-autumn-2017 | linux/drivers/scsi/dmx3191d.c | C | gpl-3.0 | 4,351 |
/*
* Board support file for Nokia RM-680.
*
* Copyright (C) 2010 Nokia
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/io.h>
#include <linux/i2c.h>
#inclu... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/arch/arm/mach-omap2/board-rm680.c | C | apache-2.0 | 3,788 |
/*
* fs/f2fs/namei.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.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 Foundation.
*/
#include <... | mdmower/android_kernel_htc_msm8960 | fs/f2fs/namei.c | C | gpl-2.0 | 20,280 |
/*
* KFR2R09 board support code
*
* Copyright (C) 2009 Magnus Damm
*
* 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.
*/
#include <linux/init.h>
#include <linux/platform_device.h>
#include <l... | geminy/aidear | oss/linux/linux-4.7/arch/sh/boards/mach-kfr2r09/setup.c | C | gpl-3.0 | 16,113 |
/*
* Copyright (c) 2013, Mellanox Technologies inc. All rights reserved.
*
* 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 th... | mericon/Xp_Kernel_LGH850 | virt/drivers/net/ethernet/mellanox/mlx5/core/mad.c | C | gpl-2.0 | 2,378 |
// SPDX-License-Identifier: GPL-2.0
#include <linux/jhash.h>
#include <linux/netfilter.h>
#include <linux/rcupdate.h>
#include <linux/rhashtable.h>
#include <linux/vmalloc.h>
#include <net/genetlink.h>
#include <net/ila.h>
#include <net/netns/generic.h>
#include <uapi/linux/genetlink.h>
#include "ila.h"
struct ila_xla... | koct9i/linux | net/ipv6/ila/ila_xlat.c | C | gpl-2.0 | 13,982 |
/*
* Copyright 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
*
* 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.
*
* Compatibility file for Linux wireless for kernels 2.6.24.... | kbc-developers/android_kernel_semc_xperia2011 | ti_wlan/compat-wireless-wl12xx/compat/compat-2.6.24.c | C | gpl-2.0 | 4,492 |
/* kernel/power/wakelock.c
*
* Copyright (C) 2005-2008 Google, 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 ... | jerem/linux-rk3066 | kernel/power/wakelock.c | C | gpl-2.0 | 20,898 |
/* Copyright (c) 2012, 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 hope t... | thecubed/android_kernel_lge_geefhd | drivers/platform/msm/qpnp-pwm.c | C | gpl-2.0 | 44,573 |
/*
* OMAP2 Power Management Routines
*
* Copyright (C) 2005 Texas Instruments, Inc.
* Copyright (C) 2006-2008 Nokia Corporation
*
* Written by:
* Richard Woodruff <r-woodruff2@ti.com>
* Tony Lindgren
* Juha Yrjola
* Amit Kucheria <amit.kucheria@nokia.com>
* Igor Stoppa <igor.stoppa@nokia.com>
*
* Based on ... | AiJiaZone/linux-4.0 | virt/arch/arm/mach-omap2/pm24xx.c | C | gpl-2.0 | 8,162 |
/*
* AMD 10Gb Ethernet driver
*
* This file is available to you under your choice of the following two
* licenses:
*
* License 1: GPLv2
*
* Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
*
* This file is free software; you may copy, redistribute and/or modify
* it under the terms of the GNU General Pub... | geminy/aidear | oss/linux/linux-4.7/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | C | gpl-3.0 | 20,901 |
/*
* Board support file for Nokia RM-680/696.
*
* Copyright (C) 2010 Nokia
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/io.h>
#include <linux/i2c.h>
#i... | talnoah/android_kernel_htc_dlx | virt/arch/arm/mach-omap2/board-rm680.c | C | gpl-2.0 | 4,180 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* irq_comm.c: Common API for in kernel interrupt controller
* Copyright (c) 2007, Intel Corporation.
*
* Authors:
* Yaozu (Eddie) Dong <Eddie.dong@intel.com>
*
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*/
#include <linux/kvm_host.h>
#include <linux/slab... | rperier/linux | arch/x86/kvm/irq_comm.c | C | gpl-2.0 | 11,141 |
/**************************************************************************//**
* @file system_ARMCM3.c
* @brief CMSIS Device System Source File for
* ARMCM3 Device Series
* @version V1.08
* @date 23. November 2012
*
* @note
*
*****************************************************... | Stanford-BDML/super-scamp | vendor/CMSIS/CMSIS/DSP_Lib/Examples/arm_variance_example/ARM/RTE/Device/ARMCM3/system_ARMCM3.c | C | gpl-3.0 | 3,281 |
/*
* CCM: Counter with CBC-MAC
*
* (C) Copyright IBM Corp. 2007 - Joy Latten <latten@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; either version 2 of the License, or (at ... | JijonHyuni/HyperKernel-JB | virt/crypto/ccm.c | C | gpl-2.0 | 22,059 |
/* linux/arch/arm/mach-s3c2440/mach-osiris.c
*
* Copyright (c) 2005-2008 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <ben@simtec.co.uk>
*
* 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 t... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/arch/arm/mach-s3c24xx/mach-osiris.c | C | gpl-2.0 | 10,363 |
/*
* Copyright 2011 Freescale Semiconductor, Inc
*
* Freescale Integrated Flash Controller
*
* Author: Dipen Dudhat <Dipen.Dudhat@freescale.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 Softwar... | AiJiaZone/linux-4.0 | virt/drivers/memory/fsl_ifc.c | C | gpl-2.0 | 9,139 |
/*
* V4L2 Driver for SuperH Mobile CEU interface
*
* Copyright (C) 2008 Magnus Damm
*
* Based on V4L2 Driver for PXA camera host - "pxa_camera.c",
*
* Copyright (C) 2006, Sascha Hauer, Pengutronix
* Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
*
* This program is free software; you can re... | AiJiaZone/linux-4.0 | virt/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c | C | gpl-2.0 | 57,025 |
/*
* linux/fs/nfs/file.c
*
* Copyright (C) 1992 Rick Sladkey
*
* Changes Copyright (C) 1994 by Florian La Roche
* - Do not copy data too often around in the kernel.
* - In nfs_file_read the return value of kmalloc wasn't checked.
* - Put in a better version of read look-ahead buffering. Original idea
... | mbrugg/MC-EWIO-KERNEL-ORG | fs/nfs/file.c | C | gpl-2.0 | 24,488 |
/*
* pcmad.c
* Hardware driver for Winsystems PCM-A/D12 and PCM-A/D16
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 2000,2001 David A. Schleef <ds@schleef.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... | mericon/Xp_Kernel_LGH850 | virt/drivers/staging/comedi/drivers/pcmad.c | C | gpl-2.0 | 4,044 |
/*
* Cell MIC driver for ECC counting
*
* Copyright 2007 Benjamin Herrenschmidt, IBM Corp.
* <benh@kernel.crashing.org>
*
* This file may be distributed under the terms of the
* GNU General Public License.
*/
#undef DEBUG
#include <linux/edac.h>
#include <linux/module.h>
#include <linux/init.h>
... | mericon/Xp_Kernel_LGH850 | virt/drivers/edac/cell_edac.c | C | gpl-2.0 | 7,930 |
/*
* Misc utility routines used by kernel or app-level.
* Contents are wifi-specific, used by any kernel or app-level
* software that might want wifi things as it grows.
*
* Copyright (C) 1999-2011, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement... | Xmister/linux-sunxi | modules/wifi/bcm40183/5.90.125.95.3/open-src/src/shared/bcmwifi.c | C | gpl-2.0 | 5,831 |
/*
* linux/ipc/util.c
* Copyright (C) 1992 Krishna Balasubramanian
*
* Sep 1997 - Call suser() last after "normal" permission checks so we
* get BSD style process accounting right.
* Occurs in several places in the IPC code.
* Chris Evans, <chris@ferret.lmh.ox.ac.uk>
* Nov 1999 ... | andrea2107/android_kernel_xiaomi_hermes | ipc/util.c | C | gpl-2.0 | 23,117 |
/*
* Copyright © 2000 SuSE, Inc.
* Copyright © 2007, 2009 Red Hat, Inc.
* Copyright © 2009 Soren Sandmann
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies ... | zztiswb116/WinObjC | deps/3rdparty/pixmanlegacy/pixman/pixman-solid-fill.c | C | mit | 3,473 |
/*
* S390 version
* Copyright IBM Corp. 1999
* Author(s): Hartmut Penner (hp@de.ibm.com)
*
* Derived from "arch/i386/mm/init.c"
* Copyright (C) 1995 Linus Torvalds
*/
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#incl... | patjak/linux | arch/s390/mm/init.c | C | gpl-2.0 | 5,850 |
// SPDX-License-Identifier: GPL-2.0
/*
* (C) 2001 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
/*
* Linux VFS extended attribute operations.
*/
#include "protocol.h"
#include "orangefs-kernel.h"
#include "orangefs-bufmap.h"
#include <linux/posix_acl_xattr.h>
#incl... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/fs/orangefs/xattr.c | C | gpl-2.0 | 12,684 |
/*
* Intel Management Engine Interface (Intel MEI) Linux driver
* Copyright (c) 2015, 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.
*
* ... | geminy/aidear | oss/linux/linux-4.7/drivers/watchdog/mei_wdt.c | C | gpl-3.0 | 16,267 |
/*
* linux/fs/namespace.c
*
* (C) Copyright Al Viro 2000, 2001
* Released under GPL v2.
*
* Based on code from fs/super.c, copyright Linus Torvalds and others.
* Heavily rewritten.
*/
#include <linux/syscalls.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/percp... | JijonHyuni/HyperKernel-JB | virt/fs/namespace.c | C | gpl-2.0 | 66,557 |
// SPDX-License-Identifier: GPL-2.0-or-later
/* exynos_drm_vidi.c
*
* Copyright (C) 2012 Samsung Electronics Co.Ltd
* Authors:
* Inki Dae <inki.dae@samsung.com>
*/
#include <linux/component.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/timer.h>
#include <drm/drm_atomic_helper.h>... | CSE3320/kernel-code | linux-5.8/drivers/gpu/drm/exynos/exynos_drm_vidi.c | C | gpl-2.0 | 12,485 |
/*
* IBM eServer eHCA Infiniband device driver for Linux on POWER
*
* SQP functions
*
* Authors: Khadija Souissi <souissi@de.ibm.com>
* Heiko J Schick <schickhj@de.ibm.com>
*
* Copyright (c) 2005 IBM Corporation
*
* All rights reserved.
*
* This source code is distributed under a dual licens... | talnoah/android_kernel_htc_dlx | virt/drivers/infiniband/hw/ehca/ehca_sqp.c | C | gpl-2.0 | 7,028 |
/*
*
Copyright (c) Eicon Networks, 2000.
*
This source file is supplied for the use with
Eicon Networks range of DIVA Server Adapters.
*
Eicon File Revision : 1.9
*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published b... | JijonHyuni/HyperKernel-JB | virt/drivers/isdn/hardware/eicon/maintidi.c | C | gpl-2.0 | 68,416 |
/* Area: ffi_call, closure_call
Purpose: Test long doubles passed in variable argument lists.
Limitations: none.
PR: none.
Originator: Blake Chaffin 6/6/2007 */
/* { dg-do run { xfail strongarm*-*-* xscale*-*-* } } */
/* { dg-output "" { xfail avr32*-*-* x86_64-*-mingw* } } */
/* { dg-output "" { xfai... | eprislac/guard-yard | vendor/ruby/2.3.0/gems/ffi-1.9.8/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c | C | mit | 1,551 |
/*
* Copyright (C) 2007 Google, Inc.
* Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
*
* 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.
*... | keeeener/nicki | kernel/arch/arm/mach-msm/timer.c | C | gpl-2.0 | 32,618 |
/*
* net/dsa/slave.c - Slave device handling
* Copyright (c) 2008-2009 Marvell Semiconductor
*
* 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 yo... | JijonHyuni/HyperKernel-JB | virt/net/dsa/slave.c | C | gpl-2.0 | 10,433 |
/* CopyRight (C) 2007 Qualcomm Inc. All Rights Reserved.
*
*
* This file is part of Express Card USB Driver
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/usb.h>
#include "ft1000_usb.h"
... | publicloudapp/csrutil | linux-4.3/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | C | mit | 40,085 |
/*
* Copyright 2011 Cisco Systems, Inc. All rights reserved.
*
* This program is free software; you may 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.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WAR... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/net/ethernet/cisco/enic/enic_pp.c | C | apache-2.0 | 9,159 |
/*
* Cobalt time initialization.
*
* Copyright (C) 2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
*
* 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,... | felixhaedicke/nst-kernel | src/arch/mips/cobalt/time.c | C | gpl-2.0 | 1,481 |
/*
* omap_hwmod_2xxx_interconnect_data.c - common interconnect data for OMAP2xxx
*
* Copyright (C) 2009-2011 Nokia Corporation
* Paul Walmsley
*
* 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 Soft... | prasidh09/cse506 | unionfs-3.10.y/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c | C | gpl-2.0 | 10,369 |
/*
* Copyright (C) 2004 Florian Schirmer <jolt@tuxbox.org>
* Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either ver... | go2ev-devteam/Gplus_2159_0801 | openplatform/sdk/os/kernel-2.6.32/arch/mips/bcm47xx/prom.c | C | gpl-2.0 | 4,571 |
/*
* BCMSDH interface glue
* implement bcmsdh API for SDIOH driver
*
* Copyright (C) 1999-2012, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General P... | LeJay/android_kernel_samsung_jactiveltexx_stock | drivers/net/wireless/bcmdhd/bcmsdh.c | C | gpl-2.0 | 18,889 |
/*
* ImgTec IR Decoder setup for JVC protocol.
*
* Copyright 2012-2014 Imagination Technologies Ltd.
*
* 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 ... | mericon/Xp_Kernel_LGH850 | virt/drivers/media/rc/img-ir/img-ir-jvc.c | C | gpl-2.0 | 2,074 |
/*
* This file is part of PET.
*
* PET 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.
*
* PET is distributed in the hope that ... | fredmorcos/attic | projects/pet/archive/pet_c_20130615_master/file.c | C | isc | 2,195 |
// Copyright (C) 2012 Nick Johnson <nickbjohnson4224 at gmail.com>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "A... | nickbjohnson4224/pinion64 | src/pinion64/log.c | C | isc | 3,757 |
/* Copyright Joyent, Inc. and other Node contributors. 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
* righ... | bnoordhuis/suv | deps/libuv/test/test-fs.c | C | isc | 47,266 |
/* Copyright (c) 2022 Dennis Wölfing
*
* 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" AND THE AUTHOR DISCLAI... | dennis95/dennix | libc/src/thread/thrd_create.c | C | isc | 1,238 |
/*
* Author: NagaChaitanya Vellanki
*
*
* Use the run_stats_file_write_with_buf_sizes.sh to run with various
* buffer sizes
*
* /run_stats_file_write_with_buf_sizes.sh nvellanki@l-desktop-268
* Bu... | chaitanyav/cprograms | stats_file_write.c | C | isc | 2,659 |
/*
* \file cpsw.c
*
* \brief This file contains functions which configure CPSW instance
*/
/*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | Chester-Gillon/AM3352-SOM-EVB_bare_metal | source/AM3352_SOM_platform/platform_cpsw.c | C | isc | 9,634 |
/* $Id$ */
/*
* %ISC_START_LICENSE%
* ---------------------------------------------------------------------
* Copyright 2006-2018, Pittsburgh Supercomputing Center
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, pro... | pscedu/slash2-stable | pfl/tests/prsig/prsig_test.c | C | isc | 1,426 |
#include <stdio.h>
#include "list_queue.h"
int main()
{
Queue q;
ElementType i;
ElementType tmp;
q = CreateQueue();
PrintQueue(q);
if(IsEmptyQueue(q)) {
printf("\nEmpty queue.\n");
}
printf("\n\n");
for(i = 0; i < 10; i++) {
printf("Push %d into queue. \n", i);
... | Cyw1104/data-structures-and-algorithm-in-c | tests/list_queue_test.c | C | mit | 1,324 |
/*******************************************************************************
* Copyright (c) 2017 Vasiliy Nerozin
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE.md for details.
*******************************************************... | vnerozin/cimlib | platforms/portable/sc_math/sc_log2_u16.c | C | mit | 3,160 |
/************************************************************************/
/* */
/* Copyright (C) 1996 by Frank Mueller. */
/* This code was developed at Humboldt University Berlin. */
/* Distributed by th... | rahlk/Parallel-Systems | src/hw2/mympi/sock_msg.c | C | mit | 10,843 |
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "../util/util.h"
#include "../util/alloc.h"
#include "../util/dynarray.h"
#include "decl_init.h"
#include "funcargs.h"
#include "tokenise.h"
#include "tokconv.h"
#include "sue.h"
#include "s... | 8l/ucc-c-compiler | src/cc1/parse_type.c | C | mit | 50,274 |
/**
* Linux-specific functions to handle a segmentation fault
*
* Some documentation:
* * http://feepingcreature.github.io/handling.html
* Cleanly recovering from Segfaults under Windows and Linux (32-bit, x86)
*/
#include "recover_segfault.h"
#include <assert.h>
#include <signal.h>
#include <stddef.h>
#includ... | fishilico/shared | c/recover_segfault/os_linux.c | C | mit | 3,430 |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3b, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | quyse/inanity | deps/softfloat/softfloat/source/i64_to_f64.c | C | mit | 2,297 |
#include <stdio.h>
#include <math.h>
#define log2(x) log(x)/log(2)
#define MAX 100
const double p[MAX] = {0.2, 0.2, 0.15, 0.15, 0.10, 0.10, 0.05, 0.05};
const unsigned n = 8; /* Брой вероятности */
/* Пресмята ентропията на източника */
double calcEntropy(const double *p, const unsigned n)
{ unsigned i;
... | vladislav-karamfilov/Algorithms-CSharp-Translation | Sources-C/Programming=++Algorithms;/chapter10/entropy.c | C | mit | 1,598 |
/*
* The MIT License
*
* Copyright © 2016 2sui.
*
* 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, ... | 2sui/QPHi | src/core/qp_io_core.c | C | mit | 6,671 |
/**
* \file
*
* \brief megaAVR Timer/Counter (TC) Timeout Driver Example 1
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | femtoio/femto-usb-blink-example | blinky/blinky/asf-3.21.0/mega/drivers/tc/tc_timeout_example1/tc_timeout_example1.c | C | mit | 4,874 |
/*
* Copyright (c) 2007 - 2020 Joseph Gaeddert
*
* 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, mer... | JayKickliter/liquid-dsp | src/filter/tests/iirdes_autotest.c | C | mit | 2,715 |
/**
******************************************************************************
* @file Projects/Multi/Examples/IKS01A2/LSM6DSL_FIFOContinuousMode/Src/stm32l4xx_hal_msp.c
* @author CL
* @version V4.0.0
* @date 1-May-2017
* @brief HAL MSP module.
*****************************************... | PPA-Kerhoas-BLE/MeteoStation | STM32CubeExpansion_MEMS1_V4.1.0/Projects/Multi/Examples/IKS01A2/LSM6DSL_FIFOContinuousMode/Src/stm32l4xx_hal_msp.c | C | mit | 6,293 |
/*
* $QNXLicenseC:
* Copyright 2008, QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/licenses/LICENS... | guileschool/BEAGLEBONE-tutorials | BBB-firmware/qnxbsp-nto650-ti-beaglebone-sp1/src/hardware/startup/lib/hwitag_set_busattr.c | C | mit | 1,692 |
/* The single most stupid mapping object interface EVER WRITTEN.
* f03lipe, 2013.
*/
#include "mapObj.h"
/* MapObj interface */
MapObj *
copyMapObj(MapObj * dest, MapObj * source) {
/* Copies a mapping object from source to dest. */
dest = memcpy(dest, source, sizeof(MapObj));
return dest;
}
void
freeMapObj(... | f03lipe/decipher | src/mapObj.c | C | mit | 1,408 |
#pragma config(Hubs, S1, HTMotor, HTMotor, none, none)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Motor, mtr_S1_C1_1, motorBL, tmotorTetrix, openLoop, driveLeft)
#pragma config(Motor, mtr_S1_C1_2, motorFL, tmotorTetrix, openLoop, driveLeft)
#pragma... | lightning-robotics/FTC-Cascade-Effect | Practice/motor_movement_examples.c | C | mit | 2,923 |
/* quirc - QR-code recognition library
* Copyright (C) 2010-2012 Daniel Beer <dlbeer@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.
... | wynd2608/OpenSiv3D | Siv3D/src/ThirdParty/quirc/identify.c | C | mit | 26,856 |
/*
* windows_ime.c -- Input method engine support for windows platform.
*
* Copyright (c) 2018, Liu chao <lc-soft@live.cn> All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistribu... | lc-soft/LCUI | src/platform/windows/windows_ime.c | C | mit | 3,073 |
/*
** 2012-02-08
**
** 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.
**
*************************... | audioprog/lsmdb | lsm/lsm_varint.c | C | mit | 4,431 |
/*
* gptimer_base.c
* Copyright (C) 2014 xent
* Project is distributed under the terms of the MIT License
*/
#include <halm/platform/lpc/clocking.h>
#include <halm/platform/lpc/gptimer_base.h>
#include <halm/platform/lpc/system.h>
#include <assert.h>
/*--------------------------------------------------------------... | stxent/halm | platform/lpc/lpc11exx/gptimer_base.c | C | mit | 8,903 |
/**
* @file gsmmng.c
*
*/
/*********************
* INCLUDES
*********************/
#include "gsmmng.h"
#if USE_GSMMNG != 0
#include <string.h>
#include "hal/gsm/gsm.h"
#include "hal/systick/systick.h"
#include "../os/ptask.h"
#include "hw/dev/ui/log.h"
/*********************
* DEFINES
***********... | littlevgl/misc | comm/gsmmng.c | C | mit | 4,629 |
/*
* Copyright (c) 2012-2019 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <vdp2/scrn.h>
#include <assert.h>
#include "vdp-internal.h"
void
vdp2_scrn_reduction_set(vdp2_scrn_t scroll_screen, vdp2_scrn_reduction_t reduction)
{
#ifdef DEBUG
/* Check if the b... | ijacquez/libyaul | libyaul/scu/bus/b/vdp/vdp2_scrn_reduction.c | C | mit | 2,344 |
#include <stdio.h>
#include <CoreFoundation/CoreFoundation.h>
#include <ApplicationServices/ApplicationServices.h>
int generatePages(const char *documentPath) {
int error = 0;
CFStringRef path = CFStringCreateWithCString(
NULL, documentPath, kCFStringEncodingUTF8
);
CFURLRef url = CFURLCreateWithFileSystemPath(
... | ndfred/python-pdfkit | kindergarden/extract.c | C | mit | 1,835 |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU... | sinkpoint/hodaie-teem | src/air/math.c | C | mit | 17,799 |
//
// level.c
//
//
// Created by Dirk Mika on 23.04.13.
//
//
#include <pebble.h>
#include "level.h"
#include "config.h"
#include "block.h"
void level_load(Level *level, uint8_t nr)
{
uint8_t levelData[LEVEL_NUM_ROWS][LEVEL_DATA_BYTES_PER_ROW];
ResHandle levelResource = resource_get_handle(RESOURCE_ID_RA... | pebble-hacks/pebloid-xl | src/level.c | C | mit | 1,329 |
/*
* Demonstration TLS client
*
* Compile with
*
* gcc -Wall -o tls_client tls_client.c -L/usr/lib -lssl -lcrypto
*
* Execute with
*
* ./tls_client <server_INET_address> <port> <client message string>
*
* Generate certificate with
*
* openssl req -x509 -nodes -days 365... | arjun372/CS111_Spring16 | Lab 4/TLS/tls_header.c | C | mit | 3,037 |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/errno.h>
#include "hash_table.h"
#include "../codes.h"
char* readFile(char* name) {
FILE *input = fopen(name, "r");
fseek(input, 0, SEEK_END);
size_t size = ftell(input);
rewind(input);
char* buffer = mal... | andars/vm | assembler/assembler.c | C | mit | 2,749 |
/*
* (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering
*
* Copyright (C) 2006 Micronas GmbH
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <linux/errno.h>
#include "vct.h"
/*
* List of statically defined buffers per SCC.
* The first entry in the table is the numbe... | guileschool/BEAGLEBONE-tutorials | BBB-firmware/u-boot-v2018.05-rc2/board/micronas/vct/scc.c | C | mit | 24,099 |
#include "pnlist.h"
#include "list.h"
#include "pnstring.h"
#include "pnobject.h"
#include "pnfunction.h"
#include "pnbool.h"
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
/**
* decrease reference counting, and delete item
*/
static void pn_list_item_deleter(void *item)
{
PnObject_Destroy((pn_ob... | peanut-lang/peanut | src/pnlist.c | C | mit | 9,951 |
/*
* Copyright (c) 2002-2003 NONAKA Kimihiro
* 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... | AZO234/NP2kai | x/gtk2/gtk_mouse.c | C | mit | 5,404 |
// Intel 8259A programmable interrupt controllers.
#include "types.h"
#include "x86.h"
#include "traps.h"
// I/O Addresses of the two programmable interrupt controllers
#define IO_PIC1 0x20 // Master (IRQs 0-7)
#define IO_PIC2 0xA0 // Slave (IRQs 8-15)
#define IRQ_SLAVE 2 // IRQ at ... | Tachibana-General-Laboratories/lainos-fail | kernel/picirq.c | C | mit | 2,336 |
#include "device.h"
#include "FDCdrv.h"
#include "keyboard.h"
#include "ATAdrv.h"
#include "system.h"
#include "vga.h"
#include "pci-main.h"
#include "dp8390.h"
#include "clock.h"
#include "gdebug.h"
#include "idt.h"
/* ±±Éf... | ddk50/tinyos | device.c | C | mit | 4,789 |
/*
* $Id: pa_win_wmme.c 1340 2008-02-15 08:31:42Z rossb $
* pa_win_wmme.c
* Implementation of PortAudio for Windows MultiMedia Extensions (WMME)
*
* PortAudio Portable Real-Time Audio Library
* Latest Version at: http:... | pikoro/sharpsdr | PortAudio/tags/v19p-2008-03-20/src/hostapi/wmme/pa_win_wmme.c | C | mit | 148,429 |
/* This code is placed in the public domain. */
#include <stdlib.h>
#include <math.h>
#include "soundpipe.h"
#include "openlpc.h"
int sp_lpc_create(sp_lpc **lpc)
{
*lpc = malloc(sizeof(sp_lpc));
return SP_OK;
}
int sp_lpc_destroy(sp_lpc **lpc)
{
sp_lpc *plpc;
plpc = *lpc;
free(plpc->e);
free(... | PaulBatchelor/Soundpipe | modules/lpc.c | C | mit | 2,289 |
#include <math.h>
#include <stdio.h>
#include <string.h>
float freqs[] = { 246.94, 261.63, 277.18, 293.66, 311.13, 329.63, 349.23, 369.99, 392.00, 415.30, 440.00, 466.16, 493.88, 523.25 };
void getLine(FILE * file, char * buffer, int size) {
int i = 0;
char c = fgetc(file);
while(c != '\r' && c != '\n' && c != EO... | FTCTeam772/Competition | Music/Compiler/MusicCompiler.c | C | mit | 6,598 |
/**********************************************************************
vm_insnhelper.c - instruction helper functions.
$Author: usa $
Copyright (C) 2007 Koichi Sasada
**********************************************************************/
/* finish iseq array */
#include "insns.inc"
#include <math.h>
#inclu... | ontouchstart/docker-ruby-1.9 | ruby-1.9.3-p551/vm_insnhelper.c | C | mit | 40,580 |
#include "uart.h"
#include "s5pv210.h"
#define IRQ_PUSH __asm__( \
"ldr sp, =0xD0034000 \n"\
"subs lr, lr, #4 \n"\
"stmfd sp!, {r0-r12, lr} \n"\
);
#define IRQ_POP __asm__( \
"ldmfd sp!, {r0-r12,pc}^ \n"\
);
/*enable CPSR I-bit*/
#define IRQ_ENABLE __asm__ (\
"mrs r0, cpsr \n"\
"bic ... | misizeji/StudyNote_201308 | platform/day4/01-all-key-int/drivers/interrupt/interrupt.c | C | mit | 1,445 |
/*
* Copyright (c) 1998-2003 Bart Massey
* All Rights Reserved
* Please see end of file for license information
*/
typedef int bb_names;
typedef int item_names;
typedef int item_types;
#include "bbb.h"
#include "bbbpri.h"
#define ELEM _callback_rec
#include "ll.c"
#undef ELEM
#define ELEM _item
#include "ll.c"
#u... | berkus/bbb | bbb.c | C | mit | 6,321 |
#include "mesh_bbox.h"
#include "classif.h"
#include "comm.h"
unsigned const bbox_verts[DIMS] = {
1,
2,
4,
8
};
unsigned const bbox_simplices[DIMS] = {
1,
1,
2,
6
};
static unsigned const e10[2] = {0,1};
static unsigned const* const e1[1] = {e10};
static unsigned const e20[3] = {0,1,3};
static unsign... | ibaned/tetknife | mesh_bbox.c | C | mit | 2,911 |
/*
** $Id: ldo.c,v 2.135 2014/11/11 17:13:39 roberto Exp $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
#define ldo_c
#define LUA_CORE
#include "lprefix.h"
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "ldebug.h"
#include "ldo.h"
... | CaringLabs/MediaFramework | support/lua/ldo.c | C | mit | 22,438 |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <fcntl.h>
#include "../rvm.h"
/* proc1 writes some data, commits it, then exits */
void proc1() {
rvm_t rvm;
trans_t trans;
char* segs[1];
rvm = rvm_init("rvm_segments");
rvm_destroy(rvm, "testseg");
se... | adamacosta/bvt | aos/bvt/rvm/tests/rvm_test1.c | C | mit | 1,479 |
// Author: Alen Archuleta
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gif_lib.h>
#include <jpeglib.h>
#include <cairo/cairo.h>
static unsigned char *ImageDataFromRaster(ColorMapObject *colorMap,
GifByteType *rasterBits,
... | binape/code-snippets | 00-QuickExamples/gifdump.c | C | mit | 3,313 |
//*****************************************************************************
//
// startup_ccs.c - Startup code for use with TI's Code Composer Studio.
//
// Copyright (c) 2012-2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this sof... | djchopp/POV_Globe | startup_ccs.c | C | mit | 14,502 |
#include <stdio.h>
#include <stdlib.h>
//WARNING: The prof's solution is clearer and much more logical to follow.
int main () {
/* This one’s a bit more complicated. Write a program to calculate a babysitting charge. Imagine
that a babysitter is willing to work anytime between 6:00 pm and 5:59 am. Ask the... | NanoSmasher/aps106-problems | set2/wk3_n4.c | C | mit | 2,192 |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 Jeff Epler for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), ... | adafruit/micropython | py/proto.c | C | mit | 1,927 |
//
// Simple OpenGL FX
// Original by Epsilum
// Pluginized by Enlar
//
#include <epopeia/epopeia_system.h>
#include "fx.h"
//
// Epopeia plugin API 1.4.0 implementation
//
//-----------------------------------------------------------------------------
static void* FX_New(int width, int height)
{
TFx *self;
... | reality3d/rgba | plugins/simplefx/fx_epopeia.c | C | mit | 3,067 |
#include <X11/Xlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
// #includ ur #life
int main(int argc, char *argv[]) {
bool q = false;
if(argv[1] != NULL && strcmp(argv[1], "-q") == 0) q=true;
Display *disp;
Windo... | danieltroger/X | keyboard.c | C | mit | 5,043 |
/*
* iperf, Copyright (c) 2014, The Regents of the University of
* California, through Lawrence Berkeley National Laboratory (subject
* to receipt of any required approvals from the U.S. Dept. of
* Energy). All rights reserved.
*
* If you have questions about your rights to use or distribute this
* software, pl... | yeahdongcn/iperf-iOS | Pod/Classes/iperf_util.c | C | mit | 9,379 |
/* MIT License
*
* Copyright (c) 2017 Johan Kinnander
*
* 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, mod... | jokki/rover | controller/controls.c | C | mit | 1,414 |
/*
* BTRFS filesystem implementation for U-Boot
*
* 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include "btrfs.h"
#include <config.h>
#include <malloc.h>
#include <linux/time.h>
struct btrfs_info btrfs_info;
static int readdir_callback(const struct btrfs_root *root,
... | guileschool/BEAGLEBONE-tutorials | BBB-firmware/u-boot-v2018.05-rc2/fs/btrfs/btrfs.c | C | mit | 4,771 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_file_w32_spawnv_51b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-51b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* G... | maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_file_w32_spawnv_51b.c | C | mit | 2,227 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_68b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-68b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data ... | maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_68b.c | C | mit | 3,130 |
/**
* copyright 2002-2004 Bryce "Zooko" Wilcox-O'Hearn
* mailto:zooko@zooko.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software to deal in this software without restriction (including the
* rights to use, modify, distribute, sublicense, and/or sell copies) provi... | zooko/libzutil | zutil.c | C | cc0-1.0 | 5,493 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.