text stringlengths 3.12k 18.7k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
#include <string.h>
#include "../io/ast_writer.h"
#include "../util/free_ast.h"
#include "../util/copy_ast.h"
#include "../io/ast_reader.h"
#include "test_str_ast.h"
//const
void test_serialize_int_const();
void test_serialize_hex_const(... |
/*
* asmheader.c
* Lets's Build a Compiler
* This support code creates an executable binary on OS X
* It exits with the final ax value in the program's exit code
* Use 'echo $?' after running the program to view the exit code from the command line
*
* Created by <NAME> on 12/4/09.
* Copyright 2009 Harmon... |
/****************************************************************************
* examples/bridge/host_main.c
*
* Copyright (C) 2014 <NAME>. All rights reserved.
*
* Authors: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
//*****************************************************************************
//
// adc - Analog to Digital converter drivers
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY A... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Author:: Couchbase <<EMAIL>>
* Copyright:: 2018 Couchbase, Inc.
* License:: Apache License, Version 2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
/*
Author: <NAME>
C Program for Assembly Line Scheduling (Dynamic Programming).
Consider two assembly lines 'A' and 'B'
numbered from 'A1 to An' and 'B1 to Bn' respectively.
'In1' and 'In2' are two possible where an objects enters
and 'Out1' and 'Out2' are two exits after assembling parts.
... |
/*
* echo_test.c
*
* Created on: Oct 4, 2014
* Author: etsam
*/
/*
* Test application that data integraty of inter processor
* communication from linux userspace to a remote software
* context. The application sends chunks of data to the
* remote processor. The remote side echoes the data back
* to app... |
/*
* scommon.c
*
* Common stuff
*
* Copyright (c) 2015-2019 <NAME>. All rights reserved.
* Released under the BSD 3-Clause License (see the doc/LICENSE)
*/
#include "scommon.h"
#define D8_LE_MASK S_NBITMASK(8 - D8_LE_SHIFT)
#define D16_LE_MASK S_NBITMASK(16 - D16_LE_SHIFT)
#define D24_LE_MASK S_NBITMASK(24 - D... |
#include <assert.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "Script_parse.h"
#include "Lyric_storage.h"
#ifdef S_SPLINT_S
//Ensure Splint checks the code for EOF's code base
#define EOF_BUILD
#endif
#ifdef USEMEMWATCH
#ifdef EOF_BUILD //In the EOF code base... |
/*
* Copyright (c) 2019 HAW Hamburg
*
* 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 sys_clif
* @{
*
* @file
* @brief CoRE Link format encoding and decoding li... |
#include <stdbool.h>
#include <float.h>
#include <stdlib.h>
#include "../c_lib/SerialIO.h"
#include "../c_lib/Timing.h"
#include "../c_lib/Encoder.h"
#include "../c_lib/Battery_Monitor.h"
#include "../c_lib/Filter.h"
#include "../c_lib/MEGN540_MessageHandeling.h"
#include "../c_lib/MotorPWM.h"
// timer for power off
... |
/*
===============================================================================
LCD HD44780 driver: c file
===============================================================================
* @date 2-Feb-2016
* @author <NAME>
*/
#include "stm32l1xx_liquid_crystal.h"
/* Private variable */
static _lcd_op... |
/*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
* http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
*
* Software distri... |
/*
* Copyright 2020 WolkAbout Technology s.r.o.
*
* 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <aos/aos.h>
#include <aos/morecore.h>
#include <aos/paging.h>
#include <aos/waitset.h>
#include <aos/aos_rpc.h>
#include <mm/mm.h>
#include <grading.h>
#include <aos/core_state.h>
#include <aos/systime.h>
#include <aos/deferred.h>
#include <aos/waitset.h>
#include <spa... |
#include "etcutils.h"
VALUE rb_cGroup, rb_cGshadow;
#ifdef HAVE_PUTGRENT
static VALUE group_gr_put(VALUE self, VALUE io)
{
struct group grp;
VALUE path;
#ifdef HAVE_FGETGRENT
struct group *tmp_grp;
long i = 0;
#endif
Check_EU_Type(self, rb_cGroup);
Check_Writes(io, FMODE_WRITABLE);
path = RFILE_PATH(io... |
/* $Id: klgraph_hack.c,v 1.1.1.4 2003/10/14 08:07:22 sparq Exp $
*
* 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.
*
* Copyright (C) 1992 - 1997, 2000-2002 Silicon Graphics, Inc. All rights re... |
/**
* \file
*
* \brief Common Sensor Service Light and Proximity Sensor Example
*
* Copyright (C) 2012-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 ... |
/*
Compare two JPEG images. Several methods are available. PSNR, SSIM,
and MS_SSIM require the images to be exactly the same size, while
FAST works on any sized image.
FAST compares two images and returns the difference on a
scale of 0 - 99, where 0 would mean the images are identical. The
comp... |
/**
* \file
*
* \brief Common Sensor Service Light/Proximity Sensor Wake Event Example
*
* Copyright (C) 2012-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 th... |
/*
* esc.c - Patch the OS with escape sequences
*
* Copyright (c) 1995-1998 <NAME>
* Copyright (c) 1998-2008 Atari800 development team (see DOC/CREDITS)
*
* This file is part of the Atari800 emulator project which emulates
* the Atari 400, 800, 800XL, 130XE, and 5200 8-bit computers.
*
* Atari800 is free softw... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
unsigned char GetByte(const char data[])
{
unsigned char byte = 0;
const char* end = data + 8;
for (; *data && (data < end); ++data)
{
byte <<= 1;
byte |= (*data == '1') ? 1 : 0;
}
return byte;
}
char* GetBits(unsigned cha... |
// Copyright (c) 2019-2022 Qinglong<<EMAIL>>
//
// 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 <u.h>
#include <9pm/libc.h>
#include <9pm/libg.h>
#define PJW 0 /* use NUL==pjw for invisible characters */
enum
{
/* starting values */
LOG2NFCACHE = 6,
NFLOOK = 5, /* #chars to scan in cache */
NFCACHE = ((1<<LOG2NFCACHE)+NFLOOK), /* #chars cached */
/* max value */
MAXFCACHE = (1<<16)+NFL... |
#include <stdio.h>
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#define MAX_ERROR 128
int total_frame = 0;
int total_key = 0;
void decode_video_file(const char *video_path, int keyframe);
int decode_packet(AVCodecContext *codec_ctx, AVPacket *packet, AVFrame *frame);
int open_video_codec(AVForma... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include<stdlib.h>
#include<stdio.h>
#include<dirent.h>
#include<string.h>
#include<openssl/evp.h>
#define BUFSIZE 4096
typedef struct FileInfo {
char *filename;
unsigned long size;
char *hash;
struct FileInfo *next;
} FileInfo;
typedef struct FileInfoList {
struct FileInfo *head;
} FileInfoList... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define thisprog "xe-O2-readmed2"
#define TITLE_STRING thisprog" v 4: 12.June.2018 [JRH]"
#define MAXLINELEN 1000
#define MAXLABELS 1000
/*
<TAGS> O2 file </TAGS>
v 4: 12.June.2018 [JRH]
- bugfix - should not assume 5 data po... |
/*
* Copyright (C) 1999 <NAME>
* <<EMAIL>>
* <<EMAIL>>
* Copyright (C) 2010 elsamuko
*
* 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 versio... |
#include "app.h"
#include "ev3api.h"
#include <math.h>
#include <stdbool.h>
#include <string.h>
#include <t_stddef.h>
#include <t_syslog.h>
#define MOTOR_GEAR_RATIO 5
const motor_port_t MOTOR_PORT = EV3_PORT_A; //Which port is the motor on
const sensor_port_t PIXY_PORT = EV3_PORT_1; //Which port is the pixy cam on
//... |
/*!
#
# Copyright (c) 2012 <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:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... |
#include "tcpi.h"
#include "drp.h"
#define CMD "dst host 172.16.17.32 and ip[9:1] == 89" /* The OSPF protocol is 89,
class D addr is 172.16.17.32 */
int linktype;
ospf_stat_t ospfstat = DOWN;
int sendfd;
struct sockaddr_in sasend;
struct in_addr recvaddr;
struct... |
/*
* Copyright 2020 Comcast Cable Communications Management, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/*
* Copyright 2017-2021 Matt "MateoConLechuga" Waltz
*
* 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 <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "page_table_driver.h"
int fd;
// Obtain my cr3 value (a.k.a. PML4 table physical address)
uint64_t get_cr3_value()
{
struct ioctl_arg cmd;
int ret;
c... |
/*
FreeRTOS.org V5.3.0 - Copyright (C) 2003-2009 <NAME>.
This file is part of the FreeRTOS.org distribution.
FreeRTOS.org is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License (version 2) as published
by the Free Software Foundation and modified by th... |
/**
* Selftest. To be run for every commit.
*/
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <ZeroTierSockets.h>
#pragma GCC diagnostic ignored "-Wunused-value"
int random32() {
const int BITS_PER_RAND = (int)(log2(... |
/* ----------------------------------------------------------------------
MR-MPI = MapReduce-MPI library
http://www.cs.sandia.gov/~sjplimp/mapreduce.html
<NAME>, <EMAIL>, Sandia National Laboratories
Copyright (2009) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporat... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*
*/
//
//
//
#include <assert.h>
#include <memory.h>
#include "runtime_cl_12.h"
#include "scheduler.h"
//
//
//
#ifndef NDEBUG
#include <stdio.h>
#define SKC_SUBALLOCATOR... |
/**
* Copyright (c) 2010 <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, ... |
#include "wavfile.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int is_equal_char_arr(const char* arr, const char* reference, const uint32_t length) {
uint32_t ii;
for (ii = 0; ii < length; ++ii) {
if (arr[ii] != reference[ii]) return 0;
}
return 1;
}
int is_valid_header(const WAVEHeader header)... |
/* UTF-7 stream encoder and decoder written in ANSI C
* This is free and unencumbered software released into the public domain.
*
* To avoid any dependence on the character set or locale used by the
* compiler, this source file must not use any character or string
* literals. Everything is hard-coded to ASCII, as ... |
#include <stdint.h>
#include <string.h>
#include "address.h"
#include "utils.h"
#include "params.h"
#include "hash.h"
#include "sha256.h"
#if SPX_N==32
#define SPX_SHAX_OUTPUT_BYTES SPX_SHA512_OUTPUT_BYTES
#define SPX_SHAX_BLOCK_BYTES SPX_SHA512_BLOCK_BYTES
#define shaX_inc_init sha512_inc_init
#define shaX_inc_block... |
//
// SpookyHash: a 128-bit noncryptographic hash function
// By <NAME>, public domain
#include "SpookyHash.h"
#define OVS_SPOOKY_ALLOW_UNALIGNED_READS 1
// size of the internal state
#define OVS_SPOOKY_BLOCK_SIZE (OVS_SPOOKY_NUM_VARS * 8)
// size of buffer of unhashed data, in bytes
#define OVS_SPOOKY_BUFFER_SIZ... |
/*
* 0BSD
*
* BSD Zero Clause License
*
* Copyright (c) 2019 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR... |
/*
* inverted index
*/
#include <sys/time.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <dirent.h>
#include <errno.h>
#include <pthread.h>
#include <ctype.h>
#include <as... |
/*
* Header file of Pure API function declarations.
*
* Explicitly no copyright.
* You may recompile and redistribute these definitions as required.
*
* NOTE1: In some situations when compiling with MFC, you should
* enable the setting 'Not using precompiled headers' in Visual C++
* to avoid a com... |
#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 <assert.h>
#include <stdio.h>
#include <SDL2/SDL.h>
#define WINDOW_WIDTH 576
#define WINDOW_HEIGHT 768
#include "game.h"
static void OnFixedUpdateBackground(GameNode *node, void *data, float delta) {
// TransformComponent *transform = GetGameNodeComponent(node, TransformComponent);
// transform->tran... |
/*
* $Id: gifdecode.c,v 1.1.1.1 1996/02/14 13:10:25 mclareni Exp $
*
* $Log: gifdecode.c,v $
* Revision 1.1.1.1 1996/02/14 13:10:25 mclareni
* Higz
*
*/
/*CMZ : 1.23/06 30/11/95 10.45.47 by O.Couet*/
/*-- Author : O.Couet 30/11/95*/
#include <stdio.h>
#include <string.h>
#define BITS ... |
/** ffos: timer
2020, <NAME>
*/
/*
fftimer_create
fftimer_close
fftimer_start
fftimer_stop
fftimer_consume
*/
#pragma once
#include <FFOS/queue.h>
#ifdef FF_WIN
/*
A timer must be started within a separate thread, which sleeps in an alertable state to process timer events.
From this thread a message to kernel queu... |
/**
******************************************************************************
* @file stm32l4xx_hal_msp.c
* @author MMY Application Team
* @brief HAL MSP module.
******************************************************************************
*@attention
*
* <h2><center>© Copyright... |
/*
** Zabbix
** Copyright (C) 2001-2015 Zabbix SIA
**
** 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 pro... |
/*
* code stolen from openGL-RPi-tutorial-master/encode_OGL/
* and from OpenGL® ES 2.0 Programming Guide
*/
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <sys/time.h>
//#include "jpeg.h"
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
// from esUtil.h
#define TRUE 1
#defi... |
// XXX: These functions are a bit brittle in terms of argument checking.
#include "common.h"
#include <malloc.h>
#include <GL/gl.h>
#include <GL/glu.h>
#define MT_NAME "cmesh"
typedef struct {
double x;
double y;
double z;
} vertex;
typedef struct {
double x;
double y;
double z;
} normal;
typedef ... |
#include "types.h"
#include "param.h"
#include "defs.h"
#include "spinlock.h"
#include "sleeplock.h"
#include "file.h"
#include "fs.h"
#include "mmu.h"
#include "x86.h"
#include "proc.h"
#include "memlayout.h"
#define T_DIR ((1))
void
procfs_ipopulate(struct inode* ip)
{
ip->size = 0;
ip->flags |= I_VALID;
/... |
/*******************************************************************************/
/* Copyright (C) 1994 - 2021, Performance Dynamics Company */
/* */
/* This software is licensed as described in the file COPYING, which ... |
// File Name: csim.c
// Description: cache_t simulator, takes a valgrind memory trace as input,
// simulates the hit/miss behavior of a cache memory on this trace,
// and outputs the total number of hits, misses, and evictions.
// Author: <NAME> (519021910529, <EMAIL>)
#define _GNU_SOURCE
#... |
//Este es un comentario
//Bits de configuracion o directivas de preprocesador
#pragma config PLLDIV = 1 // PLL Prescaler Selection bits (No prescale (4 MHz oscillator input drives PLL directly))
#pragma config CPUDIV = OSC2_PLL3// System Clock Postscaler Selection bits ([Primary Oscillator Src: /2][96 MHz PLL ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* File Name : freertos.c
* Description : Code for freertos applications
******************************************************************************
* @attention
*
* <h... |
#include "unit.h"
#include "data-processor.h"
#define VERSION_LABEL "2.1.1"
// Colour code definitions to make the output all pretty.
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KW... |
/*******************************************************************************
* Poseidon is used to hash to a field in the schnorr signature scheme we use.
* In order to be efficiently computed within the snark, it is computed using
* the base field of the elliptic curve, and the result is then used as a
* scala... |
/*
* $Id: toolPalette.c,v 1.4 2005/01/01 15:27:54 baum Exp $
*
* This file implements the toolPalette widget which is a combination of the
* gtk toolPalette widget (TODO? and the gtk frame widget?)
*
* Copyright (c) 2001 - 2005 <NAME> http://www.dr-baum.net
*
* See the file "license.terms" for information on u... |
/*-
* Copyright (c) 2017 <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 and... |
#define _POSIX_C_SOURCE 200901L
#include <signal.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <err.h>
#include <getopt.h>
#include <stdbool.h>
#include <sys/ioctl.h>
#include <wchar.h>
#include <locale.h>
#include "../common/utils.h"
#define ADDITIONAL... |
#include "read_conf.h"
char PATH_KEY[5] = "path\0";
char ENDPOINT_KEY[9] = "endpoint\0";
char UNAME_KEY[9] = "username\0";
char PSWD_KEY[9] = "password\0";
char FILE_KEY[11] = "file_types\0";
char* seek_keys(char *str) {
char *key = 0;
if (str == NULL) {
return key;
}
if (strncmp(str, PATH_KEY, 4) == 0) {
r... |
/*
****************************************
ANT_SHELL short for antecedent shell
************************************
-I have used '&&' to add two commands in one input line
-example:
ls > file && cat < file
OR
ls && ls -l
-I have used built in functions like cd, help, exit, and umask
... |
#include "types.h"
#include "stat.h"
#include "user.h"
#include "math.h"
#include "fcntl.h"
#include "common.h"
char *layer_names[3] = { "I", "II", "III" };
int bitrate[3][15] = {
{0,32,64,96,128,160,192,224,256,288,320,352,384,416,448},
{0,32,48,56,64,80,96,112,128,160,192,224,256,320,384},
{0,32,40,48,56,64,80,96... |
/* stubs.c
*
* A file to generate the assembler and c stubs because the MIPS
* assembler is defective and can't do it itself
*
* $Log: stubs.c,v $
* Revision 1.6 1998/05/20 15:15:27 jont
* [Bug #70035]
* Add stubs_code_start, stubs_code_end, stubs_data_start, stubs_data_end
*
* Revision 1.5 1997/05/30 09:... |
/*
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2004-May-22 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, both of these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.info-zip.... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <syslog.h>
#include <errno.h>
#include <string.h>
#include <mqueue.h>
#include "UUGear.h"
#define SOCKET_FILE_PATH "/tmp/uugear_socket_broker.sock"
#define SOCKET_FILE_PERM "0666"
#define LISTEN_BACKLOG ... |
/*
Copyright 2013-2016 by <NAME>
All rights reserved.
This software is made available under the terms of the
ICU License -- ICU 1.8.1 and later.
See the LICENSE file at the top-level directory of this distribution and
at https://sourceforge.net/p/dps8m/code/ci/master/tree/LICENSE
*/
// Multics file command. T... |
/*
* Microwindows touch screen driver for NEC Harrier Demo Board.
*
* Copyright (c) 2000 Century Software Embedded Technologies
*
* Requires /dev/tpanel kernel device driver for the VRC4173 chip
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
... |
/*
* Copyright (c) 2021 HopeBayTech.
*
* This file is part of Tera.
* See https://github.com/HopeBayMobile for further info.
*
* 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
*
* ... |
/* t-version.c - Check the version info function
* Copyright (C) 2013 g10 Code GmbH
*
* This file is part of libgpg-error.
*
* libgpg-error is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either ... |
/* $NetBSD: lockd.c,v 1.7 2000/08/12 18:08:44 thorpej Exp $ */
/* $FreeBSD: src/usr.sbin/rpc.lockd/lockd.c,v 1.18 2004/07/16 19:30:59 mr Exp $ */
/*
* Copyright (c) 1995
* <NAME> (<EMAIL>). All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
/*
* lar - Lua Archive Library
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* 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
*
* ... |
/*
* Copyright (c) 2013, IHMC
* 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 and t... |
//*******************************************************************
//Author: <NAME>
//*******************************************************************
#include "PRCv17.h"
#include "PRCv17_RF.h"
#include "mbus.h"
#include "HRVv5.h"
// TStack order PRC->HRV
#define HRV_ADDR 0x3
#define MBUS_DELAY 100 // Amount o... |
/**************************************************************************
*
* Copyright 2009 <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 ... |
#include <stdint.h>
#include <graphx.h>
#include <debug.h>
#include "menus.h"
#include "utils.h"
#include "key.h"
#include "defines.h"
#include "loader.h"
#define MAX_PACK 7
void draw_main_menu();
bool update_main_menu();
void show_danger_zone();
void draw_stats_menu();
bool update_stats_menu();
/*************
*... |
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License ve... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <dlfcn.h>
#include <assert.h>
#include "libretro.h"
#include "retrocore.h"
#include "retrocore_internal.h"
#include "retrocore_env.h"
static struct retrocore *pRunningCore = NULL;
static int populateCore(retrocore_core_t *pCCore,... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
#include "disassembler.h"
#include <stdio.h>
#include "ribbon_object.h"
#include "value.h"
#include "ribbon_utils.h"
// TODO: Add tests maybe?
static int single_operand_instruction(const char* name, Bytecode* chunk, int offset) {
int operand = chunk->code[offset + 1];
printf("%p %-28s %d\n", chunk->code + o... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
FILE *report_file, * raw_file;
char *temp_out[SUB_LENGTH];
char buf_read[ORD_LENGTH];
char buf_write[ORD_LENGTH];
char thick_line[] = "==========================================================================================";
char thin... |
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#include "pubnub_internal.h"
#include "core/pubnub_proxy_core.h"
#include "core/pbhttp_digest.h"
#include "lib/md5/pbmd5.h"
#include "core/pbmd5_to_str.h"
#include "core/pubnub_assert.h"
#include "core/pubnub_log.h"
#include "core/pubnub_generate_uuid.h"
... |
#include "test.h"
#include <cry/dsa.h>
static cry_dsa_ctx dsa;
static cry_dsa_sig sig;
static const unsigned char sha[] = {
0x97, 0x7f, 0x2b, 0x13, 0xa2, 0xc3, 0x46, 0x38,
0x23, 0x35, 0x95, 0x6e, 0xa6, 0xc7, 0x5a, 0xf1,
0xd0, 0x13, 0xad, 0xb4, 0x07, 0xa2, 0xa3, 0x30,
0x20, 0xa8, 0x5f, 0x18, 0x78, 0x9f... |
/*
* Copyright (c) 1996, 1998 by Internet Software Consortium.
*
* 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... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include "nrsrc/nr.h"
#include "nrsrc/nrutil.h"
#include "prototypes.h"
#include "globvars.h"
#ifdef T3E
typedef short int int4byte; /* Note: int has 8 Bytes on the T3E ! */
#else
typedef int int4byte;
#endif
struct io_header_1
{... |
/*
* @brief
*
* @note
* Author: Mikeqin Fengling.<EMAIL>
*
* @par
* This is free and unencumbered software released into the public domain.
* For details see the UNLICENSE file at the root of the source tree.
*/
#include <string.h>
#include "board.h"
#include "defines.h"
#include "libfunctions.h"
#include "s... |
#include <stdio.h>
#include <string.h>
char *show_address(unsigned short zone, unsigned short net,
unsigned short node, unsigned short point, char *domain)
{
static char str[100];
char tmpstr[10];
*(str) = '\0';
if (zone != 0)
{
sprintf(tmpstr, "%hd:", zone);
st... |
/*
Copyright (c) 2013, <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 copyright notice,
this list of conditions and the following disclaime... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/*
The MIT License (MIT)
Copyright (c) 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, publis... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* sha_tests.c :+: :+: :+: ... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2009 coresystems GmbH
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published... |
/**************************************************************/
/* Sending TCP segments using RAW sockets -- Proof of concept */
/* <NAME> - 20020730 */
/**************************************************************/
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.... |
#include <dev/vga.h>
#include <util/io.h>
#include <stdbool.h>
#include "ide.h"
#define IDE_PORT_PRIMARY 0x1f0
#define IDE_PORT_SECONDARY 0x170
// typedef enum drv_type_t {
// ATA_NA,
// ATA_ATAPI,
// ATA_PATA,
// ATA_SATA
// } drv_type_t;
// static char const *drv_type_names[] = {
// "Unknown",
// "ATAPI",
//... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#if 1
typedef unsigned char byte;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
#endif
typedef unsigned short word;
u64 w4_rand64()
{
u64 li;
li=rand();
li=(li*65521)+rand();
li=(li*65521)+rand... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.