text
stringlengths
5.8k
28.2k
/* Copyright (C) 2021 <NAME> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2...
/*++ Copyright (c) 1985 - 1999, Microsoft Corporation Module Name: server.h Abstract: This module contains the internal structures and definitions used by the console server. Author: <NAME> (thereses) 12-Nov-1990 Revision History: --*/ #ifndef _SERVER_H_ #define _SERVER_H...
#include "f2c.h" #include "blaswrap.h" /* Common Block Declarations */ struct { integer infot, nout; logical ok, lerr; } infoc_; #define infoc_1 infoc_ struct { char srnamt[6]; } srnamc_; #define srnamc_1 srnamc_ /* Table of constant values */ static integer c__2 = 2; static integer c_n1 = -1; static...
/* omega copyright (c) 1987,1988,1989 by <NAME> */ /* gen2.c */ /* level generator functions */ #include "glob.h" /* For each level, there should be one stairway going up and one down. fromlevel determines whether the player is placed on the up or the down staircase. The aux value is currently unused elsewhere, bu...
/****************************************************************************** * * CZ80 (Z80 CPU emulator) version 0.9 * Compiled with Dev-C++ * Copyright 2004-2005 <NAME> * * (Modified by NJ) * *****************************************************************************/ #include <stdio.h> #inclu...
/* * 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...
/* * 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...
#include <assert.h> #include <stdio.h> #include <ctype.h> #include "utils/err.h" #include "utils/tgen.h" #include "dlite.h" #include "dlite-macros.h" #include "dlite-codegen.h" /* Context for looping over properties */ typedef struct { const DLiteInstance *inst; /* pointer to the instance */ int iprop; ...
#include "proto.h" void load_GIF_data (struct context * context, unsigned flags, size_t limit) { if (context -> size < 14) throw(context, PLUM_ERR_INVALID_FILE_FORMAT); context -> image -> type = PLUM_IMAGE_GIF; context -> image -> width = read_le16_unaligned(context -> data + 6); context -> image -> height = ...
/* ascendtext.c * * Wiretap Library * Copyright (c) 1998 by <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "wtap-int.h" #include "ascendtext.h" #include "ascend-int.h" #include "file_wrappers.h" #include <errno.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif ...
/* chronyd/chronyc - Programs for keeping computer clocks accurate. ********************************************************************** * Copyright (C) <NAME> 2014-2015 * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public Licen...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * This notice applies to any and all portions of this file * that are not b...
// // ACME - a crossassembler for producing 6502/65c02/65816 code. // Copyright (C) 1998-2006 <NAME> // Have a look at "acme.c" for further info // // Output stuff #include <stdlib.h> #include <stdio.h> #include <string.h> // for memset() #include "acme.h" #include "alu.h" #include "config.h" #include "cpu.h" #include...
/* ***** BEGIN LICENSE BLOCK ***** * Version: RCSL 1.0/RPSL 1.0 * * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, are * subject to the current version of the RealNetworks Public Source License * Version 1.0 (the "RP...
#include <Library/UefiLib.h> #include <Library/UefiDriverEntryPoint.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/UefiRuntimeServicesTableLib.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/PrintLib.h> #include <Library/MemoryAlloca...
/* File: run_correlations.c */ /* This file is a part of the Corrfunc package Copyright (C) 2015-- <NAME> (<EMAIL>) License: MIT LICENSE. See LICENSE file under the top-level directory at https://github.com/manodeep/Corrfunc/ */ /* Example code to show how to use the correlation function libraries Author: ...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdarg.h> #define nelem(a) (sizeof(a)/sizeof(a[0])) #define nil NULL #define print printf #define fprint fprintf typedef uint64_t word; typedef uint32_t hword; typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; typedef unsigned char uc...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <stddef.h> #include <stdarg.h> #include "rtklib.h" #include <fcntl.h> #include <errno.h> #include <sys/types.h> #include <unistd.h> #include <math.h> #include "NavObservable.h" #define SAVE_TRACE (1) #define MAX_CHAN (256) #de...
// Copyright (C) strawberryhacker #include <citrus/lcd.h> #include <citrus/print.h> #include <citrus/interrupt.h> #include <citrus/clock.h> #include <citrus/gpio.h> #include <citrus/panic.h> #include <citrus/cache.h> #include <citrus/mm.h> #include <citrus/mem.h> #include <citrus/align.h> #include <citrus/regmap.h> #i...
// "hello. my name is DOS!" // Code by shock and easy. // Graphics by darkowl // Music by ctrix #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <conio.h> #include <wildfile.h> #include <mikmod.h> #define M_PI 3.141592654 static const char *modfile = "hello.mod";...
/* * Copyright (c) 2005 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government * retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
/******************************************************************************* * Filename: irc_client.c * * Written by: <NAME> ******************************************************************************/ #include "irc_client.h" static volatile bool g_serv_crashed = false; /**********************************...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * sort.c * * Code generation for function 'sort' * */ /* Include files */ #include "sort.h" #include "eml_in...
/* Copyright (C) 2011, 2012 The uOFW team See the file COPYING for copying permission. */ #include "common_header.h" /* flags */ #define SCE_FREAD (0x0001) /* readable */ #define SCE_FWRITE (0x0002) /* writable */ #define SCE_FNBLOCK (0x0004) /* Reserved: non-blocking reads */ #define...
/* * Copyright (c) 2017 <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, pu...
/* * Copyright [2021-2022] International Business Machines Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
/* * Copyright (c) 2013-2014 UT-Battelle, LLC. All rights reserved. * Copyright (c) 2013-2014 Oak Ridge National Laboratory. All rights reserved. * * See COPYING in top-level directory * * Copyright © 2012 Inria. All rights reserved. * $COPYRIGHT$ * */ /* * This unit test does the following: * - a client...
/* @f5pl.c ** ** fast5_pipeline client ** runs on the head node and assigns work to worker nodes ** @author: <NAME> (<EMAIL>) ** @@ ******************************************************************************/ /* MIT License Copyright (c) 2019 <NAME> Permission is hereby granted, free of charge, to any person obtaini...
#include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <stdlib.h> #include <errno.h> ///< errno #include <sys/socket.h> ///< socket #include <netinet/in.h> ///< sockaddr_in #include <arpa/inet....
#include"utils.h" #include"matrix_ops.h" #define PI 3.141592653589793 void butterfly_subdiv_step(int *tlist,double *vlist,int nfac,int nvert,int **tlistn2,double **vlistn2,int *nfacn2,int *nvertn2,double **D2); void butterfly_triangle(int* tlist,double* vlist,int nfac,int nvert,unsigned char* V,short* VT,int facind,int...
#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <uxtheme.h> #include <vssym32.h> #pragma comment(lib, "user32.lib") #pragma comment(lib, "gdi32.lib") #pragma comment(lib, "uxtheme.lib") #include <stdbool.h> static LRESULT win32_custom_title_bar_example_window_callback( HWND handle, UINT message, WPARA...
/******************************************************************** NAME: prn_dssr.c PURPOSE: Reads the input (.ldr) file given and prints all of the fields of the dataset summary record. PROGRAM HISTORY: VERSION DATE AUTHOR ------- ---- ------ 1.0 4/96 <NAME> (ASF) ...
/* LED blink project for the STM32L031 */ #include "stm32l031xx.h" #include "delay.h" #include "u8x8.h" /*=======================================================================*/ /* external functions */ uint8_t u8x8_gpio_and_delay_stm32l0(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); /*==============...
/* *----------------------------------------------------------------------------- * The confidential and proprietary information contained in this file may * only be used by a person authorised under and to the extent permitted * by a subsisting licensing agreement from ARM Limited or its affiliates. * * ...
#include "bigpol.h" #include <ctype.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "consts.h" #include "bignumlib-error.h" #include "bigrat.h" #include "utils.h" void BigPol_new(BigPol **f) { BigRat *r; *f = (BigPol *)malloc(sizeof(BigPol)); if (*f == NULL) { ...
// gcc -o dvonion dvonion.c -lncurses -lpthread #include <ncurses.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include <pthread.h> #include <signal.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <stdio.h>...
/* Copyright (c) 2015, <NAME> 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 disclaimer. ...
/* comedi/drivers/pcl726.c hardware driver for Advantech cards: card: PCL-726, PCL-727, PCL-728 driver: pcl726, pcl727, pcl728 and for ADLink cards: card: ACL-6126, ACL-6128 driver: acl6126, acl6128 COMEDI - Linux Control and Measurement Device Interface Copyright (C) 19...
/******************************************************************************* * * Copyright (c) 2011, 2012, 2013, 2014, 2015 <NAME> (TZI) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribut...
/* sha1.c - SHA1 hash function * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. * * Please see below for more legal information! * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publis...
/**************************************************************** Copyright (C) 2015 <NAME>. All rights reserved. > File Name: < sdram.c > > Author: < <NAME> > > Mail: < <EMAIL> > > Created Time: < 2015/09/28 > > Last Changed: > De...
/* Copyright (C) 2015 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
/* $NetBSD: movem.c,v 1.9 2012/06/19 05:30:43 dholland Exp $ */ /* * movem.c (move monster) Larn is copyrighted 1986 by <NAME>. * * Here are the functions in this file: * * movemonst() Routine to move the monsters toward the player * movemt(x,y) Function to move a monster at (x,y) -- must determine where * m...
/* * 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...
/* limits.c - code pertaining to limit-switches and performing the homing cycle Part of Grbl Copyright (c) 2012-2015 <NAME> Copyright (c) 2009-2011 <NAME> Grbl 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...
/* * Copyright (C) 2018 <NAME> <<EMAIL>> * Copyright (C) 2016 <NAME> <<EMAIL>> * * 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 appear in all copies. * * THE SOFTWAR...
/* * Copyright (c) 1997, <NAME> <<EMAIL>> * Copyright (c) 2000, <NAME> <<EMAIL>> * Copyright (c) 2000, BSDi * 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 sourc...
// Copyright 2018 Blues Inc. All rights reserved. // Use of this source code is governed by licenses granted by the // copyright holder including that found in the LICENSE file. #include <stdbool.h> #include <stdint.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include "main.h" #include "note.h" //...
/* Bakteria | The_Bactery 2002-2012 MIT License * by Lukas 'luko' Veselovsky, <<EMAIL>> */ #include <stdio.h> #include <allegro.h> // WxH CONFIG WORD is HD Resolution #define CONFIG_WIDTH 1280 #define CONFIG_HEIGHT 720 #define CONFIG_MARGIN_L 20 #define CONFIG_MARGIN_R 20 #define CONFIG_MARGIN_T 10 #define CONFI...
// See the file "COPYING" in the main distribution directory for copyright. #include <string.h> #include <limits.h> #include <getopt.h> // define required for FreeBSD #define _WITH_GETLINE #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> /* The maximum length of converted timestamp that ze...
/* all_bz version 12 * -- generate all blastz commands for pairs of specified sequences with * post-processing. * * The command syntax is: * all_bz [-+] string-with-names [blastz-specfile] * where "string-with-names" contains names of sequence files (and perhaps * non-name characters), such as: * all_bz "(((hu...
/* $Id: interface.c,v 1.5 2005/01/18 15:56:45 snelg Exp $ */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "common.h" #include "interface.h" #include "tabinit.h" #include "layer3.h" #include "VbrTag.h" #ifdef USE_LAYER_1 #include "layer1.h" #en...
/* sg_test_rwbuf.c */ /* * Program to test the SCSI host adapter by issueing * write and read operations on a device's buffer * and calculating checksums. * NOTE: If you can not reserve the buffer of the device * for this purpose (SG_GET_RESERVED_SIZE), you risk * serious data corruption, if the device is accesse...
/* SPDX-License-Identifier: BSD-3-Clause */ /* * Authors: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Copyright (c) 2018, Arm Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
color_t COLOR_BG = {.Argb = 0xff161616}; color_t COLOR_SELECTION = {.Argb = 0xff5555aa}; color_t COLOR_LINE_HIGHLIGHT = {.Argb = 0xff101010}; color_t COLOR_TEXT = {.Argb = 0xffd1c87e}; color_t COLOR_CURSOR = {.Argb = 0xff8888aa}; color_t COLOR_MAIN_CURSOR = {.Argb = 0xffccccff}; color_t COLOR_LINE_NUMBER = {.Argb = 0x...
#include "config.h" #include <curvecpr/messager.h> #include <curvecpr/block.h> #include <curvecpr/bytes.h> #include <curvecpr/chicago.h> #include <errno.h> #include <stdint.h> #include <string.h> #include <sodium/crypto_uint16.h> #include <sodium/crypto_uint32.h> #include <sodium/crypto_uint64.h> #define _STOP_SUC...
#include <stm32f0xx.h> #include "systick.h" #include "usart.h" #include "adc.h" #include "gpio.h" #include "i2c_slave.h" #include "rtc.h" #include "time_conv.h" #define PIVOYAGER_FIRMWARE_VERSION 0x0010 typedef struct { // 0 uint8_t MODE; // either 'N' or 'B' uint8_t STAT; // status ...
/* unitudb.c - unit test for udb * By <NAME> * Copyright 2010, NLnet Labs. * BSD, see LICENSE. */ #include "config.h" #include <stdio.h> #include <unistd.h> #include <string.h> #include "tpkg/cutest/cutest.h" #include "udb.h" static void udb_1(CuTest* tc); static void udb_2(CuTest* tc); static void udb_3(CuTest* ...
#include <ctype.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define MAX_LINE_LENGTH 16384 #define MAX_CATEGORIES 1024 #define MAX_WORD_SIZE 1024 // cat_count is used to summarize all of the findings. Each word is // associated with categories and we use this s...
//----------------------------------------------------------------------------- // This code is licensed to you under the terms of the GNU GPL, version 2 or, // at your option, any later version. See the LICENSE.txt file for the text of // the license. //-----------------------------------------------------------------...
/* * Copyright (C) 2014-2015 <NAME> <<EMAIL>> * Copyright (C) 2006-2012 SplinterGU (Fenix/Bennugd) * Copyright (C) 2002-2006 Fenix Team (Fenix) * Copyright (C) 1999-2002 <NAME> (Fenix) * * This file is part of PixTudio * * This software is provided 'as-is', without any express or implied * warranty. In ...
/** * * \section COPYRIGHT * * Copyright 2013-2015 Software Radio Systems Limited * * \section LICENSE * * This file is part of the srsLTE library. * * srsLTE is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Soft...
// 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 may...
/* * rnc.c Compress a file as RNC * * Requires dernc.c to compute the leeway header field. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define COMPRESSOR #define INTERNAL #include "dernc.h" typedef struct { struct { unsigned long code; int codelen; } table[32]; } huf_table; static ...
/* GNU tar Archive Format description. Copyright 1988-1989, 1991-1997, 2000-2001, 2003-2007, 2012-2014, 2016-2017 Free Software Foundation, Inc. This file is part of GNU tar. GNU tar is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
#include <jni.h> #include <pthread.h> #include <stdarg.h> #include <string.h> #include <stdlib.h> #include <android/log.h> #include "shogi.h" #include "shogi_jni.h" // CAUTION: These constants must match the values defined in BonanzaJNI.java #define R_OK 0 #define R_ILLEGAL_MOVE -1 #define R_CHECKMATE -2 #define R_RE...
//***************************************************************************** // // Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ // // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // ...
#include<stdint.h> int MIN_CLUSTER_DISTANCE = 10000; #include "print_clusters.c" #include "sam.h" int BLOCK_SIZE = 100; // 100 bp blocks int BF = 10; #define BS1 20 // code for parsing fosmid pool bam files // ./extractFOSMID --bam fosmid-data/SRR799544_GGACTCCTAAGGAGTA.rmdup.bam.chr1 --VCF fosmid-data/NA12878.1kg.he...
/* Tree lowering pass. Lowers GIMPLE into unstructured form. Copyright (C) 2003, 2005 Free Software Foundation, Inc. This file is part of GCC. GCC 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 vers...
/******************************************************* Hashing and authentication routines for CCS. <NAME>, <EMAIL>, 7/21/2001 */ #include <string.h> #include <stdio.h> #include "sockRoutines.h" #include "conv-ccs.h" #include "ccs-auth.h" /* Parse this secret key as a hex string*/ int CCS_AUTH_makeSecretKey(const ...
/* * Copyright (c) 1991 <NAME> * * Disclaimer: No guarantees of performance accompany this software, * nor is any responsibility assumed on the part of the authors. All the * software has been tested extensively and every effort has been made to * insure its reliability. */ /* * h_discedge2.c - a discrete do...
/* mafCoverage - Analyse coverage by maf files - chromosome by chromosome * and genome-wide.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "obscure.h" #include "jksql.h" #include "hdb.h" #include "chromInfo.h" #include "agpFrag.h" #include "memalloc.h" #include "maf.h" ...
/* * @file istream68_ao.c * @brief implements istream68 for libao * @author http://sourceforge.net/users/benjihan * * Copyright (C) 1998-2011 <NAME> * * Time-stamp: <2011-10-15 16:52:56 ben> * * This program is free software: you can redistribute it and/or * modify it under the terms of the GNU General ...
/* ** DynASM x86 encoding engine. ** Copyright (C) 2005 <NAME>. All rights reserved. ** Released under the MIT/X license. See dynasm.lua for full copyright notice. */ #include <stddef.h> #include <stdarg.h> #include <string.h> /* Action definitions. DASM_STOP must be 255. */ enum { DASM_DISP = 237, DASM_IMM_S, DA...
/* * info.c * * information support functions * * Copyright (c) 2010, PostgreSQL Global Development Group * $PostgreSQL$ */ #include "pg_upgrade.h" #include "access/transam.h" static void get_db_infos(migratorContext *ctx, DbInfoArr *dbinfos, Cluster whichCluster); static void dbarr_print(migratorContext...
#include "RBtree.h" #include "RBtree_priv.h" #include <stdlib.h> #include <stdio.h> #include <limits.h> /****************************************************************************** * Section 1: Creation and Deallocation *****************************************************************************/ /* Creates an ...
//**********************************************************************; // Copyright (c) 2015, Intel Corporation // 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 s...
#include<stdio.h> #include<stdlib.h> #include<string.h> #ifdef __USE_CMSIS #include "LPC17xx.h" #endif #include "GHmatrix.h" #include <cr_section_macros.h> #define SBIT_CNTEN 0 #define LED1 0 /*-------All global declaration start---------*/ char syncField[33] = {0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58...
/*------------------------------------------------------------------------------------------------ SGL (Small GUI Library) is a graphical user interface library that will help you to build Win32 applications. It handle most of the burden of the Windows environment and lets you concentrate on creative tasks. I...
/* * Copyright (c) 2013 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 vers...
/* packet-hpm2-trace.c * Routines for HPM.2 Trace Data Block disassembly * By <NAME> <<EMAIL>> * Copyright 2014 Pigeon Point Systems * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the te...
/** * Copyright (C) 2020 <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 ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #if !defined(TARGET_LOONGARCH64) #error The file should not be included for this platform. #endif // NOTE for LoongArch64: // The `REG_R21` which alias `REG_X0` is spe...
/* Copyright (C) 2011 Computer Sciences Department, University of Wisconsin -- Madison ---------------------------------------------------------------------- This file is part of Mnemosyne: Lightweight Persistent Memory, originally developed at the University of Wisconsin -- Madison. Mnemos...
//############################################################################# // // FILE: hrpwm_ex1_duty_sfo_v8.c // // TITLE: HRPWM SFO V8 High-Resolution Period // (Up Count) example // //! \addtogroup bitfield_example_list //! <h1>HRPWM Duty Up Count</h1> //! //! This example modifies the MEP control...
#include "x86.h" struct dis *x86_disassemble(int mode, struct trie_node *root, u8 * stream, long max, uint64_t addr) { if (!max) return 0; long iter = 0; /*Find instruction match in the trie */ struct trie_node *n = trie_lookup(root, stream + iter, max - iter); const char *offset = NULL; iter += n->dist...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * pkix_targetcertchecker.c * * Functions for target cert validation * */ #include "pkix_targetcertchecker...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "ddaskr_types.h" /* Table of constant values */ #define c_b3 1. static integer c__1 = 1; static integer c__0 = 0; static integer c_false = _FALSE_; static integer c__2 = 2; static integer c_true = _TRUE_; /* DECK D1MACH */ real_number _daskr_d1mach_...
/* * (C) Copyright 2017 <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 agr...
/* $OpenBSD: clock.c,v 1.8 2004/01/28 23:50:16 miod Exp $ */ /* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */ /* * Copyright (C) 1995, 1996 <NAME>. * Copyright (C) 1995, 1996 TooLs GmbH. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are per...
/*---------------------------------------------------------------------------- * Copyright (c) <2016-2018>, <Huawei Technologies Co., Ltd> * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. R...
/* * mm-naive.c - The fastest, least memory-efficient malloc package. * * In this naive approach, a block is allocated by simply incrementing * the brk pointer. A block is pure payload. There are no headers or * footers. Blocks are never coalesced or reused. Realloc is * implemented directly using mm_malloc an...
#include "buffer.h" #include "vulkan_internal.h" #include "log.h" #include "magpie.h" #include <math.h> #define B_MILLION 1048576 void buffer_pool_add(BufferPool* pool, uint32_t size) { LOG_S("Creating new buffer pool with usage %d", pool->usage); pool->blocks = realloc(pool->blocks, ++pool->block_count * sizeof(st...
/******************************************************************************* *** *** Author: <NAME> *** email: <EMAIL> *** *** Version: 0.8.1 *** *** License: MIT 2015 *** *******************************************************************************/ #include <stdlib.h> /* malloc, etc */ ...
/* * Copyright (c) 2018 by <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * Copyright (c) 2015 by <NAME> <<EMAIL>> * Decawave DWM1000 library for arduino. * * 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...
/* ** scheduler module for executing lua processes ** See Copyright Notice in luaproc.h */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> // STEVE CHANGE #include <string.h> /* #include "lua.h" #include "lauxlib.h" #include "lualib.h" */ #include "CoronaLua.h" // /STEVE CHANGE #include "lpsched.h" #inclu...
/* This file is part of p4est. p4est is a C library to manage a collection (a forest) of multiple connected adaptive quadtrees or octrees in parallel. Copyright (C) 2010 The University of Texas System Additional copyright (C) 2011 individual authors Written by <NAME>, <NAME>, and <NAME> p4est is free so...
#include <stdlib.h> #include <glib.h> #include <pthread.h> #include <string.h> #include <event.h> #include "fcgi.h" #include "libev.h" #include "mono-bridge.h" #include "fcgi-transport.h" #define GET_HASH(fd,reqid) (((guint64)(reqid)) << 32) ^ (fd) typedef struct { guint64 hash; int fd; guint16 requestId;...
/* * $Id: bound.c,v 1.1 2005-09-18 22:04:53 dhmunro Exp $ * Routines for finding the boundary of a cylindrical mesh. */ /* Copyright (c) 2005, The Regents of the University of California. * All rights reserved. * This file is part of yorick (http://yorick.sourceforge.net). * Read the accompanying LICENSE file for...
/* * Copyright (c) 1998-2012 by <NAME> * See LICENSE */ #define _BSD_SOURCE #include <stdio.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <string.h> #include <ctype.h> #include <errno.h> #include <pwd.h> #include <grp.h> #include <time.h> #include <syslog.h> #include <sy...