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 <msp430f2122.h>
//Configure Timer0 Module+++++++++++++++++++++++++++++++++++++++++++++++++++
void ConfigTimer0(){
CCTL0 = CCIE; // CCR0 interrupt enabled (compare) (set bit 4 of TACCTL0)
CCR0 = 24999; //cualquier valor entre 0 y 65535 (2499 <-> 10 ms)
TACTL = TASSEL_2 + ID_2 + MC_1; //... | queq/just-stuff | msp430/TD May 08/P0/Configs.c | C | mit | 1,624 |
/*
** $Id: ldump.c,v 2.17 2012/01/23 23:02:10 roberto Exp $
** save precompiled Lua chunks
** See Copyright Notice in lua.h
*/
#include <stddef.h>
#define ldump_c
#define LUA_CORE
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#include "lundump.h"
typedef struct {
lua_State* L;
lua_Writer writer;
voi... | easyeagel/core | lua/src/ldump.c | C | mit | 3,249 |
#pragma config(Motor, port2, LeftDrive, tmotorVex393, openLoop, reversed)
#pragma config(Motor, port5, RightDrive, tmotorVex393, openLoop)
#pragma config(Motor, port6, Arms, tmotorVex393, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard ... | anjandev/Vex | Vex Sky-Rise (2015)/Main 0.2.c | C | mit | 3,478 |
#include <emmintrin.h> /* where intrinsics are defined */
#include <xmmintrin.h>
#include <stdio.h>
void sumvetsse(float *a, float *b, float *c, long int nvec) {
long int i, nvecsse;
__m128 v1, v2;
printf("sumvetsse\n");
nvecsse = nvec - (nvec%4);
for(i=0; i<nvec; i+=4) {
v1 = _mm_load_ps(a+i);
v2 ... | lellisls/PAD | at03-avx/exemplos/soma_vet_sse.c | C | mit | 456 |
/***************************************************************************/
/* */
/* File: savejpg.h */
/* Author: bkenwright@xbdev.net */
/* ... | EyesOfThings/Software | Platform Software/myriad/apps/MicroPython/leon/eot/jpeg_codec.c | C | mit | 23,331 |
/* $OpenBSD: s_ctan.c,v 1.1 2008/09/07 20:36:09 martynas Exp $ */
/*
* Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net>
*
* 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 ... | gil0mendes/Infinity-OS | 3rdparty/lib/libm/generic/s_ctan.c | C | mit | 3,011 |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <assert.h>
/* Head ends here */
void insertionSort(int ar_size, int * ar) {
int v;
int idx;
int i;
int done = 0;
v = ar[ar_size - 1];
for (idx = ar_size-2; idx >= 0; idx--) {
if (v > ar[idx]) {
... | omergulen/brainhack17 | nuri/nuri.c | C | mit | 958 |
/*
FreeRTOS V7.0.1 - Copyright (C) 2011 Real Time Engineers Ltd.
***************************************************************************
* *
* FreeRTOS tutorial books are available in pdf and paperback. *
* ... | Beck-Sisyphus/EE472 | Lab5/Demo/Common/Full/integer.c | C | mit | 12,722 |
/* $Id: tif_dirread.c,v 1.92.2.9 2010-06-14 00:21:46 fwarmerdam Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provide... | koobonil/Boss2D | Boss2D/addon/openalpr-2.3.0_for_boss/openalpr-windows-2.2.0/tesseract-ocr/dependencies/libtiff/libtiff/src/tif_dirread.c | C | mit | 60,973 |
#include <stdio.h>
#include <errno.h>
char buf[129];
int main(int argc, char **argv)
{
if (argc < 2) {
printf("cat: missing operand\n");
return -1;
}
int fd = 0, r = 0;
if ((fd = open(argv[1], O_RDONLY)) < 0) {
printf("cat error: %d\n", errno);
return errno;
}
while ((r = read(fd, buf, 128))) {
if (r >... | luxrck/wx | user/cat.c | C | mit | 429 |
/**************************************************************/
/* ********************************************************** */
/* * * */
/* * CLAUSES * */
/* * ... | ensemblr/llvm-project-boilerplate | include/llvm/projects/test-suite/MultiSource/Applications/SPASS/clause.c | C | mit | 154,918 |
/**
******************************************************************************
* @file stm32746g_discovery_eeprom.c
* @author MCD Application Team
* @version V1.1.0
* @date 22-April-2016
* @brief This file provides a set of functions needed to manage an I2C M24LR64
* EEPROM m... | ryankurte/stm32f4-base | drivers/BSP/STM32F746G-Discovery/stm32746g_discovery_eeprom.c | C | mit | 17,820 |
ObjectReader.read((char *)&reader.campo1, sizeof(reader.campo1));
ObjectReader.read((char *)&reader.campo2, sizeof(reader.campo2));
ObjectReader.read((char *)&reader.campo3, sizeof(reader.campo3));
struct __attribute__((packed)) nome { ... };
#pragma pack(push, 1)
struct nome { ... };
#pragma pack(pop)
//https://pt.... | maniero/SOpt | C/Struct/Pack.c | C | mit | 350 |
#include "game.h"
int generate_map() {
memset(map, 0, MAP_H * MAP_W);
make_borders();
gen_st_cells();
gen_br_cells();
return 0;
}
void make_borders() {
int i, j;
for (j = 0; j < MAP_W; j++) {
map[0][j] = ST_CELL;
map[MAP_H - 1][j] = ST_CELL;
}
for (i = 0; i ... | Flattergaster/Bomberman | server/lib/game.c | C | mit | 5,604 |
#include "NBSGL.h"
int initOGL(RECT rec)
{
char tmp[100];
sprintf(tmp, "%s%s", "OpenGL Version: ", glGetString(GL_VERSION));
Log(tmp);
glShadeModel(GL_SMOOTH); // Enable Smooth Shading
glClearColor(0.0f, 0.0f, 0.0f, 0.5f); // Black Background
glMatrixMode(GL_PROJECTION);
glClearDepth(1.0f... | TusharRaturi/NBodySimulator | src/opengl/NBSGL.c | C | mit | 2,570 |
/*
ITS240-01
Lab 01
Ch2p75pe3
01/11/2017
Daniel Kuckuck
*/
#include <stdio.h>
int main()
{
float result;
/* Float is where the
returned calculation is in the format
of resulting integers followed by 6 zeros
after the decimal point.
(Also know as a double variable and )*/
resu... | danblade/C_code_4_class | ch2p75pe3.c | C | mit | 655 |
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#define MAX_COUNT 200
#define BUF_SIZE 100
void main(void)
{
pid_t pid;
int i;
char buf[BUF_SIZE];
fork();
pid = getpid();
for (i = 1; i <= MAX_COUNT; i++) {
sprintf(buf, "This line is from pid %d, value = %d\n", pid, i);
write(... | lunaczp/learning | language/c/testCBasic/fork/a.c | C | mit | 348 |
/**********************************************************************
* $Id$ main.c
*//**
* @file main.c
* @brief Write a program to Display two color blocks at desired position
* @version 1.0
* @date 09. Dec. 2013
* @author Dwijay.Edutech Learning Solutions
************************************************... | Edutech-ARM/LPC1768_HMI | examples/Eg6/Source Files/main.c | C | mit | 3,220 |
//*****************************************************************************
//
// usb_serial_structs.c - Data structures defining this CDC USB device.
//
//*****************************************************************************
//###########################################################################
// $... | AdrianoRuseler/LAUNCHXL-F28377S | C2000Ware/examples/cpu1/usb_dev_serial/cpu01/usb_serial_structs.c | C | mit | 8,954 |
/*
* The MIT License (MIT)
*
* Copyright 2015 Sony 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,... | linear-rpc/libtv | src/ssl.c | C | mit | 23,964 |
/*
* author: xjdrew
* date: 2014-06-03 20:38
*/
// skiplist similar with the version in redis
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "skiplist.h"
skiplistNode *slCreateNode(int level, double score, slobj *obj) {
skiplistNode *n = malloc(sizeof(*n) + level * si... | korialuo/skynet | lualib-src/skiplist/skiplist.c | C | mit | 9,889 |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <limits.h>
#include <assert.h>
#include <math.h>
//#include <blake2.h>
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define NODES 20
#define KEYS 16777216
#define CSKIP 1048576
__uint128_t hashes[NODES] = {0};
int count[NODES] = {0};
static inline ... | haneefmubarak/experiments | rendezvous/sbins.c | C | mit | 1,408 |
#include <reg52.h>
sbit clk = P1^0;
int main() {
for (; ; ) {
clk = !clk;
}
} | amtlib-dot-dll/EELC3034 | Lab1_6/main.c | C | cc0-1.0 | 92 |
/*
// @(#) hwaddr.c - rewrite the hardware address
//
// If the ioctl is SIOCGIFHWADDR (get interface hardware address)
// and specifies the interface we are interested in edit the returned
// address with our desired hardware address
*/
# include <sys/ioctl.h>
# include <net/if.h>
# include <netinet/ether.h>
# includ... | pellucida/libioctl | src/hwaddr.c | C | cc0-1.0 | 1,561 |
/*++
Copyright (c) 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the Eclipse Public License
which accompanies this distribution. The full text of the license may be found at
http://www.opensource.org/lic... | AuberLin/PiSmmSCRT | SmmScrtPkg/SCRT/SmmSCRT/RtSmmTestLib/ia32/AddressConvert.c | C | epl-1.0 | 2,191 |
/*
* $Id: args.c,v 1.13 2007/10/31 15:09:45 sschuetz Exp $
*
* © Copyright IBM Corp. 2005, 2007
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
*
* You can obtain a... | buccella/SFCB | args.c | C | epl-1.0 | 8,228 |
/************************************************************
* <bsn.cl fy=2015 v=onl>
*
* Copyright 2015 Big Switch Networks, Inc.
*
* Licensed under the Eclipse Public License, Version 1.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of t... | jnealtowns/bigcode | modules/snmp_subagent/module/src/snmp_subagent_main.c | C | epl-1.0 | 4,380 |
/*
Copyright (C) 1996-1997 Id Software, 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 2
of the License, or (at your option) any later version.
This program is distributed in th... | deurk/mvdsv | src/net_chan.c | C | gpl-2.0 | 11,582 |
/* drivers/video/msm/msm_fb.c
*
* Core MSM framebuffer driver.
*
* Copyright (C) 2007 Google Incorporated
*
* 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.
... | Troj80/T.J.T-Kernel-vivo | drivers/video/msm_7x30/msm_fb.c | C | gpl-2.0 | 39,219 |
/* agilent_save_setup.c
* Copyright (C) 2006 Steve D. Sharples
*
* Command line utility to save the setup of an Agilent Infiniium (and possibly
* other model) oscilloscope, and save it in an Agilent Scope Setup (.ass)
* file for future use. As well as performing a useful function, it also
* illustrates the very s... | applied-optics/agilent_vxi11 | utils/agilent_load_save_setup/agilent_save_setup.c | C | gpl-2.0 | 2,328 |
#include <stdio.h>
#include <stdlib.h>
/********************************
*
* Problem 2 from Project Euler
*
* Each new term in the Fibonacci sequence is generated by adding the previous two terms.
* By starting with 1 and 2, the first 10 terms will be:
*
* 1,2,3,5,8,21,34,55,89 ...
*
* By considering the te... | ludo237/euler-problems | Problems/Problem 2/C/problem_2.c | C | gpl-2.0 | 1,963 |
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
MPI_Init(&argc, &argv);
int size, rank, i, dest, source, sum, temp_val;
MPI_Status* status;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
dest = (rank + 1) %... | pheenyx/HPC | ring.c | C | gpl-2.0 | 657 |
/*
belle-sip - SIP (RFC3261) library.
Copyright (C) 2010-2018 Belledonne Communications SARL
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... | raj-bhatia/grooveip-ios-public | submodules/belle-sip/src/nist.c | C | gpl-2.0 | 4,475 |
/* Copyright (c) 2009-2011, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | totlth/android_kernel_zte_elden | arch/arm/mach-msm/socinfo.c | C | gpl-2.0 | 19,397 |
/*
* viking -- GPS Data and Topo Analyzer, Explorer, and Manager
*
* Copyright (C) 2003-2005, Evan Battaglia <gtoevan@gmx.net>
* Copyright (C) 2007, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... | farbeiza/viking | src/osm.c | C | gpl-2.0 | 7,361 |
/*
EspressoGuide
Copyright (C) 2015 Leonid Lezner
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.
This program i... | bitmarker/EspressoGuide | utils.c | C | gpl-2.0 | 3,926 |
/* /kernel/arch/arm/mach-msm/touch-smultron.c
*
* Copyright (C) [2010-2011] Sony Ericsson Mobile Communications AB.
*
* 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; either vers... | nobodyAtall/msm7x30-3.4.x-nAa | arch/arm/mach-msm/touch-smultron.c | C | gpl-2.0 | 1,678 |
/* kworld-pc150u.c - Keytable for kworld_pc150u Remote Controller
*
* keymap imported from ir-keymaps.c
*
* Copyright (c) 2010 by Kyle Strickland
* (based on kworld-plus-tv-analog.c by
* Mauro Carvalho Chehab <mchehab@redhat.com>)
*
* This program is free software; you can redistribute it and/or mo... | Jackeagle/android_kernel_sony_c2305 | drivers/media/rc/keymaps/rc-kworld-pc150u.c | C | gpl-2.0 | 2,468 |
/*
* Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | MeFisto94/openjdk | jdk/src/windows/native/java/lang/java_props_md.c | C | gpl-2.0 | 23,675 |
/***********************************************************************
Freeciv - Copyright (C) 2002 - The Freeciv Project
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, ... | freeciv/freeciv | ai/default/aidata.c | C | gpl-2.0 | 20,308 |
/* Emacs style mode select -*- C++ -*-
*-----------------------------------------------------------------------------
*
*
* PrBoom a Doom port merged with LxDoom and LSDLDoom
* based on BOOM, a modified and improved DOOM engine
* Copyright (C) 1999 by
* id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand... | Doom-Utils/dsdoom | arm9/source/s_sound.c | C | gpl-2.0 | 17,600 |
/* Copyright (c) 2002,2007-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 i... | bauner/android_kernel_oneplus_msm8974 | drivers/gpu/msm/kgsl_sharedmem.c | C | gpl-2.0 | 22,142 |
/*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/
#include <locale.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/time.h>
#define LKC_DIRECT_LINK... | Splitter/android_kernel_htc_msm7x30 | scripts/kconfig/conf.c | C | gpl-2.0 | 12,201 |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
*/
#include <stdio.h>
#include <sys/queue.h>
#include <string.h>
#include <rte_mbuf.h>
#include <rte_memory.h>
#include <rte_memzone.h>
#include <rte_errno.h>
#include <rte_compat.h>
#include <rte_string_fns.h>
#include <rte_eal_memc... | emmericp/dpdk | lib/librte_distributor/rte_distributor_v20.c | C | gpl-2.0 | 11,263 |
/* packet-h263.c
*
* Routines for ITU-T Recommendation H.263 dissection
*
* Copyright 2003 Niklas Ogren <niklas.ogren@7l.se>
* Seven Levels Consultants AB
*
* Copyright 2008 Richard van der Hoff, MX Telecom
* <richardv@mxtelecom.com>
*
* $Id: packet-h263.c 41876 2012-04-01 09:20:35Z etxrab $
*
* Wireshark -... | Abhi9k/wireshark-dissector | epan/dissectors/packet-h263.c | C | gpl-2.0 | 33,740 |
/* Integrated Register Allocator (IRA) entry point.
Copyright (C) 2006-2014 Free Software Foundation, Inc.
Contributed by Vladimir Makarov <vmakarov@redhat.com>.
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 publishe... | Alexpux/GCC | gcc/ira.c | C | gpl-2.0 | 174,124 |
/* Copyright (C) 2004-2005 Petta Technology, Inc.
*
* See the file "COPYING" for further information about
* the copyright and warranty status of this work.
*/
#include "probe.h"
#include "url-extract.h"
#include "p_regex.h"
#include "util.h"
#include "io.h"
#include <string.h>
#include <unistd.h>
#include <stdio... | pete/freenote-probe | src/url-extract.c | C | gpl-2.0 | 6,641 |
/*
* Copyright (c) 2013, 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 h... | martynbm/kernel-millet3g-sm-t331_kk | arch/arm/mach-msm/clock-a7.c | C | gpl-2.0 | 10,096 |
/* fft/real_pass_3.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough
*
* 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) ... | nettings/drc-fir | source/gsl/real_pass_3.c | C | gpl-2.0 | 5,845 |
/*
* History:
* Started: Aug 9 by Lawrence Foard (entropy@world.std.com),
* to allow user process control of SCSI devices.
* Development Sponsored by Killy Corp. NY NY
*
* Original driver (sg.c):
* Copyright (C) 1992 Lawrence Foard
* Version 2 and 3 extensions to driver:
* Copyright ... | hugh712/my_driver_study | Jollen/jk2410/kernel-jk2410/drivers/scsi/sg.c | C | gpl-2.0 | 98,380 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include <matecomponent/matecomponent-foreign-object.h>
#include <matecomponent/matecomponent-exception.h>
#include <matecomponent/matecomponent-running-context.h>
static void
matecomponent_foreign_object_class_init (MateComponentForeignObject... | mate-desktop/libmatecomponent | matecomponent/matecomponent-foreign-object.c | C | gpl-2.0 | 1,965 |
/* simple prototype of MLDv1 router state implementation as defined in RFC 2710
*/
#include <zebra.h>
#include "prefix.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "mld.h"
#include "mld_sock.h"
#include <sys/types.h>
#include <sys/socket.h>
struct ... | wcang/quagga-mld | mld/mld.c | C | gpl-2.0 | 6,298 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <signal.h>
// for select
#include <sys/select.h>
#define TCP_SERVER_PORT... | gatieme/AderSocket | study/select/NBAForkServer.c | C | gpl-2.0 | 15,721 |
/*
Copyright (C) 2014 Stephen M. Cameron
Author: Stephen M. Cameron
This file is part of Spacenerds In Space.
Spacenerds in Space 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 Lic... | ioangogo/space-nerds-in-space | c-is-the-locale.c | C | gpl-2.0 | 1,739 |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* 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 cod... | netgroup-polito/dpdk | lib/librte_mempool/rte_mempool.c | C | gpl-2.0 | 25,751 |
/*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* The IP forwarding functionality.
*
* Authors: see ip.c
*
* Fixes:
* Many : Split from ip.c , see ip_inp... | piasek1906/Piasek-KK-G2 | net/ipv4/ip_forward.c | C | gpl-2.0 | 4,569 |
/*
* chattr.c - Change file attributes on an ext2 file system
*
* Copyright (C) 1993, 1994 Remy Card <card@masi.ibp.fr>
* Laboratoire MASI, Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* This file can be redistributed under the terms... | alhazred/busybox-solaris | e2fsprogs/chattr.c | C | gpl-2.0 | 5,096 |
/*
Copyright (C) 2010 skuller.net
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that... | Bad-ptr/q2pro | src/snd_al.c | C | gpl-2.0 | 9,157 |
/*
* NTP state machine interfaces and logic.
*
* This code was mainly moved from kernel/timer.c and kernel/time.c
* Please see those files for relevant copyright info and historical
* changelogs.
*/
#include <linux/capability.h>
#include <linux/clocksource.h>
#include <linux/workqueue.h>
#include <linux/hrtimer.h... | iamroot12a/kernel | kernel/time/ntp.c | C | gpl-2.0 | 24,185 |
/* gEDA - GPL Electronic Design Automation
* libgeda - gEDA's library
* Copyright (C) 1998-2010 Ales Hvezda
* Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pub... | gareth8118/lepton-eda | liblepton/src/geda_path_object.c | C | gpl-2.0 | 20,892 |
#include <pthread.h>
#include <assert.h>
#define N (1000000000)
#define FENCE asm volatile ("mfence" ::: "memory") // x86 fence (TSO fence)
volatile int ccf = 0, buf = 0;
void* writer(void * arg) {
int ccf_writer;
for(int i = 0; i < N; ++i){
ccf_writer = ccf;
ccf = ccf_writer + 1;
buf = 1;
ccf =... | PhongNgo/persistence | examples/fence-performance/tests/nbw_w_wr_trencher.c | C | gpl-2.0 | 860 |
/* Copyright (c) 2013, 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... | fhasovic/LG-G2-D802-Kernel | arch/arm/mach-msm/early_random.c | C | gpl-2.0 | 2,054 |
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster@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;
* the... | xhook/asterisk-v11 | main/frame.c | C | gpl-2.0 | 32,056 |
#ifdef CONFIG_MTK_IN_HOUSE_TEE_SUPPORT
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/irq.h>
#include <linux/miscdevice.h>
#include <asm/uaccess.h>
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/workqueue.h>
#include <linux/kobject.h>
#include <linux/early... | jmztaylor/android_kernel_amazon_ariel | drivers/misc/mediatek/hdmi/mhltx/mt8135/hdmi_ca.c | C | gpl-2.0 | 7,438 |
/*
* Common code for mac80211 Prism54 drivers
*
* Copyright (c) 2006, Michael Wu <flamingice@sourmilk.net>
* Copyright (c) 2007-2009, Christian Lamparter <chunkeey@web.de>
* Copyright 2008, Johannes Berg <johannes@sipsolutions.net>
*
* Based on:
* - the islsm (softmac prism54) driver, which is:
* Copyright 2... | Core2idiot/Kernel-Samsung-3.0...- | drivers/net/wireless/p54/led.c | C | gpl-2.0 | 4,391 |
/*
* PROJECT: Services
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/mscutils/servman/mainwnd.c
* PURPOSE: Main window message handler
* COPYRIGHT: Copyright 2006-20015 Ged Murphy <gedmurphy@reactos.org>
*
*/
#include "precomp.h"
#include <windowsx.h>
s... | GreenteaOS/Kernel | third-party/reactos/base/applications/mscutils/servman/mainwnd.c | C | gpl-2.0 | 30,648 |
/*
* Create a clone process which behaves same as process created by vfork()
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sched.h>
#include <malloc.h>
#define STACK_SIZE 12000
#define CHANGE_VAL 123
#define DEFAULT_VAL 0
int glob = DEFAULT_VAL;
void check(void)
{
switch (glob) {
cas... | techvedaLPE/Linuxpro | clone/cl_asvfork.c | C | gpl-2.0 | 992 |
/*
* This file includes code from libmspack adapted for libclamav by
* tkojm@clamav.net
*
* Copyright (C) 2003-2004 Stuart Caie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software F... | ZHAW-INES/rioxo-uClinux-dist | user/clamav/libclamav/mspack.c | C | gpl-2.0 | 69,178 |
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/uuid.h>
#include <linux/random.h>
static void __uuid_gen_common(__u8 b[16])
{
int i;
u32 r;
for (i = 0; i < 4; i++) {
r = random32();
memcpy(b + i * 4, &r, 4);
}
/* reversion 0b10 */
b[8] = (b[8] & 0x3F) | 0x80;
}
void uuid_le_gen(uuid_l... | luckasfb/OT_903D-kernel-2.6.35.7 | kernel/lib/uuid.c | C | gpl-2.0 | 634 |
/*--------------------------------------------------------------------*/
/*--- pthread intercepts for thread checking. ---*/
/*--- tc_intercepts.c ---*/
/*--------------------------------------------------------------------*/
/*
This file is part of... | eeight/tdheap | helgrind/hg_intercepts.c | C | gpl-2.0 | 39,117 |
/*****************************************************************************
* Linux PPP over L2TP (PPPoX/PPPoL2TP) Sockets
*
* PPPoX --- Generic PPP encapsulation socket family
* PPPoL2TP --- PPP over L2TP (RFC 2661)
*
* Version: 1.0.0
*
* Authors: Martijn van Oosterhout <kleptog@svana.org>
* James Chap... | seyko2/openvz_rhel6_kernel_mirror | drivers/net/pppol2tp.c | C | gpl-2.0 | 71,552 |
/******************************************************
The transaction lock system
(c) 1996 Innobase Oy
Created 5/7/1996 Heikki Tuuri
*******************************************************/
#include "lock0lock.h"
#ifdef UNIV_NONINL
#include "lock0lock.ic"
#endif
#include "usr0sess.h"
#include "trx0purge.h"
#incl... | pieter/mysql-server | innobase/lock/lock0lock.c | C | gpl-2.0 | 141,458 |
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/cryptohash.h>
#include <linux/module.h>
#include <linux/cache.h>
#include <linux/random.h>
#include <linux/hrtimer.h>
#include <linux/ktime.h>
#include <linux/string.h>
#include <net/secure_seq.h>
static u32 net_secret[MD5_MESSAGE_BYTES / 4] ____cachel... | decly/kernel-2.6.32 | net/core/secure_seq.c | C | gpl-2.0 | 4,529 |
/*
* File: save.c
* Purpose: Savefile block saving functions
*
* Copyright (c) 1997 Ben Harrison and others
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software
* Foundation, version 2, ... | angband/v4 | src/save.c | C | gpl-2.0 | 16,165 |
/*
* Per core/cpu state
*
* Used to coordinate shared registers between HT threads or
* among events on a single PMU.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/stddef.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <asm/cpufeatu... | AmauryEsparza/linux | arch/x86/kernel/cpu/perf_event_intel.c | C | gpl-2.0 | 71,003 |
/*
* vgaarb.c: Implements the VGA arbitration. For details refer to
* Documentation/vgaarbiter.txt
*
*
* (C) Copyright 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org>
* (C) Copyright 2007 Paulo R. Zanoni <przanoni@gmail.com>
* (C) Copyright 2007, 2009 Tiago Vignatti <vignatti@freedesktop.org>
*
... | Jackeagle/android_kernel_sony_c2305 | drivers/gpu/vga/vgaarb.c | C | gpl-2.0 | 36,888 |
/**************************************************************************
*
* 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... | Core2idiot/Kernel-Samsung-3.0...- | drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | C | gpl-2.0 | 31,315 |
/*
* Copyright 2001 Red Hat Inc., Durham, North Carolina.
*
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitatio... | atmark-techno/atmark-dist | user/xorg-xserver/xorg-server-1.12.4/hw/dmx/dmxshadow.c | C | gpl-2.0 | 2,205 |
/*
* linux/fs/proc/base.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* proc base directory handling functions
*
* 1999, Al Viro. Rewritten. Now it covers the whole per-process part.
* Instead of using magical inumbers to determine the kind of object
* we allocate and fill in-core inodes upon lookup. T... | Hax-on/android_kernel_zte_msm8996 | fs/proc/base.c | C | gpl-2.0 | 82,100 |
/*
* TVAFE cvd2 device driver.
*
* Copyright (c) 2010 Frank zhao <frank.zhao@amlogic.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the smems of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*/
/***************... | vitmod/linux | drivers/amlogic/tvin/tvafe/tvafe_cvd.c | C | gpl-2.0 | 72,160 |
/******************************************************************************
* @section DESCRIPTION
*
* Save model state.
*
* @section LICENSE
*
* The Variable Infiltration Capacity (VIC) macroscale hydrological model
* Copyright (C) 2016 The Computational Hydrology Group, Department of Civil
* and Environm... | BramDr/VIC | vic/drivers/shared_image/src/vic_store.c | C | gpl-2.0 | 93,583 |
#include <stdlib.h>
#include "arraylist.h"
#include "arraystack.h"
#define INITIAL_STACK_CAP 10
/*
* Declaratii de structuri
*/
struct arraystack_adt {
ArrayList list;
int count;
};
/*
* Functii publice
*/
ArrayStack AS_New() {
ArrayStack result;
result = (ArrayStack) malloc(sizeof(struct arraystac... | tectronics/cobble | src/arraystack.c | C | gpl-2.0 | 1,358 |
/*
* linux/arch/arm/mach-if30x/dma.c
*
* IFive UMA registration and IRQ dispatching
*
* Author: jimmy.li
* Created: Oct 10, 2008
* Copyright: Innofidei 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
* ... | lizhm82/if30x-kernel | arch/arm/mach-if30x/dma.c | C | gpl-2.0 | 2,801 |
/*
** vmndh - Release v0.1
** Jonathan Salwan - http://twitter.com/JonathanSalwan
**
** 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) an... | JonathanSalwan/VMNDH-2k12 | src_vm/op_call.c | C | gpl-2.0 | 1,896 |
/*
* drivers/leds/leds-mt65xx.c
*
* 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/dela... | CryToCry96/android_kernel_mt6572 | mediatek/kernel/drivers/leds/leds.c | C | gpl-2.0 | 93,576 |
//
// shuffle.c
// ex09_randomSort
//
// Created by Cirno MainasuK on 2015-2-3.
// Copyright (c) 2015年 Cirno MainasuK. All rights reserved.
//
#include "shuffle.h"
static void swapIntegerElements(int *array, int p1, int p2);
int shuffleSort(int *array, int n) {
int lh, rh;
randomize();
for (lh =... | MainasuK/TASC | ch12/ex09_randomSort/ex09_randomSort/shuffle.c | C | gpl-2.0 | 600 |
/*
* (C) Copyright 2009
* jung hyun kim, Nexell Co, <jhkim@nexell.co.kr>
*
* 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) an... | mirsys/linux-3.4.y | arch/arm/mach-s5p4418/soc/display_resc.c | C | gpl-2.0 | 4,939 |
/*
Copyright(C) 1997-2001 Id Software, 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 2
of the License, or(at your option) any later version.
This program is distributed in the ... | luaman/qforge-2 | src/baseq2/m_medic.c | C | gpl-2.0 | 18,600 |
#define BUF_SIZE 4096
#include <stdio.h>
int main(int argc, char *argv[]) {
if(argc>1) {
fprintf(stderr,"< entrada > salida\n");
return 1;
}
fprintf(stderr,"%s: running\n",argv[0]);
for(;;) {
int x[BUF_SIZE];
int r = fread(&x,sizeof(int),BUF_SIZE,stdin);
{
int i;
for(i=0; i<r;... | vicente-gonzalez-ruiz/type-tools | int2ascii.c | C | gpl-2.0 | 425 |
/* Copyright (c) 2008-2010, 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 ... | attn1/android_kernel_pantech_p8010 | drivers/video/msm/mipi_rohm.c | C | gpl-2.0 | 29,130 |
//#define DEBUG_AMD
#include "sensors.h"
#ifdef HAVE_PCI
#ifdef DEBUG_AMD
#define DPRINTF(fmt, ...) \
do { fprintf(stderr, "sensors [AMD]: " fmt , ## __VA_ARGS__); } while (0)
#else
#define DPRINTF(fmt, ...) \
do {} while(0)
#endif
int iPCINumHBDevs;
struct pci_dev **sPCIDevs;
int iGetAMDTempK10(struct pci_dev **de... | MigNov/temperature | src/sensors-amd.c | C | gpl-2.0 | 1,334 |
/*
* max17047_fuelgauge.c
*
* Copyright (C) 2011 Samsung Electronics
* SangYoung Son <hello.son@samsung.com>
*
* based on max17040_battery.c
*
* 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 publish... | civato/Note8.0-StormBorn | drivers/battery/max17047_fuelgauge_c.c | C | gpl-2.0 | 56,770 |
/*
* Gadget Driver for Android
*
* Copyright (C) 2008 Google, Inc.
* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
* Author: Mike Lockwood <lockwood@android.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foun... | bigbiff/kernel_samsung_quincyatt_jb_oc | drivers/usb/gadget/android.c | C | gpl-2.0 | 52,898 |
/*
CRYSTAL SYSTEM by Brezzasoft (2001)
using VRender0 System on a Chip
The VRender0 (http://www.mesdigital.com/english/Products/product_vrender0.asp) chip contains:
- CPU Core SE3208 (info at www.adc.co.kr) @ 43Mhz
- 2 DMA chans
- 4 Timers
- 32 PIO pins
- PWM output
... | amadvance/advancemame | src/drivers/crystal.c | C | gpl-2.0 | 25,459 |
/*
* HID support for Linux
*
* Copyright (c) 1999 Andreas Gal
* Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
* Copyright (c) 2006-2007 Jiri Kosina
*/
/*
* This program is free software; you can redistribute it and/or... | pershoot/vision-2632 | drivers/hid/hid-core.c | C | gpl-2.0 | 60,998 |
/*
Copyright (C) 2002 Richard Henderson
Copyright (C) 2001 Rusty Russell, 2002, 2010 Rusty Russell IBM.
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 Licen... | alexax66/android_kernel_samsung_exynos7870 | kernel/module.c | C | gpl-2.0 | 123,785 |
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <device/pnp_def.h>
#include <arch/romcc_io.h>
#include <cpu/x86/lapic.h>
#include <stdlib.h>
#include <pc80/mc146818rtc.h>
#include <console/console.h>
#include <lib.h>
#include <cpu/amd/model_fxx_rev.h>
#include "northb... | wt/coreboot | src/mainboard/tyan/s2875/romstage.c | C | gpl-2.0 | 3,890 |
/**
********************************************************************************
\file arp.c
\brief ARP demo implementation
This file implements an ARP demo for demo targets that have no IP stack.
\ingroup module_app_common
*******************************************************************************/
/*--... | SylvainLesne/openPOWERLINK_V2 | apps/common/src/arp/arp.c | C | gpl-2.0 | 16,184 |
#include "common/global.h"
#pragma hdrstop
#define ERR_MODULE
#include "err.h"
#include "common/misc.h"
int NumErrors;
int NumWarnings;
BOOL fAnyErrors;
int MaxErrors;
int MaxWarnings;
static char * szErrTitle[] =
{
"Fatal ",
"Error ",
"Info ",
"Warning"
};
static void VPrintError ( int severity, const... | tmikov/a51 | link51/err.c | C | gpl-2.0 | 1,517 |
/* cg3.c: CGTHREE frame buffer driver
*
* Copyright (C) 2003, 2006 David S. Miller (davem@davemloft.net)
* Copyright (C) 1996,1998 Jakub Jelinek (jj@ultra.linux.cz)
* Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
* Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
*
* Driver layout based loosely on ... | xiandaicxsj/copyKvm | drivers/video/cg3.c | C | gpl-2.0 | 11,874 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.