text stringlengths 3.12k 18.7k |
|---|
//#include <omp.h>
/* #define ceild(n,d) ceil(((double)(n))/((double)(d))) */
/* #define floord(n,d) floor(((double)(n))/((double)(d))) */
/* #define max(x,y) ((x) > (y)? (x) : (y)) */
/* #define min(x,y) ((x) < (y)? (x) : (y)) */
/*
* Discretized 1D heat equation stencil
* Adapted from Pochoir test bench exa... |
#include <assert.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <unistd.h>
#include <xkbcommon/xkbcommon.h>
#include "log.h"
#include "swaylock.h"
#include "seat.h"
static void keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard,
uint32_t format, int32_t fd, uint32_t size) {
struct swaylock_state *st... |
/*
* Copyright (c) 1993, 1994, 1997
* 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: (1) source code distributions
* retain the above copyright notice and this paragraph in... |
/* inflate_p.h -- Private inline functions and macros shared with more than one deflate method
*
*/
#ifndef INFLATE_P_H
#define INFLATE_P_H
#include <stdlib.h>
/* Architecture-specific hooks. */
#ifdef S390_DFLTCC_INFLATE
# include "arch/s390/dfltcc_inflate.h"
#else
/* Memory management for the inflate state. Use... |
// LZ4frame API example : compress a file
// Based on sample code from <NAME>-Szmek
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <lz4frame.h>
#define BUF_SIZE 16*1024
#define LZ4_HEADER_SIZE 19
#define LZ4_FOOTER_SIZE 4
static const LZ4F_preferences_t lz4_preferences = {
... |
/*!
* \file hermite_lll.c
* \author <NAME>
* \copyright (c) <NAME> 2019
* The project is released under BSD3 License.
* \detail
* Compute the Hermite normal forms in the LLL-based method.
* The original "pseudo-code" is found in the paper
* <NAME>, <NAME> & <NAME> (1998) Extended GCD an... |
#include "game.h"
#include "data.h"
#include "bullet.h"
#include "expl.h"
#include "star.h"
#include "aster.h"
#include "dirty.h"
#include "display.h"
#define BULLET_DELAY 20
/* the current score */
int score;
static char score_buf[80];
int player_x_pos;
int player_hit;
int ship_state;
int skip_count;
/* info abou... |
/* include/ap_config_auto.h. Generated from ap_config_auto.h.in by configure. */
/* include/ap_config_auto.h.in. Generated from configure.in by autoheader. */
/* SuExec root directory */
/* #undef AP_DOC_ROOT */
/* Enable DTrace probes */
/* #undef AP_ENABLE_DTRACE */
/* Allow modules to run hook after a fatal e... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* File: LabB_TuneTheGyro.c
*
* Code generated for Simulink model 'LabB_TuneTheGyro'.
*
* Model versi... |
#include <string.h>
#include <stdlib.h>
#include "dslink/mem/mem.h"
#include "dslink/col/map.h"
#include "dslink/err.h"
/*************************** Comparators *******************************/
int dslink_map_str_cmp(void *key, void *other, size_t len) {
return !(strncmp((char *) key, (char *) other, len) == 0
... |
/* operation.c - routines to deal with pending ldap operations */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2016 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... |
/*
* mt-random.c - implements MT19937 random number generation algorithm
*
* Mersenne Twister algorithm invented by <NAME> & <NAME>.
* http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
* This code is based on mt18837ar.c (2002/1/16). It is released under
* BSD license.
* I modified the code in the fol... |
#include <cwire/crypto/bio.h>
#include <string.h>
#include <cwire/no_malloc.h>
#define LIMIT_BEFORE_EXPANSION 0x5ffffffc
static int cwr__crypto_bio_create (BIO *bi) {
BIO_set_shutdown(bi, 1);
BIO_set_init(bi, 1);
return 1;
}
static int cwr__crypto_bio_grow_clean (cwr_crypto_buffer_t *str, size_t len) {
... |
/**
* @file re_sdp.h Interface to Session Description Protocol (SDP)
*
* Copyright (C) 2010 Creyt<EMAIL>
*/
enum {
SDP_VERSION = 0
};
/** SDP Direction */
enum sdp_dir {
SDP_INACTIVE = 0,
SDP_RECVONLY = 1,
SDP_SENDONLY = 2,
SDP_SENDRECV = 3,
};
/** SDP Bandwidth type */
enum sdp_bandwidth {
SDP_BANDWIDTH... |
//-------------------------------------------------------------------------
//
// The MIT License (MIT)
//
// Copyright (c) 2013 <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 w... |
/* $OpenBSD: nec86.c,v 1.1 2014/12/28 13:03:18 aoyama Exp $ */
/* $NecBSD: nec86.c,v 1.11 1999/07/23 11:04:39 honda Exp $ */
/* $NetBSD$ */
/*
* [NetBSD for NEC PC-98 series]
* Copyright (c) 1996, 1997, 1998
* NetBSD/pc98 porting staff. All rights reserved.
*
* Redistribution and use in source and binary forms... |
#define _GNU_SOURCE
#include <stdio.h> /* printf... */
#include <stdlib.h> /* exit(), strtol() ... */
#include <signal.h> /* signal(), SIGALRM */
#include <string.h> /* strcat() ... */
#include <sched.h> /* cores */
#in... |
/*
* ShellBat plugin
* Copyright (c) 2017 <NAME>
* Copyright (c) 2020 <NAME>
* Copyright (c) 2021 Codiak
*
* 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, ... |
/* P I X S H R I N K . C
* BRL-CAD
*
* Copyright (c) 2004-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 ... |
/*
* cache.c
*
* Copyright (C) 1997 by <NAME>
*
* Routines to support directory cacheing using the page cache.
* Right now this only works for smbfs, but will be generalized
* for use with other filesystems.
*
* Please add a note about your changes to smbfs in the ChangeLog file.
*/
#include <linux/sched.h>... |
/* $Id: tbl_term.c,v 1.43 2015/10/12 00:08:16 schwarze Exp $ */
/*
* Copyright (c) 2009, 2011 <NAME> <<EMAIL>>
* Copyright (c) 2011, 2012, 2014, 2015 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
... |
/*
Copyright 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
d... |
/*
* mreceive.c -- Prints UDP messages received from a multicast group.
*
* (c) <NAME>, <NAME>, <NAME>, 2002
* Multimedia Networks Group, University of Virginia
*
* SOURCE CODE RELEASED TO THE PUBLIC DOMAIN
*
* version 2.0 - 5/20/2002
* version 2.1 - 12/4/2002
* Update version display.
* version 2... |
/* Copyright 2013-2015 IBM Corp.
*
* 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 agreed to in ... |
/*
* Copyright (c) 2004-2005 vlad902 <vlad902 [at] gmail.com>
* Copyright (c) 2007 <NAME> <hdm [at] metasploit.com>
* This file is part of the Metasploit Framework.
* $Revision$
*/
#include <sys/types.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include... |
/*
* Copyright (c) 2009-2011 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*
* @precisions normal z -> s d c
*
*/
#include "common.h"
#include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h"
static... |
/*
* Description: EBTables time extension module for userspace.
* Authors: <NAME> <<EMAIL>>, ported from FTOS patch netfilter/iptables
* The following is the original disclaimer.
*
* Shared library add-on to iptables for FTOS
*
* (C) 2000 by <NAME> <<EMAIL>>
*
* This program is distributed under t... |
/*
* ads131m08.c
*
* Created: 2021/07/03 12:57:58
* Author: kiyot
*/
#include <stddef.h>
#include <stdint.h>
#include <fastmath.h>
#include <string.h>
#include <samd51_error.h>
#include <samd51_gpio.h>
#include <samd51_timer.h>
#include <samd51_spi.h>
#include <samd51_interrupt.h>
#include "dr... |
/* Copyright © 2018-2020 <NAME>. */
/* This code is licensed under the MIT License. */
/* See: LICENSE.md */
#include <libsystem/Result.h>
#include <libsystem/assert.h>
#include <libsystem/cstr... |
/*
american fuzzy lop - high-performance binary-only instrumentation
-----------------------------------------------------------------
Written by <NAME> <<EMAIL>> and
<NAME> <<EMAIL>>
Idea & design very much by <NAME>.
Copyright 2015, 2016 Google Inc. All rights reserved.
Licensed un... |
/*
* Generate Verilog sources for Am2904 test vectors.
* Read "bits" format and create Verilog sources.
*/
#include <stdio.h>
#include <string.h>
#define NO_OF_PORTS 40
#define MAX_LINE_SIZE 256
#define MAX_BIT_VECTOR_SIZE 128
struct signal {
char name[16];
char port_type[8];
... |
/*************************************************************************
| COPYRIGHT (c) 2000 BY ABATRON AG
|*************************************************************************
|
| PROJECT NAME: Linux Image to S-record Conversion Utility
| FILENAME : img2srec.c
|
| COMPILER : GCC
|
| TARGET OS : LI... |
#include "include\cinterface"
typedef TLnat4 TL_TL_priority_t;
struct TL_TL_ExceptionInfo {
TLint4 quitCode;
TLint4 libraryQuitCode;
TLstring errorMsg;
};
typedef TLnat1 __x592[1];
struct TL_TL_HandlerArea {
TLint4 quitCode;
TLnat4 lineAndFile;
TLaddressint fileTable;
struct TL_T... |
// SPDX-License-Identifier: GPL-2.0-only
#include <linux/bcd.h>
#include <linux/delay.h>
#include <linux/export.h>
#include <linux/mc146818rtc.h>
#ifdef CONFIG_ACPI
#include <linux/acpi.h>
#endif
/*
* Execute a function while the UIP (Update-in-progress) bit of the RTC is
* unset.
*
* Warning: callback may be exe... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <assert.h>
#include "core_allvars.h"
#include "core_proto.h"
double cooling_recipe(int gal, double dt)
{
double tcool, x, logZ, lambda, rcool, rho_rcool, rho0, temp, coolingGas;
if(Gal[gal].HotGas > 0.0 && G... |
/*
* compiler.c
*
* Compiler compile the S-exp to stack-based virtual machine
*
* Copyright (C) 2013-03-18 liutos <<EMAIL>>
*/
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include "compiler.h"
#include "eval.h"
#include "object.h"
#include "types.h"
#include "vm.h"
#define BUF... |
/*
sipwizard.c
Copyright (C) 2011 Belledonne Communication, Grenoble, France
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.
... |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
// HPCT... |
/*
* author: <NAME> <<EMAIL>>
*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
#include "muggle_benchmark/muggle_benchmark.h"
uint64_t *consumer_read_num = NULL;
struct consumer_thread_args
{
muggle_ring_buffer_t *ring;
muggle_atomic_int *consumer_ready;
... |
#include "shell.h"
#include "uart.h"
#include "meta_macro.h"
#include "string_util.h"
#include "mailbox.h"
#include "pm.h"
#include "timer.h"
#include "irq.h"
#include "exc.h"
#include "syscall.h"
const char * shell_command_list[] = {
"hello",
"help",
"timestamp",
"reboot",
"bd",
"vcmem",
"txt",
"exc",... |
#include <stddef.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "mtbbus.h"
#include "../src/io.h"
#include "crc16modbus.h"
uint8_t mtbbus_output_buf[MTBBUS_OUTPUT_BUF_MAX_SIZE];
uint8_t mtbbus_output_buf_size = 0;
uint8_t mtbbus_next_byte_to_send = 0;
bool sending = false;
uint8_t mtbbus_input_buf[MTBBUS... |
//==============================================================================
// Project : BLE Gateway Daemon
// File : ble_daemon.c
// Author : <NAME>
// Compiler : gcc
// Brief : Simple background process which detects add/remove udev events
//===================================================... |
/*
* dtlbasic-dongle.c - dtl basic tape port dongle emulation.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gener... |
#include "autolink.h"
#include <parser.h>
#include <string.h>
#include <utf8.h>
#if defined(_WIN32)
#define strncasecmp _strnicmp
#else
#include <strings.h>
#endif
static int is_valid_hostchar(const uint8_t *link, size_t link_len) {
int32_t ch;
int r = cmark_utf8proc_iterate(link, (bufsize_t)link_len, &ch);
if ... |
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by <NAME> (AKA GMagician)
*
* 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... |
/*
** Copyright 2005-2019 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of version 2 of the GNU General Public License ... |
/* Copyright (c) 2020 National Cheng Kung University, Taiwan.
* All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
#include <ncurses.h>
#include <stdbool.h>
#include "tetris.h"
#define PRINT_BLOCK(window, pos_y, pos_x) \... |
/* nspxcp.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
/* $ Disclaimer */
/* THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE */
/* ... |
/* Details page for GTEx eQTL Clusters */
/* Copyright (C) 2017 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "hCommon.h"
#include "web.h"
#include "gtexTissue.h"
#include "gtexInfo.h"
#include "gtexEqtlCluster.h"
#inc... |
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <inttypes.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include "util.h"
#define Initsz 16
#define Seed 2928213749
/* Creates a new empty hash table, using 'hash' as the
* hash funciton, and 'cmp' to verify that there are no
* ha... |
/*-------------------------------------------------------------------------
*
* px_vars.c
* Provides storage areas and processing routines for Greenplum Database variables
* managed by GUC.
*
* Portions Copyright (c) 2003-2010, Greenplum inc
* Portions Copyright (c) 2012-Present Pivotal Software, Inc.
* Por... |
/* Merge Sort
by <NAME>
<EMAIL>
http://www.alumni.caltech.edu/~pje/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MergeSort.h"
#include "LLMSort.h"
struct record_in_memory
{
struct record_in_memory *next;
char record[1];
};
struct compare_info
{
int (*compare)(void *, void ... |
/* solve_dpend.c
*
* Example code to solve double pendulum ODEs using fourth order
* Runge-Kutta.
*
* Parameters are passed in at the command line:
*
* $./solve_dpend TMIN TMAX TH10 W10 TH20 W20 NSTEP > pendulum.txt
*
* where TMIN and TMAX are the starting and ending times (in seconds),
* TH10 and TH20 a... |
#include <string.h>
#include "bionic.h"
#include "memio.h"
#include "printf.h"
#include "fernvale-lcd.h"
#include "fernvale-gpio.h"
#include "fernvale-clockgate.h"
#include "lcd.h"
static pixel_t *fb = (pixel_t *)0x40000;
static const uint32_t fb_height = 320;
static const uint32_t fb_width = 240;
static const uint32_... |
/* high level I/O */
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <strings.h>
/* high prec. timer */
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
/* low level I/O */
#include <fcntl.h>
#include <sys/time.h>
#include <time.h>
#include <sys/types.h>
#include <sys/s... |
#include <inttypes.h>
#include <string.h>
#include "binary_types.h"
#include "metrics.h"
#include "sink.h"
#include "streaming.h"
#include "utils.h"
// BIN_TYPE_MAP is used to map the BIN_TYPE_* static
// definitions into the metric_type value, so that
// we can lookup the proper prefix.
int BIN_TYPE_MAP[METRIC_TYPES... |
/*
Copyright 2016 <NAME>
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 agreed to in writing, software
distributed ... |
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
#include <shellapi.h>
#include <stdlib.h>
#include "box.h"
#include "button.h"
#include "titledrag.h"
#include "text.h"
#include "constants.h"
#include "button2.h"
#include "combobox.h"
#include "ctrl.h"
#include "edit2.h"
#inclu... |
/* C Libraries. Only the bare minimum, no need for clutter */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef ASA_BENCHMARK
#include <time.h>
#endif
/*************************** Auxiliary functions ******************************/
#define get_number(a) scanf("%d", a)
#define get_numbers(a, b) scan... |
#define thisprog "xe-histstats1"
#define TITLE_STRING thisprog" v 1.4: 9.November.2018 [JRH]"
#define MAXLINELEN 1000
#define MAXLABELS 1000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
/*
<TAGS>stats</TAGS>
v 1.4: 9.November.2018 [JRH]
- update variable name conventions
- resolve s... |
/*
Copyright (C) 1996 <NAME>
You may distribute under the terms of the GNU General Public
Licence as specified in the README file.
*/
#include "t2s.h"
char *conv_style(char * style);
char *conv_dirn(char * direction);
void process_rule(char *input,RULE *rule);
void replace_classes(int num_rules, RULE ... |
/*
* Copyright (c) 2015 Kaprica Security, Inc.
*
* 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... |
/*
3APA3A simpliest proxy server
(c) 2002-2020 by <NAME> <<EMAIL>>
please read License Agreement
*/
#include "proxy.h"
pthread_mutex_t log_mutex;
int havelog = 0;
struct clientparam logparam;
struct srvparam logsrv;
void dolog(struct clientparam * param, const unsigned char *s){
static int init = 0... |
/* Copyright 2020-2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
/*
FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... |
/*
* Copyright (C) 2014,2015 by attila <<EMAIL>>
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE A... |
/* Copyright (C) 2018-2019 <NAME>
*
* This file is part of libdas2, the Core Das2 C Library.
*
* Libdas2 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 Foundation.
*
* Libdas2 is distributed i... |
/*
** nbody_barnes_hut.c - nbody simulation that implements the Barnes-Hut algorithm (O(nlog(n)))
**
**/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <math.h>
#include <sys/time.h>
#include <assert.h>
#include <unistd.h>
#ifdef DISPLAY
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#endif
#incl... |
/*
* Copyright (C) <NAME>
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#define NGX_WSABUF_SIZE_MAX 4096
#define NGX_WSABUFS 16
ssize_t
ngx_wsasend(ngx_connection_t *c, u_char *buf, size_t size)
{
int n;
u_long sent;
... |
#include "system.h"
/* #include "types.h" */
/* #include "flags.h" */ // defns & decls moved to memmgr.h
#include "memmgr.h"
#include "eval.h"
#include "integer.h"
#include "integer4.h"
#include "md5.h"
#include "args.h"
#include <sys/stat.h>
#include <string.h>
#ifdef WIN32
#include <windows.h>
#include <io.h... |
# include <stdio.h>
# include <stdlib.h> /* malloc, abs */
# include <string.h> /* strcpy */
# include <xtables.h>
# include <hstio.h>
# include "../stis.h"
# include "../stisdef.h"
# include "calstis6.h"
# include "../stispht.h"
# include "../stiserr.h"
typedef struct {
IRAFPointer tp; /* pointer to table descri... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#define BOARD_LENGTH 9
#define true 1
#define false 0
#define bool int
#define EMPTY_SPACE '-'
/**
* Represents a player in the game.
*/
typedef struct Player Player;
struct Player {
bool ... |
/*
* Copyright (c) 2019-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file crypt_path.c
*
* \brief Functions dealing with layered circuit encryption. This file aims to
* provide an API around the crypt_path_t structure which holds crypto
* information about a specific hop ... |
#include "SecureMem.h"
#include <stdlib.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include "String.h"
#include "Errors.h"
#include "GeneralFunctions.h"
//needed for low-level file access
#include <sys/file.h>
static SECURESTORE *Cr... |
/****************************************************************************
*
* warpwarp.c
*
* sound driver
* <NAME> <<EMAIL>>, jan 2000
*
****************************************************************************/
#include "emu.h"
#include "streams.h"
#include "includes/warpwarp.h"
#define CL... |
/*
* 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 it will be use... |
/* PDCLib testing suite <_PDCLIB_test.h>
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
/* -------------------------------------------------------------------------- */
/* Helper macros for printf() / scanf() tests ... |
/* $OpenBSD: uvm_swap_encrypt.c,v 1.12 2003/12/26 10:04:49 markus Exp $ */
/*
* Copyright 1999 <NAME> <<EMAIL>>
* 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 so... |
#include "c.h"
static char rcsid[] = "main.c - faked rcsid";
static void typestab(Symbol, void *);
static void stabline(Coordinate *);
static void stabend(Coordinate *, Symbol, Coordinate **, Symbol *, Symbol *);
Interface *IR = NULL;
int Aflag; /* >= 0 if -A specified */
int Pflag; /* != 0 if -P specified */
int... |
//
// ALSQLStatementHelpers.h
// patchwork
//
// Created by <NAME> on 2016/10/21.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "__patchwork_config.h"
#import "ALLogger.h"
#import "ALUtilitiesHeader.h"
// private utilities tools for ALSQLStatment
#ifndef __ALSQLST... |
#include "space.h"
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#define STATUS_FAIL -1
#define STATUS_CONTINUE 0
#define FRAME_INTERVAL 50
#define ENEMIES_MAX 32
#define PROJECTILES_MAX 16
#define ENEMY_SPEED 1
#define ENEMY_WIDTH 4
#define ENEMY_HEIGHT 4
#define ENEMY_FREQUENCY 40
#define PROJECTIL... |
/* Interpolation.c */
/**********************************************************************************************************
Copyright (c) 2002-2013 <NAME>. All rights reserved
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the Gab... |
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* main.c - Game Sharing sample
*
* Copyright (c) 2007 <NAME> (Insert_Witty_Name)
*
*/
#include <pspker... |
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "analyze.h"
#define NUM_MOVES 20
#define POSSIBLE_MOVES 50
char tmp_board[BOARD_SIZE][BOARD_SIZE + 1] = { 0 };
struct move
{
bool rot_row;
int idx;
int amnt;
};
struct movetree {
struct move this_move;
struct movetree *ne... |
/*
* Copyright (c) 2008 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
/*
* Copyright (C) 2008 <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. Redistributions of source code must retain the above copyright
* notice, this list of conditions an... |
/* This file is part of the software similarity tester SIM.
Written by <NAME>, Vrije Universiteit, Amsterdam.
$Id: sim.c,v 2.69 2017-03-19 09:30:38 dick Exp $
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "system.par"
#include "settings.par"
#include "sim.h"
#include "options.h"
#include "n... |
/*
* 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
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*************************************************************************************
* MIT License *
* *
* Copyright (C) 2017 <NAME>, <NAME> ... |
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright
* notice and t... |
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
#include "sparkfun_lte.h"
#include "app.h"
// super important function for actually starting the LTE system
char lte_start(unsigned long desired_baud)
{
char err = -1;
// inital values for the state mashine
unsigned char current_state = LTE_AUTOBAUD; // starting state...
unsigned char next_state = 0;... |
/**************************************************************************************************
Copyright (c) 2008-2009, Motorola, 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:
- Redistributio... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "coords.h"
#include "db.h"
#include "stock.h"
#include "polygon.h"
static void
usage()
{
char *usage = "[-v] [-n] [-close_polygons] [-ptype ts] [-pname name]\n\t\t[-level level] [-auth author]\n\t\t[-dir dir] [-dfile dfil... |
/* $OpenBSD: res_mkquery.c,v 1.1.1.1 2012/07/13 17:49:53 eric Exp $ */
/*
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* 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 ... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
#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... |
// Some mp3 related code for Sega/Mega CD.
// Uses the Helix Fixed-point MP3 decoder
// (c) Copyright 2007, Grazvydas "notaz" Ignotas
#include <stdio.h>
#include <string.h>
#include "../../Pico/PicoInt.h"
#include "../../Pico/sound/mix.h"
#include "helix/pub/mp3dec.h"
#include "lprintf.h"
static short mp3_out_buffe... |
/*
* Copyright (C) 2018-2019 Jolla Ltd.
* Copyright (C) 2018-2019 <NAME> <<EMAIL>>
*
* You may use this file under the terms of BSD license as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1... |
//
// Project Fobu
// Copyright 2020 <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, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.