text stringlengths 3.08k 10.5k |
|---|
/*-
* Copyright (c) 2019-2020, AT&T Intellectual Property. All rights reserved.
* Copyright (c) 2011-2016 by Brocade Communications Systems, Inc.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-only
*/
#include <libmnl/libmnl.h>
#include <linux/if_link.h>
#include "fal.h"
#include "if_var.h"
#inclu... |
// ex17: heap and stack memory allocation
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
// use C preprocessor (CPP) to create constant settings, reliable ways
#define MAX_DATA 512
#define MAX_ROWS 100
struct Address {
int id;
int set;
char name[MAX_DATA]; // ... |
#include "esp_log.h"
#include "ucg.h"
#include "error.h"
#include "lcd.h"
#include "rm68090.h"
#include "ucg_rm68090_hal.h"
#include "utils.h"
#define HANDLE(d) ((lcd_dev_t*)(d->user_ptr))
static const char *TAG = "ucg_rm68090_hal";
static ucg_int_t ucg_rm68090_handle_l90fx(ucg_t *ucg) {
lcd_dev_t *dev = HANDL... |
/****************************************************************************
* arch/renesas/src/rx65n/rx65n_cmtw0.c
*
* Copyright (C) 2008-2019 <NAME>. All rights reserved.
* Author:<NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... |
/* hash.c - contains all the functions for managing the hash table */
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include "cleanup.h" /* for CLEANUP_DO() macro */
#include "error.h"
#include "hash.h"
/* hash table for MAC addresses */
static struct hash_entry... |
#include <kernel/types.h>
#include <kernel/device.h>
#include <kernel/kmalloc.h>
#include <kernel/proc.h>
#include <kernel/error.h>
#include <kernel/dbg.h>
#include <kernel/resident.h>
#include <kernel/block.h>
#include <kernel/buffers.h>
#include "iso9660.h"
struct Device cd_device =
{
{NULL, NULL},... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <errno.h>
#include <signal.h>
#define MAX_CMD_LEN 1000
#define MAX_CMD_ARGS 50
#define ERROR(x) if(x) { printf("ERROR: %s\n", x); exit(1); }
#define ERROR_CLEANUP(x) if(x) { printf("ERROR:... |
/*----------------------------------------------------------------
// //
// amber-bin2mem.c //
// //
// This file is part of the Amber project ... |
#pragma strict_types
#include "../def.h"
inherit MASTER_ROOM;
void create_object(void);
void reset(int arg);
void init(void);
int do_sit(string str);
int do_pass(string str);
void create_object(void)
{
set_short("A huge hall");
set_long("A huge hall with a high hammerbeam ceiling. A big mosaic is " +
... |
// <NAME> -- more #defs for GT_WOLF gametype
#define WOLF_CAPTURE_BONUS 15 // capturing major game objective
#define WOLF_STEAL_OBJ_BONUS 10 // stealing objective (first part of capture)
#define WOLF_SECURE_OBJ_BONUS 10 // securing objective from slain enemy
#define WOLF_MEDIC_BONUS 2 ... |
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
* Copyright (C) 2002-2011 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publi... |
/*
* vic20-sidcart.c - VIC20 specific SID cart 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 General Pu... |
/* Copyright 2017 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 writi... |
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/power.h>
#include <avr/sleep.h>
#include "../lib/avr-i2c-slave/I2CSlave.h"
#define I2C_ADDRESS (0x10)
#define POTS_LEN (8)
#define PWM_LEN (3)
#define BUTTONS_LEN (8) /* expected to be not greater than 8 */
#define BUTTONS_DEBOUNCE (200... |
#include "other_functions.h"
bool CBOR_ITEM_T_init(cbor_item_t *item)
{
if (item == NULL)
{
return false;
}
else
{
return true;
}
}
char *decode(const char *input, int input_sz, int *output_sz)
{
char *output = (char*)malloc(input_sz);
/* Keep track of our decoded po... |
#include "graph.h"
#include <glib.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include "util.h"
#define ADD_ADJ_NODE(n1, n2_idx, edge_idx) g_hash_table_insert(n1->adj, GINT_TO_POINTER(n2_idx), GINT_TO_POINTER(edge_idx))
node new_node()
{
node n = malloc(sizeof(struct node_t)... |
/* Copyright (C) 2021 Intel Corporation */
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include "ccai_stream.h"
#include "ccai_stream_utils.h"
#define D(fmt, ...) CS_D("[test]: " fmt, ##__VA_ARGS__);
#define I(fmt, ...) CS_I("[test]: " fmt, ##__VA_ARGS__);
#define E(fmt, ...) CS_E("[test]: " fmt, ##... |
#include <u.h>
#include <libc.h>
#include <libg.h>
#include <bio.h>
#include "dat.h"
Biobuf *mf;
Font *tinyfont; /* to overwrite unknowns */
Font *medifont; /* for icon captions */
char machine[512]; /* machine in latest ikon */
char *label; /* machine label for this ikon, if any */
char token[64];
int First=1, S... |
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that re... |
/* $NetBSD: mainbus.c,v 1.7 2003/07/15 02:54:42 lukem Exp $ */
/*
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> (<EMAIL>) at Sandburst Corp.
*
* Redistribution and use in source and binary forms, wi... |
/*
* Old-school space shooter game in 2D.
*
* Copyright (c) 2011, <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:
*
* * Redistributions of source code must retain the above ... |
/******************************************************************************
File: word.c
Authors: <NAME> (<EMAIL>)
<NAME> (<EMAIL>)
Lang Stuiver (<EMAIL>)
Purpose: Data compression with a word-based model using
arithmetic coding.
Hacked by aht to read file of uints. Fri Aug 22 08:33:51 EST 19... |
/**
* \file
*
* \brief Example of usage of the SPI Master Mode Basic Services.
*
* Copyright (c) 2011 - 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
#include <stdio.h> // FILE
#include <stdlib.h>
#include <windows.h>// portuguÊs
char an[400]; // é o nome do arquivo / arquivoNome
void escrever (char an[400]);
void ler (char an[400]);
void anexar(char an[400]);
int main() {
//definindo as paginas para UTF-8 e padrão windows
UINT CPAGE_UTF8 = 65001;
UINT CPAGE_D... |
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2002-2012 Free Software Foundation Europe e.V.
Copyright (C) 2015 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Lice... |
/**********************************************************************
** MODULE INFORMATION*
**********************
** FILE NAME: SCHEME.H
** SYSTEM NAME: SCHEME
** ORIGINAL AUTHOR(S): <NAME>
** VERSION NUMBER: 1.5.5
** CREATION DATE: 88/11/9
**
** DESCRIPTION: H... |
/*
* Mach Operating System
* Copyright (c) 1993 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* softw... |
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
void read_subimage(uint16_t* destBuf, const uint16_t* srcBuf, uint32_t input_width, uint32_t input_height,
uint32_t sub_width, uint32_t sub_height, uint32_t row, uint32_t col )
{
uint32_t subdi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winsock2.h>
#include <time.h>
#include <limits.h>
#include "judge.h"
#include "define.h"
#include "judge.c"
#include "alphabeta.c"
#include "gomokuController.c"
int board[15][15];
int value_board[15][15];
int ban_flag = 0; //禁じ手か否か
int win_flag = ... |
/*
* Copyright 1999-2006 University of Chicago
*
* 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... |
#include <../../nrnconf.h>
#include "hoc.h"
#define INTERPOLATE 1
typedef struct TableArg {
int nsize;
double* argvec; /* if nil use min,max */
double min;
double max;
#if INTERPOLATE
double frac; /* temporary storage */
#endif
} TableArg;
typedef struct FuncTable {
double* table;
TableArg* targs;
double va... |
// SPDX-License-Identifier: BSD-2-Clause
/*
Copyright 2005-2018 <NAME>
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... |
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lcddl.h"
FILE *ComponentsFile = NULL;
FILE *FunctionsFile = NULL;
FILE *FunctionsHeaderFile = NULL;
FILE *ComponentArraysFile = NULL;
int BitOffset = 1;
void fWriteStringAsUppercaseWithU... |
#include <cmr/regular.h>
#include <assert.h>
#include <stdlib.h>
#include "env_internal.h"
void CMRcreateDec(CMR* cmr, CMR_DEC** pdec)
{
assert(pdec != NULL);
assert(*pdec == NULL);
CMRallocBlock(cmr, pdec);
CMR_DEC* dec = *pdec;
dec->matrix = NULL;
dec->transpose = NULL;
dec->rowLabels = NULL;
dec-... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2012 secunet Security Networks AG
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; version 2 of
* the License.
*
* Th... |
/*!
* @file main.c
* @brief Oximeter5 Click example
*
* # Description
* This library contains API for Oximeter 5 Click driver.
* The demo application reads and calculate
* SpO2 oxygen saturation data.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initializes I2C driver an... |
#include<stdio.h>
void matrixMultiplication(int* M1, int* M2, int* M3, int n);
void matrixAddition(int* M1, int* M2, int* M3, int n, int size);
void matrixSubtraction(int* M1, int* M2, int* M3, int n, int size);
void main()
{
int n;
scanf("%d", &n);
int M1[n][n], M2[n][n], M3[n][n];
for (in... |
#include "utils.h"
#define GAME_WIDTH 800
#define GAME_HEIGHT 800
#define MAP_COLS 10
#define MAP_ROWS 10
static void draw_map(int* map) {
SDL_Rect cell = {0, 0, GAME_WIDTH / MAP_COLS, GAME_HEIGHT / MAP_ROWS};
int mapSize = MAP_COLS * MAP_ROWS;
for (int i = 0; i < mapSize; i++) {
... |
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/miscdevice.h>
#include <linux/of.h>
#include <linux/cdev.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/wait.h>
#include <asm/uaccess.h>
#defin... |
/*In Vernam cipher(also known as the One-Time Pad), the length of the plaintext, ciphertext, and key is the same.
Below is an implementation of Vernam cipher in the C language.*/
/*Basically, here the ith letter of the cipher text is fomred by shifting the ith letter of the plaintext with
* the ith letter of key.
... |
/***************************************************************************
* Nipper - The network infrastructure parser *
* Copyright (C) 2006 - 2008 by <NAME> *
* <EMAIL> *
* ... |
#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... |
/**************************************************************************//**
* @file main.c
* @version V2.00
* $Revision: 2 $
* $Date: 15/02/25 3:31p $
* @brief Show how to reload the WWDT counter value.
* @note
* Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.
**************... |
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "env.h"
#include "graph.h"
#include "lex.h"
#include "parse.h"
#include "util.h"
const char *ninjaversion = "1.8.2";
struct node **deftarg;
size_t ndeftarg;
void
parseinit(void)
{
free(deftarg);
deftarg = NULL;
ndeftarg = 0;
}... |
#include "log.h"
#include <engine/thorium/actor.h>
#include <core/system/timer.h>
#include <core/system/memory_pool.h>
#include <core/system/debugger.h>
#include <core/helpers/bitmap.h>
#include <stdio.h>
#include <string.h>
#define OPERATION_ENABLE 99
#define OPERATION_DISABLE 2
void thorium_actor_log_priva... |
/*
* Copyright (C) 2004, 2005, 2007, 2008, 2013-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* 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... |
/*************************************************************************/
/* */
/* Language Technologies Institute */
/* Carnegie Mellon University */
/* ... |
/***************************************************************************
Copyright (c) 2014, The OpenBLAS Project
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... |
/*
* \author <NAME> <<EMAIL>> original implementation of C99 heap
* \author <NAME> <<EMAIL>> adapted to M4RI + DJB map
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <m4ri/mzd.h>
#include <m4ri/io.h>
#include <m4ri/misc.h>
#include <m4ri/djb.h>
#include <m4ri/xor.h>
#include <unistd.h>
#include <stdl... |
/****************************************************************************
* arch/sim/src/up_simuart.c
*
* Copyright (C) 2014 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
#include "lockfree_queue.h"
#include "lockfree_reapd.h"
void lockfree_queues_initall()
{
/* Create a thread local key to be used by the hazard ptr. */
pthread_key_create(&hazard_ptr_entry_key, NULL);
free_qnodes_head.lffn_next = 0;
q_hazard_chain.ht_next_table = 0;
qnode_reapd_attr.lfra_hazard_t... |
#include <comando.r>
#include <controlador.r>
#include <string.h>
#include <stdlib.h>
#include "../funcoes_checagem.h"
#include <model/trabalho/pessoa.h>
#include <model/trabalho/elemento.h>
#include <utils/logger.h>
#include <utils/utils.h>
static int contemCep(void *item, void *other) {
Pessoa pessoa = item;... |
/*
* Copyright 2014, General Dynamics C4 Systems
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#pragma once
#include <stdint.h>
/*
* Samsung Exynos multi-core timer implementation
* Samsung has a habit of ripping out ARM IP and
* replacing it with their own.
*/
#define GCNTWSTAT_CNTH (1U << 1)
#define ... |
/**
* Copyright (c) 2016-2018 <NAME> <<EMAIL>>
* 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,... |
/*
*------------------------------------------------------------------
* p2p_ethernet_api.c - p2p ethernet api
*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 ... |
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include "publisher.h"
#include "publish_msg.h"
#define SUBSCRIBER_LOG(...) printf("[subscriber]");printf(__VA_ARGS__);
#define WRITER_NUM (5)
struct subscribe_account {
i... |
/*
* Texas Instruments' TPS65217 and TPS65218 Power Button Input Driver
*
* Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Genera... |
/*
* Copyright 2015 <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 wr... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <soc/tegra/fuse.h>
#include "soctherm.h"
#define NOMINAL_CALIB_FT 105
#define NOMINAL_CALIB_CP 25
#define FUSE_TSENSOR_CALIB... |
/*
* Copyright (c) 2007 Mellanox Technologies. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this sou... |
/*
* linux/drivers/ide/macide.c -- Macintosh IDE Driver
*
* Copyright (C) 1998 by <NAME>
*
* This driver was written based on information obtained from the MacOS IDE
* driver binary by <NAME>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYIN... |
/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| ... |
/*
* Z80SIM - a Z80-CPU simulator
*
* Copyright (C) 2014-2017 by <NAME>
*
* Configuration for a Cromemco Z-1 system
*
* History:
* 15-DEC-14 first version
* 20-DEC-14 added 4FDC emulation and machine boots CP/M 2.2
* 28-DEC-14 second version with 16FDC, CP/M 2.2 boots
* 01-JAN-15 fixed 16FDC, machine now a... |
/**\mainpage
* Copyright (C) 2018 - 2019 Bosch Sensortec GmbH
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/*
* Description:
* History: <EMAIL>, 2017/04/01, create
*/
/*
* 操作历史记录
*/
#include "me_config.h"
#include "me_operlog.h"
uint64_t operlog_id_start;
static MYSQL *mysql_conn;
static nw_job *job;
static list_t *list;
static nw_timer timer;
struct operlog
{
uint64_t id;
double create_time;
char... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#ifdef _WIN32
#include <io.h>
#include "../shoutcastRecorder/shoutcastRecorder/getopt.h"
#else
#include <unistd.h> // linux
#include <regex.h>
#endif
#include "types.h"
#include "parsing.h"
#include "shoutcast.h"
#include "... |
#include <stdlib.h>
#include <time.h>
#include "set.h"
#include "utils.h"
/* Test functions */
void testNewSet();
void testSetAdd();
void testSetRemove();
void testIsInSet();
void testSetUnion();
void testSetIntersect();
void testSetMapping();
/* Functions used in testing */
int *mallocInt( int a );
int *increment(i... |
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <assert.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "nvim/log.h"
#include "nvim... |
/*
* Copyright 2008 <NAME> <<EMAIL>>
* Copyright 2008 <NAME> <<EMAIL>>
*
* This file is part of NetSurf's libnsgif, http://www.netsurf-browser.org/
* Licenced under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
#include <assert.h>
#include <errno.h>
#include <stdbool.h>... |
/*****************************************************************************
*
* \file
*
* \brief AVR32 UC3 Control Panel temperature sensor module.
*
* Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with thes... |
// SPDX-License-Identifier: GPL-2.0
/*
* Driver for the NXP ISP1760 chip
*
* Copyright 2014 <NAME>
* Copyright 2007 <NAME>
*
* Contacts:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Cavium, Inc
*/
#include "otx_zip.h"
uint64_t
zip_reg_read64(uint8_t *hw_addr, uint64_t offset)
{
uint8_t *base = hw_addr;
return *(volatile uint64_t *)(base + offset);
}
void
zip_reg_write64(uint8_t *hw_addr, uint64_t offset, uint64_t val)
{
uint8_t *... |
#include "GravBall.h"
#include "Accelerometer.h"
#include <pebble.h>
static float* p_pX; //[2] = {22.f, 122.f};
static float* p_pY; //[2] = {84.f, 84.f};
//static float pH[2] = {72.f, 84.f};
static float* p_vX; //[2] = {0.f, 0.f};
static float* p_vY; //[2] = {0.f, 0.f};
static float* p_aX; //[2] = {0.f, 0.f};
stat... |
/* $OpenBSD$ */
/*
* Copyright (c) 2008 <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... |
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/*
* exitsnoop Trace process termination.
*
* Copyright (c) 2021 <NAME>
*
* Based on exitsnoop(8) from BCC by <NAME> & <NAME>.
* 05-Aug-2021 <NAME> Created this.
*/
#include <argp.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include... |
/*****************************************************************************
* aout.c
*****************************************************************************
* Copyright © 2011-2012 VLC authors and VideoLAN
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of th... |
#include <stddef.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <time.h>
#include <stdbool.h>
#include <errno.h>
#include <signal.h>
#define MAXLINE 4096
#define DEFAULT_T 9
#define DEFAULT_N 11
#define NEXT_DOUBLE(seedptr) ((double) ... |
/* $XFree86$ */ /* -*- mode: c; c-basic-offset: 3 -*- */
/*
* Copyright 2000 <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 "Software"),
* to deal in the Software without restriction, includi... |
#ifndef MRTEST_INTERNAL_H
# define MRTEST_INTERNAL_H
# include <stdio.h>
# include <stdlib.h>
/* Colors */
# define _MR_RED_BOLD "\033[1;31m"
# define _MR_GREEN_BOLD "\033[1;32m"
# define _MR_RESET_COLOR "\033[0m"
/*
Helper macros for _MR_MSG
*/
#define _MR_STRINGIZING(x) #x
#define _MR_STR(x) _MR_STRINGIZING(x)... |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016 <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 ... |
/*
ZXLib
MIT License
Copyright (c) 2021 <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,... |
#include <errno.h>
#include <mach/mach.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/sysctl.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <xnuspy/xnuspy_ctl.h>
static void (*_bzero)(void *p, size_t n);
static int (*copyinstr)(const void *uaddr, void *kaddr, ... |
/*
* Copyright (C) 2018 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief Test application for the LIS2DH... |
/*----------------------------------------------------------------------------
* Copyright (c) <2016-2019>, <Huawei Technologies Co., Ltd>
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*... |
/**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Direct memory patching and Import Address Table detouring.
*/
#pragma once
// IsBadReadPtr() without the flawed implementation.
// Returns TRUE if [ptr] points to at least [len] bytes of valid memory in the
// address space of the ... |
/* See LICENSE file for copyright and license details. */
#include "SDL_image.h"
#include "data_structures.h"
#include "config.h"
#include "file_io.h"
#include "sdl.h"
int sdl_clear( SDL_POINTERS * sdl_pointers ) {
int ret_val = 0;
/* '128' is for R,G,B, respectively. */
int temp = SDL_SetRen... |
/*
Rate-limit/throttler: stops us from transmiting too fast.
We can send packets at millions of packets/second. This will
melt most networks. Therefore, we need to throttle or rate-limit
how fast we go.
Since we are sending packet at a rate of 10-million-per-second, we
the calculations need t... |
#include "stdint.h"
#include "string.h"
#include "stdio.h"
static char *_val_for_vid(uint32_t *nodes, uint32_t *kids, uint32_t vid, char *rval) {
char *curr = rval;
uint32_t node = nodes[vid];
uint32_t kid_offset = (uint32_t )0x00ffffff & node;
uint32_t parent = kids[kid_offset++];
if (parent) {
... |
/**
* \file file.c
*
* Handle options that have file names for arguments.
*
* @addtogroup autoopts
* @{
*/
/*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
* AutoOpts is Copyright (C) 1992-2014 by <NAME> - all rights reserved
*
* AutoOpts is available under any o... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef __APPLE_
#include <Opencl/opencl.h>
#include <unistd.h>
#else
#include <CL/cl.h>
#endif
#include "err_code.h"
#ifndef DEVICE
#define DEVICE CL_DEVICE_TYPE_DEFAULT
#endif
extern double wtime();
extern int output_device_info(cl_device_id);
#define T... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
// Assert
#include <libport/libport.h>
#include "ipv4.h"
#include "util.h"
#include "udp.h"
#include "tcp.h"
#include "ethernet.h"
#include "arp.h"
bool ip_equals__buf_u8(const uint8_t ip_buf[IPv4_ADDR_SIZE], uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3) {... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// - <NAME> - 6/24/2020 - University of Cambridge
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// File: vmm.c
/... |
/*---------------------------------------------------------------------------------------------------------------------------------------------------
* zxkbd.c - ZX keyboard functions
*-----------------------------------------------------------------------------------------------------------------------------------... |
/* $OpenBSD: sthen $ */
/*
* Copyright (c) 2005 <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... |
/*
* 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 wr... |
#include "graph_defs.h"
#include "balloon.h"
#include "prefetcher.h"
typedef struct scc2_metadata_st {
unsigned long forward_label;
unsigned long backward_label;
volatile unsigned long queue_next;
char touched;
} scc2_metadata_t;
static volatile unsigned long queue_head = ULONG_MAX;
static volatile unsigned l... |
// Copyright 2021 <NAME>
// SPDX-License-Identifier: Apache-2.0
#include <inttypes.h>
#include <stdio.h>
#include <time.h>
#include "client/api/v1/get_message.h"
static char const *const mainnet_hrp = "iota";
void hex_ed25519_2_bech32(char hex_ed25519[], char const hrp[], char bech32[]) {
byte_t tmp_addr[IOTA_ADD... |
/*
** Nofrendo (c) 1998-2000 <NAME> (<EMAIL>)
**
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of version 2 of the GNU Library General
** Public License as published by the Free Software Foundation.
**
** This program is distributed in the hope that it will be useful,... |
#include "Font.h"
#include "Ignis.h"
#define STBTT_malloc(x,u) ((void)(u),ignisMalloc(x))
#define STBTT_free(x,u) ((void)(u),ignisFree(x))
#define STB_TRUETYPE_IMPLEMENTATION
#include "stb/stb_truetype.h"
int ignisCreateFont(IgnisFont* font, const char* path, float size)
{
return ignisCreateFontConfig(font, pat... |
/*
* disk/skaermtrolden_hugo.c
*
* Custom format as used by Skaermtrolden Hugo by Silverrock Productions.
*
* Written in 2014 by <NAME>
*
* RAW TRACK LAYOUT:
* u32 0x44894489|0x89448944 :: Sync (even|odd tracks)
* u32 csum (ADD.L checksum over data)
* u32 disk_nr
* u16 track_nr,track_nr
* u32 data[5940... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.