text
stringlengths
3.12k
18.7k
/* * Copyright 2013-2017 Guardtime, Inc. * * This file is part of the Guardtime client SDK. * * 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/LICENS...
#include <common.h> #include <device/usb.h> #include <device/usb/uhci.h> #include <device/pci.h> #include <chicken/time.h> #include <kernel/hw.h> #include <mm/vm.h> #include <stdio.h> #include <kernel/memory.h> #include <mm/liballoc.h> #define PIIX3_USB 0x7020 #define UHCI_IO_USBCMD 0x00 #define UHCI_IO_USBSTS 0x...
#include "libvpp/vff.h" #include "tock.h" #include "libvpp/nvm.h" size_t size_hdr = 122; static void* root_ptr = NULL; // Firmware Header used for Testing __attribute__ ((unused)) uint8_t fw_hdr1[90]={ 0xa3, 0x97, 0xa2, 0x55, 0x53, 0xbe, 0xf1, 0xfc, 0xf9, 0x79, 0x6b, 0x52, 0x14, 0x13, 0xe9, 0xe2, 0x2d, 0x...
/******************************************************************************* * Global Descriptor Table ******************************************************************************/ #include <x86/gdt.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include <stdbool.h> typedef struct { // ac:...
const char cmd_on[] = "on"; const char cmd_off[] = "off"; const char cmd_all[] = "all"; const char cmd_login_1[] = "login"; const char cmd_login_2[] = "l"; const char cmd_threads_1[] = "threads"; const char cmd_threads_2[] = "t"; const char cmd_threads_sub[] = "sub"; const char cmd_threads_kill_1[] = "kil...
// Simple PIO-based (non-DMA) IDE driver code. #include <xv6/types.h> #include <xv6/defs.h> #include <xv6/param.h> #include <xv6/memlayout.h> #include <xv6/mmu.h> #include <xv6/proc.h> #include <xv6/x86.h> #include <xv6/traps.h> #include <xv6/spinlock.h> #include <xv6/vfs.h> #include <xv6/buf.h> #include <xv6/device.h...
/* * Copyright (c) 2018 <NAME> (6e726d) * * 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, pub...
#include "ac_allocator.h" #include "ac_in.h" #include "ac_out.h" #include <inttypes.h> #include <stdio.h> #include <string.h> typedef struct { int32_t user_id; int32_t item_id; int32_t rating; int32_t date; } entry_t; size_t split_by_user(const ac_io_record_t *r, size_t num_part, void *tag) { entry_t *entr...
#include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <stdio.h> #include <stdlib.h> #include "maze.h" #include "mouse.h" // Global variables // NOTE: not all constant; some of these get updated if window is resized const int INIT_WIDTH = 640; // Initial screen width (pixels) const int INIT_HEIGH...
/* * Copyright 2019 <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 * * Unless required by applicable law or ...
// MBED OS #include "cmsis_os2.h" // HYPERBUS CMSIS driver #include "hyperbus_api.h" #define BUFFER_SIZE 128 #define RXTX_ADDR 0x1000 #define MAN_ID 0xC2 #define MEM_TYPE 0x80 #define MEM_DENSITY 0x3A #define OCTO_SPI 0x0 #define QUAD_SPI 0x1 #define SINGLE_SPI 0x2 #define OSPI_ST...
/** * Copyright (C) Mellanox Technologies Ltd. 2020. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "vfs_daemon.h" #include <sys/wait.h> #include <limits.h> #include <assert.h> #include <ctype.h> vfs_opts_t g_opts = { .action = VF...
/** * Absrtact DC Drive Project. Master Part * * make PROFILE=release LOG=1 tidy all * make PROFILE=debug LOG=1 tidy all */ #include "common_defs.h" #include "can.h" #include <abstractSTM32.h> #include <abstractADC.h> #include <abstractLOG.h> #include <abstractCAN.h> #include <abstractLCD.h> #include <libopencm3...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* plugins/preauth/test/cltest.c - Test clpreauth module */ /* * Copyright (C) 2015, 2017 by the Massachusetts Institute of Technology. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are p...
/** @file mlan2040misc.c * * @brief This file contains helper functions for coex application * * * Copyright 2014-2020 NXP * * This software file (the File) is distributed by NXP * under the terms of the GNU General Public License Version 2, June 1991 * (the License). You may use, redistribute and/o...
#include "assolo_rcv.h" #include <math.h> extern void sig_alrm(int signo); /* recording contents of packet. Using inline to make code run faster */ inline void update_info(u_int32_t nc,u_int32_t np,double snd_time,double rcv_time,u_int32_t pkt_req_num,int good_jumbo_pkt) { packet_info[num_pkts_in_info].chirp_num=...
void hexDump(char *, uint16_t); void initEEPROM(); void readEEPROM(char *, uint8_t, uint16_t); void setDevEUI(char *, char *); void initBLE(); void ble_connect_callback(uint16_t); void ble_disconnect_callback(uint16_t, uint8_t); void handleBleuartRx(); void handleCommands(); void readInfo(char *, char *); uint16_t read...
/* run_avr.c Copyright 2008, 2010 <NAME> <<EMAIL>> This file is part of simavr. simavr is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
/* * Copyright (C) 2016 YunOS Project. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
/*- * Copyright (c) 2014-2018 <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 source code must retain the above copyright * notice, this list ...
/**************************************************************************** http://retro.moe/unijoysticle2 Copyright 2021 <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.ap...
/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora 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.tizenopensource.org/license * * Unless required by applicable law or ...
/** * "dmm.h" */ /* to use linux hashtable */ #include <linux/hashtable.h> #include <linux/spinlock.h> #include <asm/pgtable.h> /* hashmap follows the instructions of https://lwn.net/Articles/510202/ */ DEFINE_HASHTABLE(dmm_hashtable, 16); /** * name: dmm_hashtable * bits: 2**bits is the largest size of pr...
//<NAME> 201350472 #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<unistd.h> float determinant(float f[20][20],int x); double solution(float ar[20][20],int n); int i,j,k,n,input=0,found; char ch; float ar[20][20]={0},arr[20][20]={0},c,Sol[10],sum=0.0; float determinant(float f[20][20],in...
/*########################################################################## A lot of code from <NAME> http://www.brackeen.com/home/vga/ Sprite compiler and bliter from xlib Please feel free to copy this source code. ################################...
/* lfpsplitter - Splits the .lfp files generated by Lytro's desktop app into * .jpg and .txt files in a hopefully platform independent way * * Copyright (c) 2011, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provi...
/* * 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 <stdint.h> #include <string.h> /** ** @brief interpret string @a lbuf as a sequence of numbers ** represented with @a base ** ** @return a newly allocated array of numbers as found in @a lbuf ** @param lbuf is supposed to be a string ** @param np if non-null, the c...
#include "stm32f10x.h" #include "stm32f10x_exti.h" #include "stm32f10x_gpio.h" #include "stm32f10x_usart.h" #include "stm32f10x_rcc.h" #include "misc.h" /* function prototype */ void RCC_Configure(void); void GPIO_Configure(void); void EXTI_Configure(void); void USART1_Init(void); void NVIC_Configure(void); void EX...
#include <stdio.h> #include <string.h> #include <stdbool.h> #include "protocol.h" #include "datalink.h" #define DATA_TIMER 2000 #define MAX_SEQ 15 #define MAX_WINDOW_SIZE 16 #define NR_BUFS (MAX_WINDOW_SIZE) /2 bool no_nak = true; bool arrive[NR_BUFS]; int phl_ready = 0; struct FRAME { un...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* log.c */ /* * log.c * For !OWW project * One-wire weather * Dr. <NAME> * August - December 1999 * Free for non-comercial use * Dallas parts subject to their copyright and conditions * */ /* Log-keeping functions */ /* Platform-independent */ #include <stdlib.h> #include <stdio.h> #include <string.h> #inc...
/***************************************************************************/ /* Digital Image Processing (2017) */ /* Homework 1 */ /* Author: <NAME> */ /* Student ID: ...
#include <stdio.h> #include "main.h" bool save(int slot){ FILE *fp; // file for saving too char tmp[80]; sprintf(tmp, "savedata%d.txt", slot); fp = fopen(tmp, "w+"); // header fputc('S', fp); fputc(slot, fp); // save type -- (S)elf (G)enerated (F)ile version (1) // asterisk may ...
/** * @file init_phmm.c * * <JA> * @brief %HMM 定義ファイルおよびHMMListマッピングファイルのメモリ読み込みと初期化 * </JA> * * <EN> * @brief Load %HMM definition file and HMMList mapping file into memory and set it up. * </EN> * * @author <NAME> * @date Tue Feb 15 23:05:33 2005 * * $Revision: 1.8 $ * */ /* * Copyright (c)...
/* * Multi2Sim * Copyright (C) 2012 <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 by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ...
#include "Nbody_Programs.h" ////////////////////////////////////////////////////////////////// // Defining global variables declared in extern NbodyPrograms /////////////////////////////////////////////////////////////////// Particles *Particlesptr1; int Ntotal; io_encabezado encabezado; ////////////////////////////...
/* Test program for bfloat16 of AVX 512 registers. Copyright 2020-2021 Free Software Foundation, Inc. This file is part of GDB. 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...
#include "libcurl_async.h" /** * :l_pushtablestring * Pushes key, value pairs to lua stack */ void l_pushtablestring(lua_State* L , char* key , char* value) { lua_pushstring(L, key); lua_pushstring(L, value); lua_settable(L, -3); } /** * :l_pushtablenumber * Pushes key, number pairs to lua stack */ ...
#include "cairo.h" #include "swaylock.h" #include "loop.h" #include <sys/param.h> #include <sodium.h> #include <fcntl.h> char *digits[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "", "0" }; char * backspace = "⌫"; char * submit = "\u263a"; char entered_pin[24] = { '\0' }; /* these numbers are...
/* $OpenBSD: dz_fwio.c,v 1.2 2008/08/24 14:49:35 miod Exp $ */ /* * Copyright (c) 2008 <NAME>. * * 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. * ...
#include "connected_layer.h" #include "utils.h" #include "cuda.h" #include "blas.h" #include "gemm.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> connected_layer make_connected_layer(int batch, int inputs, int outputs, ACTIVATION activation, int verbose) { int i; connected_lay...
#include <stdio.h> #include <stdlib.h> #include <strings.h> #include <ctype.h> #define STR_TOKEN_CODE " => tokenCode = " #define STR_VALUE ", value = " #define CAN_READ_FILE (x = fgetc(input)) != EOF #define TOKEN_CODE_INT 40 #define TOKEN_CODE_FLOAT 41 #define TOKEN_CODE_STRING 42 #define TOKEN_CODE_VARIABLE 69 #de...
/* * Copyright 2016 Zealous Development Team. * * 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...
/****************************************************************************** Copyright 2020 Embedded Office GmbH & Co. KG 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 ...
// Include standard i/o library header file #include <stdio.h> // Include assert macro header file #include <assert.h> // Include and define the integer variable errno, which is set by system calls and some library functions in th event of an error to indicate what went wrong. #include <errno.h> // Include standard li...
#include "eq.h" #include "matrix.h" #define EPS 1e-15 double F_eq47(int fbi, int lu, int lv, int qu, int qv, double r, qmdata * qmd){ double au = qmd->afb[qu*qmd->nLo+lu].a; // TODO roots can be stored double av = qmd->afb[qv*qmd->nLo+lv].a; double cv = qmd->afb[qv*qmd->nLo+lv].c; double cu = qmd->afb[qu*qmd...
#include <stdio.h> #include <libavutil/log.h> #include <libavformat/avio.h> #include <libavformat/avformat.h> #ifndef AV_WB32 #define AV_WB32(p, val) do { \ uint32_t d = (val); \ ((uint8_t *)(p))[3] = (d); \ ((uint8_t *)(p))[2] = (d) >> 8; \ (...
#include "Transition.h" #include <stdio.h> /*#include <OSUtils.h> #include <Debugging.h> #include <DateTimeUtils.h> #include <LowMem.h> #include <TextUtils.h> #include <DrawSprocket.h> #include <Sound.h> //#include "CSB.h" */ #if TARGET_RT_MAC_MACH_O #include <DrawSprocket/DrawSprocket.h> #else #inclu...
/*** petscii2utf8 is a filter *** Copyright (c) 2019, <NAME>, Lund, Sweden *** All rights reserved. *** See LICENSE file. ***/ #include <stdio.h> #include <stdint.h> #include "utf8_encode.h" #include "catchkey.h" #include "petscii2utf8.h" int debug = 0; int main(int argc, char **argv) { if (argc >= 2 && argv[1]...
/* inotify_syscalls.c - native binding to inotify's syscalls Copyright (c) 2005-2011 <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 witho...
#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/select.h> #include "macros.h" #include "ftp.h" #include "utils.h" static URLPathData* resource_location; static int server_socket; static...
// // q2admin // // g_main.c // // copyright 2000 <NAME> // #include "g_local.h" #ifdef __GNUC__ #include <dlfcn.h> #elif defined(WIN32) #include <windows.h> #endif #ifdef __GNUC__ void *hdll = NULL; #ifdef LINUX #define DLLNAME "gamei386.real.so" #elif defined(LINUXAXP) #define DLLNAME "gameaxp.real.s...
/* * main routine for lsh * * $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef _MSC_VER // visual c++ #pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "user32.lib") #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #if defined(__CYGWIN__) || defined(LINUX) || defined(__MACH_...
/* * Eeprom emulation for KL2x chips. * (c) 2015 flabbergast * Most of the code is from PJRC/Teensyduino (license below) * * Notes: Some wear-levelling is done: * - emulating 128 bytes of eeprom; i.e. 7 bit "eeprom addresses" * - using 2048 bytes of flash * - new values are written consecutively into flash ...
/* * bundle * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, * <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 obta...
/*************** **** AST.H **** *************** * Author: <NAME> * * Questo header file contiene: * - Le definizioni delle strutture dati utili a costruire un AST * - Le dichiarazioni delle funzioni utili per gestire un AST * * Bibliography: * Lecture materials of FLC course, prof. F. Scioscia * "Flex &...
/** @file spinbody.h @brief Subroutines that control the integration of the N Body simulation @author <NAME> ([smotherh](https://github.com/smotherh/)) @date Feb 21 2017 */ // Option numbers #define OPTSTARTSPINBODY 1600 #define OPTENDSPINBODY 1700 #define OPT_POSITIONXSPINBODY 1610 #define OPT_POSITIONYSPINB...
#include "base.h" void handle(int fd); void *handle_wrapper(void *args); void read_requesthdrs(rio_t *rp); int parse_uri(char *uri, char *filename, char *cgiargs); void serve_static(int fd, char *filename, int filesize); void get_filetype(char *filename, char *filetype); void serve_dynamic(int fd, char *filename, cha...
/* * compat.h * Local prototype definitions for functions put together in this library. * We don't have the full OpenBSD system headers, so use this header file * to be a placeholder. */ /* Windows compatibility */ /* This is experimental * Windows compatbility headers */ #if defined __MINGW32__ || defined _MS...
/* Program ics660_timingseq */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdint.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #ifdef __QNX__ #include <devctl.h> #include <hw/inout.h> #include <sys/resource.h> #include <hw/pci.h> #endif #include "ics660b.h" #include "dds_def...
#include <stdio.h> #include "lua.h" #include "lauxlib.h" #include "compat-5.2.h" #define NUP 3 static int test_newproxy (lua_State *L) { lua_settop(L, 0); lua_newuserdata(L, 0); lua_newtable(L); lua_pushvalue(L, -1); lua_pushboolean(L, 1); lua_setfield(L, -2, "__gc"); lua_setmetatable(L, -3); return 2...
/* Implementação do jogo 2048 em C para Computação 1 (CC) Feito por : <NAME> DRE 120036072 <NAME> DRE 120036412 <NAME> DRE 120036373 */ #ifndef __NCURSES_H #include <ncurses.h> #endif #ifndef __STDLIB_H__ #include <stdlib.h> #endif #ifndef __STRING_H #include <string.h> #endif /* Importa todo...
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <locale.h> #include <langinfo.h> #include <stdint.h> #include <curl/curl.h> #include "bull_a.h" #include "ephutil.h" static const char astro_dir[] = ...
/* mbed Microcontroller Library ******************************************************************************* * (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2017 All rights reserved * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are...
#include <video.h> #include <errno.h> #include <stdio.h> #include <stdint.h> #include <signal.h> /** * Press CTRL-C to exit program * * gcc video_test.c -o vidtest -lvideo * **/ #define WHITE 0xFFFFFFFF #define BLACK 0xFF000000 #define YELLOW...
/*************************************************************************** * * * LIBDSK: General floppy and diskimage access library * * Copyright (C) 2001,2005 <NAME> <<EMAIL>> * * ...
#include "fileSystem.h" /* checks if file is already open*/ uint8_t file_open_bool = 0x0; /* holds all the dentries initialized on boot */ directory_entry_t* boot_dentries; /*points to where the boot_block is */ uint32_t boot_block_ptr; /* holds everything stored in boot_block */ boot_block_t boot_block; /* array of i...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "mcce.h" RES conflist; int load_conflist_dir(char *dir); int main(int argc, char *argv[]) { EMATRIX ematrix, ematrix2; int i, j, counter,args; struct stat buf; int...
#include <error.h> #include <stdlib.h> #include <assert.h> #include <getopt.h> #include <string.h> #include <stdbool.h> #include <stdarg.h> #include <stdint.h> #include <stdarg.h> #include <termios.h> #include <errno.h> #include <stdio.h> #include <unistd.h> #include <arpa/inet.h> #include <net/if.h> #include <sys/sock...
#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include "lpclib.h" #include "rs41.h" #include "rs41private.h" #include "reedsolomon.h" static const uint8_t bitreversal[256] = { 0x00,0x80,0x40,0xC0,0x20,0xA0,0x60,0xE0,0x10,0x90,0x50,0xD0,0x30,0xB0,0x70,0xF0, 0x08,0x88,0x48,0xC8,0...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "bf.h" #include "hash_file.h" #include "sht_file.h" #define RECORDS_NUM 10 // you can change it if you want #define GLOBAL_DEPT 1 // you can change it if you want #define PRIMARY_FILE_NAME "data.db" #define SECONDARY_FILE_NAME "Sec_...
/** * \brief Souce code file resource * * The file is part of CTX Fryer C target language libraries. * * \date 2012/07/03 * * \author <NAME> <<EMAIL>> * * Legal notices * * Copyright 2012 <NAME> * * CTX Fryer C library is free software: you can redistribute it and/or modify * it under the terms...
/** * @file */ /****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the acco...
#include<stdio.h> #include<stdbool.h> #include<stdlib.h> #include<stdint.h> #include<SDL.h> #include<SDL_ttf.h> #include<SDL_mixer.h> #include<time.h> //typedef struct Coors to save pair of Coordinates (x,y) typedef struct Coors { int x; int y; } Coors; //typedef struct Coors to save Coordinates (x,y) of fruits typ...
/**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 3 $ * $Date: 15/02/06 10:22a $ * @brief Show how to use the timer1 capture function to capture timer1 counter value. * @note * Copyright (C) 2013 Nuvoton Technology Corp. Al...
/****************************************************************************** @file dual_image_concept_img_b.c @brief This file contains the dual image concept sample application to demonstrate a proprietary image on a CC1350. Group: WCS, BTS Target Device: CC2650, CC2640, CC1350 *******************...
/** * @file mu_parse_url.c * * MIT License * * Copyright (c) 2020 <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...
#include "common.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <e-hal.h> #include <e-loader.h> #include <sys/types.h> #include <sys/mman.h> #include <fcntl.h> #include <unistd.h> #include <ctype.h> #include <err.h> #include <stdint.h> #include <assert.h> #define TAPS 64 // Epiphany system re...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* Shared library add-on to iptables to add geoip match support. * 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. ...
#include <fudge.h> #include <net.h> #include <abi.h> #include <socket.h> #define MAXSIZE 1200 #define BLOCKSIZE 512 #define OK 1 #define ERROR 0 struct state { unsigned int offset; unsigned int count; unsigned int blocksector; unsigned int blockoffset; unsigned int blockcount; unsigned int bl...
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #define NODES 1024 char *P; int Type[NODES], Value[NODES], Left[NODES], Right[NODES]; int Next = 1; int node(int t, int v, int l, int r) { if (Next >= NODES) { fprintf(stderr, "out of nodes\n"); exit(EXIT_FAILURE); } Type[Next] = t; Value[Next] = ...
/** * Copyright (C) 2019-2020 Tristan * For conditions of distribution and use, see copyright notice in the COPYING file. * */ #include "header_parser.h" #include "utils/util.h" #include "utils/encoders.h" #define _DEFAULT_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> /** Global Variables **...
// mktime.c #include <time.h> #include <errno.h> // struct tm zero year #define YEAR0 1900 extern const unsigned char __time_month_days[2][12]; /** Validate the tm structure The original values of the members tm_wday and tm_yday of struct tm are ignored, and the ranges of values for the rest of its members are not ...
#define _GNU_SOURCE #include <dlfcn.h> #include <stdio.h> //#include <math.h> #define xstr(s) str(s) #define str(s) #s // Algebraic functions static double (*real_sqrt)(double dbl); static float (*real_sqrtf)(float dbl); static double (*real_cbrt)(double dbl); static float (*real_cbrtf)(float dbl); static double (*re...
// main.c // Arquivo principal do aplicativo teditor.bin // O aplicativo é usado para testes do sistema operacional // Gramado 0.3. // #include "gfe.h" //#define TEDITOR_VERBOSE 1 #define GRID_HORIZONTAL 1000 #define GRID_VERTICAL 2000 //static int running = 1; int running = 1; // // ## Janelas ## // ...
#include <Support/String.h> #define ROTL64(x, y) (x << y) | (x >> (64 - y)) typedef struct String_Manager { char* buffer; size_t buffer_size; size_t buffer_capacity; String* set; size_t set_size; size_t set_capacity; U32 seed; } String_Manager; static String_Manager manager; static U64...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <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 Sof...
/******************************************************************************/ /* */ /* Copyright (c) 1990-2016, KAIST */ /* All rights reserved. ...
/* Copyright 2009 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* * JPEG.c * * Copyright (c) 2017-present, MacPaw Inc. All rights reserved. * * This library 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 * version 2.1 of the License, or (at ...
/* * 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...
/*D*********************************************************** * program: OUTstatkont * description: statistics about KONTINGENTE * * arguments: standard arguments * -c opt DLG_PART (cruise) Kreuzfahrt * * Copyright: yafra.org, Basel, Switzerland *********************************...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/utsname.h> #include <libintl.h> #include "gen.h" #include "main.h" #include "help.h" #include "utils.h" void new_version_alert(void) { char new_version = 0; FILE *fh = fopen(SPAM_FILE, "r"); if (!fh) new_version = 1; el...
#include "cal.h" #include "const.h" #include "error.h" #include "read_level1_qa.h" #include "local_defines.h" #define nint(A)(A<0?(int)(A-0.5):(int)(A+0.5)) /* Functions */ /* !Revision: * * NOTES: * 1. TOA radiance and reflectance equations for Landsat 7 are available in * http://landsathandbook.gsfc.nasa.gov...
#define _GNU_SOURCE #include <sched.h> #include <sys/socket.h> #include <sys/wait.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <sys/types.h> #include <netdb.h> #include <arpa/inet.h> #include "hwtimer.h" #define BACKLOG 50 #...
#define _XOPEN_SOURCE 700 #define __BSD_VISIBLE 1 #define _KERNEL #define _STANDALONE #define _WANT_UCRED #include <sys/cdefs.h> #include <sys/types.h> #include <sys/limits.h> #include <sys/param.h> #include <sys/kernel.h> //#include <sys/libkern.h> #include <sys/systm.h> #include <sys/sysproto.h> //#include <sys/unis...
#define _GNU_SOURCE #include <fcntl.h> #include <stdlib.h> #include <dlfcn.h> #include <stdio.h> #include <pthread.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <signal.h> #define SEQUITUR_VERSION "0.1" typedef union { struct{ ...
/** * @file iofunctions.c * @brief * * Copyright (C) 2009-2012 Gummi-Dev Team <<EMAIL>> * 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 * restric...