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 |
|---|---|---|---|---|---|
/*******************************************************************************
STMMAC Ethtool support
Copyright (C) 2007-2009 STMicroelectronics Ltd
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 publ... | Fe-Pi/linux | drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | C | gpl-2.0 | 26,267 |
/*
* drivers/cpufreq/cpufreq_smartass.c
*
* Copyright (C) 2010 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 distribute... | jamison904/T999_TW_kernel | drivers/cpufreq/cpufreq_smartass.c | C | gpl-2.0 | 25,345 |
/*
* realpath.c -- canonicalize pathname by removing symlinks
* Copyright (C) 1993 Rick Sladkey <jrs@world.std.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library Public License as published by
* the Free Software Foundation; either version 2, or (... | atmark-techno/atmark-dist | user/mount/realpath.c | C | gpl-2.0 | 3,321 |
/* { dg-do compile } */
/* { dg-options "-O2 -march=skylake-avx512 -mfpmath=sse" } */
extern float f;
extern double d;
extern unsigned char c;
void
foo (int n, int k)
{
for (int i = 0; i != n; i++)
if(i < k)
d = c;
else
f = c;
}
/* { dg-final { scan-assembler-times "vxorps\[^\n\r\]*xmm\[0-9\]" ... | Gurgel100/gcc | gcc/testsuite/gcc.target/i386/pr87007-3.c | C | gpl-2.0 | 329 |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | KingKaminari/kernel-msm | drivers/video/msm/mdss/mdss_dsi.c | C | gpl-2.0 | 47,285 |
/*
* QEMU sPAPR PCI host originated from Uninorth PCI host
*
* Copyright (c) 2011 Alexey Kardashevskiy, IBM Corporation.
* Copyright (C) 2011 David Gibson, IBM Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the ... | piyushroshan/xen-4.3.2 | tools/qemu-xen/hw/spapr_pci.c | C | gpl-2.0 | 25,366 |
/*===========================================================================
//
// File: compr_bc.c
//
// Created: 2011-10-24 16:07:17+0200
//
// Authors: Ingeborg S. Ligaarden <Ingeborg.Ligaarden@sintef.no>
// Jostein R. Natvig <Jostein.R.Natvig@sintef.no>
// Halvor M. Nilsen <HalvorMoll.Ni... | babrodtk/opm-core | opm/core/pressure/tpfa/compr_bc.c | C | gpl-3.0 | 5,027 |
/*
* Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | jpeach/zfsd | ext/libphenom/corelib/gimli/thread.c | C | apache-2.0 | 6,507 |
/*
* Copyright (c) 2010 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... | huangwenjun06/libvpx_mips | vpx_ports/x86_cpuid.c | C | bsd-3-clause | 1,553 |
/* Disassemble MSP430 instructions.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Contributed by Dmitry Diky <diwil@mail.ru>
This file is part of the GNU opcodes library.
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public ... | bencoman/pharo-vm | opensmalltalk-vm/processors/ARM/gdb-7.10/opcodes/msp430-dis.c | C | mit | 27,018 |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 Damien P. George
* Copyright (c) 2015 Daniel Campora
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentatio... | martinribelotta/micropython | cc3200/mods/pybuart.c | C | mit | 24,483 |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | phantasyy/URTServerMod | code/qcommon/vm_ppc.c | C | gpl-2.0 | 65,462 |
/* APPLE LOCAL testsuite nested functions */
/* { dg-options "-fnested-functions" } */
void I_wacom ()
{
char buffer[50], *p;
int RequestData (char *cmd)
{
p = buffer;
foo (buffer);
}
RequestData (0);
}
| unofficial-opensource-apple/llvmgcc42 | gcc/testsuite/gcc.c-torture/compile/20040310-1.c | C | gpl-2.0 | 221 |
/*
* audio conversion
* Copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg 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.... | OshinKaramian/jsmc | server/ffmpeg/linux/libswresample/audioconvert.c | C | gpl-3.0 | 11,197 |
/*
* Copyright (C) 2014 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup cpu_stm32f0
* @{
*
* @file
* @brief Implementation of the CPU... | hamilton-mote/RIOT-OS | cpu/stm32f0/cpu.c | C | lgpl-2.1 | 749 |
/*
* linux/fs/minix/fsync.c
*
* Copyright (C) 1993 Stephen Tweedie (sct@dcs.ed.ac.uk)
* from
* Copyright (C) 1991, 1992 Linus Torvalds
*
* minix fsync primitive
*/
#include <asm/segment.h>
#include <asm/system.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/stat.h>
#include <linux/fc... | straceX/Ectoplasm | linux-1.0.0/linux/fs/minix/fsync.c | C | apache-2.0 | 2,967 |
/*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2005- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "get_line.h"
#include "h... | isanwong/cctools | dttools/src/chunk.c | C | gpl-2.0 | 4,632 |
/* Copyright (c) 2013-2015, 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... | BhavySinghal/qassam-le2 | drivers/clk/qcom/mdss/mdss-pll.c | C | gpl-2.0 | 11,324 |
/******************************************************************************
*
* Copyright(c) 2009-2014 Realtek Corporation.
*
* 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 Foundati... | Fe-Pi/linux | drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c | C | gpl-2.0 | 27,775 |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
* Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
*/
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
#include <linux/dmapool.h>
#include <lin... | penberg/linux | drivers/dma/ti/k3-udma.c | C | gpl-2.0 | 93,780 |
/*
*
* /arch/arm/mach-msm/htc_headset_pmic.c
*
* HTC PMIC headset driver.
*
* Copyright (C) 2010 HTC, 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... | hrkfdn/linux-htc-ace | arch/arm/mach-msm/htc_headset_pmic.c | C | gpl-2.0 | 7,493 |
/* Copyright (c) 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 hope th... | TeamApexQ/android_kernel_samsung_d2 | drivers/media/video/msm_zsl/sensors/msm_sensor.c | C | gpl-2.0 | 20,709 |
/*
* linux/arch/arm/drivers/char/serial-atomwide.c
*
* Copyright (C) 1996 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.
*
* Changelog:
* 02-05-1996 RMK... | alexbousso/kernel_2.4.18-14 | drivers/acorn/char/serial-atomwide.c | C | gpl-2.0 | 835 |
/* Test the `vld1Qf32' ARM Neon intrinsic. */
/* This file was autogenerated by neon-testgen. */
/* { dg-do assemble } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-save-temps -O0" } */
/* { dg-add-options arm_neon } */
#include "arm_neon.h"
void test_vld1Qf32 (void)
{
float32x4_t out_fl... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.target/arm/neon/vld1Qf32.c | C | gpl-2.0 | 599 |
/*
* linux/arch/arm/mm/init.c
*
* Copyright (C) 1995-2005 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.
*/
#include <linux/kernel.h>
#include <linux/errno.h>... | vwmofo/vigor_mofokernel | arch/arm/mm/init.c | C | gpl-2.0 | 21,405 |
/*
*
*
* 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.
*
* mt65xx leds driver
*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/stri... | visi0nary/P8000-Kernel | drivers/misc/mediatek/leds/mt6735/leds.c | C | gpl-2.0 | 29,660 |
/*
* Auditing VFS module for samba. Log selected file operations to syslog
* facility.
*
* Copyright (C) Tim Potter, 1999-2000
* Copyright (C) Alexander Bokovoy, 2002
* Copyright (C) John H Terpstra, 2003
* Copyright (C) Stefan (metze) Metzmacher, 2003
* Copyright (C) Volker Lendecke, 2004
*
* This program ... | QGuLL/samba | source3/modules/vfs_full_audit.c | C | gpl-3.0 | 61,313 |
/* GObject - GLib Type, Object, Parameter and Signal Library
* override.c: Closure override test program
* Copyright (C) 2001, James Henstridge
* Copyright (C) 2003, Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or | retrography/scancode-toolkit | tests/cluecode/data/ics/bluetooth-glib-tests-gobject/override.c | C | apache-2.0 | 250 |
/* Copyright (C) 2007-2013 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program 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... | jasonish/endace-suricata | src/util-syslog.c | C | gpl-2.0 | 2,425 |
/*
* (C) Copyright 2000-2002
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* (C) Copyright 2004, Psyent Corporation <www.psyent.com>
* Scott McNutt <smcnutt@psyent.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <asm/nios2.h>
#include <asm/types.h>
#include <asm/io.h>
#include <asm/ptrace.h... | mdxy2010/forlinux-ok6410 | u-boot15/arch/nios2/cpu/interrupts.c | C | gpl-2.0 | 6,706 |
/* Copyright (C) 1993-2015 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
version 2.1 of the ... | wjflyhigh/glibc-2.21 | string/stpncpy.c | C | gpl-2.0 | 2,070 |
/**
* ntfsck - Part of the Linux-NTFS project.
*
* Copyright (c) 2006 Yuval Fledel
*
* This utility will check and fix errors on an NTFS volume.
*
* 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 Fo... | dasunsrule32/android_external_ntfs-3g | ntfsprogs/ntfsck.c | C | gpl-2.0 | 27,841 |
/*
* Functions to sequence PREFLUSH and FUA writes.
*
* Copyright (C) 2011 Max Planck Institute for Gravitational Physics
* Copyright (C) 2011 Tejun Heo <tj@kernel.org>
*
* This file is released under the GPLv2.
*
* REQ_{PREFLUSH|FUA} requests are decomposed to sequences consisted of three
* optional steps -... | uniphier/linux-unph | block/blk-flush.c | C | gpl-2.0 | 14,729 |
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp -fdump-tree-optimized" } */
/* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_ordered_start \[^\n\r]*, (?:2147483649|-2147483647), 0, " 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_end " 1 "optimized" } } */
/* { dg-final { ... | Gurgel100/gcc | gcc/testsuite/gcc.dg/gomp/workshare-reduction-52.c | C | gpl-2.0 | 1,024 |
/*
** ext2fs_dent
** The Sleuth Kit
**
** File name layer support for an Ext2 / Ext3 FS
**
** Brian Carrier [carrier <at> sleuthkit [dot] org]
** Copyright (c) 2006-2011 Brian Carrier, Basis Technology. All Rights reserved
** Copyright (c) 2003-2006 Brian Carrier. All rights reserved
**
** TASK
** Copyright (c) 2002 ... | KernelAnalysisPlatform/KlareDbg | tracers/qemu/decaf/shared/sleuthkit/tsk/fs/ext2fs_dent.c | C | gpl-3.0 | 11,828 |
/*! \file
Functions for User-Defined Types
Copyright 2011 University Corporation for Atmospheric
Research/Unidata. See \ref copyright file for more info. */
#include "ncdispatch.h"
/** \internal
\ingroup user_types
Learn if two types are equal
\param ncid1 \ref ncid of first typeid.
\param typeid1 First typei... | vityurkiv/Ox | libmesh/contrib/netcdf/4.3.1/libdispatch/dtype.c | C | lgpl-2.1 | 3,633 |
/* Test conversion and I/O using mpz_out_str and mpz_inp_str.
Copyright 1993, 1994, 1996, 2000, 2001, 2012, 2020 Free Software
Foundation, Inc.
This file is part of the GNU MP Library test suite.
The GNU MP Library test suite is free software; you can redistribute it
and/or modify it under the terms of the GNU Gener... | alisw/GMP | tests/mpz/io.c | C | lgpl-3.0 | 3,315 |
#include <linux/cpumask.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/kernel_stat.h>
#include <linux/mc146818rtc.h>
#include <linux/cache.h>
#include <linux/cpu.h>
#include <linux/module.h>
#include <asm/smp.h>
#inclu... | hephaex/kernel | x86/kernel/apic/ipi.c | C | gpl-2.0 | 3,807 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com>
*
* Authors:
* Casey Schaufler <casey@schaufler-ca.com>
* Ahmed S. Darwish <darwish.07@gmail.com>
*
* Special thanks to the authors of selinuxfs.
*
* Karl MacMillan <kmacmillan@tresys.com>
* James Morri... | koct9i/linux | security/smack/smackfs.c | C | gpl-2.0 | 70,363 |
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <fcntl.h>
#include "internal.h"
#include "testutils.h"
#include "network_conf.h"
#include "testutilsqemu.h"
#include "virstring.h"
#define VIR_FROM_THIS VIR_FROM_NONE
static int
testCo... | huzhengchuan/libvirt | tests/networkxml2xmlupdatetest.c | C | gpl-2.0 | 12,928 |
/* Copyright 2017 Cole Markham
*
* 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 program is distributed ... | kmtoki/qmk_firmware | keyboards/meira/keymaps/grahampheath/keymap.c | C | gpl-2.0 | 16,792 |
/* parser auto-generated by pidl */
#include "includes.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#include "librpc/gen_ndr/ndr_security.h"
static enum ndr_err_code ndr_push_xattr_DosInfoFFFFCompat(struct ndr_push *ndr, int ndr_flags, const struct xattr_DosInfoFFFFCompat *r)
{
if (ndr_flags & NDR_SCALARS) {
NDR_CHECK... | wkritzinger/asuswrt-merlin | release/src/router/samba36/source3/librpc/gen_ndr/ndr_xattr.c | C | gpl-2.0 | 36,475 |
/* Copyright (c) 2013-2015, 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... | Diaob/z_bac_150827_android_kernel_oneplus_msm8994 | drivers/media/platform/msm/camera_v2/isp/msm_isp_util.c | C | gpl-2.0 | 55,742 |
/*
* Copyright (c) 2006 Paul Richards <paul.richards@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg 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, o... | OshinKaramian/jsmc | server/ffmpeg/linux/libavcodec/libtheoraenc.c | C | gpl-3.0 | 13,094 |
/**************************************************************************
*
* Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
* Copyright (c) 2008 VMware, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "... | execunix/vinos | xsrc/external/mit/MesaLib7/dist/src/gallium/auxiliary/util/u_format_s3tc.c | C | apache-2.0 | 26,140 |
/*
* Copyright (C) 2001-2003 FhG Fokus
*
* This file is part of Kamailio, a free SIP server.
*
* Kamailio 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 ... | foucse/kamailio | hash_func.c | C | gpl-2.0 | 4,178 |
/*
* AMD CPU Microcode Update Driver for Linux
*
* This driver allows to upgrade microcode on F10h AMD
* CPUs and later.
*
* Copyright (C) 2008-2011 Advanced Micro Devices Inc.
* 2013-2016 Borislav Petkov <bp@alien8.de>
*
* Author: Peter Oruba <peter.oruba@amd.com>
*
* Based on work by:
* T... | hannes/linux | arch/x86/kernel/cpu/microcode/amd.c | C | gpl-2.0 | 18,710 |
/*
* Session Announcement Protocol (RFC 2974) muxer
* Copyright (c) 2010 Martin Storsjo
*
* This file is part of FFmpeg.
*
* FFmpeg 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
* vers... | AirStash/AirStashPlayer | ios/ffmpeg-x86_64/libavformat/sapenc.c | C | gpl-3.0 | 9,107 |
/******************************************************************************
* *
* License Agreement *
* ... | mzakharo/usb-de2-fpga | support/DE2_NIOS_DEVICE_LED/SW/isp_bsp/HAL/src/alt_write.c | C | gpl-3.0 | 5,214 |
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more... | davibe/gst-plugins-good | ext/libmng/gstmng.c | C | lgpl-2.1 | 1,152 |
/* mbed Microcontroller Library
*******************************************************************************
* Copyright (c) 2015, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | theotherjimmy/mbed | targets/TARGET_STM/TARGET_STM32F4/pwmout_api.c | C | apache-2.0 | 8,742 |
/*
* Parallel port driver for ETRAX.
*
* NOTE!
* Since par0 shares DMA with ser2 and par 1 shares DMA with ser3
* this should be handled if both are enabled at the same time.
* THIS IS NOT HANDLED YET!
*
* Copyright (c) 2001, 2002, 2003 Axis Communications AB
*
* Author: Fredrik Hugosson
*
*/
#inclu... | sensysnetworks/uClinux | linux-2.4.x/arch/cris/drivers/parport.c | C | gpl-2.0 | 15,447 |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.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 vers... | wolfeidau/bluez | profiles/network/server.c | C | gpl-2.0 | 16,815 |
/*
* Copyright © 2012 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... | jarodwilson/linux-muck | drivers/gpu/drm/i915/intel_pm.c | C | gpl-2.0 | 231,064 |
/* This testcase is part of GDB, the GNU debugger.
Copyright (C) 2012-2014 Free Software Foundation, 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 3 of the License,... | Levi-Armstrong/gdb-7.7.1 | gdb/testsuite/gdb.opt/inline-break.c | C | gpl-2.0 | 2,975 |
/*
* Multi2Sim
* Copyright (C) 2012 Rafael Ubal (ubal@ece.neu.edu)
*
* 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 late... | yogenpro/multi2sim-baseline | runtime/opencl/kernel.c | C | gpl-3.0 | 8,108 |
/*
* Linux driver for VMware's vmxnet3 ethernet NIC.
*
* Copyright (C) 2008-2009, VMware, 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; version 2 of the Lice... | pugs/vfio-linux-2.6 | drivers/net/vmxnet3/vmxnet3_ethtool.c | C | gpl-2.0 | 20,390 |
/*
* bareboxenv.c - generate or read a barebox environment archive
*
* Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms o... | data-modul/barebox | scripts/bareboxenv.c | C | gpl-2.0 | 4,617 |
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
* Copyright (C) 2001-2003 Free Software Foundation, Inc.
*
* Created by Dominic Ostrowski <dominic.ostrowski@3glab.com>
* Contributors: David Woodhouse, Nick Garnett, Richard Panton.
*
* For licensing information, see the file 'LICENCE' in this directory... | poranmeloge/test-github | stm32_rtt_wifi/components/dfs/filesystems/jffs2/src/fs-ecos.c | C | gpl-2.0 | 56,568 |
/* drivers/i2c/chips/bma250.c - bma250 G-sensor driver
*
* Copyright (C) 2008-2009 HTC 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.
*
* Thi... | Flyhalf205/android_kernel_htc_t6 | drivers/i2c/chips/bma250.c | C | gpl-2.0 | 16,064 |
/*
* Copyright (C) 2012, Samsung Electronics Co. Ltd. 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... | xInterlopeRx/android_kernel_samsung_lt02ltespr | drivers/sensorhub/ssp_firmware.c | C | gpl-2.0 | 13,801 |
/*
* NET An implementation of the SOCKET network access protocol.
*
* Version: @(#)socket.c 1.1.93 18/02/95
*
* Authors: Orest Zborowski, <obz@Kodak.COM>
* Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
*
* Fixes:
* Anonymous : NOTSOCK/BADF cleanup. Error fix in
* shutdown()
* Alan Co... | n3ocort3x/endeavoru_2.17 | net/socket.c | C | gpl-2.0 | 81,057 |
/* dnsmasq is Copyright (c) 2000-2015 Simon Kelley
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 dated June, 1991, or
(at your option) version 3 dated 29 June, 2007.
This... | wslab/dnsmasq | src/cache.c | C | gpl-2.0 | 44,512 |
/*
* 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; without even the implied warran... | goodwinos/linux-2.6 | arch/arm64/kernel/psci.c | C | gpl-2.0 | 13,070 |
/******************************************************************************
*
* Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU Genera... | EPDCenter/android_kernel_allwinner_a33 | drivers/net/wireless/rtl8723bs/core/rtw_debug.c | C | gpl-2.0 | 50,515 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#include <ngx_mail.h>
#include <ngx_mail_pop3_module.h>
static ngx_int_t ngx_mail_pop3_user(ngx_mail_session_t *s, ngx_connection_t *c);
static ngx_int_t ngx_mail_pop3_pass(ngx_mail... | kenhys/groonga | vendor/nginx-1.19.2/src/mail/ngx_mail_pop3_handler.c | C | lgpl-2.1 | 12,052 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* dbus-launch.h dbus-launch utility
*
* Copyright (C) 2006 Thiago Macieira <thiago@kde.org>
*
* Licensed under the Academic Free License version 2.1
*
* This program is free software; you can redistribute it and/or modify
* it under the terms ... | VProdanov/sdl_core | src/3rd_party/dbus-1.7.8/tools/dbus-launch-x11.c | C | bsd-3-clause | 11,861 |
/* base64.c : base-64 / MIME encode/decode */
/* PUBLIC DOMAIN - Jon Mayo - November 13, 2003 */
#include <esp8266.h>
#include "base64.h"
static const uint8_t base64dec_tab[256]= {
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,2... | nabovarme/MeterLogger | user/base64.c | C | mit | 3,491 |
/*
*Copyright (c) 2014, The Linux Foundation. All rights reserved.
*
*This program is free software; you can redistribute it and/or modify
*it under the terms of the GNU General Public License version 2 and
*only version 2 as published by the Free Software Foundation.
*
*This program is distributed in the hope that it ... | AudioGod/DTS-Sound-Integration_CAF-Android-kernel | drivers/devfreq/governor_spdm_bw_hyp.c | C | gpl-2.0 | 11,996 |
/* -*- mode: c; c-basic-offset: 8; -*-
* vim: noexpandtab sw=8 ts=8 sts=0:
*
* dlmfs.c
*
* Code which implements the kernel side of a minimal userspace
* interface to our DLM. This file handles the virtual file system
* used for communication with userspace. Credit should go to ramfs,
* which was a template for... | sombree/Alucard-Kernel-jfltexx | fs/ocfs2/dlmfs/dlmfs.c | C | gpl-2.0 | 17,219 |
// SPDX-License-Identifier: GPL-2.0
/*
* MS5611 pressure and temperature sensor driver
*
* Copyright (c) Tomasz Duszynski <tduszyns@gmail.com>
*
* Data sheet:
* http://www.meas-spec.com/downloads/MS5611-01BA03.pdf
* http://www.meas-spec.com/downloads/MS5607-02BA03.pdf
*
*/
#include <linux/module.h>
#include... | CSE3320/kernel-code | linux-5.8/drivers/iio/pressure/ms5611_core.c | C | gpl-2.0 | 11,150 |
// SPDX-License-Identifier: GPL-2.0
/******************************************************************************
*
* Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
*
******************************************************************************/
#define _RTW_WLAN_UTIL_C_
#include <drv_types.... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/drivers/staging/rtl8723bs/core/rtw_wlan_util.c | C | gpl-2.0 | 64,409 |
/*
window-commands.c : irssi
Copyright (C) 2000 Timo Sirainen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later vers... | m1el/irssi | src/fe-common/core/window-commands.c | C | gpl-2.0 | 26,311 |
/*
* Copyright (c) 2007-2011, Lloyd Hilaiel <lloyd@hilaiel.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 IS PROVIDED "A... | jqk6/libbson | src/yajl/yajl_parser.c | C | apache-2.0 | 20,628 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* HiSilicon SoC HHA uncore Hardware event counters support
*
* Copyright (C) 2017 Hisilicon Limited
* Author: Shaokun Zhang <zhangshaokun@hisilicon.com>
* Anurup M <anurup.m@huawei.com>
*
* This code is based on the uncore PMUs like arm-cci and arm-ccn.
*/
#in... | apopple/linux | drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | C | gpl-2.0 | 12,965 |
/*
*
* (C) Copyright 2009
* MediaTek <www.mediatek.com>
* Charlie Lu <charlie.lu@mediatek.com>
*
* MATV I2C Device Driver
*
* 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... | GuneetAtwal/kernel_mt6589 | mediatek/custom/wiko1/kernel/matv/mt5193/matv.c | C | gpl-2.0 | 26,449 |
/* mbed Microcontroller Library
* Copyright (c) 2006-2015 ARM Limited
*
* 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 re... | betzw/mbed-os | targets/TARGET_RENESAS/TARGET_RZ_A1XX/rtc_api.c | C | apache-2.0 | 9,361 |
// SPDX-License-Identifier: GPL-2.0
/*
* This file contains work-arounds for many known PCI hardware bugs.
* Devices present only on certain architectures (host bridges et cetera)
* should be handled in arch-specific code.
*
* Note: any quirks for hotpluggable devices must _NOT_ be declared __init.
*
* Copyright... | koct9i/linux | drivers/pci/quirks.c | C | gpl-2.0 | 187,144 |
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <mach/irqs.h>
#include <linux/kallsyms.h>
#include <linux/delay.h>
#include <linux/wakelock.h>
#include <ccci.h>
#define FIRST_PENDING (1<<0)
#define PENDING_50MS (1<<1)
//#define PENDING_100MS (1<<2)
#de... | rimistri/mediatek | mt6732/mediatek/kernel/drivers/dual_ccci/ccci_logical.c | C | gpl-2.0 | 25,761 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Stack tracing support
*
* Copyright (C) 2012 ARM Ltd.
*/
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/ftrace.h>
#include <linux/kprobes.h>
#include <linux/sched.h>
#include <linux/sched/debug.h>
#include <linux/sched/task_stack.h>
#include <linux/... | penberg/linux | arch/arm64/kernel/stacktrace.c | C | gpl-2.0 | 5,342 |
/*
* max14688.c - MAX14688 - Headset Jack Dectection IC with Accessory Power
*
* Copyright (C) 2013 Maxim Integrated
* Jayden Cha <jayden.cha@maximintegrated.com>
*
* Copyright and License statement to be determined with Customer.
* GNU Public License version 2 requires software code to be
* publically open sou... | SuperHanss/android_kernel_lge_g3 | drivers/switch/hds_max14688.c | C | gpl-2.0 | 50,082 |
/*
Inferno lib9/tokenize.c
http://code.google.com/p/inferno-os/source/browse/lib9/tokenize.c
Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
Revisions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com). All rights reserved.
Permission is hereby granted, free of charge, to an... | eternalNight/ucore_app_go | src/lib9/tokenize.c | C | bsd-3-clause | 2,990 |
/***************************************************************************/
/* */
/* ttsbit.c */
/* */
/* Tr... | Brickcaster/godot | thirdparty/freetype/src/sfnt/ttsbit.c | C | mit | 49,277 |
/*
****************************************************************
*
* Component: VLX Virtual Block Device frontend driver
*
* Copyright (C) 2011, Red Bend Ltd.
*
* 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 p... | regalstreak/S7262-Kernel | drivers/vlx/vlx-vbd-fe.c | C | gpl-2.0 | 74,540 |
/* { dg-do compile } */
/* { dg-options "-fwrapv -O1 -fno-tree-fre -fdisable-tree-evrp -ftree-vrp -fdump-tree-vrp1" } */
extern void abort ();
extern void exit (int);
int f (int a) {
if (a != 0) {
a = a > 0 ? a : -a;
if (a == 0)
return 1;
return 0;
}
return 0;
}
int g (int b) {
if (b != 0) {
b = b > ... | mickael-guene/gcc | gcc/testsuite/gcc.dg/tree-ssa/vrp20.c | C | gpl-2.0 | 535 |
/* PR target/82112 */
/* { dg-do compile } */
/* { dg-options "-std=gnu90" } */
struct S { int a[10]; } bar (void);
int b, c;
void
foo (void)
{
__atomic_load (bar ().a, &b, __ATOMIC_ACQUIRE); /* { dg-error "argument 1 of .__atomic_load. must be a non-void pointer type" } */
__atomic_load (&b, bar ().a, __ATOMIC_A... | mydongistiny/gcc | gcc/testsuite/gcc.dg/pr82112.c | C | gpl-2.0 | 1,611 |
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
* Network Associates Laboratories, the Security Research Division of
* Network Associates, Inc. under... | ghmajx/asuswrt-merlin | release/src/router/openpam/lib/libpam/pam_set_item.c | C | gpl-2.0 | 3,667 |
/**
* \file
*
* \brief SAM I2C Master Driver
*
* Copyright (C) 2012-2016 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 conditions are met:
*
*... | weiyuliang/rt-thread | bsp/samd21/sam_d2x_asflib/sam0/drivers/sercom/i2c/i2c_sam0/i2c_master.c | C | apache-2.0 | 33,819 |
/*
* HID raw devices, giving access to raw HID events.
*
* In comparison to hiddev, this device does not process the
* hid events at all (no parsing, no lookups). This lets applications
* to work on raw hid events as they want to, and avoids a need to
* use a transport-specific userspace libhid/libusb libraries.
... | grate-driver/linux-2.6 | drivers/hid/hidraw.c | C | gpl-2.0 | 10,530 |
/*
* drivers/net/ethernet/mellanox/mlxsw/spectrum.c
* Copyright (c) 2015 Mellanox Technologies. All rights reserved.
* Copyright (c) 2015 Jiri Pirko <jiri@mellanox.com>
* Copyright (c) 2015 Ido Schimmel <idosch@mellanox.com>
* Copyright (c) 2015 Elad Raz <eladr@mellanox.com>
*
* Redistribution and use in source ... | OpenELEC/linux | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | C | gpl-2.0 | 89,414 |
/*
* $Id: ipconfig.c,v 1.46 2002/02/01 22:01:04 davem Exp $
*
* Automatic Configuration of IP -- use DHCP, BOOTP, RARP, or
* user-supplied information to configure own IP address and routes.
*
* Copyright (C) 1996-1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
*
* Derived from network configuration code i... | xtreamerdev/linux-xtr | net/ipv4/ipconfig.c | C | gpl-2.0 | 36,473 |
/* -*- mode: c; c-basic-offset: 8; -*-
* vim: noexpandtab sw=8 ts=8 sts=0:
*
* locks.c
*
* Userspace file locking support
*
* Copyright (C) 2007 Oracle. 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 p... | JonnyH/pandora-kernel | fs/ocfs2/locks.c | C | gpl-2.0 | 3,054 |
/*
simple rb test tool
Copyright (C) Ronnie Sahlberg 2007
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.
... | javierag/samba | ctdb/tests/src/rb_test.c | C | gpl-3.0 | 9,892 |
/*
* PARISC Architecture-dependent parts of process handling
* based on the work for i386
*
* Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>
* Copyright (C) 2000 Martin K Petersen <mkp at mkp.net>
* Copyright (C) 2000 John Marvin <jsm at parisc-linux.org>
* Copyright (C) 200... | pichina/linux-bcache | arch/parisc/kernel/process.c | C | gpl-2.0 | 10,827 |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | ench0/android_kernel_samsung_hlte | arch/arm/mach-msm/clock-8974.c | C | gpl-2.0 | 193,234 |
#include <sys/msg.h>
#include "syscall.h"
#include "ipc.h"
#include "libc.h"
int msgsnd(int q, const void *m, size_t len, int flag)
{
#ifdef SYS_msgsnd
return syscall_cp(SYS_msgsnd, q, m, len, flag);
#else
return syscall_cp(SYS_ipc, IPCOP_msgsnd, q, len, flag, m);
#endif
}
| youtube/cobalt | third_party/musl/src/ipc/msgsnd.c | C | bsd-3-clause | 277 |
/*
* Copyright (C) 2012 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 version 2 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
... | Ryuinferno/Blazing_Kernel_t1 | usr/pvr-source/services4/system/omap4/sgxfreq_userspace.c | C | gpl-2.0 | 2,608 |
/*
* linux/mm/vmscan.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
*
* Swap reorganised 29.12.95, Stephen Tweedie.
* kswapd added: 7.1.96 sct
* Removed kswapd_ctl limits, and swap out as many pages as needed
* to bring the system back to freepages.high: 2.4.97, Rik van Riel.
* Zone aware k... | nazgee/igep-kernel | mm/vmscan.c | C | gpl-2.0 | 86,104 |
/*
* Copyright (C) 2015, 2016 ARM Ltd.
*
* 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 W... | kronat/linux | virt/kvm/arm/vgic/vgic.c | C | gpl-2.0 | 25,724 |
/*
* linux/arch/arm/mach-omap2/board-mapphone-camera.c
*
* Copyright (C) 2009 Motorola, Inc.
*
* Derived from mach-omap3/board-3430sdp.c
*
* Copyright (C) 2007 Texas Instruments
*
* Modified from mach-omap2/board-generic.c
*
* Initial code: Syed Mohammed Khasim
*
* This program is free software; you can re... | gnychis/droid-kernel-coexisyst | arch/arm/mach-omap2/board-sholes-camera.c | C | gpl-2.0 | 9,015 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.