text
stringlengths
3.08k
10.5k
/** @file socket_helper.c * * Helper functions for the socket RPC protocol. * * Copyright 2009 <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.o...
/****************************************************************************** * @file: ssp_spi_noirq.c * @purpose: Example / test program for LPC11xx SSP interface * @version: V1.0 * @author: <NAME> * @date: 15. Januart 2012 * @license: Simplified BSD License * * Blinks an LED connected to pin 3.5 at 0...
#include <ncurses.h> #include <stdlib.h> #include <pthread.h> #include "Game.h" #include "../Client.h" // Map update time period struct timespec ts = {0, MILLION_50}; // must be equal to or a factor of server's update rate Coordinates snakeHead; int X_MAX, Y_MAX; char **map; bool gameRunning; const char *latestMessag...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <xf86drm.h> #include "dp_drm.h" #include "util.h" void device_init(struct device *dev, const char *path) { printf("opening device \"%s\"\n", path); dev->fd = open(path, O_RDWR | O_NONBLOCK | O_CLOEXEC); if (dev->fd < 0) { fa...
/* * (C) Copyright 2002 <NAME> <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * 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 ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "Forca.h" char palavrasecreta[TAMANHO_PALAVRA]; char chutes[26]; int chutesdados = 0; int letraexiste(char letra) { for(int j = 0; j < strlen(palavrasecreta); j++) { if(letra == palavrasecreta[j]) { return ...
/* Teensyduino Core Library * http://www.pjrc.com/teensy/ * Copyright (c) 2017 PJRC.COM, LLC. * * 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...
/** * @file * @brief Ping hosts by RARP requests/replies. * * @date 02.10.12 * @author <NAME> */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <arpa/inet.h> #include <net/util/macaddr.h> #include <net/l0/net_tx.h> #include <net/l2/...
/* Author: <NAME> (c) 1997 Multiple-precision subtraction. See "Handbook of Applied Cryptography" by <NAME> et al 14.2.2 Section pages 594 - 595. */ #include <assert.h> #include <mem.h> #include <stdio.h> #include <stdlib.h> #define BASE 10 typedef long * mp; void mp_set_length(long lengt...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <float.h> #include <xmmintrin.h> #include <sys/time.h> #define EPS 1E-6 enum { n = 1000003 }; void compute_sqrt(float *in, float *out, int n) { for (int i = 0; i < n; i++) { if (in[i] > 0) out[i] = sqrtf(in[i]); els...
/* * set of helper routines for building MPEG 1/2 PS/PES packets * * Copyright (C) 2006 <NAME> * * Based on code borrowed from vo_mpegpes/vo_dxr2: * (C) 2000 <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> * * This file is part of MPlayer. * * MPlayer is free software; you can redist...
/* * BoundaryScan.c * * Created on: Aug 14, 2019 * Author: user */ #include "BoundaryScan.h" #include "TAP.h" #include "global.h" #include "BSReg_Table.h" #include "myString.h" #include "jtagLowLevel.h" extern JTAGInstruction currentIR; extern TapState currentTapState; // reset the array to 0 void bSCInI...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "correlationSAPI.h" void random_data (double** data, uint64_t numTimeseries, uint64_t sizeTimeseries) { srand(time(NULL)); for (uint64_t i=0; i<numTimeseries; i++) { for (uint64_t j=0; j<sizeTimeseries; j++) { data[i][j...
/* pf.c - List processes that opened a certain file. * * This program takes a filename as its argument and then inspects the /proc * filesystem in order to find all the processes that opened that file. * The result is a list of a PID/command of the processes that have that * file open. * * Usage * * $ sudo ...
// // array_queue_test.c // c-based-array-queue // // Created by <NAME> on 12/3/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #include <stdio.h> #include <assert.h> #include "array_queue.h" void assert_queue_equals(struct array_queue *queue, int head, int tail, int queue_size, int array_size, int arra...
#include "md_os.h" #include "md_common.h" #include "md_platform.h" #include "md_log.h" #include "md_allocator.h" #include <stdio.h> #define MD_MAX_PATH 4096 #if MD_PLATFORM_WINDOWS #ifndef VC_EXTRALEAN #define VC_EXTRALEAN #endif #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <Windows.h>...
/******************************************************************************* * Copyright 2010-2019 Intel Corporation * All Rights Reserved. * * If this software was obtained under the Intel Simplified Software License, * the following terms apply: * * The source code, information and material ("Material") co...
#include "scaleoutmanager.h" #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include "chunk.h" #define abs(x) ((x) < 0 ? -(x) : (x)) uint32_t g_sl = 0; uint32_t g_vd = 0; size_t source_region; size_t target_region; size_t supply_region; double suppl...
/** ppm_public.c */ /** * Copyright 2019 SiFive * 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, publ...
/* * NC-SI (Network Controller Sideband Interface) "echo" model * * Copyright (C) 2016-2018 IBM Corp. * * This code is licensed under the GPL version 2 or later. See the * COPYING file in the top-level directory. */ #include "qemu/osdep.h" #include "slirp.h" #include "ncsi-pkt.h" static uint32_t ncsi_calculate...
#include<stdio.h> #include "input.h" #include "cmd_processor.h" #include "display.h" #include "../../board/board.h" #include "../../board/moves.h" #include "../../log/logger.h" char doInputIteration(); void handleVictory(int white_count, int black_count); void handleError(); int getIntArg(); void readFromFile(); void ...
/* * Copyright (C) 2012-2017 <EMAIL> * This software is distributed under the terms of the MIT license. * See the included LICENSE file for further information. */ /* * Menu construction routines */ #include <stdlib.h> #include <Xm/Xm.h> #include <Xm/RowColumn.h> #include <Xm/CascadeB.h> #include <Xm/SeparatoG...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <time.h> #include <unistd.h> #include <wordexp.h> #ifndef EXPLETIVE #define EXPLETIVE "fuck" #endif /* EXPLETIVE */ #define FUCKFILENAME "~/." EXPLETIVE "s" enum { MODE_APPEND, MODE_RESET, MODE_READ }; int fuckOpen(char **fuck...
/* * Copyright 2014 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/* Copyright 2010-2013 SourceGear, 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 by applicable law or agreed to in writing, softwar...
/* -*-C-*- ******************************************************************************* * * File: interpreter.c * RCS: $Id: interpreter.c,v 1.1 2009/10/09 04:38:08 npb853 Exp $ * Description: Handles the input from stdin * Author: <NAME> * AquaLab Research Group * ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <math.h> #include <cyan/color/color.h> #include <cyan/image/image.h> #include <cyan/image/load_png.h> #include <cyan/image/transforms.h> #include <cyan/image/fourier.h> #include <cyan/image/complex.h> complex_polar_t * unity(int k...
/* * Copyright (c) 2016 Intel, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ * */ #include "orte_config.h" #include "orte/types.h" #include "opal/types.h" #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include <ctype.h> #include "opal/util/argv.h" #include ...
#include "STM32G0_ADC.h" #include <stdint.h> #include "BaseObj.h" #include "STM32G0_common.h" #include "dataStrs.h" #include "main.h" uint16_t Get_Adc(uint32_t channel) { LL_ADC_REG_SetSequencerRanks(ADC1, LL_ADC_REG_RANK_1, channel); LL_ADC_SetChannelSamplingTime(ADC1, channel, LL_ADC_SAMPLINGTIME_COMMON_1); ...
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <<EMAIL>> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a be...
/* * (C) Copyright 2005- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an intergover...
#include "basic.h" #include "common.h" #include "config.h" #include "config2.h" #include "cpuinfo.h" #include "devices.h" #include "pocl_local_size.h" #include "pocl_util.h" #include "topology/pocl_topology.h" #include "utlist.h" #include <assert.h> #include <limits.h> #include <pthread.h> #include <stdlib.h> #include...
#include "jdprofile.h" #include "services/interfaces/jd_hw_pwr.h" #include "jacdac/dist/c/joystick.h" #include "lib.h" #define JACK_TIP PA_5 #define JACK_R1 PA_3 #define JACK_R2 PA_7 #define JACK_SLEEVE PA_6 #define INPUT_TYPE_NONE -1 #define INPUT_TYPE_DIGITAL_BUTTON 1 #defin...
/* $FreeBSD$ */ /* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if NFSv4 ACL support is available */ #define HAS_NFSV4_ACL_SUPPORT 1 /* Define to 1 if you have the `acl_create_entry_np' function. */ #define HAVE_ACL_CREATE_ENTRY...
/* 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: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and ...
#include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <getopt.h> #define FCGI_LISTENSOCK_FILENO 0 # include <sys/socket.h> # include <sys/ioctl.h> # include <netinet/in.h> # incl...
/* * Copyright (c) 2001-2002 Packet Design, LLC. * All rights reserved. * * Subject to the following obligations and disclaimer of warranty, * use and redistribution of this software, in source or object code * forms, with or without modifications are expressly permitted by * Packet Design; provided, however, ...
/* Copyright (C) 2007-2012 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
/** Path-At-a-Time quantifier elimination using an external quantifier elimination for conjunctions of constraints. */ #include "util.h" #include "lddInt.h" /** \brief Existential quantifies out variables from a diagram using Path-At-a-Time technique. \param ldd Ldd manager \param f an LDD from w...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <stdbool.h> #include <curl/curl.h> #include <fcntl.h> #include <unistd.h> #include "make_query.h" /* memory handling */ /* see https://curl.haxx.se/libcurl/c/getinmemory.html */ static size_t WriteMemoryCallback(void *contents, size...
/* * quic.c * * Protocol specification: https://tools.ietf.org/html/draft-tsvwg-quic-protocol-00 * * ========================================================================= * Copyright (c) 2016-2019 <NAME> (<EMAIL>) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this so...
/* * Copyright (c) 2014-2018 Cesanta Software Limited * 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 * * ...
#include "getopt.h" #include "Globals.h" #include "Util.h" /* * We will use conditional compilation in the same style of Louden's * Tiny C compiler. This lets us write the compiler incrementally * and test as we go. * * This code sports some minor refinements over that presented in Louden's * book: it att...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include <ctype.h> #include <errno.h> #include <limits.h> #include <SDL/SDL.h> #include "bmp.h" #include "rgb.h" #ifndef SDL_TRIPLEBUF #define SDL_TRIPLEBUF SDL_DOUBLEBUF #endif SDL_Surface* sdl_screen; SDL_Surface* backbuffer; SDL_Surfa...
#include "net/tcp.h" #include "tobytes.h" #include "net/sbuff.h" #include "net/arp.h" #include "net/ntox.h" #include "../tinytest/tinytest.h" #include <stdio.h> typedef union { uint8_t bytes[1600]; tcp_hdr hdr; } tcp_packet; static mac remote = {1,2,3,4,5,6}; static uint8_t * g_data = NULL; static uint16_...
/* * gnome-keyring * * Copyright (C) 2011 Collabora Ltd * * This program 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 your option) any later versio...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include "htslib/sam.h" #include "htslib/vcf.h" #include "htslib/vcfutils.h" #include "htslib/synced_bcf_reader.h" #include "htslib/hts.h" #include "sam_read.h" #include "str_util.h" // Overlap tid // t1 and t2 must be freed. int ovrlp_...
/* $NetBSD: button.c,v 1.6 2002/02/09 15:20:49 sato Exp $ */ /*- * Copyright (c) 1999-2001 * <NAME> and PocketBSD 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. Redi...
/********************************************************************* * src_ss.c: * estimate teleseismic source function by stacking * all vertical components of an array. The code uses * cross-correlation between each trace and a master * trace to align all traces at their first arrivals. * * Usage: * src_ss -Dl...
/* * This file is part of the * * Copyright (c) 2016-2017 linghaibin * */ #include "ui_net_set.h" #include "time_set.h" #include "../lvgl.h" #include "string.h" #include "stdio.h" #include "persistence.h" #include <string.h> #include <stdlib.h> /*Create a button descriptor string array*/ const char * btnm_map[...
#include <stdio.h> #include "conveyers.h" #include "tools.h" #include "common.h" #include "log.h" #include "control.h" char **loaded_modules; unsigned int loaded_modules_num; time_t start_time; void Root_Event_Handler(JID *jid) { int sock; ssize_t size; ssize_t end_index; char *buff; char *oldbuff; if(!jid) re...
/* * Saturation function over ice and water */ #include <stdio.h> #include <math.h> #include <errno.h> #include <omp.h> #include "envphys.h" #include "envphys_c.h" extern int errno; void dewpt( int ngrid, /* number of grid points */ double *ea, /* vapor pressure */ int nthreads, /* number of threads for pa...
/* * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file. * * 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 lis...
#include <u.h> #include <mingw32.h> #include <mingwutil.h> #include <libc.h> #include <stdio.h> #include "fdtab.h" #include "util.h" BOOL winwritecons(HANDLE h, void *v, int n) { static char utf[UTFmax], nutf; DWORD nw; WCHAR *wbuf, *wp; Rune r; uchar *buf, *s; int res, l; if (n==0) return 1; n += nutf; w...
#define sinhw_regrid (0) #define ampl_regrid (1) typedef struct _NRPyCritCol_regrid_params_struct_ { int regrid_counter[max_number_of_regrids]; int regrid_key[max_number_of_regrids]; REAL regrid_time[max_number_of_regrids]; REAL new_ampl_or_sinhW[max_number_of_regrids]; } NRPyCritCol_regrid_params_struct; ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
// // _ _ __ __ _____ __ __ _____ __ __ _____ _____ ____ _____ // | \ | || \/ ||_ _| | \/ || ____|| \/ ||_ _|| ____|/ ___||_ _| // | \| || |\/| | | | | |\/| || _| | |\/| | | | | _| \___ \ | | // | |\ || | | | | | | | | || |___ | | | | | | | |___ ___) | | | //...
/* * Copyright (c) 2006 <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 a...
/* # This file is Copyright 2003, 2006, 2007, 2009, 2010 <NAME>. # # This file is part of the PyMite VM. # The PyMite VM is free software: you can redistribute it and/or modify # it under the terms of the GNU GENERAL PUBLIC LICENSE Version 2. # # The PyMite VM is distributed in the hope that it will be useful, # but WI...
typedef struct BTRLZ0_DecContext_s BTRLZ0_DecContext; struct BTRLZ0_DecContext_s { byte *bs_cs; byte *bs_cse; // u32 bs_win; byte bs_pos; byte *ct; byte tab_tag[258]; byte tab_lit[258]; byte rk_rlen; byte rk_mlen; byte rk_dist; }; u32 BTRLZ0_ReadBits(BTRLZ0_DecContext *ctx, int n) { byte *cs; byte p; u32 win, v;...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <CL/cl.h> #define N 40 #define BLOCK_SIZE 1 char* loadProgSource(const char* filename, const char* preamble, size_t *sz) { FILE* fptr = NULL; size_t szSource, szPreamble, howmany; char* sourceString; // Open the OpenCL source code file fpt...
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
#define _XOPEN_SOURCE #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <error.h> #include <sys/mman.h> #include <assert.h> #include <string.h> #include <unistd.h> #include <hwloc.h> #ifdef _OPENMP #include <omp.h> #endif struct config { unsigned int node; unsigned int node_set; unsigned ...
/* * Copyright (C) Huawei Technologies Co., Ltd. 2012-2015. All rights reserved. * <EMAIL> * * If distributed as part of the Linux kernel, the following license terms * apply: * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License vers...
/* * UART_Comm.c * * Created: 03/04/2016 22:58:52 * Author: Caio */ #include "UART_Comm.h" #include "HAL/HAL_UART.h" #include "Commands.h" #include "IMU.h" #include "LCD.h" #include "HAL/HAL_Encoder.h" #include <string.h> uint32_t timer = (1000/portTICK_RATE_MS); uint8_t enableTX = 0; static void vTimerTX(vo...
/* Unix SMB/CIFS implementation. Core SMB2 server Copyright (C) <NAME> 2009 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 3 of the License, or (at your option) ...
/* ** $Id: lmem.c $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ #define lmem_c #define LUA_CORE #include "lprefix.h" #include <stddef.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lgc.h" #include "lmem.h" #include "lobject.h" #include "lstate.h" #if defined(EMERGENCYGCT...
/*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 1992, 1993, 1994 * The Regents of the University of California. * Copyright (c) 2005, 2006 <NAME> <<EMAIL>>, ONGS Inc. * Copyright (c) 2006 <NAME> <<EMAIL>> * All rights reserved. * * This code is derived from software donated to Berkeley by * <NAM...
/* * Copyright 2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_kpp.h" /******************************************************************************* * Definitions ******************************************************************************/ /* Component ID defin...
/* --COPYRIGHT--,BSD_EX * Copyright (c) 2013, Texas Instruments Incorporated * 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 c...
/** @file * @brief IPv4 related functions */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #if defined(CONFIG_NET_DEBUG_IPV4) #define SYS_LOG_DOMAIN "net/ipv4" #define NET_LOG_ENABLED 1 #endif #include <errno.h> #include <net/net_core.h> #include <net/net_pkt.h> #include ...
#include <limits.h> // UCHAR_MAX #include <stddef.h> // NULL #include <stdio.h> // FILE, fopen, fgets, getc, ungetc, fscanf, fclose #include <string.h> // strncmp #include "shoveler/image/ppm.h" #include "shoveler/input_stream.h" #include "shoveler/log.h" #define PPM_HEADER_BYTES 3 static const char *ppmHeader = "P3...
/************************************************************************************************************* Copyright 2021-2022, Skyworks Solutions, Inc. 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 Lice...
#include <GL/glut.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> #include "hoop.h" #include "ball.h" #include "field.h" #include "numbers.h" #include "light.h" /* timer macros */ #define TIMER_BALL 0 #define TIMER_TIME 1 #define TIMER_STRENGTH 2 /* flags */ static int scoreFlag; static...
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \...
/* * Copyright (c) 2006 <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...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Central free lists. // // See malloc.h for an overview. // // The MCentral doesn't actually contain the list of free objects; the MSpan does. // Each MCentra...
/* * Copyright (c) 2006, <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 condition...
/* tab:4 * * lub.c - find least upper bound of the root sorts of two psi terms * * Copyright (c) 1992 Digital Equipment Corporation * All Rights Reserved. * * The standard digital prl copyrights exist and where compatible * the below also exists. * Permission to use, copy, modify, and distribute this ...
/** * @file console.h * @brief Framebuffer text console. * @author yellows8 * @author WinterMute * @copyright libnx Authors * * Provides stdio integration for printing to the Switch screen as well as debug print * functionality provided by stderr. * * General usage is to initialize the console by: * @code *...
#include "EditLexer.h" #include "EditStyleX.h" // https://www.perl.org/ // https://perldoc.perl.org/index-language.html // https://learn.perl.org/docs/keywords.html static KEYWORDLIST Keywords_Perl = {{ "__DATA__ __END__ __FILE__ __LINE__ __PACKAGE__ abs accept alarm and atan2 AUTOLOAD BEGIN " "bind binmode ...
#include "u.h" #include <errno.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <sched.h> #include <signal.h> #if !defined(__OpenBSD__) # if defined(__APPLE__) # define _XOPEN_SOURCE /* for Snow Leopard */ # endif # include <ucontext.h> #endif #include <sys/utsname.h> #include "libc.h" #...
/* * Copyright(c) 2012-2018 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause-Clear */ #include "ocf/ocf.h" #include "../ocf_cache_priv.h" #include "engine_wi.h" #include "engine_common.h" #include "../concurrency/ocf_concurrency.h" #include "../utils/utils_req.h" #include "../utils/utils_cache_line.h" #inc...
/*- * Copyright (c) 2003-2009 <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 conditi...
#include <stdio.h> #include <string.h> #include <rpc/rpc.h> #include <errno.h> #include <stdlib.h> #include "pub_sub.h" #include "return_codes.h" #include "sha_hashing.h" #define SET_TOPIC 1 #define SET_MESSAGE 0 extern int errno; struct timeval TIMEOUT = {25, 0}; /* used by one_way_clnt.c with clnt_call() timeouts *...
/* * "Copyright (c) 2008 The Regents of the University of California. * All rights reserved." * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice, the fo...
/* Exercise 4-6. Add commands for handling variables. (It's easy to provide twenty-six variables with single-letter names.) Add a variable for the most recently printed value. */ /* calc.h*/ #include <ctype.h> #include <math.h> /* for sin(), exp(), pow() */ #include <stdio.h> #include <stdlib.h> /* for...
/* * Copyright (c) 2007 segv * * Licensed under the terms of the MIT License * See the LICENSE file * or http://www.opensource.org/licenses/mit-license.php * * TODO: * - write a clean sigterm, siguser catcher to call pcap_breakloop() */ #include "config.h" #include <stdio.h> #include <stdlib.h> #include <...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <time.h> #include <sys/time.h> /* WORD LIST */ char *words[] = { "what", "can", "be", "because", "your", "the", "a", "of", "insult", "journey", "frame", "path", "flower", "mountain", "forward", "expectation", "bot...
/* * Copyright (C) ST-Ericsson SA 2012 * * Author: <NAME> (<EMAIL>) * for ST-Ericsson. * * License terms: * * This program 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. */ #incl...
/* * Copyright (c) 2000 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the above copyright notice and this paragraph in its entirety, (2) * distributions including b...
/*- * Copyright (c) 2006 Verdens Gang AS * Copyright (c) 2006-2015 Varnish Software AS * All rights reserved. * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions...
/* * Copy me if you can. * by 20h */ /* Modified by <NAME> */ #define _BSD_SOURCE #include <unistd.h> #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <strings.h> #include <sys/time.h> #include <time.h> #include <sys/types.h> #include <sys/wait.h> #includ...
/* * Copyright (c) 2018 [n/a] <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 list of c...
/* * Author: <NAME> * Development platform: gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 * Last modified date: 17 Nov 2016 * Compilation: gcc DPP.c -o DPP -Wall -pthread ./DPP <N> <S> <T> */ #include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <pth...
/* FSK 8-byte Differential Manchester encoded TPMS data with CRC-8. * Pacific PMV-107J TPMS (315MHz) sensors used by Toyota * based on work by <NAME>. * * Copyright (C) 2017 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Li...
/* Copyright (C) 2019 by <NAME> * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without * fee is hereby granted, provided that the above copyright * notice appear in all copies and that both that copyright * notice and this permission notice appear in ...
#pragma once #include <inttypes.h> #include <stdio.h> #include <stdbool.h> /** * Errors codes. */ typedef enum { CHIP8_OK = 0, CHIP8_ROM_NOT_FOUND = -1, CHIP8_ROM_TOO_LONG = -2, CHIP8_OPCODE_INVALID = -3, CHIP8_OPCODE_NOT_SUPPORTED = -4, CHIP8_CALL_STACK_EMPTY = -5, CHIP8_CALL_STACK_FULL...
/* * ISC License * * Copyright (C) 1988-2018 by * <NAME> * <NAME> * <NAME> * Delft University of Technology * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appea...