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 |
|---|---|---|---|---|---|
#include <kipr/botball.h>
int main()
{
enable_servos(0);
enable_servos(1);
set_servo_position(0,1572);
int move(int speed_left,int speed_right,int duration){
motor(0,speed_left);
motor(3,speed_right);
msleep(duration);
return 0;
}
move(50,50,55... | wibeasley/jbc-2016 | 1408-wallaby/KISS/Default User/challenge-4-with functions/src/main.c | C | mit | 1,171 |
/* BEGIN LICENSE BLOCK
* Version: CMPL 1.1
*
* The contents of this file are subject to the Cisco-style Mozilla Public
* License Version 1.1 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License
* at www.eclipse-clp.org/license.
*
* Software d... | kishoredbn/barrelfish | usr/eclipseclp/icparc_solvers/ic.c | C | mit | 141,309 |
30 atime=1386526223.068490634
30 ctime=1374498496.050315541
| mollstam/UnrealPy | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/freetype-2.5.2/src/base/PaxHeaders.20917/ftsnames.c | C | mit | 60 |
/* Test exception in current environment.
Copyright (C) 1997, 1998, 2005, 2010 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 ... | jjones-cavium/glibc | ports/sysdeps/arm/ftestexcept.c | C | gpl-2.0 | 1,269 |
/*
* linux/kernel/printk.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* Modified to make sys_syslog() more flexible: added commands to
* return the last 4k of kernel messages, regardless of whether
* they've been read or not. Added option to suppress kernel printk's
* to the console. Added hook for send... | Jack003/swiftdroid_kernel | kernel/printk.c | C | gpl-2.0 | 33,443 |
/*
* viapadlock.c -- VIA PadLock interface
*
* Copyright 2004,2005 Henrique de Moraes Holschuh <hmh@debian.org>
* Copyright 2004 Martin Peck <coderman@peertech.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
* t... | cernekee/rng-tools | viapadlock_engine.c | C | gpl-2.0 | 15,289 |
/*
* libdlna: reference DLNA standards implementation.
* Copyright (C) 2007 Benjamin Zores <ben@geexbox.org>
*
* This file is part of libdlna.
*
* libdlna 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 Fou... | uwehermann/easybox-904-lte-firmware | package/libdlna/src/src/av_mpeg4_part10.c | C | gpl-2.0 | 38,945 |
/*
* "$Id: print-escp2.c,v 1.442 2014/01/23 13:22:41 rlk Exp $"
*
* Print plug-in EPSON ESC/P2 driver for the GIMP.
*
* Copyright 1997-2000 Michael Sweet (mike@easysw.com) and
* Robert Krawitz (rlk@alum.mit.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the ter... | koenkooi/gutenprint | src/main/print-escp2.c | C | gpl-2.0 | 146,857 |
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/qmp/qdict.h"
#include "qapi/qmp/qnum.h"
#include "qapi/qmp/qstring.h"
#include "qapi/error.h"
#include "qemu/module.h"
#include "qapi/qobject-input-visitor.h"
#include "tests/test-qapi-types.h"
#include "tests/test-qapi-visit.h"
#include "test-qapi-command... | marioli/qemu | tests/test-qmp-cmds.c | C | gpl-2.0 | 9,298 |
//$_FOR_ROCKCHIP_RBOX_$
/*
* drivers/video/rockchip/rk_fb.c
*
* Copyright (C) 2012 ROCKCHIP, Inc.
*Author:yzq<yzq@rock-chips.com>
yxj<yxj@rock-chips.com>
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied,... | phjanderson/Kernel-3188 | drivers/video/rockchip/rk_fb.c | C | gpl-2.0 | 50,866 |
/*
* Copyright (C) 2008 Red Hat, Inc., Eric Paris <eparis@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
... | tellapart/ubuntu-precise | fs/notify/inode_mark.c | C | gpl-2.0 | 8,899 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <math.h>
#include "config.h"
#include "img_format.h"
#include <libdv/dv.h>
#include <libdv/dv_types.h>
#include "stream/stream.h"
#include "libmpdemux/demuxer.h"
#include "libmpdemux/stheader.h"
#include ... | gittup/mplayer | libmpcodecs/vd_libdv.c | C | gpl-2.0 | 1,818 |
/* debug-buffer.c -- Trace recording
Copyright (C) 1997 John Harper <john@dcs.warwick.ac.uk>
$Id$
This file is part of Jade.
Jade 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 ... | OpenInkpot-archive/iplinux-librep | src/debug-buffer.c | C | gpl-2.0 | 4,859 |
/*
Write pcm data from alsa device to file.
gcc -o alsapcm2file alsapcm2file.c
*/
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#define BUFFLEN 8192
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
i... | ralph-irving/squeezeslave | config/alsapcm2file.c | C | gpl-2.0 | 1,245 |
/*
* soc-cache.c -- ASoC register cache helpers
*
* Copyright 2009 Wolfson Microelectronics PLC.
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.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 th... | aftian/linux-blankon | sound/soc/soc-cache.c | C | gpl-2.0 | 32,631 |
/*
* 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... | GameTheory-/android_kernel_lge_l1m | arch/arm/mach-msm/lge/lx/board-lx-regulator.c | C | gpl-2.0 | 22,249 |
/*
* unixinput.c -- input sound samples
*
* Copyright (C) 1996
* Thomas Sailer (sailer@ife.ee.ethz.ch, hb9jnx@hb9w.che.eu)
*
* Copyright (C) 2012-2019
* Elias Oenal (multimon-ng@eliasoenal.com)
*
* This program is free software; you can redistribute it and/or modify
* ... | Zanoroy/multimon-ng | unixinput.c | C | gpl-2.0 | 26,802 |
/* Target-dependent code for the Renesas RL78 for GDB, the GNU debugger.
Copyright (C) 2011-2017 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lice... | totalspectrum/binutils-propeller | gdb/rl78-tdep.c | C | gpl-2.0 | 40,736 |
/* Tail call optimization on trees.
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
This file is part of GCC.
GCC 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... | embecosm/avr32-gcc | gcc/tree-tailcall.c | C | gpl-2.0 | 29,996 |
/*
* Copyright 2008, Network Appliance Inc.
* Copyright 2014, Sage Electronic Engineering, LLC.
*
* Author: Jason McMullan <mcmullan <at> netapp.com>
* Licensed under the GPL-2 or later.
*/
#include <stdlib.h>
#include <spi_flash.h>
#include "spi_flash_internal.h"
/* M25Pxx-specific commands */
#define CMD_AT25... | tidatida/coreboot | src/drivers/spi/atmel.c | C | gpl-2.0 | 5,594 |
/*
* linux/drivers/cpufreq/cpufreq.c
*
* Copyright (C) 2001 Russell King
* (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
*
* Oct 2005 - Ashok Raj <ashok.raj@intel.com>
* Added handling for CPU hotplug
* Feb 2006 - Jacob Shin <jacob.shin@amd.com>
* Fix handling for CPU hotplug -- affected CP... | omegahanggara/android_kernel_sony_xperia_z1 | drivers/cpufreq/cpufreq.c | C | gpl-2.0 | 55,430 |
/******************************************************************************
** File Name: watchdog_phy_v3.c *
** Author: Jie Dai *
** DATE: 08/02/2010 ... | abgoyal/zen_u105_uboot | arch/arm/cpu/armv7/tiger/watchdog_phy_v3.c | C | gpl-2.0 | 4,954 |
/* { dg-do compile } */
/* { dg-require-effective-target mpx } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -fsanitize=address" } */
/* { dg-error "-fcheck-pointer-bounds is not supported with Address Sanitizer" "" { target *-*-* } 0 } */
extern int x[];
void
foo ()
{
x[0] = 0;
}
| rofirrim/gcc-tiny | gcc/testsuite/gcc.target/i386/pr65044.c | C | gpl-2.0 | 289 |
/*
* Copyright (C) 2003-2010 The Paparazzi Team
*
* This file is part of paparazzi.
*
* paparazzi 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, or (at your option)
* any later vers... | wv-tud/paparazzi | sw/airborne/firmwares/fixedwing/main_ap.c | C | gpl-2.0 | 9,761 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright (C) 2007 William Jon McCann <mccann@jhu.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; eith... | Fantu/cinnamon-session | cinnamon-session/mdm-log.c | C | gpl-2.0 | 6,147 |
/* Copyright (C) 1991-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 ... | gbenson/glibc | misc/fsync.c | C | gpl-2.0 | 972 |
/*
* Generic gameport layer
*
* Copyright (c) 1999-2002 Vojtech Pavlik
* Copyright (c) 2005 Dmitry Torokhov
*/
/*
* 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.
*/
#define ... | 0x20c24/linux-psec | drivers/input/gameport/gameport.c | C | gpl-2.0 | 20,406 |
/*
* wpa_supplicant_dbus_network.c
*
* Created on: Dec 8, 2014
* Author: aelarabawy
*/
#include "wpa_supplicant_dbus_network_int.h"
//Prototypes for Private Functions
static void register4Signals(wpa_supplicant_dbus_network *);
static void getProperties(wpa_supplicant_dbus_network *);
//End of Prototypes f... | aelarabawy/wifi-mgr | src/wpa-supplicant-dbus/wpa_supplicant_dbus_network.c | C | gpl-2.0 | 5,839 |
/** BEGIN COPYRIGHT BLOCK
* This Program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; version 2 of the License.
*
* This Program is distributed in the hope that it will be useful, but WITHOUT
* ANY W... | ohamada/389ds | ldap/servers/slapd/tools/ldclt/opCheck.c | C | gpl-2.0 | 29,238 |
#include <Python.h>
#include <stdlib.h>
/***********************************************/
/* 1) code to route events to Python object */
/* note that we could run strings here instead */
/***********************************************/
static PyObject *Handler = NULL; /* keep Python object in C */
... | simontakite/sysadmin | pythonscripts/programmingpython/Integrate/Embed/Regist/cregister.c | C | gpl-2.0 | 2,437 |
/*-
* Copyright (c) 2001 Charles Mott <cm@linktel.net>
* 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, th... | dezelin/vbox-haiku | src/VBox/Devices/Network/slirp/libalias/alias_ftp.c | C | gpl-2.0 | 20,254 |
// Copyright (C) 1999-2000 Id Software, Inc.
//
#include "g_local.h"
#include "g_ICARUScb.h"
#include "g_nav.h"
#include "bg_saga.h"
#include "b_local.h"
level_locals_t level;
int eventClearTime = 0;
static int navCalcPathTime = 0;
extern int fatalErrors;
int killPlayerTimer = 0;
gentity_t g_entities[MAX_GENTITI... | BruceJohnJennerLawso/OtherJK | codemp/game/g_main.c | C | gpl-2.0 | 99,238 |
//note: please do not modify this file manually!
// this file has been generated automatically by BOAST version 2.0.1
// by: make boast_kernels
/*
!=====================================================================
!
! S p e c f e m 3 D G l o b e V e r s i o n 7 . 0
! ----------------... | komatits/specfem3d_globe | src/gpu/kernels.gen/compute_coupling_fluid_CMB_kernel_cl.c | C | gpl-2.0 | 5,063 |
/*
* lib/getroute.c This file contains a small interface function to
* use the AF specific print routine for the routing
* table.
*
* NET-LIB A collection of functions used from the base set of the
* NET-3 Networking Distribution for the LINUX operat... | ysleu/RTL8685 | uClinux-dist/user/route/lib/getroute.c | C | gpl-2.0 | 3,025 |
/*
* Small jpeg decoder library
*
* Copyright (c) 2006, Luc Saillard <luc@saillard.org>
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the a... | zeha/syslinux | com32/lib/jpeg/bgr24.c | C | gpl-2.0 | 8,975 |
/**************************************************************************
*
* Copyright © 2009 VMware, Inc., Palo Alto, CA., USA
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to d... | dheerajjamwal/Backport_ltsi_3.14.22 | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | C | gpl-2.0 | 56,604 |
/*
* Samsung Exynos5 SoC series FIMC-IS driver
*
* exynos5 fimc-is video functions
*
* Copyright (c) 2011 Samsung Electronics Co., 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 Fo... | TeamWin/android_kernel_samsung_j2lte | drivers/media/platform/exynos/fimc-is2/fimc-is-video-sensor.c | C | gpl-2.0 | 20,089 |
/*
* Copyright (c) 2003-2008 Chelsio, 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 this source ... | dduval/kernel-rhel5 | drivers/net/cxgb3/l2t.c | C | gpl-2.0 | 12,701 |
/*
* (C) Copyright 2002-2006
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* Marius Groeger <mgroeger@sysgo.de>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you... | billy-wang/smdkc110-Gingerbread-u-boot | lib_arm/board.c | C | gpl-2.0 | 20,253 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2013 Google Inc.
* Copyright (C) 2013-2014 Sage Electronic Engineering, LLC.
*
* 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 Found... | vmpn/coreboot | src/soc/intel/fsp_baytrail/northcluster.c | C | gpl-2.0 | 6,273 |
/*
* Driver for the Cirrus Logic EP93xx DMA Controller
*
* Copyright (C) 2011 Mika Westerberg
*
* DMA M2P implementation is based on the original
* arch/arm/mach-ep93xx/dma-m2p.c which has following copyrights:
*
* Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org>
* Copyright (C) 2006 Applied D... | flaming-toast/linux-jeyu | drivers/dma/ep93xx_dma.c | C | gpl-2.0 | 38,127 |
/* arch/arm/mach-msm/smd.c
*
* Copyright (C) 2007 Google, Inc.
* Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
* Author: Brian Swetland <swetland@google.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundatio... | Shabbypenguin/Cayman-Island-Kernel | arch/arm/mach-msm/smd.c | C | gpl-2.0 | 52,855 |
/* Copyright (C) 1998-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 ... | lbxl2345/glibc | sysdeps/posix/sigset.c | C | gpl-2.0 | 2,611 |
/*
* BQ51051B Wireless Charging(WLC) control driver
*
* Copyright (C) 2012 LG Electronics, Inc
*
* This package 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.
*
*/
#incl... | aicjofs/android_kernel_lge_v500 | drivers/power/bq51051b_charger.c | C | gpl-2.0 | 12,740 |
#include <linux/videodev2.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/cdev.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
#include <asm/atomic.h>
#include <linux/slab.h>
#include <linux/proc_fs.h> //proc file use
#include <linux/dma-mapping.h>
#include <l... | visi0nary/mt6735-kernel-3.10.61 | drivers/misc/mediatek/imgsensor/src/mt6735/kd_sensorlist.c | C | gpl-2.0 | 130,380 |
#ifndef BUILD_LK
#include <linux/string.h>
#endif
#include "lcm_drv.h"
// ---------------------------------------------------------------------------
// Local Constants
// ---------------------------------------------------------------------------
#define FRAME_WIDTH (480)
#define FRAME_HEIGHT ... | profglavcho/ALPS.L0.MP8.V2.1_LCSH6735_65C_HZ_L_KERNEL | drivers/misc/mediatek/lcm/hx8392a_dsi_cmd_fwvga/hx8392a_dsi_cmd_fwvga.c | C | gpl-2.0 | 10,847 |
/*
* callbacks.c - functions to handle GUI events.
* part of galculator
* (c) 2002-2014 Simon Flöry (simon.floery@rechenraum.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 Foundat... | galculator/galculator | src/callbacks.c | C | gpl-2.0 | 65,422 |
/* arch/arm/mach-msm/board-liberty-microp.c
* Copyright (C) 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.
*
* This program is distri... | schlund/nerdey-kernel | arch/arm/mach-msm/board-photon-microp.c | C | gpl-2.0 | 2,198 |
/*
* arizona-micsupp.c -- Microphone supply for Arizona devices
*
* Copyright 2012 Wolfson Microelectronics PLC.
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as... | bestmjh47/android_kernel_samsung_aries | drivers/regulator/arizona-micsupp.c | C | gpl-2.0 | 5,930 |
/*
* Copyright 2008-2010 Cisco Systems, Inc. All rights reserved.
* Copyright 2007 Nuova 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; versio... | Jackeagle/android_kernel_sony_c2305 | drivers/net/ethernet/cisco/enic/vnic_intr.c | C | gpl-2.0 | 2,096 |
/*
* max17042_fuelgauge.c
* Samsung MAX17042 Fuel Gauge Driver
*
* Copyright (C) 2012 Samsung Electronics
*
*
* 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 ... | basr/Brieuwers_Kernel | drivers/battery/max17042_fuelgauge.c | C | gpl-2.0 | 62,855 |
/*
* Copyright (C) 2017 Espen Jürgensen <espenjurgensen@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
* (at your option) any later versio... | ejurgensen/forked-daapd | src/httpd_oauth.c | C | gpl-2.0 | 3,675 |
/*
* Copyright (C) 2011-2014 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;... | rharshit/android_kernel_mediatek_sprout | drivers/misc/mediatek/magnetometer/mag.c | C | gpl-2.0 | 29,478 |
/*
* Copyright © 2008 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... | pavel-odintsov/openvz_rhel6_kernel_mirror | drivers/gpu/drm/i915/i915_gem.c | C | gpl-2.0 | 131,534 |
/****************************************************************************
Irem "M62" system
TODO:
- Kid Niki and Horizon are missing the drums. There is an analog section in
the sound board.
Notes:
- I believe that both kungfum bootlegs are derived from an Irem original which we
don't have (prototy... | Luke-Nukem/mame-144-vector_mod | src/mame/drivers/m62.c | C | gpl-2.0 | 133,801 |
/***************************************************************************
Gaelco Type CG-1V/GAE1 Video Hardware
Functions to emulate the video hardware of the machine
CG-1V/GAE1 (Gaelco custom GFX & Sound chip):
The CG-1V works with 16x16, 5 bpp gfx.
It can handle:
* 2 1024x512 tile... | Luke-Nukem/mame-144-vector_mod | src/mame/video/gaelco2.c | C | gpl-2.0 | 19,882 |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*/
#include "ad_nfs.h"
void ADIOI_NFS_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code)
{
ADIOI_GEN_SetInfo(fd, users_info, error_cod... | qingu/WRF-Libraries | src/mpich-3.0.1/src/mpi/romio/adio/ad_nfs/ad_nfs_hints.c | C | gpl-2.0 | 327 |
/* arch/arm/mach-msm/qdsp5/adsp.c
*
* Register/Interrupt access for userspace aDSP library.
*
* Copyright (C) 2008 Google, Inc.
* Copyright (c) 2008-2009, Code Aurora Forum. All rights reserved.
* Author: Iliyan Malchev <ibm@android.com>
*
* This software is licensed under the terms of the GNU General Public
*... | fopina/ZTE-Joe-Kernel-2.6.29 | arch/arm/mach-msm/qdsp5/adsp.c | C | gpl-2.0 | 33,701 |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "lwings.h"
unsigned char *lwings_fgvideoram;
unsigned char *lw... | scs/uclinux | user/games/xmame/xmame-0.106/src/vidhrdw/lwings.c | C | gpl-2.0 | 7,208 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Advanced Micro Devices, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This ... | latelee/coreboot | src/mainboard/siemens/sitemp_g1p1/fadt.c | C | gpl-2.0 | 6,196 |
/* nautilus-icon-info.c
* Copyright (C) 2007 Red Hat, Inc., Alexander Larsson <alexl@redhat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the Licen... | daschuer/nautilus | src/nautilus-icon-info.c | C | gpl-2.0 | 16,404 |
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; ei... | sTeeLM/MINIME | toolkit/srpm/SOURCES/cde-2.2.4/programs/dtksh/ksh93/src/lib/libast/feature/mode.c | C | gpl-2.0 | 7,506 |
/* print.c
* Routines for printing packet analysis trees.
*
* $Id$
*
* Gilbert Ramirez <gram@alumni.rice.edu>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under th... | masonh/wireshark | print.c | C | gpl-2.0 | 53,384 |
/*
* Copyright (C) 2001-2003 FhG Fokus
*
* This file is part of Kamailio, a free SIP server.
*
* 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.
*
*... | ahashmi-lmkt/kamailio | mem/f_malloc.c | C | gpl-2.0 | 28,974 |
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* gnm-sheet-slicer-combo.c: Model for in cell combo for data slicers
*
* Copyright (C) Jody Goldberg <jody@gnome.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the G... | 10sr/gnumeric-gda | src/gnm-sheet-slicer-combo.c | C | gpl-2.0 | 3,309 |
/*
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
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 requi... | char32/ChibiOS | os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c | C | gpl-3.0 | 60,672 |
/*
* This file was generated automatically by ExtUtils::ParseXS version 3.34 from the
* contents of via.xs. Do not edit this file, edit via.xs instead.
*
* ANY CHANGES MADE HERE WILL BE LOST!
*
*/
#line 1 "via.xs"
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#ifdef PERLI... | mgood7123/UPM | perl-5.26.1/ext/PerlIO-via/via.c | C | gpl-3.0 | 20,166 |
// -1156203886
#include <stdio.h>
int f(unsigned int m, unsigned int n)
{
return (m * n == 0) ? m + n + 1 : f(m - 1, f(m, n - 1));
}
int main()
{
printf("%d\n", f(2, 3));
return 0;
}
| xiaogaozi/princess-alist | home/xiaogaozi/src/C/DataStructure/LinearList/stack/alist.c | C | gpl-3.0 | 193 |
/* graphical mode text output */
#include "fb_gfx.h"
typedef struct _fb_PrintInfo {
FB_GFXCTX *context;
int dirty_start;
int dirty_end;
} fb_PrintInfo;
static __inline__
void fb_hSetDirty( int *dirty_start, int *dirty_end,
int test_start, int test_end )
{
if( *dirty_start==*dirty_end ... | rvega/beagle-bone-black-io | vendors/FreeBASIC-0.90.0-source/src/gfxlib2/gfx_print.c | C | gpl-3.0 | 8,842 |
/*
* Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
* 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... | mgood7123/UPM | Sources/strace/ipc.c | C | gpl-3.0 | 1,914 |
/************************************************************************************//**
* \file Demo\ARMCM3_EFM32_Olimex_EM32G880F128STK_GCC\Prog\led.c
* \brief LED driver source file.
* \ingroup Prog_ARMCM3_EFM32_Olimex_EM32G880F128STK_GCC
* \internal
*--------------------------------------------... | AmesianX/OpenBLT | Target/Demo/ARMCM3_EFM32_Olimex_EM32G880F128STK_GCC/Prog/led.c | C | gpl-3.0 | 3,951 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <android/log.h>
#include <errno.h>
#include "mongoose/mongoose.h"
#define THIS_FILE "WebServer"
// TODO Test difference between 127.0.0.1 + [::1] and localhost
#define HTTP_URL "http://localhost:80"
#define HTTPS_URL "https://loca... | Free-Software-for-Android/AdAway | webserver/jni/webserver.c | C | gpl-3.0 | 4,909 |
/*
* Sample program from
* Compiler Design in C
* Allen I. Holub
*
* Program: p. 15 - A Simple Lexer and Parser
*/
/**============================================================================
** TEST = t10_cdiC_1_simple_lexer_parser.c
** SOURCE = file
** TESTSUITE = cdiC_programs
** TEST 1 = che... | rsergeant/clouded-leopard | tests/books/c/t10_cdiC_1__Lex.c | C | gpl-3.0 | 2,193 |
/* --COPYRIGHT--,BSD
* Copyright (c) 2016, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the ab... | bgme/incrustados | acellab2/fonts/fontcmss18b.c | C | gpl-3.0 | 14,168 |
/*
Copyright 2011 David Malcolm <dmalcolm@redhat.com>
Copyright 2011 Red Hat, Inc.
This 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 l... | davidmalcolm/gcc-python-plugin | tests/cpychecker/absinterp/comparisons/conditionals/input.c | C | gpl-3.0 | 2,723 |
int Tw(int Jov, int Xx) {
int rwe;
while (+ + (1058291321) % HcUq((t9(1199428, 1092066692, + (So))), ! 465031548, mf7, 1575969488 + l + z) % ! (XH = zaVL)) while (313276032) C(+ lr * Rtu * - P4i - - + 222918286 + ((1234300845)), 1619822472, + V >= (_xg8), c, ! 1787455920);
}
| hayamiz/minicc | parser_tests/semerror/c11.c | C | gpl-3.0 | 277 |
/*
* 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... | sguarin/cleanflight | src/main/flight/navigation.c | C | gpl-3.0 | 27,339 |
/* Generated automatically. DO NOT EDIT! */
#define SIMD_HEADER "simd-avx-128-fma.h"
#include "../common/hc2cfdftv_8.c"
| Shangxz/HackIllinois2017 | tone-analysis/fftw-3.3.6-pl1/rdft/simd/avx-128-fma/hc2cfdftv_8.c | C | gpl-3.0 | 121 |
/*
!=====================================================================
!
! S p e c f e m 3 D V e r s i o n 3 . 0
! ---------------------------------------
!
! Main historical authors: Dimitri Komatitsch and Jeroen Tromp
! CNRS, France
! ... | geodynamics/specfem3d | src/generate_databases/parse_sep.c | C | gpl-3.0 | 5,049 |
/*
* cws2fws by Alex Beregszaszi
* This file is placed in the public domain.
* Use the program however you see fit.
*
* This utility converts compressed Macromedia Flash files to uncompressed ones.
*/
#include "config.h"
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#if HAVE_UNI... | LarsSch/qTox | libs/ffmpeg-2.7/tools/cws2fws.c | C | gpl-3.0 | 3,804 |
/* $Id: cmdinput.c,v 1.11 2006/08/06 05:04:45 blairdude Exp $
* CMDINPUT.C - handles command input (tab completion, history, etc.)
*/
#include "../config.h"
#include <assert.h>
#include <conio.h>
#include <dos.h>
#include <stdio.h>
#include <string.h>
#include "../include/command.h"
#include "../include/keys.h"
#... | joyent/sdcboot | freedos/source/command/lib/cmdinput.c | C | mpl-2.0 | 9,548 |
//*****************************************************************************
//
// enet_uip.c - Sample WebServer Application for Ethernet Demo
//
// Copyright (c) 2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software f... | trfiladelfo/unesp_mdt | boards/SW-TM4C-2.0.1.11577/examples/boards/dk-tm4c129x/enet_uip/enet_uip.c | C | mpl-2.0 | 33,630 |
/*
* Test program for testing regular expressions.
*
* Kern Sibbald, MMVI
*
*/
/*
Bacula® - The Network Backup Solution
Copyright (C) 2006-2008 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the fil... | gagoel/bacula | src/tools/bregtest.c | C | agpl-3.0 | 3,898 |
/*
Copyright (C) 2021 Daniel Schultz
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option)... | fredrik-johansson/flint2 | fmpz_mod_mpoly/get_coeff_fmpz_fmpz.c | C | lgpl-2.1 | 891 |
/*
* lxc: linux Container library
*
* (C) Copyright IBM Corp. 2007, 2008
*
* Authors:
* Daniel Lezcano <daniel.lezcano at free.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundati... | ysbnim/lxc | src/lxc/caps.c | C | lgpl-2.1 | 4,531 |
/* testtoolbar.c
*
* Copyright (C) 2002 Anders Carlsson <andersca@codefactory.se>
* Copyright (C) 2002 James Henstridge <james@daa.com.au>
* Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library G... | bratsche/gtk- | tests/testtoolbar.c | C | lgpl-2.1 | 23,825 |
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. 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 License.
This program is distributed in t... | natsys/mariadb_10.2 | mysys/my_winthread.c | C | lgpl-2.1 | 3,980 |
/*
* Copyright (c) 2014, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list... | RT-Thread/rtthread_fsl | bsp/kinetis/platform/drivers/src/enet/fsl_enet_lpm_callback.c | C | lgpl-2.1 | 3,215 |
/*
* Copyright (c) 2011 ARM Ltd
* 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 conditions a... | Lan-Hekary/Arduino | tests/device/test_libc/memcpy-1.c | C | lgpl-2.1 | 5,833 |
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lice... | ebassi/gtk | gtk/gtktexttagtable.c | C | lgpl-2.1 | 12,649 |
/*
* Copyright (C) 2014 LNLS (www.lnls.br)
* Author: Lucas Russo <lucas.russo@lnls.br>
*
* Released according to the GNU LGPL, version 3 or any later version.
*/
/* Error definitions and output stringification based on the work available
* at the libsllp project repository: https://github.com/brunoseivam/libsllp... | lerwys/testing-bpm-sw | libclient/bpm_client_err.c | C | lgpl-3.0 | 894 |
#include "main.h"
#include "la_effect.h"
#include "la_text.h"
#include "la_memory.h"
#include <la_window.h>
static void ex_redraw(ctx_t* ctx) {
la_window_t* window = ctx->window;
la_light_t light = {
(la_v3_t) { la_safe_get_float(&window->mouse_x),
la_safe_get_float(&window->mouse_y) },
(la_v3_t) { 1.f, 1.f,... | OxyDeadbeef/lib-aldaron | src/test/src/main.c | C | lgpl-3.0 | 2,075 |
/* tpow_ld -- test file for mpc_pow_ld.
Copyright (C) 2009, 2014 INRIA
This file is part of GNU MPC.
GNU MPC is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
o... | BrianGladman/MPC | tests/tpow_ld.c | C | lgpl-3.0 | 1,179 |
/*
* Copyright (C) 1997-2009, Michael Jennings
*
* 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... | maikodaraine/EnlightenmentUbuntu | apps/eterm/src/script.c | C | unlicense | 24,795 |
// vim:set ts=4 sw=4 ai:
/*
* Copyright 2014 Michael Toren <mct@toren.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | FlamingLotusGirls/soma | pier14/avr/proto2.c | C | apache-2.0 | 6,987 |
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. 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 co... | GoogleChromeLabs/chromeos_smart_card_connector | third_party/webports/src/src/ports/glibc-compat/src/herror.c | C | apache-2.0 | 3,650 |
/* -*- coding: utf-8 -*-
* ----------------------------------------------------------------------
* Copyright © 2010-2012, RedJack, LLC.
* All rights reserved.
*
* Please see the LICENSE.txt file in this distribution for license
* details.
* ----------------------------------------------------------------------
... | taichisocks/taichiOSX | shadowsocks-libev/shadowsocks-libev/libipset/bdd/expanded.c | C | apache-2.0 | 4,383 |
/* $NetBSD: ltable.c,v 1.1.1.2 2012/03/15 00:08:08 alnsn Exp $ */
/*
** $Id: ltable.c,v 1.1.1.2 2012/03/15 00:08:08 alnsn Exp $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
/*
** Implementation of tables (aka arrays, objects, or hash tables).
** Tables keep its elements in two parts: an array part and a ... | ayyucedemirbas/Minix-Source-Code | minix-master/external/mit/lua/dist/src/ltable.c | C | apache-2.0 | 16,327 |
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stropts.h>
#include <unistd.h>
#include <sys/audio.h>
#include <sys/stat.h>
#include <sys/mixer.h>
#include "sydney_audio.h"
/* Sun Audio implementation based heavily on ... | wilebeast/FireFox-OS | B2G/gecko/media/libsydneyaudio/src/sydney_audio_sunaudio.c | C | apache-2.0 | 21,486 |
/* prf.c */
/*
* Copyright (c) 1997-2010, 2012-2015 Wind River Systems, 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
*
* U... | mirzak/zephyr-os | lib/libc/minimal/source/stdout/prf.c | C | apache-2.0 | 16,205 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.