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 |
|---|---|---|---|---|---|
/* Eye Of Mate - Main Window
*
* Copyright (C) 2000-2008 The Free Software Foundation
*
* Author: Lucas Rocha <lucasr@gnome.org>
*
* Based on code by:
* - Federico Mena-Quintero <federico@gnu.org>
* - Jens Finke <jens@gnome.org>
* Based on evince code (shell/ev-window.c) by:
* - Martin Kretzschmar <martink@... | monsta/eom | src/eom-window.c | C | gpl-2.0 | 153,265 |
/*
This file is part of Valgrind, a dynamic binary instrumentation
framework.
Copyright (C) 2004-2012 OpenWorks LLP
info@open-works.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... | qtekfun/htcDesire820Kernel | external/valgrind/main/VEX/priv/host_ppc_isel.c | C | gpl-2.0 | 151,543 |
/*
* Implementation of the security services.
*
* Authors : Stephen Smalley, <sds@epoch.ncsc.mil>
* James Morris <jmorris@redhat.com>
*
* Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com>
*
* Support for enhanced MLS infrastructure.
* Support for context based audit filters.
*
* Updated... | bju2000/android_kernel_samsung_slteskt | security/selinux/ss/services.c | C | gpl-2.0 | 77,340 |
/*
* linux/arch/arm/mm/flush.c
*
* Copyright (C) 1995-2002 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/module.h>
#include <lin... | Jackeagle/android_kernel_sony_c2305 | arch/arm/mm/flush.c | C | gpl-2.0 | 9,199 |
/*
* Copyright (c) 2011-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... | GruesomeWolf/Slippery_Sloth | arch/arm/mach-msm/acpuclock-8064.c | C | gpl-2.0 | 28,898 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h> /* memset */
#include <libwzd-core/wzd_structs.h>
#include <libwzd-core/wzd_crc32.h>
#define C1 0x12345678
#define C2 0x9abcdef0
int main(int argc, char *argv[])
{
unsigned long c1 = C1;
unsigned long crc = 0x0;
char input1[1024];
const char * file1 ... | mathgl67/wzdftpd | tests/test_wzd_crc32.c | C | gpl-2.0 | 1,106 |
#ifdef CONFIG_COMPAT
#include <linux/compat.h> /* for compat_old_sigset_t */
#endif
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/errno.h>
#include <linux/wait.h>
#include <linux/ptrace.h>
#include <linux/tracehook.h>
#include <linux/unistd.h>
#include <linux/mm.h>
#incl... | luckasfb/OT_903D-kernel-2.6.35.7 | kernel/arch/sparc/kernel/signal_64.c | C | gpl-2.0 | 18,267 |
/*
* symlink.c
*
* Symlink methods.
*
* Author: Steve Longerbeam <stevel@mvista.com, or source@mvista.com>
*
* 2003 (c) MontaVista Software, Inc.
* Copyright 2003 Sony Corporation
* Copyright 2003 Matsushita Electric Industrial Co., Ltd.
*
* This software is being distributed under the terms of the GNU Gener... | robacklin/celinux | fs/pramfs/symlink.c | C | gpl-2.0 | 2,227 |
/*
* ux_text.c - Unix interface, text functions
*
* This file is part of Frotz.
*
* Frotz 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... | holzman/frotz | src/curses/ux_text.c | C | gpl-2.0 | 8,410 |
/*
Copyright (C) 2005 Michael K. McCarty & Fritz Bronner
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.
... | raceintospace/raceintospace-cvs | future.c | C | gpl-2.0 | 27,931 |
// Copyright (C) 1999-2000 Id Software, Inc.
//
#include "ui_local.h"
/*********************************************************************************
SPECIFY SERVER
*********************************************************************************/
#define MAX_LISTBOXITEMS 128
#define MAX_LISTBOXWIDTH 4... | tectronics/battle-of-the-sexes | reference/bots_q3_127/code/q3_ui/ui_specifyleague.c | C | gpl-2.0 | 9,959 |
/*
* Copyright (c) 2002-2009 BalaBit IT Ltd, Budapest, Hungary
*
* 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.
*
* Note that this permission is granted for only version 2 of t... | ystk/debian-syslog-ng | src/gprocess.c | C | gpl-2.0 | 37,305 |
/*
* PROJECT: Boot Loader
* LICENSE: BSD - See COPYING.ARM in the top level directory
* FILE: boot/armllb/hw/versatile/hwclcd.c
* PURPOSE: LLB CLCD Routines for Versatile
* PROGRAMMERS: ReactOS Portable Systems Group
*/
#include "precomp.h"
#define LCDTIMING0_PPL(x) ((((... | GreenteaOS/Kernel | third-party/reactos/boot/armllb/hw/versatile/hwclcd.c | C | gpl-2.0 | 1,933 |
/*
* Copyright (C) 2011 ST-Ericsson SA.
* Copyright (C) 2009 Motorola, Inc.
*
* License Terms: GNU General Public License v2
*
* Simple driver for National Semiconductor LM3530 Backlight driver chip
*
* Author: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com>
* based on leds-lm3530.c by Dan M... | Jackeagle/android_kernel_sony_c2305 | drivers/leds/leds-lm3530.c | C | gpl-2.0 | 13,280 |
/*****************************************************************************/
/* */
/* Ittiam 802.11 MAC SOFTWARE */
/* */
... | abgoyal/zen_u105_kernel | drivers/net/wireless/trout/mac/src/Common/common.c | C | gpl-2.0 | 42,309 |
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2005-2006, Kevin P. Fleming
*
* Kevin P. Fleming <kpfleming@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;... | nicwolff/asterisk-agi-mp3 | main/dnsmgr.c | C | gpl-2.0 | 11,631 |
/* pictool: ANSI C converter for Tibia's PIC files
* (c) 2007-2009 Ivan Vucica
* Part of OpenTibia project
*
* Although written in ANSI C, this makes use of #pragma pack(),
* make sure your compiler supports packed structures, or else.
*
* This program is free software; you can redistribute it and/or
* modify i... | opentibia/yatc | tools/pictool/picfuncs.c | C | gpl-2.0 | 7,210 |
/*
* Demo on how to use /dev/crypto device for ciphering.
*
* Placed under public domain.
*
*/
#include <poll.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include <crypto/cryptodev.h>
#include "asynchelper.h"
#include "testhelper.h"
... | cryptodev-linux/cryptodev-linux | tests/async_cipher.c | C | gpl-2.0 | 7,773 |
/*
* $Id: x2c.c,v 1.7 2009/06/02 09:40:53 bnv Exp $
* $Log: x2c.c,v $
* Revision 1.7 2009/06/02 09:40:53 bnv
* MVS/CMS corrections
*
* Revision 1.6 2008/07/15 07:40:54 bnv
* #include changed from <> to ""
*
* Revision 1.5 2008/07/14 13:08:16 bnv
* MVS,CMS support
*
* Revision 1.4 2002/06/11 12:37:15 ... | vlachoudis/brexx | lstring/x2c.c | C | gpl-2.0 | 1,386 |
/*
* This file is part of mpv.
*
* mpv 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.
*
* mpv is distributed in the hope that ... | Floens/mpv | options/m_config.c | C | gpl-2.0 | 33,574 |
#include <dfsch/lib/crypto.h>
static void ecb_setup(dfsch_block_cipher_mode_context_t* cipher,
uint8_t* iv,
size_t iv_len){
if (iv_len != 0){
dfsch_error("ECB mode has no IV", NULL);
}
}
static void ecb_encrypt(dfsch_block_cipher_mode_context_t* context,
... | adh/dfsch | lib/crypto/modes.c | C | gpl-2.0 | 12,669 |
/*
* arch/arm/mach-tegra/tegra3_dvfs.c
*
* Copyright (C) 2010-2011 NVIDIA 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.
*
* This program is... | AndroidDeveloperAlliance/ZenKernel_Grouper | arch/arm/mach-tegra/tegra3_dvfs.c | C | gpl-2.0 | 37,574 |
/**
* @file id_10361.c
* @brief AOAPC I 10361
* @author chenxilinsidney
* @version 1.0
* @date 2015-03-24
*/
#include <stdio.h>
#include <string.h>
#define MAX_LINE_LENGTH 101
char line[2][MAX_LINE_LENGTH];
int main()
{
int num_case;
scanf("%d\n", &num_case);
while (num_case--) {
gets(*line... | chenxilinsidney/funnycprogram | acm/aoapc/id_10361.c | C | gpl-2.0 | 1,360 |
/* -*- mode: c -*- */
/* $Id$ */
/* Copyright (C) 2004-2013 Alexander Chernov <cher@ejudge.ru> */
/*
* 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
* (... | misty-fungus/ejudge-debian | checkers/read_int.c | C | gpl-2.0 | 1,296 |
/* 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... | cuteprince/ics_kernel_3.0.16_htc_pico | arch/arm/mach-msm/devices-msm7x27a.c | C | gpl-2.0 | 17,688 |
/* Copyright (c) 2012-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... | smac0628/caf-LA.BF.1.1.2.1 | sound/soc/codecs/wcd9306.c | C | gpl-2.0 | 197,279 |
/* linux/drivers/media/video/samsung/tv20/s5pv210/hdcp_s5pv210.c
*
* hdcp raw ftn file for Samsung TVOut driver
*
* Copyright (c) 2010 Samsung Electronics
* http://www.samsungsemi.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... | Jolocotroco/android_kernel_samsung_smdkv210 | drivers/media/video/samsung/tv20/s5pv210/hdcp_s5pv210.c | C | gpl-2.0 | 38,054 |
/******************************************************************************
* File : velocity_tria3.c *
* Author : Carlos Rosales Fernandez (carlos@ihpc.a-star.edu.sg) *
* Date : 01-09-2006 *
... | carlosrosales/stksolver | src/velocity_tria3.c | C | gpl-2.0 | 4,564 |
/***********************************************************************
*
* avra - Assembler for the Atmel AVR microcontroller series
*
* Copyright (C) 1998-2004 Jon Anders Haugum, TObias Weber
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... | pearsonalan/avra | src/macro.c | C | gpl-2.0 | 15,499 |
/*
* linux/init/main.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* GK 2/5/95 - Changed to support mounting root fs via NFS
* Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96
* Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96
* Simplified starting of in... | flar2/ElementalX-m9 | init/main.c | C | gpl-2.0 | 18,082 |
/* Festalon - NSF Player
* Copyright (C) 2004 Xodnizel
*
* 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.
*
* T... | ahefner/festalon | src/nes/cart.c | C | gpl-2.0 | 4,179 |
/******************************************************************************
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
*
... | freedesktop-unofficial-mirror/tegra__linux | drivers/net/wireless/iwlwifi/mvm/d3.c | C | gpl-2.0 | 53,080 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright © 2000-2004 Marco Pesenti Gritti
* Copyright © 2009 Collabora Ltd.
* Copyright © 2011 Igalia S.L.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | jdapena/epiphany | src/window-commands.c | C | gpl-2.0 | 40,646 |
/*
* Copyright (C) 2013 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) a... | maire/strongswan | src/libpts/tcg/swid/tcg_swid_attr_tag_inv.c | C | gpl-2.0 | 7,725 |
/* HTVMS_WAISProt.c
**
** Adaptation for Lynx by F.Macrides (macrides@sci.wfeb.edu)
**
** 31-May-1994 FM Initial version.
**
**----------------------------------------------------------------------*/
/*
** Routines originally from WProt.c -- FM
**
**---------------------------------------------------------------... | avsm/openbsd-lynx | WWW/Library/Implementation/HTVMS_WaisProt.c | C | gpl-2.0 | 69,533 |
/*******************************************************************************
* This file contains iSCSI extentions for RDMA (iSER) Verbs
*
* (c) Copyright 2013 RisingTide Systems LLC.
*
* Nicholas A. Bellinger <nab@linux-iscsi.org>
*
* This program is free software; you can redistribute it and/or modify
* i... | crimsonthunder/kernel_samsung_trlte_5.1.1 | drivers/infiniband/ulp/isert/ib_isert.c | C | gpl-2.0 | 67,213 |
/* $Id: tstCAPIGlue.c 109358 2016-07-31 17:11:31Z bird $ */
/** @file tstCAPIGlue.c
* Demonstrator program to illustrate use of C bindings of Main API.
*
* It has sample code showing how to retrieve all available error information,
* and how to handle active (event delivery through callbacks) or passive
* (event d... | ARL-UTEP-OC/emubox | workshop-manager/bin/VirtualBoxSDK-5.1.20-114628/sdk/bindings/c/samples/tstCAPIGlue.c | C | gpl-2.0 | 39,034 |
/*
This file is part of ffmpeg-php
Copyright (C) 2004-2008 Todd Kirby (ffmpeg.php AT gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | lord2800/ffmpeg-php | ffmpeg_tools.c | C | gpl-2.0 | 5,212 |
// CHDK palette colors for the s90
// Define color values as needed in this file.
#include "palette.h"
#include "platform_palette.h"
// Playback mode colors
unsigned char ply_colors[] =
{
COLOR_TRANSPARENT, // Placeholder for script colors
COLOR_BLACK, // Placeholder for script... | c10ud/CHDK | platform/s90/platform_palette.c | C | gpl-2.0 | 2,303 |
/*
* keybindings.c - this file is part of Geany, a fast and lightweight IDE
*
* Copyright 2006-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
*
* This program is free software; you can redistribute it and/... | ktuan89/geany-1.22 | src/keybindings.c | C | gpl-2.0 | 79,266 |
/*
* Synopsys DesignWare 8250 driver.
*
* Copyright 2011 Picochip, Jamie Iles.
* Copyright 2013 Intel Corporation
*
* 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 th... | fredericgermain/linux-sunxi | drivers/tty/serial/8250/8250_dw.c | C | gpl-2.0 | 12,111 |
/*****************************************************************************
* m3u.c : M3U playlist format import
*****************************************************************************
* Copyright (C) 2004 VLC authors and VideoLAN
* $Id: 02a95984d5fe1968163cb435268a9874f0c65eb9 $
*
* Authors: Clément Ste... | sunqueen/vlc-2.2.0-rc2.32-2013 | modules/demux/playlist/m3u.c | C | gpl-2.0 | 11,910 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
unsigned char *read_buffer(char *file_name, size_t *size_ptr)
{
FILE *f;
unsigned char *buf;
size_t size;
/* Open file */
f = fopen(file_name, "rb");
if (!f)
return NULL;
/* ... | xianggong/m2c_unit_test | test/integer/sub_sat_char2char2/sub_sat_char2char2_src.c | C | gpl-2.0 | 10,934 |
/*
* arch/i386/mm/ioremap.c
*
* Re-map IO memory to kernel address space so that we can access it.
* This is needed for high PCI addresses that aren't mapped in the
* 640k-1MB IO memory area on PC's
*
* (C) Copyright 1995 1996 Linus Torvalds
*/
#include <linux/vmalloc.h>
#include <asm/io.h>
#include <asm/pgall... | dduval/kernel-rhel3 | arch/i386/mm/ioremap.c | C | gpl-2.0 | 5,360 |
/*
* linux/kernel/fork.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* 'fork.c' contains the help-routines for the 'fork' system call
* (see also entry.S and others).
* Fork is rather simple, once you get the hang of it, but the memory
* management can be a bitch. See 'mm/memory.c': 'copy_page_range(... | j0n3lson/linux-2.6.22.19-cs370 | kernel/fork.c | C | gpl-2.0 | 41,833 |
/*
* linux/fs/read_write.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/fcntl.h>
#include <linux/file.h>
#include <linux/uio.h>
#include <linux/smp_lock.h>
#include <linux/fsnotify.h>
#include <linux/security.h>
#include <linux/module.h>
#includ... | kzlin129/tt-gpl | go12/linux-2.6.28.10/fs/read_write.c | C | gpl-2.0 | 19,284 |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and... | luckasfb/OT_903D-kernel-2.6.35.7 | bootable/bootloader/legacy/arch_msm7k/gpio.c | C | gpl-2.0 | 6,641 |
/*************************************************************************
*
* FILE NAME : ifxmips_pci.c
* PROJECT : IFX UEIP
* MODULES : PCI
*
* DATE : 29 June 2009
* AUTHOR : Lei Chuanhua
*
* DESCRIPTION : PCI Host Controller Driver
* COPYRIGHT : Copyright (c) 2009
* ... | kbridgers/VOLTE4GFAX | target/linux/ltqcpe/files-2.6.32/arch/mips/pci/ifxmips_pci.c | C | gpl-2.0 | 21,354 |
/*
* Copyright (c) 2010, Google, Inc.
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later... | DDTChen/CookieVLC | vlc/contrib/android/ffmpeg/libavcodec/libvpxdec.c | C | gpl-2.0 | 4,941 |
/*
* Driver for the SGS-Thomson M48T35 Timekeeper RAM chip
*
* Real Time Clock interface for Linux
*
* TODO: Implement periodic interrupts.
*
* Copyright (C) 2000 Silicon Graphics, Inc.
* Written by Ulf Carlsson (ulfc@engr.sgi.com)
*
* Based on code written by Paul Gortmaker.
*
* This driver allows use of t... | mpalmer/linux-2.6 | drivers/char/ip27-rtc.c | C | gpl-2.0 | 7,743 |
/* 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 ... | ghmajx/asuswrt-merlin | release/src/router/dnsmasq/src/loop.c | C | gpl-2.0 | 3,165 |
/*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
* Copyright 2008 Luis R. Rodriguez <lrodriguz@atheros.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms... | vSlipenchuk/ac100hd | net/wireless/reg.c | C | gpl-2.0 | 61,693 |
/*
* pcm audio input device
*
* Copyright (C) 2008 Google, Inc.
* Copyright (C) 2008 HTC Corporation
* Copyright (c) 2009-2010, Code Aurora Forum. 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
... | marcOcram/Acer-Liquid-MT-Kernel | arch/arm/mach-msm/qdsp5v2/audio_pcm_in.c | C | gpl-2.0 | 20,064 |
/* linux/arch/arm/mach-s3c2410/mach-bast.c
*
* Copyright 2003-2008 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* http://www.simtec.co.uk/products/EB2410ITX/
*
* 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... | Oleh-Kravchenko/asusp535 | arch/arm/mach-s3c24xx/mach-bast.c | C | gpl-2.0 | 14,795 |
/*
* Copyright (c) 2011-2012, 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 ... | cnexus/NexTKernel-d2spr | arch/arm/mach-msm/acpuclock-krait.c | C | gpl-2.0 | 31,611 |
/* 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... | EloYGomeZ/test_kernel_g620s | sound/soc/msm/qdsp6v2/q6adm.c | C | gpl-2.0 | 55,954 |
/*
* PROJECT: ReactOS i8042 (ps/2 keyboard-mouse controller) driver
* LICENSE: GPL - See COPYING in the top level directory
* FILE: drivers/input/i8042prt/pnp.c
* PURPOSE: IRP_MJ_PNP operations
* PROGRAMMERS: Copyright 2006-2007 Hervé Poussineau (hpoussin@reactos.org)
* Copyright 2... | sunnyden/reactos | drivers/input/i8042prt/pnp.c | C | gpl-2.0 | 27,818 |
/*
* Compiler error handler
* Copyright
* (C) 1992 Joseph H. Allen
*
* This file is part of JOE (Joe's Own Editor)
*/
#include "types.h"
/* Error database */
typedef struct error ERROR;
struct error {
LINK(ERROR) link; /* Linked list of errors */
long line; /* Target line number */
long org; /* Original ... | jhallen/joe-editor | joe/uerror.c | C | gpl-2.0 | 11,705 |
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
/*
* 1 Header File Including
*/
#include <linux/module.h>
#include <linux/netdevice.h>
#include "hwifi_tps.h"
#include "cfg80211_stru.h"
#include "hwifi_cfg80211.h"
#include "hwifi_wpa_ioctl.h" /* for wl_pwrm_set */
#include "hwifi_wl_config_ioctl.h... | gabry3795/android_kernel_huawei_mt7_l09 | drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_tps.c | C | gpl-2.0 | 28,729 |
#include <psp2/display.h>
#include <psp2/io/fcntl.h>
#include <psp2/kernel/processmgr.h>
#include <stdio.h> // sprintf()
#include <psp2/ctrl.h> // sceCtrl*()
#include "graphics.h"
#define VER_MAJOR 0
#define VER_MINOR 9
#define VER_BUILD ""
#define VAL_LENGTH 0x10
#define VAL_PUBLIC 0x0A
#define VAL_PRIVATE 0x06
#... | Yoti/psv_idpsdump | main.c | C | gpl-3.0 | 7,135 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* Copyright (C) 2015 Leslie Zhai <xiang.zhai@i-soft.com.cn>
*
* 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; e... | LeetcodeCN/leetcodecn.github.io | src/stat/hello-stat.c | C | gpl-3.0 | 1,716 |
#include <includes.h>
#include <utils.h>
#include <methnum.h>
#include "s_param.h"
#include "integral.h"
double Ivac ( Param * P , double m )
{
double m2 = m*m ;
double LE = sqrt ( m2 + P->L2 );
return 0.5 * ONE_OVER_8PI_2 * ( P->L * LE * ( m2 + 2*P->L ) + m2*m2 * log ( m/(P->L + LE) ) ) ;
}
double dm_Iva... | AlexandreBiguet/NJLlikeModels | legacy/programs/njl-0/njl1-b/integral.c | C | gpl-3.0 | 2,487 |
/*
* Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this fi... | p01arst0rm/decorum-linux | _resources/kernels/xnu-arm/bsd/netat/adsp.c | C | gpl-3.0 | 10,262 |
/*
**
** This file is part of BananaCam.
**
** BananaCam 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.
**
** BananaCam is distribu... | OliverNicolini/BananaCam | src/main.c | C | gpl-3.0 | 4,707 |
/*
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free
Software Foundation, Inc.
This file is part of GNU Inetutils.
GNU Inetutils is free software: you can redistribute it and/or modify
it under the terms of the GNU Gen... | infoburp/inetutils | telnet/authenc.c | C | gpl-3.0 | 3,857 |
/*
* 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... | filippo-ceid/multi2sim | src/arch/southern-islands/emu/opencl-repo.c | C | gpl-3.0 | 6,076 |
/* Multiple Lua Programming Language : Intermediate Code Generator
* Copyright(C) 2014 Cheryl Natsu
* This file is part of multiple - Multiple Paradigm Language Interpreter
* multiple is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* ... | zooxyt/lua | mlua_icg.c | C | gpl-3.0 | 15,534 |
/**
******************************************************************************
* @file Examples_LL/USART/USART_Communication_TxRx_DMA/Src/main.c
* @author MCD Application Team
* @brief This example describes how to send/receive bytes over USART IP using
* the STM32F0xx USART LL API in DMA m... | Fdepraetre/Handmouse | Software/Handmouse_STM/Lib_DL/STM32Cube_FW_F0_V1.8.0/Projects/STM32F072RB-Nucleo/Examples_LL/USART/USART_Communication_TxRx_DMA/Src/main.c | C | gpl-3.0 | 19,128 |
/*
* FuchsTracker.c Copyright (C) 1999 Sylvain "Asle" Chipaux
*
* Depacks Fuchs Tracker modules
*
* Modified in 2006,2007,2014 by Claudio Matsuoka
*/
#include <string.h>
#include <stdlib.h>
#include "prowiz.h"
static int depack_fuchs(HIO_HANDLE *in, FILE *out)
{
uint8 *tmp;
uint8 max_pat;
/*int ssize;*/
... | DodgeeSoftware/OpenALWrapper | _dependencies/libxmp-4.4.0/src/loaders/prowizard/fuchs.c | C | gpl-3.0 | 3,794 |
/**
******************************************************************************
* @file I2C/I2C_TwoBoards_ComPolling/Src/stm32f4xx_it.c
* @author MCD Application Team
* @version V1.2.7
* @date 17-February-2017
* @brief Main Interrupt Service Routines.
* This file provides temp... | TRothfelder/Multicopter | libs/STM32Cube_FW_F4_V1.16.0/Projects/STM32F4-Discovery/Examples/I2C/I2C_TwoBoards_ComPolling/Src/stm32f4xx_it.c | C | gpl-3.0 | 5,686 |
/*
* sound/oss/ad1848.c
*
* The low level driver for the AD1848/CS4248 codec chip which
* is used for example in the MS Sound System.
*
* The CS4231 which is used in the GUS MAX and some other cards is
* upwards compatible with AD1848 and this driver is able to drive it.
*
* CS4231A and AD1845 are upward compa... | williamfdevine/PrettyLinux | sound/oss/ad1848.c | C | gpl-3.0 | 77,160 |
/**
* @file gensvm_debug.c
* @author G.J.J. van den Burg
* @date 2016-05-01
* @brief Functions facilitating debugging
*
* @details
* Defines functions useful for debugging matrices.
*
* @copyright
Copyright 2016, G.J.J. van den Burg.
This file is part of GenSVM.
GenSVM is free software: you can redistribu... | GjjvdBurg/GenSVM | src/gensvm_debug.c | C | gpl-3.0 | 2,141 |
/*
* Copyright (C) 2007-2009 Daniel Prevost <dprevost@photonsoftware.org>
*
* This file is part of Photon (photonsoftware.org).
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 or version 3 as published by the
* Free Software Foundation and appearing... | dprevost/photon | src/Nucleus/Tests/Hash/InsertPass.c | C | gpl-3.0 | 2,772 |
/*
* This file is part of Cleanflight.
*
* Cleanflight 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.
*
* Cleanflight is distr... | rb1205/inav | src/main/telemetry/hott.c | C | gpl-3.0 | 16,523 |
/* vim: set ts=8 sw=4 sts=4 et: */
/*======================================================================
Copyright (C) 2008,2009,2014 OSSO B.V. <walter+rtpsniff@osso.nl>
This file is part of RTPSniff.
RTPSniff is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public Licen... | ossobv/rtpsniff | timer_interval.c | C | gpl-3.0 | 9,457 |
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to 2013 PrismTech
* Limited and its licensees. All rights reserved. See file:
*
* $OSPL_HOME/LICENSE
*
* for full copyright notice and license terms.
*
*/
#include <assert.h>
#includ... | SanderMertens/opensplice | src/tools/idlpp/code/idl_scope.c | C | gpl-3.0 | 9,149 |
/*
*
* Mouse driver
*
*/
#include <kernel/system.h>
#include <kernel/logging.h>
#include <kernel/pipe.h>
#include <kernel/module.h>
#include <kernel/mouse.h>
#include <kernel/args.h>
static uint8_t mouse_cycle = 0;
static uint8_t mouse_byte[4];
#define PACKETS_IN_PIPE 1024
#define DISCARD_POINT 32
#define MOUSE... | jpacanowski/GekonOS | kernel/mouse.c | C | gpl-3.0 | 5,159 |
/*
* Copyright 2014 Tilera Corporation. 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.
*
* This program is distributed in the hope that it will ... | williamfdevine/PrettyLinux | arch/tile/kernel/perf_event.c | C | gpl-3.0 | 24,932 |
#include "defs.h"
#include "fdefs.h"
#include <stdlib.h>
void
gasify(job)
char *job;
{
char command[MAXCOMM] ;
char g_type[MAXCOMM] ;
double temp_y ;
double temp_slope ;
double rho_shock ;
double temp_shock ;
double gas_frac ;
double rhobar ;
double metal ;
double rho ;
... | FavioVazquez/MexicanNumericalSimulationSchool | preschool/tipsy-2.2.3d/code/gasify.c | C | gpl-3.0 | 5,301 |
/*
** AACPlayer - Freeware Advanced Audio (AAC) Player for Android
** Copyright (C) 2011 Spolecne s.r.o., http://www.biophysics.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... | gmavenis/RadioPlayer | jni/aac-decoder/aac-ffmpeg-wma-decoder.c | C | gpl-3.0 | 10,374 |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fap.h>
#define EXIT_SUCCESS 0
char *readstdin(void);
int main()
{
char* input;
unsigned int input_len;
fap_packet_t* packet;
char fap_error_output[1024];
fap_init();
/* Get packet to parse from stdin */
input = readstdin... | n7nix/dantracker | faptest.c | C | gpl-3.0 | 1,515 |
#include <thread.h>
#include <processor.h>
#include <interrupt.h>
#include <printk.h>
_Atomic long long min_time = 0;
static struct thread *__select_thread(struct processor *proc)
{
/* throw the old process back on the queue */
spinlock_acquire(&proc->schedlock);
if(current_thread->flags & THREAD_DEAD)
current_t... | Dennisbonke/DB-OS | kernel/schedule.c | C | gpl-3.0 | 3,944 |
/*****************************************************************************\
* $Id: ipmiping.c,v 1.75 2010-02-08 22:02:31 chu11 Exp $
*****************************************************************************
* Copyright (C) 2007-2015 Lawrence Livermore National Security, LLC.
* Copyright (C) 2003-2007 The... | chu11/freeipmi | ipmiping/ipmiping.c | C | gpl-3.0 | 17,845 |
/*
* Copyright (c) 2008, Jerome Fimes, Communications & Systemes <jerome.fimes@c-s.fr>
* 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 ... | Alexander-M-Waldman/local_currency_site | geodjango/openjpeg-2.0.1/tests/test_tile_decoder.c | C | gpl-3.0 | 13,343 |
/*
* G. Rilling, last modification: 3.2007
* gabriel.rilling@ens-lyon.fr
*
* code based on a student project by T. Boustane and G. Quellec, 11.03.2004
* supervised by P. Chainais (ISIMA - LIMOS - Universite Blaise Pascal - Clermont II
* email : pchainai@isima.fr).
*/
/**************************************************... | pintomollo/asset | MEX/io.c | C | gpl-3.0 | 7,428 |
/*****************************************************************************
* Written by Chris Dunlap <cdunlap@llnl.gov>.
* Copyright (C) 2007-2021 Lawrence Livermore National Security, LLC.
* Copyright (C) 2001-2007 The Regents of the University of California.
* UCRL-CODE-2002-009.
*
* This file is part ... | dun/conman | inevent.c | C | gpl-3.0 | 16,114 |
//cmdtypist: the main of cmdtypist
/*
Program title: CMDTYPIST
Author: Chiatiah Calson
License: GPL 3 or later versions
Date and Time: 5 July 2017 @ 10:40PM
Program Size: 2.8MB
*/
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<ctype.h>
#include <unistd.h>
//cmdtyp... | Noslac/cmd_typist | cmd_typist.c | C | gpl-3.0 | 19,200 |
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo
* This benchmark is part of SWSC */
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[5];
atomic_int atom_1_r1_1;
atomic_int atom_1_r13_0;
void *t0(void *arg){
label_1:;
atomic_store_explicit(&vars[0], 1, mem... | nidhugg/nidhugg | tests/litmus/C-tests/MP+PPO073.c | C | gpl-3.0 | 1,993 |
#include "CAN.h"
#include "led.h"
#include "delay.h"
#include "usart.h"
//////////////////////////////////////////////////////////////////////////////////
//±¾³ÌÐòÖ»¹©Ñ§Ï°Ê¹Óã¬Î´¾×÷ÕßÐí¿É£¬²»µÃÓÃÓÚÆäËüÈκÎÓÃ;
//ALIENTEKÕ½½¢STM32¿ª·¢°å
//CANÇý¶¯ ´úÂë
//ÕýµãÔ×Ó@ALIENTEK
//¼¼ÊõÂÛ̳:www.openedv.com
//ÐÞ¸ÄÈÕÆÚ:201... | chempin/stm32f107- | 10.CAN/OV/can.c | C | gpl-3.0 | 4,689 |
/*
Liquid War 6 is a unique multiplayer wargame.
Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Christian Mauduit <ufoot@ufoot.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 F... | lijiaqigreat/liquidwar-web | reference/src/lib/mat/mat-testmain.c | C | gpl-3.0 | 1,546 |
/* Copyright (C) 2005-2012 by George Williams */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following... | rakeshyeka/PDFprocessor | pdf2htmlEX/fontforge-pdf2htmlEX/fontforgeexe/groupsdlg.c | C | gpl-3.0 | 50,023 |
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo
* This benchmark is part of SWSC */
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[5];
atomic_int atom_1_r1_1;
void *t0(void *arg){
label_1:;
atomic_store_explicit(&vars[0], 2, memory_order_seq_cst);
ato... | nidhugg/nidhugg | tests/litmus/C-tests/S+PPO645.c | C | gpl-3.0 | 1,822 |
/*
============================================================================
Name : lcd_scroll_text.c
Author : Kiran N <niekiran@gmail.com >
Version : 1.0
Copyright : Your copyright notice
Description : This application prints pre-stored strings on a LCD panel with shifting/scrolling effect
... | niekiran/EmbeddedLinuxBBB | Project_Src/lcd_scrollable_text/src/lcd_text_scroll.c | C | gpl-3.0 | 6,531 |
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo
* This benchmark is part of SWSC */
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[3];
atomic_int atom_0_r3_2;
atomic_int atom_1_r1_1;
void *t0(void *arg){
label_1:;
atomic_store_explicit(&vars[0], 2, memo... | nidhugg/nidhugg | tests/litmus/C-tests/DETOUR0477.c | C | gpl-3.0 | 1,695 |
/*
* Copyright (C) 2006-2009 Daniel Prevost <dprevost@photonsoftware.org>
*
* This file is part of Photon (photonsoftware.org).
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 or version 3 as published by the
* Free Software Foundation and appearing... | dprevost/photon | src/Common/Tests/Options/IsShortPresentNullHandle.c | C | gpl-3.0 | 2,353 |
/* glpapi16.c (basic graph and network routines) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
*
* Copyright (C) 2000,01,02,03,04,05,06,07,08,2009 Andrew Makhorin,
* Department for Applied Informatics, Moscow Aviation Institute,... | macmanes-lab/BinPacker | glpk-4.40/src/glpapi16.c | C | gpl-3.0 | 18,723 |
#include "report_mib_feature.h"
#include "mib_feature_definition.h"
#include "report_manager.h"
#include "protocol.h"
#include "bus_slave.h"
#include "momo_config.h"
#include "report_log.h"
#include "report_comm_stream.h"
#include "system_log.h"
#include <string.h>
#define BASE64_REPORT_MAX_LENGTH 160 //( 4 * ( ( RAW... | WellDone/MoMo-Firmware | momo_modules/mainboard/src/mib/commands/report_mib_feature.c | C | gpl-3.0 | 5,340 |
/**
* \file stack.c
*
* Time-stamp: "2012-03-31 13:16:41 bkorb"
*
* This is a special option processing routine that will save the
* argument to an option in a FIFO queue.
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
* AutoOpts is Copyright (c) 1992-2012 ... | nobled/gnutls | src/libopts/stack.c | C | gpl-3.0 | 7,335 |
/**
******************************************************************************
* @file LibJPEG/LibJPEG_Encoding/Src/encode.c
* @author MCD Application Team
* @version V1.1.0
* @date 17-February-2017
* @brief This file contain the compress method.
**************************************... | TRothfelder/Multicopter | libs/STM32Cube_FW_F4_V1.16.0/Projects/STM32469I_EVAL/Applications/LibJPEG/LibJPEG_Encoding/Src/encode.c | C | gpl-3.0 | 5,814 |
/* ptinit.c - ptinit */
#include <xinu.h>
struct ptnode *ptfree; /* list of free message nodes */
struct ptentry porttab[NPORTS]; /* port table */
int32 ptnextid; /* next table entry to try */
/*------------------------------------------------------------------------
* ptinit -- initialize all ports
*----... | rhexsel/xinu-cMIPS | xinu/system/ptinit.c | C | gpl-3.0 | 1,044 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.