text
stringlengths
5.8k
28.2k
#include <assert.h> #include <regex.h> #include <stddef.h> #include <string.h> #include "field.h" #include "regex.h" #include "util.h" static const enum field_type FIELD_TYPES[NFIELD_TYPES] = { FIELD_RFC3339, FIELD_RFC3339_NO_MS, FIELD_DATE, FIELD_TIME, FIELD_IPADDR, FIELD_USERAGENT, FIELD_REQUEST, FIELD_ME...
/* * project.c * * Main file * * Author: <NAME>. Modified by <YOUR NAME HERE> */ #include <avr/io.h> #include <avr/interrupt.h> #include <avr/pgmspace.h> #include <stdio.h> #include "ledmatrix.h" #include "scrolling_char_display.h" #include "buttons.h" #include "serialio.h" #include "terminali...
#include <pmm.h> #include <list.h> #include <string.h> #include <buddy.h> free_area_t free_area; #define free_list (free_area.free_list) #define nr_free (free_area.nr_free) // Global block static size_t buddy_physical_size; static size_t buddy_virtual_size; static size_t buddy_segment_size; static size_t buddy_alloc...
#include "../headers/tparams.h" /* ## GENERAL INFORMATION ## ## FILE tparams.c ## AUTHORS <NAME> and <NAME> ## LAST MODIFIED 28-11-08 ## ## SPECIFICATIONS ## ## Handle and parse parameters for the tpocket program. ## ## MODIFICATIONS HISTORY ## ## 28-11-08 (v) Comments UTD ## 27-11-08 (v) Added option ...
/* IBEX UK LTD http://www.ibexuk.com Electronic Product Design Specialists RELEASED SOFTWARE The MIT License (MIT) Copyright (c) 2013, IBEX UK Ltd, http://ibexuk.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
/* * Copyright © 2020 Google, Inc. * * 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,...
/* file: hf_riscv_sim.c * description: HF-RISCV simulator * date: 11/2015 (first release), 03/2019 (last update) * author: <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #define MEM_SIZE 0x00100000 #define SRAM_BASE 0x40000000 #def...
/* render.c */ #include <math.h> #include <string.h> #include <stdio.h> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <stb_image.h> #include "render.h" #include "shader.h" #include "model.h" #include "font.h" #include "matrix.h" #include "camera.h" #include "game.h" #include "gfx.h" #include "bff.h" #includ...
/*********************************************************** * Created: Seg 08 Ago 2011 17:01:23 BRT * * Author: <NAME>, <EMAIL> * *********************************************************** * * Local search Tabucol [1987, Hertz] * Works with infeasible k-colorings. * Can be used with either a react or a dynam...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Fluent Bit * ========== * Copyright (C) 2019-2020 The Fluent Bit Authors * Copyright (C) 2015-2018 Treasure Data Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
/* $NetBSD: cs80bus.c,v 1.1 2003/06/02 03:51:04 gmcgarry Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modific...
#include <string.h> #include <math.h> #include "eval.h" int zero_check(lval *y) { if(y->num == 0.0) { return 1; } return 0; } /* Create a new number type lval */ lval *lval_num(double x) { lval *v = malloc(sizeof(lval)); v->type = LVAL_NUM; v->num = x; return v; } /* Create a new n...
#include <math.h> #include "mex.h" #include "blas.h" #include "omp.h" /* <NAME>, 2009 (<EMAIL>) */ /* #include <time.h> */ /* TODO: Is Ctrl-C from Matlab handled properly? */ void getDef( float *def, mwSignedIndex *dims, mwSignedIndex nbx, float *bx, mwSignedIndex nby, float...
#include "hex1.h" #include "hex2.h" void new_game(char *c1,int *b,char *c2,int *s,int a,int *n,char **graph,int**mov){ int i,j,k; i=*n; j=*n; k=i*j; for (i=0;i<*n;i++) for (j=0;j<*n;j++) graph[i][j]=0; for (i=0;i<k;i++) for (j=0;j<2;j++) mov[i][j]=0;//the data is being reset if (strcmp(c1,"black")==0) *b=1; else if (s...
// rc.h: quintet bit popcount patricia tries, with rib compression // // Written by <NAME> <<EMAIL>> // You may do anything with this. It has no warranty. // <http://creativecommons.org/publicdomain/zero/1.0/> #include <assert.h> #include <errno.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include ...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string.h> #include <sys/stat.h> #include "mapreduce.h" #include <unistd.h> int NUM_HASHMAPS; // structure declarations struct file_node { char *filename; long length; struct file_node *next; }; struct BST_node { char *key; stru...
/*- * Copyright (c) 2016 <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 of co...
#include "renderer.h" #include "map.h" #include "vfs/vfs.h" #include "shp.h" #include <stdio.h> #include <string.h> #include <ctype.h> struct palette palettes[3]; GTree *templatecache; GTree *tilemap; gchar *tilemapbuf; struct template { // TODO can be rejiggered so that it's one block of memory guint16 tile_...
/** * @file gst_video/encode.c Video codecs using Gstreamer video pipeline * * Copyright (C) 2010 - 2013 Creytiv.com * Copyright (C) 2014 <NAME> * Copyright (C) 2015 <NAME> */ #define __USE_POSIX199309 #define _DEFAULT_SOURCE 1 #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <unistd.h> #i...
/* $OpenBSD: crl.c,v 1.5 2014/10/13 02:46:14 bcook Exp $ */ /* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME> (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and...
/* plaintext.c - process plaintext packets * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, * 2006 Free Software Foundation, Inc. * * 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 ...
#include <libopticon/ioport.h> #include <math.h> #include <arpa/inet.h> #include <stdarg.h> /** Get the amount of available buffer space for writing into an * ioport. */ size_t ioport_write_available (ioport *io) { return io->write_available (io); } /** Write a blob of data to an ioport. * \param io The io...
#include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/stat.h> #include <sched.h> #include <fcntl.h> #include <errno.h> #include <stdlib.h> #include <time.h> #include "BBBiolib.h" #include "BBBiolib_McSPI.h" /*------------------------------------------------------------------------------------------...
/* * 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...
/*The program assumes that the node label starts from 1 and the graph has no missing nodes.*/ #include<stdlib.h> #include<stdio.h> #include<time.h> #include<string.h> #define MAX 50 typedef struct vertex { int label; float score; int community; int parent; int category;//1-->Broker 2-->Community Node 3-->...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or its l...
#include "postgres.h" #include "funcapi.h" #include "access/tupdesc.h" #include "catalog/pg_type_d.h" #include "catalog/pg_type.h" #include "utils/typcache.h" #include "utils/builtins.h" #include "utils/fmgroids.h" #include "utils/lsyscache.h" #include "utils/syscache.h" #include "utils/arrayaccess.h" #include "parser...
#include <stdio.h> #include <fcntl.h> #include <stdarg.h> #include "ft_printf.h" #include "unistd_compat.h" #include "tests.h" #include "libft.h" #define BUFF_SIZE 1024 static int read_to_buff(const char *fn, char *buff, size_t len) { int fd; int n; if ((fd = open(fn, O_RDONLY)) < 0) return -1; if ((n = read(f...
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Tests for vboot_firmware library. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "gbb_header.h"...
/* $NetBSD: conf.c,v 1.32 1999/03/25 01:17:51 simonb Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without * m...
/* * Copyright (c) 2007-2010, Regents of the University of California * 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 no...
/** * FreeRDP: A Remote Desktop Protocol Client * XKB-based Keyboard Mapping to Microsoft Keyboard System * * Copyright 2009 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lice...
#include "simple_re.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include "helper.h" simple_re* simple_re_new() { simple_re* new_re = (simple_re *) malloc( 1 * sizeof(simple_re)); return new_re; } simple_re* simple_re_compile( const char* pattern, const char* enc ) { OnigRegexType* regexp = mallo...
/* * Copyright 2010-2017, 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...
/*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" static int star_speed; static int gfxbank; static tilemap *...
/* * Copyright (c) 2013,2014 <NAME> <<EMAIL>> * * All rights reserved. * * This code may not be resdistributed without the permission of the copyright holders. * Any student solutions using any of this code base constitute derviced work and may * not be redistributed in any form. This includes (but is not limit...
#pragma once #include "Foundation/Types.h" // Key codes #define AX_KEY_1 0x002 #define AX_KEY_2 0x003 #define AX_KEY_3 0x004 #define AX_KEY_4 0x005 #define AX_KEY_5 0x006 #define AX_KEY_6 0x007 #define AX_KEY_7 0x008 #define AX_KEY_8 0x009 #define AX_KEY_9 0x00A #define AX_KEY_0 0x00B #define AX_KEY_A 0x01E #define A...
#include "redis.h" #include <math.h> /* isnan(), isinf() */ #include "db.h" #include "networking.h" #include "object.h" #include "t_string.h" #include "util.h" extern struct sharedObjectsStruct shared; extern struct redisServer server; #define REDIS_SET_NO_FLAGS 0 #define REDIS_SET_NX (1<<0) // Set if key not exi...
/* * Copyright(C) 1999-2020 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * See packages/seacas/LICENSE for details */ #include <assert.h> #include <stdio.h> #include <st...
/* "null2" model: biased composition correction * * Contents: * 1. Null2 estimation algorithms. * 2. Benchmark driver. * 3. Unit tests. * 4. Test driver. * 5. Example. * * See p7_domaindef.c -- null2 correction of per-seq and per-domain * scores is embedded within p7_domaindef's logic; we split it ...
/** ******************************************************************************** * @file window.c * @version V0.7.4 * @date 2020.04.18 * @brief Some window management function. ******************************************************************************* */ #include <cogui.h>...
/* $OpenBSD: alipm.c,v 1.15 2010/04/08 00:23:53 tedu Exp $ */ /* * Copyright (c) 2005 <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. * * ...
/* * DMA Emulation * * Copyright 2002 <NAME> * * 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 your option) any later version. * * Th...
/* * OpenBOR - http://www.LavaLit.com * ----------------------------------------------------------------------- * All rights reserved, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2011 OpenBOR Team */ // Animated GIF player. #include <stdio.h> #include <string.h> #include "packfile.h" #incl...
/*- * Public Domain 2014-present MongoDB, Inc. * Public Domain 2008-2014 WiredTiger, Inc. * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * bina...
/* * <NAME> * July 2021 * * Mapping between 16-bit encodings and the corresponding ASCII letters. * * Supports capital letters, as well as some common symbols. * * Upper left cell is 0, lower right cell is 14, row major. * The bit position (rightmost 0, leftmost 14) corresponds to the cell index. * * A 1 in ...
/* * peafowl_l3_parsing.c * * Created on: 19/09/2012 * ========================================================================= * Copyright (c) 2016-2019 <NAME> (<EMAIL>) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ...
/* Test mpn_hgcd_appr. Copyright 1991, 1993, 1994, 1996, 1997, 2000-2004, 2011 Free Software Foundation, Inc. This file is part of the GNU MP Library test suite. The GNU MP Library test suite is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
/* * File: obj-power.c * Purpose: calculation of object power * * Copyright (c) 2001 <NAME>, <NAME> * Revised in 2009-11 by <NAME>, <NAME> * * This work is free software; you can redistribute it and/or modify it * under the terms of either: * * a) the GNU General Public License as published by the Free Softwa...
// Functions to manage the nRF24L01+ transceiver #include "nrf24spi1.h" #include "main.h" // Low level SPI transmit/receive function (hardware depended) // input: // data - value to transmit via SPI // return: value received from SPI uint8_t nRF24_LL_RW(uint8_t dataIn) { uint8_t dataOut; HAL_SPI_TransmitReceive(...
#include <stdint.h> #include "data.h" #include "deepfreeze.h" #include "dfserv.h" #include "shared.h" #pragma pack(push,1) typedef struct { uint32_t id; uint32_t offset; uint32_t size; uint32_t size_2; uint32_t unknown[4]; } tail_entry_t; #pragma pack(pop) #pragma pack(push,1) typedef struct { uint32_t hea...
/* * Copyright (c) 2017, 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 source code must retain the above copyright notice, * this list of c...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/time.h> #include <sys/types.h> #include <sys/resource.h> #include <netinet/in.h> #include <arpa/inet.h> #include "xproxy.h" #include "socks5.h" #include "el.h" #include "tcp-connection.h" #include "log.h" #i...
/* File: cryptTool.c Description: simple encrypt/decrypt utility to demonstrate CDSA API used for symmetric encryption Author: dmitch Copyright: Copyright (c) 2001,2003,2005-2006 Apple Computer, Inc. All Rights Reserved. Disclaimer: IMPORTANT: This Apple software is supplied to you by A...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/stat.h> #ifndef __linux__ #include <barrelfish/barrelfish.h> #include <vfs/vfs.h> #include <barrelfish/nameservice_client.h> #include <if/replay_defs.h> #include <barrelfish/bulk_transfer....
#include <stdio.h> #include <inttypes.h> #include <string.h> #include <unistd.h> //Endianess. Adapted from https://developer.ibm.com/technologies/systems/articles/au-endianc/ #include <byteswap.h> const int _i = 1; #define is_lilendian() ((*(char *)&_i) != 0) #define WORD uint64_t //unsigned 64bit int #define PF PR...
/* * Code for parsing ac3d modeler files * * See http://www.comp.lancs.ac.uk/computing/users/andy/ac3d/ * for more information on ac3d. */ #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include <ctype.h> /* needed for toupper(), macro.. */ #include "tachyon.h" /* ray tracer api */ ...
/* devices.c * * Copyright (C) 2006-2021 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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 optio...
#include <assert.h> #include <getopt.h> #include <signal.h> #include <stdio.h> #include <string.h> #include "channel.h" #include "decode.h" #include "output/bmp_out.h" #include "parser/mcu_parser.h" #include "raw_channel.h" #include "utils.h" #ifdef USE_PNG #include "output/png_out.h" #endif #define CLR "\033[2K\r" ...
// This probably have to be tuned per systems #pragma pack(8) #define _UTSNAME_LENGTH 65 #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH typedef unsigned long time_t; // mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm struct utsname { // name of this implementation of the operating system char sysname[_UT...
/* * This file is part of DroneBridge: https://github.com/seeul8er/DroneBridge * * Copyright 2018 <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...
#include <u.h> #include <libc.h> #include <draw.h> #include <memdraw.h> #include <bio.h> #include "imagefile.h" enum { Nhash = 4001, Nbuf = 300, }; typedef struct Entry Entry; typedef struct IO IO; struct Entry { int index; int prefix; int exten; Entry *next; }; struct IO { Biobuf *fd; uchar buf[Nbuf];...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ /** Builds a kdtree from the Henry Draper catalog. I downloaded the text file from: http://cdsarc.u-strasbg.fr/viz-bin/VizieR?-meta.foot&-source=III/135A with the options: - "|-separated values",...
/* gcc -fPIC -c urs_ext.c -I/usr/include/python2.5 -o urs_ext.o -Wall -O gcc -shared urs_ext.o -o urs_ext.so */ #include "structure.h" #include "math.h" #include <stdio.h> #include <string.h> #include <errno.h> #include <float.h> #include <time.h> #define MAX_FILE_NAME_LENGTH 128 #define NODATA 99.0 #define EPSILON ...
/** * typec_wcove.c - WhiskeyCove PMIC USB Type-C PHY driver * * Copyright (C) 2017 Intel Corporation * Author: <NAME> <<EMAIL>> * * 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 Foundatio...
/* * Copyright © 2018 Red Hat Inc. * Copyright © 2015 Intel Corporation * * 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...
/* * @XMHF_LICENSE_HEADER_START@ * * eXtensible, Modular Hypervisor Framework (XMHF) * Copyright (c) 2009-2012 Carnegie Mellon University * Copyright (c) 2010-2012 VDG Inc. * All Rights Reserved. * * Developed by: XMHF Team * Carnegie Mellon University / CyLab * VDG Inc. * ...
/* Copyright (c) 2012-2013, The Linux Foundation. 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 ...
/** ****************************************************************************** * @file drv_bluetooth.c * @author MMY Application Team * @version V1.1 * @date 15/11/2013 * @brief This file provides a set of firmware functions to manage BT module **************************************...
/* * Benchmark for GLSL procedural noise functions. * * Shaders are loaded from external files, named in * the macro definitions VERTSHADERFILE and FRAGSHADERFILE*. * The main program draws a flat plane covering the * viewport, activates each of six fragment shaders in turn * and reports the fragment sha...
/* Copyright (c) 2014 The Bitcoin Core developers * Copyright (c) 2016 <NAME> * Distributed under the MIT/X11 software license, see the accompanying * file COPYING or http://www.opensource.org/licenses/mit-license.php. */ #include <ccoin/endian.h> #include <ccoin/crypto/sha1.h> #include <string.h> static inline ...
//<NAME> //Rensselaer Polytechnic Institute //Decemeber 13, 2013 #include <assert.h> #include "ross.h" //#define RIO_DEBUG // Command Line Options int g_io_number_of_files = 1; const tw_optdef io_opts[] = { TWOPT_GROUP("RIO"), TWOPT_UINT("io-files", g_io_number_of_files, "io files"), TWOPT_END() }; // U...
/* * 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" ...
/** * @file str_multireplace.c * @brief Multiple key-value replacement in provided string. * @author MMaster <<EMAIL>> * @version 0.1 * @date 2013 * @copyright Apache License v2 * * This is somewhat complex, but quite fast implementation of multiple pattern * string replacement. * It can co...
/*---------------------------------------------------------------------------- * RL-ARM - RTX *---------------------------------------------------------------------------- * Name: TRAFFIC.C * Purpose: Traffic Light Controller example program *------------------------------------------------------...
#include <stdio.h> #include <stdlib.h> void montarMemoriaDados (int *RAM); void montarSomaSub (int **memoriaInstrucoes); void maquina (int *RAM, int **memoriaInstrucoes); int multiplicar (int multiplicando, int multiplicador, int *RAM); int dividir (int dividendo, int divisor, int *RAM); int potencia (int *RAM, int ba...
/* * Builtin "git diff" * * Copyright (c) 2006 <NAME> */ #include "cache.h" #include "lockfile.h" #include "color.h" #include "commit.h" #include "blob.h" #include "tag.h" #include "diff.h" #include "diffcore.h" #include "revision.h" #include "log-tree.h" #include "builtin.h" #include "submodule.h" #include "sha1-a...
/* * Copyright (c) 2009-2012, <NAME> <antirez at gmail dot com> * 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...
// AES-128 // Original Version from // Ported and modified from C // https://github.com/kokke/tiny-AES-c/blob/master/aes.c const int Nb = 4; const int Nk = 4; const int Nr = 10; const unsigned char sbox[] = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x0...
/* * Copyright (C) 2014 BlueKitchen GmbH * * 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 follo...
/*************************************************************************\ * Copyright (c) 2009 Helmholtz-Zentrum Berlin fuer Materialien und Energie. * Copyright (c) 2006 Diamond Light Source Ltd. * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 Th...
#include "crawler.h" extern char * host; extern int port; extern int commandPort; extern int numberOfThreads; extern char * saveDir; extern char * startingURL; extern Queue * queue; extern Queue * nextFile; extern pthread_mutex_t mtx; extern pthread_cond_t cond_nonempty; int threadsWaiting = 0; extern...
/* MIT License Copyright (c) 2015 <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,...
/*------------------------------------------------------------------------- * * bitmapinsert.c * Tuple insertion in bitmaps for Postgres. * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * ...
/* * Dump an Enhanced Meta File * * Copyright 2005 <NAME> * * 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 your option) any later ve...
/* * NCXBacklight - Commandline ncurses interface to xrandr backlight capabilities * * The MIT License (MIT) * * Copyright (c) 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 ...
/* * Copyright 2014-2017 <NAME> * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <string.h> #include <ctype.h> #include <bib/bib.h> #include <bib/tex.h> #define WHITE " \n\t\r\v\f" static const struct { const char *from; const char *to; } a[] = { { "---", "\xE2\x80\x94" }, { "--...
// cc -Wall -O2 libmseed.a -I. mseedconvert.c -o mseedconvert /*************************************************************************** * mseedconvert.c * * Convert miniSEED. For example, miniSEED to xSEED or to change encoding. * * Written by <NAME>, IRIS Data Management Center * * * * Field Field name...
/* cabinet decompression regression test suite */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <mspack.h> unsigned int test_count = 0; #define TEST(x) do {\ test_count++; \ if (!(x)) {printf("%s:%d FAILED %s\n",__FUNCTION__,__LINE__,#x);exit...
/********************************************************************* Homework 5 CS 110: Computer Architecture, Spring 2021 ShanghaiTech University * Last Modified: 03/28/2021 * Copyright Notice: This file is dervived from work of <NAME> at https://github.com/B-Con/crypto-algorithms/ *******************************...
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <inttypes.h> #include <stdint.h> #include <zircon/listnode.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <threads.h> #i...
// SPDX-License-Identifier: GPL-2.0+ /* * test environment for spi, ftdi, flash library * * Copyright (C) 2018 <NAME> <<EMAIL>> * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include <getopt.h> #include <libaltusb.h> #include <libhpmusb.h> #include <libftd...
/* * This file is part of the Chelsio T2 Ethernet driver. * * Copyright (C) 2005 Chelsio Communications. All rights reserved. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE...
/* * monosn.c: Mono String Name Utility * * Author: * <NAME> (<EMAIL>) * * Copyright 2002-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) * */ #include <mono/metadata/class.h> #include <mono/metadata/debug-helpers.h> #include <mono/metadata/tokentype.h> #inc...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <netcdf.h> #include "create_hgrid.h" #include "mpp.h" #include "mpp_domain.h" #include "mpp_io.h" #define MAXBOUNDS 100 #define STRINGLEN 255 /* char grid_version[] = "0.2"; */ /* char tagname[] = "$Name: $"; */ char *usage[] ...
#define _POSIX_C_SOURCE 199309L #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <sysexits.h> #include <time.h> #include <unistd.h> #include <xkbcommon/xkbcommon.h> #include <MagickWand/MagickWand.h> #include "window.h" #include "util/error.h" #include "util/time.h" enum mucro...
/* * ISC License * * Copyright (C) 1984-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...
/** @file Draw an infinite city * * @author <NAME> */ // Includes // #include "libkuhl.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <GL/glew.h> #include <GLFW/glfw3.h> #include <unistd.h> // Global Vars // static GLuint program = 0; /**< id value for the GLSL program */ static GLuint cloudP...
/* * Copyright (c) 2020 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU) * OS-Lab-2020 (i.e., ChCore) is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * ...
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be usef...