text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <libgen.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include "mmio.h"
#include "graphio.h"
//#define DEBUG
typedef struct {
vtype i;
vtype j;
ewtype w;
} Triple;
int cmp(const void *a, const void *b){
const vtype *ia = (const vtype *)a;
const v... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include "samtools.pysam.h"
/* bam_mate.c -- fix mate pairing information and clean up flags.
Copyright (C) 2009, 2011-2017 Genome Research Ltd.
Portions copyright (C) 2011 Broad Institute.
Portions copyright (C) 2012 <NAME>, The James Hutton Institute.
Author: <NAME> <<EMAIL>>
Permission is hereby... |
/*
* Copyright (c) 2015 Mellanox Technologies, Inc. All rights reserved.
* Copyright (c) 2016 Intel, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <getopt.h>
#incl... |
/**
MultiMarkdown 6 -- Lightweight markup processor to produce HTML, LaTeX, and more.
@file main.c
@brief Create command-line frontend for libMultiMarkdown.
@author <NAME>
@bug
**/
/*
Copyright © 2016 - 2017 <NAME>.
The `MultiMarkdown 6` project is released under the MIT License..
GLibFacade.c and G... |
/*
* ISC License
*
* Copyright (C) 1986-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appea... |
/*******************************************************************************
Play sounds via keyboard
Yes, its the standard annoying utility to turn your keyoard into an organ.
*******************************************************************************/
#include <stdio.h>
#include <limits.h>
#incl... |
/*
* diff3.c : routines for doing diffs
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regar... |
/***************************************************************************//**
* @file app.c
* @brief Callbacks implementation and application specific code.
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b... |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <aos/ble.h>
#include <aos/errno.h>
#include <aos/gatt.h>
#include <aos/kernel.h>
#include <atomic.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
#include <bluetooth/gatt.h>
#include <bluetooth/uuid.h>
#include <k_api.h>
#include ... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
*
* RetroArch 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-
* ation, either version 3 of th... |
/* $Id$
* perfex.c
*
* NAME
* perfex - a command-line interface to x86 performance counters
*
* SYNOPSIS
* perfex [-e event] .. [--p4pe=value] [--p4pmv=value] [-o file] command
* perfex { -i | -l | -L }
*
* DESCRIPTION
* The given command is executed; after it is complete, perfex
* prints the values of the ... |
/****************************************************************************
**
** Copyright (C) 2019 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 restrict... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/r128_dga.c,v 1.9 2002/10/30 12:52:12 alanh Exp $ */
/*
* Authors:
* <NAME> <<EMAIL>>,
* borrowing some code from the Chips and MGA drivers.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* Driver data structures */
#include "r128.h"
#include "r... |
// SPDX-License-Identifier: GPL-2.0
#include "ctree.h"
#include "delalloc-space.h"
#include "block-rsv.h"
#include "btrfs_inode.h"
#include "space-info.h"
#include "transaction.h"
#include "qgroup.h"
#include "block-group.h"
/*
* HOW DOES THIS WORK
*
* There are two stages to data reservations, one for data and on... |
/*
* 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.
*
* A small micro-assembler. It is intentionally kept simple, does only
* support a subset of instructions, and does not try to hide pipeline... |
/*
* Copyright (c) 2015 The <NAME>
* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <signal.h>
#include ... |
/*
MIT License
Copyright (c) 2017 DeeplyEmbedded
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, publish, d... |
#include <ctype.h>
#include "asf.h"
#include "lzFetch.h"
#include "decoder.h"
#include "dateUtil.h"
#include "get_stf_names.h"
#include "spheroids.h"
#include "asf_nan.h"
/* allocation routine for meta_state_vectors */
meta_state_vectors *meta_state_vectors_init(int num_of_vectors);
/* Initializes base meta structure ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <uv.h>
#include "constants.h"
#include "sqlrp.h"
#include "tds_buf.h"
#include "tds_log.h"
#include "tds_prelogin.h"
#include "tds_tokens.h"
#include "tds_uv.h"
#include "utils.h"
enum tds_login7_optionflag1_values {
TDS_DUMPLOAD_OFF = 0x10,
TDS_US... |
/* error.c - MemTest-86 Version 4.1
*
* Released under version 2 of the Gnu Public License.
* By <NAME>
*/
#include "stddef.h"
#include "stdint.h"
#include "test.h"
#include "config.h"
#include "cpuid.h"
#include "smp.h"
#include "dmi.h"
#include "controller.h"
extern int dmi_err_cnts[MAX_DMI_MEMDEVS];
extern int... |
/*
* NVIDIA Tegra SPI-SLINK controller
*
* Copyright (c) 2010-2013 NVIDIA Corporation
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may ... |
/*
summle.net
Spotted via https://news.ycombinator.com/item?id=30554994
Take input from https://summle.net/
Run like this:
```
../cbmc/src/cbmc/cbmc --property main.assertion.1 --trace --trace-hex --object-bits 16 --unwind 10 --depth 2000 main.c
|& tee log.log | grep " = "
```
To specify the input during compi... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lex.h"
#include "bool.h"
#include "xalloc.h"
#include "buffer.h"
#include "type.h"
static bool consume(stream *in, char chr) {
char found = stream_shift(in);
if (found == chr) return true;
stream_push(in, found);
return ... |
/** <NAME> s249920
* Algorithms and Programming Exam
* Part II: Program (18 point version)
*/
///<ctype.h>, <string.h> and "#define MXLEN 256" were included
///in the library "treePublic.h". I've pasted all functions from
///external libraries here for ease of reading.
#include <stdio.h>
#include <stdlib.h>
#in... |
/* ********************************************************************************************* */
/* * C Template for Kernel Execution * */
/* * Author: <NAME> * */
/* ********************************... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2014-2018 Broadcom
* All rights reserved.
*/
#include <rte_bitmap.h>
#include <rte_memzone.h>
#include <unistd.h>
#include "bnxt.h"
#include "bnxt_cpr.h"
#include "bnxt_hwrm.h"
#include "bnxt_ring.h"
#include "bnxt_rxq.h"
#include "bnxt_rxr.h"
#include "bnxt_... |
/******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
* File Name : i2c.c
* Author : MCD Application Team
* Date First Issued : 09/05/2003
* Description : This file provides Code sources I2C functions
**********************************************************... |
/*
* Test queue manipulation techniques in EVPath queue stones. In
* particular, this test uses messages with anticipated types, as well as
* testing manipulation of messages whose types were unanticipated (WRT
* the queue stone handler) and which remain anonymous. The idea is that
* we'll dump a bunch... |
/***************************************************************************
Copyright (c) 2006-2011, <NAME>, <NAME>, Austria.
Copyright (c) 2011, <NAME>, Aalto University, Finland.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "So... |
/**
* Copyright (C) 2013 Netronome Systems, Inc. All rights reserved.
*
* Example configuration/setup of the NBI DMA for MEs and MU
*
*/
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 cop... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include "cpu.h"
//#define PROG_ADDR 0x200
//#define BIT_MASK(n, s, b) \
// ((n >> s) & (0x10)
/* Chip 8 basic font set */
uint8_t fontset[80] = {
0xF0, 0x90, 0x90, 0x90, 0xF0, // 0
0x20, 0x60, 0x20, 0x20, 0x70, // 1
0xF0, 0x10, 0xF0, 0x80, 0xF0, // 2
0xF0, 0x10, 0xF0, 0x10, 0xF0, // 3
0x90, 0x90, 0xF0, 0x... |
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <unistd.h>
#include <signal.h>
#include <stdarg.h>
#include <ctype.h>
#include <pthread.h>
#include "urweb.h"
#include "request.h"
#include... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/**
* resolved mass spring model
* using the leap frog integrator.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#include "rebound.h"
#include "tools.h"
#include "output.h"
#include "spring.h"
int NS;
struct spring* spr... |
// SPDX-License-Identifier: GPL-2.0
//
// xfer-options.c - a parser of commandline options for xfer.
//
// Copyright (c) 2018 <NAME> <<EMAIL>>
//
// Licensed under the terms of the GNU General Public License, version 2.
#include "xfer.h"
#include "misc.h"
#include <getopt.h>
#include <math.h>
#include <limits.h>
enu... |
#include <string.h>
#include <ctype.h>
#include <inttypes.h>
#include "jsB_module.h"
#include "tests/t_utils.h"
#if defined(_WIN32) || defined __CYGWIN__
#define PATH_SEPARATOR '\\'
#define IS_ASBOLUTE_PATH(path) \
(path && strlen(path) >= 3 && \
isalpha(path[0]) && path[1] == ':' && path[2] == '\\')
#else
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <pthread.h>
#include <errno.h>
#include <semaphore.h>
#include "util.h"
#include "ringbuffer.h"
#include "packet.h"
#include "alg_sketchlearn.h"
#include "config.h"
#include "cpu.h"
#i... |
/*
* Copyright (C) 2016 Hewlett Packard Enterprise Development LP
*
* 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... |
/*-------------------------------------------------------------------------
*
* dbcommands.c
* Database management commands (create/drop database).
*
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFI... |
/*
* Copyright 2021 <NAME> <<EMAIL>>
* Copyright 2022 <NAME> <<EMAIL>>
*
* 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... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
/***************************************************************************
* slink2orb.c
* A SeedLink to Antelope ORB module
*
* Written by <NAME>, ORFEUS/EC-Project MEREDIAN
***************************************************************************/
#include <signal.h>
#include <tr.h>
#include <orb.h>
#inclu... |
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 and the follo... |
/**
utilities-rand-uint32-main.c
Tests of randomness utility functions.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include "utilities-rand-uint32.h"
#include "utilities-mem.h"
#include "utilities-mod.h"
static const uint32_t BYTE_BIT_COUNT = 8;
static c... |
/**
* @file
* Example for writing multiple records of a 2D array.
* The result is a 3D variable, with an unlimited "timestep"
* dimension in the first dimension.
*
* This example was added to show PIOc_setframe() to set the record,
* i.e. the timestep of the output array.
*
*/
#include <pio.h>
#ifdef TIMING
#i... |
//**
//** entry point for kernel
//**
//****************************************************************************
#include "bootinfo.h"
#include "Hal/Hal.h"
#include "Hal/tss.h"
#include "Keyboard/kybrd.h"
#include "Include/string.h"
#include "Include/stdio.h"
#include "FileSystem/flpydsk.h"
#include "FileSystem/f... |
/**
* @file hmc1033.c
* @brief HMC1033 Controller
* @author matyunin.d
* @date 29.07.2019
* @copyright MIT License
*/
#include "hmc1033.h"
#include "hmc1033_spi.h"
#include "hmc1033_map.h"
#include "xil_io.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
/* Register Address */
#define REG_CR_OFFSET ... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sched.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <pthread.h>
#include <signal.h>
#include "flibs/fread_conf.h"
#include "flibs/flog_inc.h"
#include "http_handlers.h"
// global vars
int max_ope... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "u... |
/* "makeproto" Copyright 1989, 1990, 1991, 1992, 1993 Free Software Foundation */
/* Program to scan old-style source files and make prototypes */
#ifdef __STDC__
#include <stdlib.h> /*(DA) */
#endif
#include <stdio.h>
#include <ctype.h>
#include <time.h>
#ifdef M_XENIX
# define BSD 0
#endif
#ifdef FILE ... |
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <math.h>
#include <time.h>
//compute log2 of an int (truncated)
int log2_int(int n) {
int i;
for (i = 31; i >= 0; i--)
if (n >> i == 1)
return i;
return 0;
}
//compute b^exp for ints (tr... |
// I'm a file yay
#include <stdio.h> // For stdout, stderr
#include <string.h> // For strlen(), strcpy(), bzero()
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <unistd.h>
#include <time.h>
#include <ctype.h>
#include <... |
#include <stdio.h>
#include <stdint.h>
#include <ctype.h>
#include <limits.h>
#include "error_stuff.h"
#include "util.h"
// guessfsb 0.3 - fmod .fsb decryption key guesser
enum {FSB_TYPES = 2};
const int header_sizes[FSB_TYPES] = {0x18, 0x30};
const uint8_t fsb_magics[FSB_TYPES][4] = {"FSB3", "FSB4"};
uint8_t swap_... |
#define GASNET_SEQ
#include <gasnetex.h>
#include <gasnet_coll.h>
gex_Flags_t gex_flag_uses_gasnet1();
gex_Rank_t gex_rank_invalid();
gex_Event_t gex_event_invalid();
gex_Event_t gex_event_no_op();
gex_Event_t *gex_event_now();
gex_Event_t *gex_event_defer();
gex_Event_t *gex_event_group();
gex_Flags_t gex_flag_immedia... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/* Copyright 2010-2011 <NAME>, <NAME> University, Linz, Austria */
/* API extracted from 'plingeling.c' by <NAME>, July 2017 */
#include "lglib.h"
#include <assert.h>
#ifndef CYGWIN
#include <execinfo.h>
#endif
#include <ctype.h>
#include <pthread.h>
#include <stdio.h>
#include <stdl... |
/* named_colors.c - Named color values. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2008 Free Software Foundation, Inc.
*
* GRUB 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... |
#include <unistd.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <pthread.h>
#include <stdint.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "defs.h"
#include "client_ds.h"
FILE file_server;
FILE file_client;
pthread_t tid_t;
long in... |
#include <stdint.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include "sensorNode.h"
#include "gpxlogger.h"
#include "list.h"
#de... |
#pragma ident "$Id: calib.c,v 1.22 2014/08/11 19:20:26 dechavez Exp $"
/*======================================================================
*
* Calibration control
*
*====================================================================*/
#include "q330cc.h"
#include "e300.h"
static struct { UINT16 a; UINT16 b... |
/*
* GFX_BW.h
*
* The MIT License.
* Created on: 25.05.2017
* Author: <NAME>
* www.msalamon.pl
* <EMAIL>
*/
#include "main.h"
#include "stm32l4xx_hal.h"
#include "max7219_matrix.h"
#include "../Inc/GFX_BW.h"
#if USING_LINES == 1
#include <stdlib.h> // for abs() function
#endif
#if USING_IMAG... |
/*
*
* FreeBSD install - a package for the installation and maintenance
* of non-core utilities.
*
* 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 copyri... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/* sch2fid.c - convert sampling schedule into fid format. <NAME>, Jan 2011
... |
/* game.c */
#include <stddef.h>
#include <stdbool.h>
#include <stdlib.h>
#include <math.h>
#include "game.h"
#include "debug.h"
#include "gamepad.h"
#include "camera.h"
#include "matrix.h"
#include "bff.h"
#include "room.h"
#include "asset_loader.h"
#include "model.h"
struct GAME game;
struct GAMEPAD gamepad;
struc... |
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
/***************************************************************************************************
* @file low_pass.c
*
* @brief Low pass filter module (sources)
*
* @licence MIT License
*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this sof... |
// File: mumps/mv1api/mv1api_connect.c
//
// module MUMPS - startup (main) code
/* Copyright (c) 1999 - 2014
* <NAME>. 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. Red... |
/*
* EdenSurfaces.c
*
* Copyright (c) 2001-2013 <NAME> (PRL) <EMAIL>. All rights reserved.
*
* Rev Date Who Changes
* 1.0.0 2001-11-11 PRL Initial version for The SRMS simulator.
* 1.1.0 2008-07-18 PRL Repurposed for OpenGL ES.
* 1.2.0 2010-09-22 PRL Remove redundant static material han... |
/* Make and destroy partial image regions.
*
* J.Cupitt, 8/4/93.
* 1/7/93 JC
* - adapted for partial v2
* - ANSIfied
* 15/8/94 JC
* - start & stop can now be NULL for no-op
* 12/5/94 JC
* - threads v2.0 added
* 22/2/95 JC
* - im_region_region() args changed
* 22/6/95 JC
* - im_region_local() did not ... |
/*
Level.c contains the code for loading levels (which are in an ASCII format
and parsed with a 'reasonable' degree of intelligence) and preprocessing
them for game use.
It can also produce a condensed version of the current level state
(suitable for saving and loading of games, used elsewhere to retain state
w... |
#include "lexer.h"
/* Hashlist for keyword parsing
* Keywords are hashed to an integer for fast comparison
* In debug mode, the hashlist checks for any collisions
*/
#define MAX_HASH_INDICES 16
#define MAX_KEYWORDS_PER_LIST 8
typedef struct
{
size_t len;
u32 hash[MAX_KEYWORDS_PER_LIST];
tokenType_t type[MAX_K... |
/*
* linux/ipc/sem.c
* Copyright (C) 1992 <NAME>
*/
#include <linux/errno.h>
#include <asm/segment.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/sem.h>
#include <linux/ipc.h>
#include <linux/stat.h>
#include <linux/malloc.h>
extern int ipcperms (struct ipc_perm *ipcp, short semflg);
static... |
/*
* This file is part of the 'csv-parser' project
* (see https://github.com/mle86/csv-parser).
*
* SPDX-License-Identifier: MIT
* Copyright © 2017-2020 <NAME>
*/
#define _POSIX_C_SOURCE 200809L
#include "input.h"
#include "const.h"
#include "global.h"
#include "chars.h"
#include <stdio.h>
#include <string.h>
#i... |
/**
* @copyright (c) 2017 King Abdullah University of Science and Technology (KAUST).
* All rights reserved.
**/
/**
* @file time_zgemm_tile.c
*
* This file shows how to generate tile low-rank (TLR) matrices and perform matrix multiplication.
*
* HiCMA is a software package provided by King ... |
/**
* ============================================================================
* (C) Copyright Bridgetek Pte Ltd
* ============================================================================
*
* This source code ("the Software") is provided by Bridgetek Pte Ltd
* ("Bridgetek") subject to the licence terms se... |
/******************************************************
Copyright (c) 2011-2013 Percona LLC and/or its affiliates.
The xbstream utility: serialize/deserialize files in the XBSTREAM format.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
/* -*- buffer-read-only: t -*-
*
* opnames.h
*
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
* 2007 by <NAME> and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*
* !!!!!!! ... |
#include <setjmp.h>
#include <stdlib.h>
#include "plan9.h"
#include "regexp9.h"
#include "regcomp.h"
enum {
FALSE,
TRUE,
};
/*
* Parser Information
*/
typedef struct Node Node;
struct Node
{
Reinst* first;
Reinst* last;
};
#define NSTACK 20
static Node andstack[NSTACK];
static Node *andp;
static int atorstack[... |
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <jansson.h>
#include <curl/curl.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include "lifoq.h"
#include "metrics.h"
#include "sink.h"
#include "strbuf.h"
#include "utils.h"
const int DEFAULT_WORKERS = 2;
const useconds_t FAILURE... |
/*
** 2013-11-12
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
**************************... |
/*
* linux/fs/affs/namei.c
*
* (c) 1996 Hans-<NAME> - Rewritten
*
* (C) 1993 <NAME> - Modified for Amiga FFS filesystem.
*
* (C) 1991 <NAME> - minix filesystem
*/
#include "affs.h"
typedef int (*toupper_t)(int);
static int affs_toupper(int ch);
static int affs_hash_dentry(struct dentry *, struct qst... |
/* CRT SwitchRes Core
* Copyright (C) 2018 Alphanu / <NAME>.
*
* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as publishe... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
#ifdef __unix__
#define _POSIX_C_SOURCE 200809L
#define timespec_diff(a, b) (struct timespec) { a.tv_sec - b.tv_sec, \
a.tv_nsec - b.tv_nsec }
#define NANOSECS_IN_SEC 1000000000L
#define __INCLUDE_BENCHMARK__
#else
#undef __INCLUDE_BENCHMARK__
#endif
#include <st... |
/**
* @file
* @brief A simple C example for the ParallelIO Library.
*
* This example creates a netCDF output file with one dimension and
* one variable. It first writes, then reads the sample file using the
* ParallelIO library.
*
* This example can be run in parallel for 1, 2, 4, 8, or 16
* processors.
*/
... |
/*
This file is part of ethash.
ethash 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.
ethash is distributed in the hope that i... |
/* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
* 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
* l... |
#include "phylip.h"
#include "seq.h"
/* version 3.6. (c) Copyright 1994-2004 by the University of Washington.
Written by <NAME>, <NAME>, <NAME>, and <NAME>.
Permission is granted to copy and use this program provided no fee is
charged for it and provided that this copyright notice is not removed. */
#define... |
/* code to handle switching between telescope coordinates and HA/Dec,
* including transformation calibration.
*
* this derivation assumes the telescope's latitude axis (Dec or
* Alt, ATCMB) values increase in the positive direction towards the N pole,
* and the longitude axis (HA or Az) increased ccw as seen from ... |
/*
MIT License
Copyright (c) 2022 <NAME>
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, publish, d... |
// SPDX-License-Identifier: GPL-2.0
/*
* 8250_mid.c - Driver for UART on Intel Penwell and various other Intel SOCs
*
* Copyright (C) 2015 Intel Corporation
* Author: <NAME> <<EMAIL>>
*/
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/rational.h>
#include <linux/dma/hsu... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
typedef enum {AND, OR, NAND, NOR, XOR, NOT, PASS, DECODER, MULTIPLEXER} type;
typedef struct {
type gateName;
int* inputVariables;
int* outputVariables;
int* selectorVariables;
int inputNumber;
int outputNumber;
... |
#include "scene.h"
static scene to_scene(json_object* head, object_array* garbage);
static size_t get_integer(json_object* current);
static double get_double(json_object* current);
static double get_limit_double(json_object* current);
static double get_random_double(json_object* current);
static vector get_vector(json... |
/*
* SPL specific code for Compulab CM-FX6 board
*
* Copyright (C) 2014, Compulab Ltd - http://compulab.co.il/
*
* Author: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm/arch/mx6-ddr.h>
#include <asm/arch/cl... |
//------------------------------------------------------------------------------
// restart-sapp.c
//
// Test whether 'restarting' works for various sokol headers (calling the
// shutdown functions, followed by initialization and continuing). There
// should be no crashes or memory leaks.
//
// This sample links a... |
#include <stdio.h>
#include <stdlib.h>
#include <../include/string.h>
#include "../include/Filial.h"
#include "../include/listaVendas.h"
#include "../include/view.h"
#include "../include/vendaInfo.h"
/**É aqui que construímos o "esqueleto" da estrutura responsável pela gestão de vendas de uma filial.*/
/**Construção... |
//
// main.c
// NTM
//
// Created by <NAME> on 24/07/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
//此project重点 1.用什么样的数据结构去储存TR
// 2.怎样管理ND
//修改方案。1.将tr存入table hash 用state 和read做映射 对nd部分用链表存(即用chaining解决冲突)
// 2.run时对nd按顺序走,走之前存position state 和 run。用一个链表储存走过的路(只存nd)
// 3.如果再... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.