text
stringlengths
3.12k
18.7k
/* This file is part of MAMBO, a low-overhead dynamic binary modification tool: https://github.com/beehive-lab/mambo Copyright 2017-2019 The University of Manchester Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may...
/**************************************************************************** * * Copyright (C) 2014, <NAME> <my.name at google's mail service> * All Rights Reserved. * * 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 Fre...
#include <stdbool.h> #include <stdio.h> #include "gpu.h" #include "memory.h" #include "display.h" #include "palette.h" SDL_Color screen_pixels[VISIBLE_SCANLINES][160]; static void render_tiles(void); static void render_sprites(void); // Helpers static bool is_tile_display_enabled(void); static bool is_sprite_display...
/* * Copyright 2003, QNX Software Systems Ltd. All Rights Reserved. * * This source code may contain confidential information of QNX Software * Systems Ltd. (QSSL) and its licensors. Any use, reproduction, * modification, disclosure, distribution or transfer of this software, * or any software which includes or ...
// Modified for Retro #include <stdio.h> #include <stdlib.h> #include <signal.h> #include "SDL.h" #include "micromod.h" /* Simple command-line test player for micromod using SDL. */ #define SAMPLING_FREQ 48000 /* 48khz. */ #define REVERB_BUF_LEN 4800 /* 50ms. */ #define OVERSAMPLE 2 /* 2x oversampli...
/** @file * @brief HoG Service sample */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/types.h> #include <stddef.h> #include <string.h> #include <errno.h> #include <byteorder.h> #include <zephyr.h> #include <bluetooth.h> #include <conn.h> #include <uuid....
/* Copyright 2008-2016 <NAME> <http://drobilla.net> 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. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
////////////////////////////////////////////////////////////////////////// // Platform-independent IO macros #define RS_FLAG ((uint8_t)1<<RS_PIN) #define CS_FLAG ((uint8_t)1<<CS_PIN) #define CD_FLAG ((uint8_t)1<<CD_PIN) #define WR_FLAG ((uint8_t)1<<WR_PIN) #define RD_FLAG ((uint8_t)1<<RD_PIN) #define CONTROL_MASK (R...
/* * Copyright © 2014 Advanced Micro Devices, 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, * modi...
/********************************************************** * Copyright 2008-2009 VMware, 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 * restrict...
/** * @file * * @author <EMAIL> * * Copyright (c) 2015 Battelle Memorial Institute. */ #include "config.h" #include <stdint.h> #include <stdlib.h> #include "parasail.h" #include "parasail/memory.h" #define NEG_INF_32 (INT32_MIN/2) #define MAX(a,b) ((a)>(b)?(a):(b)) #ifdef PARASAIL_TABLE #define ENAME parasail...
// Copyright 2015 <NAME>. #include "test_common.h" #include "vector.h" #include <math.h> TESTING(vector); // Constants static const Vector x = VEC(4, 5, 1); static const Vector y = VEC(3, 6, 2); static const Vector z = VEC(1, 2, 3); static const Vector w = VEC(0, 9, 0); // Tests static void test_add(void) { V_...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "../jsmn.h" /* * A small example of jsmn parsing when JSON structure is known and number of * tokens is predictable. */ static char * readJSONFile(){ // 파일 읽어들이는 함수 char oneline[255]; char * c = (char *)malloc(6); // 먼저 메모리 할당 int count=...
/** * Copyright (C) 2018 Bosch Sensortec GmbH * * SPDX-License-Identifier: BSD-3-Clause * * @file bmi160_read_sensor_data.c * @brief Sample file to read BMI160 sensor data using COINES library * */ /*********************************************************************/ /* system header files */ /*********...
#pragma ident "$Id: gps.c,v 1.14 2016/01/21 19:37:49 dechavez Exp $" /*====================================================================== * * Q330 GPS control * *====================================================================*/ #include "q330cc.h" void GpsHelp(char *name, int argc, char **argv) { pri...
// * BeginRiceCopyright ***************************************************** // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of // HPCToolkit is at 'hpctoolkit.org' and in 'RE...
/* * Copyright (c) 2021 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Sample Application for PWM * This example demonstrates the following * Derive the clock rate for the PWM device * Generate the PWM output by setting the period and pulse width * in terms of clock cycles ...
/*- * Copyright (c) <2010-2018>, Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /* Created 2010 by <NAME> <EMAIL> */ #include <rte_lua.h> #include "pktgen-display.h" #include "pktgen-log.h" #include "pktgen.h" #ifndef MBUF_INVALID_PORT #if RTE_VERSION >= RTE_VERSION_NUM(17,...
#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <netinet/in.h> #include <rte_common.h> #include <rte_ether.h> #include <rte_tcp.h> #include <rte_udp.h> #include "nf-util.h" #include "nf-log.h" #ifdef KLEE_VERIFICATION # include <klee/klee.h> #endif void *chunks_borrowed[MAX_N_CHUNKS]; size_t...
/* devXxHeidenhainGpib.c */ /* share/src/devOpt @(#)devXxSkeletonGpib.c 1.2 7/1/93 */ /* * Author: <NAME> * Date: 02-18-92 * * Experimental Physics and Industrial Control System (EPICS) * * Copyright 1988, 1989, the Regents of the University of California, * and the University of Chica...
/* $NetBSD: svc_simple.c,v 1.20 2000/07/06 03:10:35 christos Exp $ */ /*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2009, Sun Microsystems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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 ...
/* Copyright (C) Intel Corp. 2006. All Rights Reserved. Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to develop this 3D driver. 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 ...
/* * $Id: wm_dragdrop.c 40114 2011-09-11 06:41:09Z campbellbarton $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 Li...
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpidi_ch3_impl.h" #undef FUNCNAME #define FUNCNAME update_request #undef FCNAME #define FCNAME MPIDI_QUOTE(FUNCNAME) static void update_request(MPID_Request * sreq, MPI...
// Copyright 2021 The IconVG Authors. // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
/**HEADER******************************************************************** * * Copyright (c) 2008 Freescale Semiconductor; * All Rights Reserved * * Copyright (c) 2004-2008 Embedded Access Inc.; * All Rights Reserved * * Copyright (c) 1989-2008 ARC International; * All Rights Reserved * ****************************...
/* Axel -- A lighter download accelerator for Linux and other Unices Copyright 2001-2007 <NAME> Copyright 2008 <NAME> Copyright 2008-2009 <NAME> Copyright 2015 <NAME> Copyright 2016 <NAME> Copyright 2016 <NAME> Copyright 2016 <NAME> Copyright 2016 <NAME> Copyright 2017...
/* * !/usr/bin/python * -*- coding: utf-8 -*- * * This file is part of pyunicorn. * Copyright (C) 2008--2017 <NAME> and pyunicorn authors * URL: <http://www.pik-potsdam.de/members/donges/software> * License: BSD (3-clause) */ // mutual_info ================================================================ void _cython...
/* pbCalDistGlobal - Create tab delimited data files to be used by Proteome Browser stamps */ #include "common.h" #include "hash.h" #include "hCommon.h" #include "hdb.h" #include "spDb.h" #include "linefile.h" #define MAX_PROTEIN_CNT 10000000 void usage() /* Explain usage and exit. */ { errAbort( "pbCalDistGlobal- ...
/* * Copyright © 2018 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 to use, copy, modify, merge, pub...
#include "phase_one.h" /*********************************************** ***** This file contains the main function ***** ******* that sets the data and reads the ******* *** .as file and sends each line to handlers *** ***********************************************/ /* This method handles each .as line INPUT: files...
/* Copyright 2010, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditi...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright 2018-2019 NXP * * Brief CAAM Controller Hardware Abstration Layer. * Implementation of primitives to access HW. */ #include <caam_hal_ctrl.h> #include <caam_io.h> #include <platform_config.h> #include <registers/ctrl_regs.h> #include <registers/vers...
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the followin...
#include <avr/pgmspace.h> #include <avr/interrupt.h> #include <util/atomic.h> #include <stdio.h> #include "board.h" #include "motor.h" #include "uart.h" #include "inputs.h" #include "events.h" #include "config.h" /* | Function | Define | AVR | Arduino | AKA. | |-----------|----------------|-----|------...
/* * tslib/tests/ts_calibrate.c * * Copyright (C) 2001 <NAME>. * * This file is placed under the GPL. Please see the file * COPYING for more details. * * $Id: ts_calibrate.c,v 1.8 2004/10/19 22:01:27 dlowder Exp $ * * Basic test program for touchscreen library. */ #include "config.h" #include <stdio.h> #...
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> // physical base address of GPIO #define GPIO_ADDRESS 0x400D0000 // length of MEM Mapped IO window #define GPIO_MAP_LEN 0xFF #define LED1_OFFSET 0x12C /* Offset for LED1 */ #define LED2_OFFSET 0x130 /* Offset for LED...
//////////////////////////////////////////////////////////////////////////////// /// @file WL_2_4G_CFG.C /// @author <NAME> /// @version v2.0.0 /// @date 2019-02-18 /// @brief THIS FILE PROVIDES ALL THE 2.4GHZ EXAMPLE. //////////////////////////////////////////////////////////////////////////////// /// @a...
#include <lcom/lcf.h> #include <vbe.h> #include <stdlib.h> #include "util.h" vbe_mode_info_t vbe_mode_info; static uint8_t* mapped_mem; static uint8_t *backbuffer = NULL; static uint32_t buffer_size = 0; static uint8_t bytes_per_pixel = 0; void *retry_lm_alloc(size_t size, mmap_t *mmap){ void *result = NULL; ...
/* * ----------------------------------------------------------------------------- * * pgxc_monitor utility * * Monitors if a given node is running or not. * * Command syntax: * * pgxc_monitor [ options ] * * Options are: * -Z nodetype What node type to monitor, gtm or node. * gtm tests gtm, gtm_stan...
#include "ezxml.h" #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <unistd.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/ioctl.h> #define MAX_FILES 256 struct file_info { int size; char filename[2048]; char id[256]; }; int num_files = 0; struct fil...
/* Like copy, but ensure sequential access. * * Handy with sequential for loading files formats which are strictly * top-to-bottom, like PNG. * * 15/2/12 * - from VipsForeignLoad * 14/7/12 * - support skip forwards as well, so we can do extract/insert * 10/8/12 * - add @trace option * 21/8/12 * - remo...
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later /* Copyright 2013-2019 IBM Corp. */ #ifndef pr_fmt #define pr_fmt(fmt) "STB: " fmt #endif #include <skiboot.h> #include <device.h> #include <nvram.h> #include <opal-api.h> #include "secureboot.h" #include "trustedboot.h" #include "tpm_chip.h" #include "ibmtss...
/* $OpenLDAP: pkg/ldap/tests/progs/slapd-addel.c,v 1.19.2.3 2003/03/03 17:10:12 kurt Exp $ */ /* * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ #include "portable.h" #include <stdio.h> #include <ac/stdlib.h> #include <ac/ctype.h> #include <a...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2020 <NAME> │ │ ...
//---------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 2000. // // File: policy-r.c // // Contents: Policy management for registry. // // // History: KrishnaG. // AbhisheV. // //------------...
#include "buf.h" #include "user.h" #include "proc.h" #include "conf.h" /* * This is the set of buffers proper, whose heads * were declared in buf.h. There can exist buffer * headers not pointing here that are used purely * as arguments to the I/O routines to describe * I/O to be done-- e.g. swbuf, just below, f...
#include "u8g2.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define CHGR_WIDTH 96 //#define CHGR_WIDTH 102 //#define CHGR_HEIGHT 32 #define CHGR_HEIGHT 68 unsigned char chgr_bitmap[CHGR_HEIGHT/2][CHGR_WIDTH/2]; unsigned char *chgr_bitmap_pos(unsigned x, unsigned y) { if ( x >= CHGR_WIDTH ) ret...
/* icat_serv.c - Server I/O (i.e. IRC) handling * icat - IRC netcat on top of libsrsirc - (C) 2012-20, <NAME> * See README for contact-, COPYING for license information. */ #define LOG_MODULE MOD_ICATSERV #if HAVE_CONFIG_H # include <config.h> #endif #include "icat_serv.h" #include <inttypes.h> #include <stdio.h>...
// Inferno utils/6l/obj.c // http://code.google.com/p/inferno-os/source/browse/utils/6l/obj.c // // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. // Portions Copyright © 1995-1997 <NAME> (<EMAIL>) // Portions Copyright © 1997-1999 Vita Nuova Limited // Portions Copyright © 2000-2007 Vita Nuova Ho...
#include <stdint.h> /* <NAME> <<EMAIL>> This file defines CRC computation for the FCS field in the IEEE 802.15.4 The algorithm is defined in the IEEE 802.15.4-2006 standard, Section 7.2.1.9 This file uses codes from <NAME> and <NAME> that are licenced through public domain The following test value is the only o...
/* server part Author: <NAME> Last Modified: Oct. 21, 2017 */ #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <poll.h> #include <string.h> #include <stdlib.h> #define N 5 int current_client_num = 0; int MAX_CLINET_NUM; char username_list[5][512]; int user_send_list[5][5]; // user's sen...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include <limits.h> #include <stddef.h> #include <stdint.h> uint8_t reverse_byte_loop(uint8_t byte) { uint8_t reversed = 0; for (size_t i = 0; i < CHAR_BIT; i++) { reversed |= ((byte >> i) & 0x01) << (CHAR_BIT - 1 - i); } return reversed; } uint8_t reverse_byte_bitfield(uint8_t byte) { t...
// SPDX-License-Identifier: GPL-2.0 #define _GNU_SOURCE #include <arpa/inet.h> #include <errno.h> #include <error.h> #include <netinet/if_ether.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ip6.h> #include <netinet/udp.h> #include <poll.h> #include <sched.h> #include <signal.h> #include <stdboo...
/* The Computer Language Benchmarks Game * http://benchmarksgame.alioth.debian.org/ contributed by <NAME> */ #define _GNU_SOURCE #include <assert.h> #include <ctype.h> #include <pthread.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #d...
/*Daala video codec Copyright (c) 2012 Daala project contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list o...
/* * Copyright (c) 2005, 2007, 2010, 2013 Genome Research Ltd. * Author(s): <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 notic...
// Copyright (c) <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this file, // You can obtain one at https://spdx.org/licenses/MIT.html. // https://github.com/DLTcollab/sse2neon #pragma once #include <arm_neon.h> typed...
/* Copyright (c) 2018-2019, tevador <<EMAIL>> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* * wm8994-irq.c -- Interrupt controller support for Wolfson WM8994 * * Copyright 2010 Wolfson Microelectronics PLC. * * 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 as published by the * Free ...
struct semanage_fcontext; struct semanage_fcontext_key; typedef struct semanage_fcontext record_t; typedef struct semanage_fcontext_key record_key_t; #define DBASE_RECORD_DEFINED #include <stdlib.h> #include <string.h> #include "fcontext_internal.h" #include "debug.h" struct semanage_fcontext { /* Matching expressi...
/* * Copyright (c) 2016-2018, OARC, Inc. * 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 ...
/* ** Copyright (C) 2001-2011 <NAME> <<EMAIL>> ** ** 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. **...
/*- * Copyright (c) 2002 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
#include "sg.h" #include "sicm_low.h" #include <fcntl.h> #include <numa.h> #include <semaphore.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/stat.h> #include <stdio.h> #include "sicmimpl.h" struct suballoc_t { void* ptr; struct sicm_device* device; size_t sz; }; struct allocation_t { void* ptr; ...
/* * 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 use...
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
/* * 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 ...
/* * I n t e r n a l D e f i n i t i o n s f o r C P P * * In general, definitions in this file should not be changed. * * * $Id: cpp.h,v 1.6 2016-03-29 11:44:18 dom Exp $ * */ #include <stdint.h> #ifndef TRUE #define TRUE 1 #define FALSE 0 #endif #ifndef EOS /* * This is predefined in Decus C */ ...
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions ...
/* * _serial.c * * Created: 15.03.2019 14:45:01 * Author: jayst */ #include "serial.h" unsigned char readBufferLength = 50; unsigned char dataLength = 50; unsigned char *WdAllert; // Initialisiet UART gegebener oszillatorfrequenz udn Baudrate void uart_init(long Oszi, long Baud, unsigned char SizeOfReadBuff...
/* * CBC file handling * * Copyright (C) 2006-2013 <NAME> <<EMAIL>> * * This file is part of cb2util, the CodeBreaker PS2 File Utility. * * cb2util is licensed under the terms of the MIT License. See LICENSE file. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <getop...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
/*** * All of the connectivity for https://www.poloniex.com */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <ctype.h> #include "mbedtls/md.h" #include "libp2p/crypto/encoding/base64.h" #include "bridge/book.h" #include "utils/https.h" #include "utils/json.h" #include "curl/curl.h" const char*...
/* Copyright since 2016 the OMPi Team Dept. of Computer Science & Engineering, University of Ioannina 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, ...
/* * ngtcp2 * * Copyright (c) 2017 ngtcp2 contributors * * 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, m...
#include <stdint.h> #include <stdlib.h> #include "sdk_config.h" #include "platform.h" #include "cpu.h" #include "log.h" #define ENV_BUF_SIZE 2048 #if CONFIG_AOS #define DB_BUF_SIZE 0 #define MSG_BUF_SIZE 2304 #define NON_RET_BUF_SIZE (12) #else #define DB_BUF_SIZE 8192 #define MSG_BUF_SIZE 8192 #define NON_RET_BUF_SIZ...
#include "stdlib.h" #include "queue.h" #include "threading.h" //@ #include "ghost_cells.gh" struct message { int id; }; struct message *create_message(int id) //@ requires true; //@ ensures message_id(result, id) &*& malloc_block_message(result); { struct message *message = malloc(sizeof(...
#include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/spinlock.h> #include <linux/interrupt.h> #include <linux/delay.h> #include <mach/irqs.h> #include <mach/mt_spm.h> #include <mach/wd_api.h> /********************************************************** * PCM code for normal (v2 ...
/* * plik ma na celu prezentację podstawowych zagadnień z programowania w języku C / C++ * prezentuje rozgałęzianie programu i komunikację międzyprocesową * */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> void zakonczenie() { fprintf(stderr ,"Postanowiłem s...
#include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <math.h> /*********************/ /* 3d geometry types */ /*********************/ typedef struct Point3Struct { /* 3d point */ double x, y, z; } Point3; typedef Point3 Vector3; //FIXME double BilinearInterpolation...
/* cgapSageTrack - module for CGAP SAGE track. */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "hash.h" #include "linefile.h" #include "jksql.h" #include "hdb.h" #include "hgTracks.h" #include "h...
/* * Copyright (c) 2001 <NAME> and The Ohio State University * 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 * noti...
/* * 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 ...
// See license at end of file /* * Tools for creating log files containing information about the * files upon which the compilation of a particular Forth dictionary * file depends. */ #ifdef __MACH__ #define __unix__ 1 #endif #ifdef WIN32 #include <windows.h> #endif #include <stdio.h> #include <string.h> #includ...
#include "libtrading/proto/fast_message.h" #include "libtrading/proto/fast_session.h" #include "libtrading/array.h" #include "libtrading/die.h" #include <sys/socket.h> #include <sys/select.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/stat.h> #include <getopt.h> #include <signal.h> #include <stdlib.h...
/* * PACMAN - written by <NAME>, AGS Computers Inc., July, 1981. * Converted for curses Feb 1982 by <NAME>. * * Terminal handling for video games taken from aliens * the original version of aliens is from * Fall 1979 Cambridge <NAME> * * Score keeping modified and...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
/** @example Intro/BasicReplier.c */ /* * This sample shows how to implement a Requestor for direct Request-Reply messaging, where * * BasicRequestor: A message Endpoint that sends a request message and waits to receive a * reply message as a response. * BasicReplier: A message End...
/******************************************************************************** Program to bounce animated balls around screen ********************************************************************************/ /* posix definitions */ #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <mat...
#include "celo.h" #include "ethUtils.h" #include "globals.h" #include "os.h" #include "utils.h" // TODO: remove this. This module should be independant from ui #include "ui_flow.h" #include <string.h> static const uint8_t TOKEN_TRANSFER_ID[] = { 0xa9, 0x05, 0x9c, 0xbb }; void io_seproxyhal_send_status(uint32_t sw) ...
// structures struct A { int a; struct { char b; int c; } y; } A; struct B { int a; } B; struct C { int a; int b; } C; int main(void) { struct { int a; } a; a.a = 1024; expecti(a.a, 1024); struct { int a; int b; } b; b.a =...
/* Laboratório de CES-33 */ /* Playground: Aplicação de filtros */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <semaphore.h> #include <pthread.h> #include <unistd.h> #include <wand/magick_wand.h> #include "Queue.h" #define OUTPUTDIR "../output" #ifndef NUM_PARALEL_THREADS #define NUM_PARAL...
/** * Program which generates random time series data, and saves it to an * ANALYZE75 volume. * * Author: <NAME> <<EMAIL>> */ #include <math.h> #include <argp.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "io/analyze75.h" #include "util/startup.h" typedef struct _arg...
/* Copyright (c) 2015, IBM * Author(s): <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Copyright (c) 2017, RWTH Aachen University * Author(s): <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 abov...
/* packet-hyperscsi.c * Routines for dissassembly of the Hyper SCSI protocol. * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * Copyright 2002 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General...