text
stringlengths
3.08k
10.5k
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include <stdbool.h> //@ #include "arrays.gh" void check (bool b) //@ requires b; //@ ensures true; { assert(b); } typedef struct { int x; int ar [7]; int y; } struct_with_array; void check_local_inits(int x, int y) //@ ...
#include "sort.h" void swap(int *array, int i, int j) { if (i == j) return; int temp = array[i]; array[i] = array[j]; array[j] = temp; return; } void print(int *array, int size) { int i; for (i = 0; i < size; i++) printf("%d ", array[i]); printf("\n"); } int left(int index) { return 2 * index...
/* * Copyright (c) 1994, <NAME>. This software may be used, modified, * copied, distributed, and sold, in both source and binary form provided * that the above copyright and these terms are retained. Under no * circumstances is the author responsible for the proper functioning * of this software, nor does ...
#include <assert.h> #include <dirent.h> #include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <emscripten/console.h> #include <emscripten/wasmfs.h> // Define WASMFS_SETUP then WASMFS_RESUME to run th...
/* hm3301.c - Driver for HM3301 particulate matter sensor */ /* * Copyright (c) 2021 <NAME> * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT seeed_hm3301 #include <drivers/i2c.h> #include <init.h> #include <kernel.h> #include <sys/byteorder.h> #include <sys/__assert.h> #include <drivers/sensor.h...
/* rdesktop: A Remote Desktop Protocol client. Master include file Copyright (C) <NAME> 1999-2008 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...
/* * sht.c - Testprogram for shared memory refclock * read/write shared memory segment; see usage */ #include "config.h" #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #include <stdio.h> #include <time.h> #include <unistd.h> #include <stdlib.h> #include <assert.h> #include "ntp.h" #include "ntp_...
/* Python.h should always be first */ #include <Python.h> #include <ctype.h> #include <stdio.h> #include <string.h> #include "grdel.h" #include "cferbind.h" #include "cairoCFerBind.h" #include "FerMem.h" /* Instantiate the global value */ const char *CCFBPenId = "CCFBPenId"; /* * Create a pen object for this "Window...
#include "jobcomp_report.h" #include "api.h" #include "slurm_utils.h" #include "src/common/slurm_jobcomp.h" /* * These variables are required by the generic plugin interface. If they * are not found in the plugin, the plugin loader will ignore it. * * plugin_name - a string giving a human-readable description of...
#include "convert.h" arabicRomanPair roman_arabic_lookup[] = { { 3, ROMAN_III, sizeof(ROMAN_III) - 1}, { 2, ROMAN_II , sizeof(ROMAN_II) - 1 }, { 4, ROMAN_IV , sizeof(ROMAN_IV) - 1 }, { 9, ROMAN_IX , sizeof(ROMAN_IX) - 1 }, { 40, ROMAN_XL , size...
/****************************************************************************** * @file main.c * @version V3.00 * @brief * Use SD card as storage to implement a USB mass storage device. * @note * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2021 Nuvoton Technology Corp...
#include <stdint.h> #include <string.h> #include <stdlib.h> #include "6lowpan.h" #include "Ieee154.h" #include "ip.h" #include "lib6lowpan.h" #include "nwbyte.h" #include "ip_malloc.h" #include "iovec.h" int lowpan_recon_complete(struct lowpan_reconstruct *recon, struct ip6_packet_headers *...
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 ...
// Copyright (C) 2017 Bonsai AI, Inc. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <json-glib/json-glib.h> #include <json-glib/json-gobject.h> #include <curl/curl.h> #include "tmwtypes.h" #include "rtwtypes.h" static const char * PORTENV = "BONSAI_COORDINATOR_PORT"; static...
/*------------------------------------------------------------------------------ Copyright (c) 2008 The Khronos Group Inc. All Rights Reserved. This code is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. This is UNPUBLISHED PROPRIETARY SOURCE CODE that may not be disclosed i...
#include "collisions.h" #include "simple_logger.h" void check_tile_ahead(Entity* self, int** tiles) { //Check bottom tile int left_bound = ((self->position.x + self->hitbox.offsetx) / 32); int right_bound = ((self->position.x + self->hitbox.w + self->hitbox.offsetx) / 32); int bottom_tile = ((self->position.y + ...
#include "endpoints.h" #include "control.h" // The handles are opaque to the application typedef struct endpoint_handle* optimsoc_mp_endpoint_handle; #define __OPTIMSOC_INTERNAL__ #include "include/optimsoc-mp.h" #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> /* * All message passin...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <unistd.h> #include <string.h> void read_obs_seq_from_file(FILE *fp, int *num_seqs_ptr, char ***obs_seqs_ptr){ int i,j; char mystring[100]; *num_seqs_ptr = 1; /* for now, one seq in a file */ *obs_seqs_ptr = (char ...
/* __________________________________________________________________________ * DEVELOPMENT HISTORY: * -------------------- * * $Author:: $: <NAME> * $Rev:: $: Revision of last commit * $Date:: $: 10/25/2018 * $Comments (Refer to applicable SCR/PR) $: Initial version of the file. * ____________________________________...
/* Copyright (c) 2014 <NAME> <<EMAIL>> Copyright (c) 2014 Center for Bioinformatics, University of Hamburg 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 cop...
/* $title: 'RUNFIX.C ===== Fix Java source code threading =====' */ /* $subtitle: 'Elipse Ltd. [jms] 2007 Jul 30' */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main( int argc, char *argv[] ); static void runfix( const char *source ); static int scan( const char *infi...
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD // // Copyright (c) 2021 <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 t...
/* * Protocol v1, client implementation. * * This is the client implementation of the old v1 protocol, which doesn't * support streaming, keep-alive, or many of the other features of the current * protocol. We shoehorn this protocol into the same API as the new protocol * so that clients don't have to care, but ...
#include <hal.h> #include <chprintf.h> #include <ff.h> #include <stdio.h> #include <string.h> #include "timestamp/timestamp.h" #include <error/error.h> #include <parameter/parameter.h> #include "main.h" #include "chibios-syscalls/stdio_lock.h" #include "log.h" #include "usbconf.h" #include "gui.h" #define OUTPUT_STRE...
/* * VRT RULES * * Copyright (C) 2014-2019 Cisco and/or its affiliates. All rights reserved. * Copyright (C) 2005-2013 Sourcefire, Inc. * * This file is autogenerated via rules2c, by <NAME> <<EMAIL>> */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "pcre.h" #include "sf_snort_plugin_api.h" #include...
#include <stdio.h> #include <stdlib.h> #include <string.h> /* (C) 2014, MIT license, number_to_longhand.c , <NAME> */ void num_to_word_err(); void num_to_word(char *, int, int); int main (int argc, char *argv[]) { /* check for argument */ if (!argv[1]) num_to_word_err(); char *array = argv[1]; if (!array) ...
/* UTMP API * * Copyright (c) 2016 <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, modi...
// // Created by cout970 on 26/01/18. // #include <types.h> #include <file.h> #include <util/bitmap.h> #include <string.h> #include "fs/filesystem.h" #define MAX_OPEN_FILES 8 // MEMORY #define FD_TYPE_FILE 0 #define FD_TYPE_STD 1 typedef struct FileDescriptorEntry { Int type; union { INodeRef inode...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include "cJSON.h" #include "seniverse_weather.h" #include "seniverse_cJson_utils.h" #include "test_weather_location.h" /* #API: 北京今天和未来 4 天的预报 https://api.seniverse.com/v3/weather/daily.json?key=S-nc7Ea36Sthm8mGn&location=beijing&language=...
/** * Behavior file for bhvTweester and bhvTweesterSandParticle * Tweester swaps between twhree action- an idle action, a chasing * Mario action, and an action that hides it. At certain times the * Tweester spawns the sand particles also in this file. */ struct ObjectHitbox sTweesterHitbox = { /* interactType...
#include "stm32f072b_discovery.h" void mouse_button_Init(void) { RCC->AHBENR = RCC->AHBENR | RCC_AHBENR_GPIOBEN; } uint8_t mouse_button_state(void) { uint8_t tmp=0; if ((GPIOA->IDR&(1<<0))==0) tmp = tmp | 0x01; if ((GPIOA->IDR&(1<<1))==0) tmp = tmp | 0x04; if ((GPIOA->IDR&(1<<2))==0) tmp = tmp | 0...
// // MIT License // // Copyright (c) 2022 <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, m...
/* * A 32-bit implementation of the TEA algorithm * Copyright (c) 2015 <NAME> * * Loosely based on the implementation of <NAME> and <NAME>, * https://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm#Reference_code * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * mo...
/* * Copyright (C) 2014 <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 disclai...
#include "Disassemble.h" // Instruction/Disassemble.h #include "Opcodes.h" #ifdef __linux__ #define _XOPEN_SOURCE 700 #endif #include <stdio.h> // snprintf #include <strings.h> // bzero #include <string.h> // strdup #include <assert.h> // assert static const char *instruction_identifiers[2 << 6] = { [OPCODE_...
#include <stdint.h> #include <stdio.h> #include <string.h> #include "cJSON.h" #define USE_ARCHIVIST #define USE_PICASSO #define USE_RECTIFY #define USE_TOME #include "bedrock/bedrock.h" #define USE_ASCII #define USE_ASSETS #include "main.h" void *shader_loader(const char *name, const char *path) { uintmax_t vert_...
#pragma once #include <stdint.h> #include <lab/logger.h> #include <lab/vector.h> typedef enum lab_vm_object_type_e { LAB_VM_OBJECT_STRING } lab_vm_object_type_e_t; typedef struct lab_vm_object { lab_vm_object_type_e_t type; } lab_vm_object_t; typedef enum lab_vm_value_type_e { LAB_VM_VALUE_TYPE_NIL, ...
/// @file Global.h /// @brief 全局定义文件 #pragma once // 版本控制 //#define LDEVVERSION // CRTDBG #include <crtdbg.h> // C #include <cassert> #include <cstdlib> #include <cstdio> #include <cmath> #include <ctime> // STL #include <functional> #include <algorithm> #include <string> #include <sstream> #include <vector> #inclu...
/******************************************************************** * File : gcQueue.c * Author : <NAME> Copyright (C) 1994-2021 * Purpose: Queue class and other utilities used by the GC * 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...
/***************************************************************************//** * @file main.c ******************************************************************************** * Copyright 2013(c) Analog Devices, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or with...
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
#include <pebble.h> Window *my_window; TextLayer *time_layer; TextLayer *text_layer; GFont time_font; GFont text_font; int old_mode; int h; int m; int is_sleep_time(int hour) { if(hour < 7) return 1; if(hour >= 23) return 1; return 0; } int is_morning(int hour, int minute) { if(hour == 7 || (hour == 8 ...
// wkcgi.c #include <stdlib.h> #include <stdio.h> #include "wkcgi.h" int log_message(char * msg) { // fprintf (stderr, msg); return 0; } int sendCgiRequest(int sock, DictHolder* alldicts) { int bs = 0; int length = 0; int totalsent = 0; int content_length = 0; char *buffer; int buflen = 8192; char *len_str;...
#include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <arpa/inet.h> #include <fcntl.h> #include <netdb.h> #include <poll.h> #include <sys/errno.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <time.h> #include...
/* $NetBSD: symbol.c,v 1.1 1996/12/16 20:38:06 cgd Exp $ */ /* * Copyright 1996 <NAME>. * Copyright 1996 <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. Redistribu...
/* ************************************************************************ */ /* */ /* Systool - a Neko VM library */ /* Copyright (c)2006 */ /* <NAME>, <NAME>, <NAME> */ /* */ /* This library is free software; you can redistribute it and/or */ /* mo...
#include "pgroonga.h" #include "pgrn-global.h" #include "pgrn-groonga.h" #include "pgrn-alias.h" #include "pgrn-wal.h" static grn_ctx *ctx = &PGrnContext; static struct PGrnBuffers *buffers = &PGrnBuffers; #define TABLE_NAME "Aliases" #define TABLE_NAME_SIZE (sizeof(TABLE_NAME) - 1) #define REAL_NAME_COLUMN_NAME "re...
#pragma once #include <assert.h> #include <math.h> #include <stdint.h> #include <stdlib.h> #include <lua.h> #include <lauxlib.h> #include "kosher.h" #include "compat.h" //#include "libperlin.h" extern double perlin_generate(double, double); typedef uint_fast8_t lang_word_t; typedef struct { int length; int se...
/* SPDX-License-Identifier: BSD-2-Clause */ #include <errno.h> #include <error.h> #include <getopt.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "eval_cmdline.h" #include "fpga.h" const char copyright[] = "Copyright (c) Technologic Systems - " __DATE__...
/* $NetBSD: bpf.c,v 1.11 2012/12/14 08:15:44 msaitoh Exp $ */ /* * Copyright (c) 2005 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 * modification...
#include "telehash.h" typedef struct thtp_struct { xht_t index; lob_t glob; } *thtp_t; thtp_t thtp_new(switch_t s, xht_t index) { thtp_t t; t = malloc(sizeof (struct thtp_struct)); memset(t,0,sizeof (struct thtp_struct)); if(!index) index = xht_new(13); t->index = index; xht_set(s->index,"thtp",t); ...
/* * 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 version. * * FFmpeg is distributed...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "infixcalc.h" #include "minunit/minunit.h" int calc(const char *expr, InfixCalcVariable *vars, size_t nvars) { char err[256]; int val = infixcalc(expr, vars, nvars, err, sizeof(err)); printf("\n%s = ", expr); if (err[0]) printf("\n*** E...
/* * Copyright © 2012 Collabora, Ltd. * Copyright © 2014 <NAME> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that copyright * notice and ...
/****************************************************************************** * $Id$ * * Project: MapServer * Purpose: Functions for operating on a layerObj that don't belong in a * more specific file such as mapfile.c. * Adapted from mapobject.c. * Author: <NAME>, <EMAIL> * *********...
/* * Portable Forth interpreter. * Copyright (C) 1990-2006 <NAME>, <<EMAIL>>. * * This file 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. * * You can redistribute this file and/or modify ...
#include "Header.h" #include "InterpreterNamesTable.h" #include "Interpreter.h" #include "InterpreterLexical.h" #include "InterpreterSyntax.h" #include "InterpreterExecute.h" #include "InterpreterPreCompile.h" int StartInterpret (names_table *Names_table); //--------------------------------------------------------...
/* { dg-do run } */ /* { dg-options "-O2" } */ #include <string.h> #include <stdlib.h> #define LEN (100) short a[LEN]; int b[LEN]; void init (signed char *arr, int len) { int i; for (i = 0; i < len; i++) arr[i] = 0; } void check (signed char *arr, int idx, int len, int v) { int i; for (i = 0; i < idx; i...
#include "bagel.h" #include <assert.h> #include <stdlib.h> #include <stdio.h> extern bg_error bg_net_from_yaml_file(const char *filename); int main() { bg_edge_id_t *edges; bg_node_id_t *inputs; bg_graph_t *net; bg_node_id_t node1=1, node2=2, node, output=6; bg_edge_id_t tmpEdge; bg_real outputValue, de...
/*#*STARTLICENCE*# Copyright (c) 2005-2009, Regents of the University of Colorado 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, ...
/* * * Copyright (C) 2010 Motorola * * 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 agree...
#include <pcap.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <netinet/in_systm.h> #include <netinet/ip.h> #include <netinet/ip_icmp...
/* * This file is part of the Hoverboard Utility Gateway System (HUGS) project. * * The HUGS project goal is to enable Hoverboards, or Hoverboard drive components * to be re-purposed to provide low-cost mobility to other systems, such * as assistive devices for the disabled, general purpose robots or other * labor sa...
/* * Unix SMB/CIFS implementation. * Performance Counter Daemon * * Copyright (C) <NAME> 2005 * * 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 Licens...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "memory.h" #define TRUE 1; #define FALSE 0; char* _g_allocator_memory = NULL; int _g_allocator_memory_size = 128; int _g_bytes_allocated = 0; struct block { struct block* pNext; unsigned int szBlock; void* data; }; typedef struct...
/* * ------------------------------------------------------ * Used documentation SMSC FDC37C665GT * ------------------------------------------------------ */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <signode.h> #include <bus.h> #include <sgstring.h> #define PP_DATA(base) ((base) + 0)...
/* RaspberryPi mini tablet sub-mcu handler Ver 0.01 Copyright <NAME>(<EMAIL>) This program is distributed under the lisence of Apache 2.0. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/i2c.h> #include <linux/i2c-...
/****************************************************************************** * recordMyDesktop * ******************************************************************************* * * ...
/* Argp example #4 -- a program with somewhat more complicated options */ /* This program uses the same features as example 3, but has more options, and somewhat more structure in the -help output. It also shows how you can `steal' the remainder of the input arguments past a certain point, for programs that ...
#include <stdint.h> #include <string.h> #include <debug.h> #include <platform/boot_mode.h> #include <platform/partition.h> #include <platform/verified_boot.h> #include <platform/sec_policy.h> #ifdef DEVICE_TREE_SUPPORT #include <libfdt.h> #endif #include <platform/emi_mpu.h> #include <part_interface.h> #include <env.h>...
#include <stdio.h> #include "alloc.h" #include "elf.h" #include "link.h" // this file is obsoleted as it is PhdrList InitPhdr = {}; static uint8_t FIRST_PHDR = 1; extern Config* Confp; static void* RawDataOffset = 0; static int convert_sh_to_ph_type(Elf64_Shdr* shdr) { int sh_type = shdr->sh_type; int ph_type...
/* * Copyright 2015 Rockchip Electronics Co. LTD * * 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...
/** * @file gpio.c * @author <NAME> (<EMAIL>) * @brief Contains the GPIO driver functions implementation. * @version 0.1 * @date 2022-01-13 * * @copyright Copyright (c) 2022 * */ #include "gpio.h" #include "uart.h" /**< GPIO registers definition and declaration. */ volatile unsigned int* GPFSELx[]={ (vola...
#include "cache.h" #include "config.h" #include "string-list.h" /* * versioncmp(): copied from string/strverscmp.c in glibc commit * ee9247c38a8def24a59eb5cfb7196a98bef8cfdc, reformatted to Git coding * style. The implementation is under LGPL-2.1 and Git relicenses it * to GPLv2. */ /* * states: S_N: normal, S_...
/* * Attention: * To keep things simple, do not handle * socket/bind/listen/.../epoll_create/epoll_wait API error */ #include <errno.h> #include <fcntl.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/types.h> #include <uni...
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <time.h> const char WALL = '#'; const char PERSON = 'o'; //tava tentando por um bonequinho pra entrar no lab. const char PATH = '.'; void mostrar_matriz(int nl, int nc, char mat[nl][nc]); typedef struct _Pos{ int l; int c; } Pos; #def...
// Copyright (c) 2019 <NAME> // Licensed under an MIT style license, see LICENSE.md for details. // You are free to copy and modify this code. Happy hacking! #include <stdlib.h> #include "grid_engine/grid_engine.h" typedef struct user_data { ge_sc_view_t* view; uint32_t last_update_time_ms; double scroll_spee...
/* * Copyright (c) 2015 Google Inc. All rights reserved * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, mo...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <netinet/in.h> #include <sys/types.h> #include <sys/socket.h> #include <signal.h> #include <math.h> #include "util/metadata.h" #include "util/usermenu.h" #include "util/constants.h" #include "util/torrent.h" #include "util/hash.h" #include "server.h" #...
/* * Copyright (c) 2012-2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, * publ...
/*+------------------------------------------------------------------------- logevent.c - log ecu event <EMAIL> Defined functions: logevent(pid, event_note) vlogevent(pid, format, va_alist) --------------------------------------------------------------------------*/ /*+:EDITS:*/ /*:04-26-2000-11:16-wht@bob-RELE...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <err.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include "auth.h" #include "auth_dane.h" static char *_cert_file; static char *_key_file; static int _port = 666; static int _listen = 0; static char *...
/* BSD 3-Clause License Copyright (c) 2021, Smart6502 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...
/* * Copyright (C) 2009-2011 <NAME> <nick<EMAIL> at <EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
#include "mm.h" #include "arm/mmu.h" /* minimalist page allocation */ static unsigned short mem_map [ PAGING_PAGES ] = {0,}; unsigned long allocate_kernel_page() { unsigned long page = get_free_page(); if (page == 0) { return 0; } return page + VA_START; } unsigned long allocate_user_page(struct task_struct...
/* * Copyright (C) 2020 <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 3 of the License, or * (at your option) any later version. * * This library is dist...
/* * Glide64 - Glide video plugin for Nintendo 64 emulators. * Copyright (c) 2002 Dave2001 * Copyright (c) 2003-2009 Sergey 'Gonetz' Lipski * * 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; ei...
/* GStreamer audio filter base class * Copyright (C) <1999> <NAME> <<EMAIL>> * Copyright (C) <2003> <NAME> <<EMAIL>> * Copyright (C) <2007> <NAME> <tim centricular net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as pub...
/* _NVRM_COPYRIGHT_BEGIN_ * * Copyright 2017 by NVIDIA Corporation. All rights reserved. All * information contained herein is proprietary and confidential to NVIDIA * Corporation. Any use, reproduction, or disclosure without the written * permission of NVIDIA Corporation is prohibited. * * _NVRM_COPYRIGHT_EN...
/*++ /* NAME /* postscreen_endpt 3 /* SUMMARY /* look up connection endpoint information /* SYNOPSIS /* #include <postscreen.h> /* /* void psc_endpt_lookup(smtp_client_stream, lookup_done) /* VSTREAM *smtp_client_stream; /* void (*lookup_done)(status, smtp_client_stream, /* smtp_client_addr, smtp_client_port, /* ...
/* Limbus - A cross-platform multimedia library. Written in 2014 by <NAME> <EMAIL> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have ...
/* * Copyright (C) 2012-2013 ProFUSION embedded systems * * 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 version...
#include <stdlib.h> #include <string.h> #include "dataBase.h" #include "openFile.h" #include "logger.h" #include "query.h" DataBase * connect(char *pathBase) { DataBase *dataBase = NULL; dataBase = (DataBase*)malloc(sizeof(DataBase)); if(dataBase == NULL) { return NULL; } // Ouverture des Tables ope...
#include "builtin.h" #include "cache.h" #include "pack.h" #include "pack-revindex.h" #include "parse-options.h" #define MAX_CHAIN 50 #define VERIFY_PACK_VERBOSE 01 #define VERIFY_PACK_STAT_ONLY 02 static void show_pack_info(struct packed_git *p, unsigned int flags) { uint32_t nr_objects, i; int cnt; int stat_only...
/* * Copyright (c) 2014 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
/* * Copyright (c) 2014 Nuvoton technology corporation. * * 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;version 2 of the License. * */ #include <linux/bitops.h> #include <linux/errno.h>...
/* ------------------------------------------------------------------------- * pg_dumplo * * $Header: /home/hjcvs/OB-CCM-1.0/postgresql/contrib/pg_dumplo/lo_export.c,v 1.2 2004/07/05 08:55:03 SuLiang Exp $ * * <NAME> 1999-2000 * ------------------------------------------------------------------------- */ #i...
// // Created by <NAME> on 2020/9/11. // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "kdTree.h" #include "pointFunctions.h" #include "dictFunctions.h" #include "findClosest.h" /* get x coordinate from input */ double getX(char* buffer) { double x = 0; char* xStr = NU...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <float.h> #include <string.h> #include <math.h> #include "d_model.h" static double comp_ll (em_data *data) { double logsum = 0.0; int n,i,j; all_f *arr = data->arr; for (n = 0; n < arr->poscount; ++n) { pos_f p = arr->a[n]; for (i ...