text
stringlengths
3.12k
18.7k
/* tcptest.c */ /*- * Copyright (c) 2013 * Nexa Center for Internet & Society, Politecnico di Torino (DAUIN) * and <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 S...
/* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 2006-2016 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. ...
/*++ /* NAME /* mail_conf_time 3 /* SUMMARY /* time interval configuration parameter support /* SYNOPSIS /* #include <mail_conf.h> /* /* int get_mail_conf_time(name, defval, min, max); /* const char *name; /* const char *defval; /* int min; /* int max; /* /* void set_mail_conf_time(name, value) /* const char *name; /* ...
/********************************************************************** Copyright(c) 2011-2016 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: * Redistributions of source co...
// X86ISA Library // // Note: The license below is based on the template at: // http://opensource.org/licenses/BSD-3-Clause // // Copyright (C) 2015, Regents of the University of Texas // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provide...
/* tagStormCheck - Check that a tagStorm conforms to a schema.. */ #include "common.h" #include "linefile.h" #include "localmem.h" #include "hash.h" #include "options.h" #include "sqlNum.h" #include "sqlReserved.h" #include "tagStorm.h" #include "tagSchema.h" #include "errAbort.h" #include "obscure.h" #include "csv.h" ...
/** * Copyright 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
#include "mpi.h" #include <stdio.h> #include <stdlib.h> #define MASTER 0 /* task ID of master task */ // Function declarations void swap(int* a, int* b); int partition (int arr[], int low, int high); void quickSort(int arr[], int low, int high); void printArray(int arr[], int size); int main (int argc, char *...
/* * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ * * 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 Foundation. * * This program is ...
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (c) 2012 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute it a...
#include "system/sms/all.h" #ifdef USE_GLOBAL_ROM extern uint8_t rom_buffer[]; extern uint8_t rom_buffer_end[]; #endif #define Z80_STATE_PARAMS struct EmuGlobal *H, struct EmuState *state #define Z80_STATE_ARGS H, state #define Z80NAME(n) sms_z80_##n #if 0 // OVERCLOCK #define Z80_ADD_CYCLES(z80, v) (z80)->H.timest...
/** @file fftinfo~.c - communicate fft size and hop, etc... to the contents of a pfft~ subpatch revised August 2001 updated 3/22/09 ajm: new API @ingroup examples */ #include "ext.h" #include "ext_obex.h" #include "z_dsp.h" #include "r_pfft.h" // public pfft struct in r_pfft.h typedef struct _fftinfo { t_pxo...
/* * Copyright (c) 1991-2016 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology * Copyright (c) 2005-2016 Julius project team, Nagoya Institute of Technology * All rights reserved */ #include <stdio.h> #include <string.h> #ifdef HAVE_CONFIG_H #include...
/* * File : board.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2009 RT-Thread Develop Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rt-thread.org/license/LICENSE * * Change Logs: * Date Author ...
/* TEST_HEADER id = $Id$ summary = new MVT allocation test language = c link = testlib.o parameters = ITERATIONS=1000 END_HEADER */ #include <time.h> #include "testlib.h" #include "mpscmvt.h" #include "mpsavm.h" #define MAXNUMBER 100000 mps_arena_t arena; static struct {mps_addr_t addr; size_t size;} queue[MA...
/* The MIT License (MIT) Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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, co...
/* ----------------------------------------------------------------------------- * * (c) The GHC Team, 1998-1999 * * Weak pointers / finalizers * * ---------------------------------------------------------------------------*/ #include "PosixSource.h" #include "Rts.h" #include "RtsAPI.h" #include "RtsUtils.h" #i...
#include "lgldimacs.h" #include <assert.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #ifndef _WIN32 #include <unistd.h> #endif #include <limits.h> struct LDR { struct { void * state; ldralloc alloc; ldrdealloc dealloc; } mem; struct { vo...
/* * Hardware monitoring driver for UCD90xxx Sequencer and System Health * Controller series * * Copyright (C) 2011 <NAME>. * * 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 versi...
/** * @file gravity.c * @brief Direct gravity calculation, O(N^2). * @author <NAME> <<EMAIL>> * * @details This is the crudest implementation of an N-body code * which sums up every pair of particles. It is only useful very small * particle numbers (N<~100) as it scales as O(N^2). Note that the MPI * imple...
#include <stdio.h> #include <inttypes.h> #include "../../lib/cgss_api.h" #define INDENT_VALUE (2u) static void print_table(const char *file_name, UTF_TABLE *table); static void print_table_recursive(UTF_TABLE *table, uint32_t indent); static void printf_indent(uint32_t indent); static void fprintf_indent(FILE *ou...
#include <stdlib.h> #include <errno.h> #include <unistd.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <stdio.h> #include <ctype.h> #ifdef __EMSCRIPTEN__ #include <SDL/SDL.h> #include <emscripten.h> #define NDEBUG #else #include <SDL2/SDL.h> #endif #include <assert.h> #define DEFAULT_FILL 5...
#include "uthread.h" #include "user.h" uint nexttid = 1; int numOfThreads = 0; struct uthread* current; struct uthread u_table[MAX_UTHREADS]; int currentInd; struct bsem* bsemtable[MAX_BSEM]; int uthread_init() { for(int i=0;i<MAX_UTHREADS;i++){ u_table[i].state=T_UNUSED; } struct uthread* ut = &u_table[0]; ...
/* * * sshstreamconnect.c * * Author: <NAME> <<EMAIL>> * * Copyright: * Copyright (c) 2002, 2003 SFNT Finland Oy. * All rights reserved. * * Plug two streams together. * */ #include "sshincludes.h" #include "sshfsm.h" #include "sshtimeouts.h" #include "sshstreamconnect.h" #define S...
/* Public Domain Curses */ #include <curspriv.h> /*man-start************************************************************** attr ---- ### Synopsis int attroff(chtype attrs); int wattroff(WINDOW *win, chtype attrs); int attron(chtype attrs); int wattron(WINDOW *win, chtype attrs); int attrset(cht...
/* * File: serial_sanitize.c * Project: texture * File Created: Tuesday, 8th June 2021 10:24:28 pm * Author: <NAME> * ----- * Copyright (c) 2021 <NAME>, <NAME> * License: BSD 3-clause "New" or "Revised" License, http://www.opensource.org/licenses/BSD-3-Clause */ #include <external/uthash.h> // Disc serial wil...
/* ============================================================================ * Freetype GL - A C OpenGL Freetype engine * Platform: Any * WWW: http://code.google.com/p/freetype-gl/ * ---------------------------------------------------------------------------- * Copyright 2011,2012 <NAME>. All rights ...
#include <psp2kern/kernel/modulemgr.h> #include <psp2kern/kernel/sysmem.h> #include <psp2kern/kernel/threadmgr.h> #include <psp2kern/kernel/cpu.h> #include <psp2kern/io/fcntl.h> #include <psp2kern/io/stat.h> #include <psp2kern/display.h> #include <stdio.h> #include <string.h> #include <inttypes.h> #include "vita-boota...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2014 MediaTek Inc. * Author: <NAME>, MediaTek */ #include <linux/interrupt.h> #include <linux/ioport.h> #include <linux/module.h> #include <linux/of_device.h> #include <linux/of_irq.h> #include <linux/regmap.h> #include <linux/mfd/core.h> #include <linux/m...
// Copyright (c) Electroneum Limited 2019-2020 // Copyright 2017 <NAME> <<EMAIL>>, Ledger SAS #ifndef GLYPH_badge_back_BPP #define GLYPH_badge_back_WIDTH 14 #define GLYPH_badge_back_HEIGHT 14 #define GLYPH_badge_back_BPP 1 extern unsigned int const C_badge_back_colors[]; extern unsigned char con...
/* modifier 0 means no modifier */ static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) " "AppleWebKit/537.15 (KHTML, like Gecko) " "Chrome/24.0.1295.0 Safari/537.15 Surf/"VERSION; static char *scriptfile = "~/.config/surf/script.js"; static ch...
// -------------------------------------------------------------------------------- // AUTHOR: <NAME> // FILENAME: Lab12.c // SPECIFICATION: Engineering Systems // FOR: CS 1412 Programming Principles II Section 502 // ----------------------------------------------------------------------------...
#include "c_defs.h" /************************************************************************ * * sem.c - semaphore operations on the common block. Finally. * * $Id$ * * Copyright 1999-2004 <NAME> under the ARTISTIC LICENSE. (See LICENSE). ***********************************************************************/...
// ──────────────────────────────────────────────────────────── // ╔╗ ╔╗ ╔══╗ ╔════╗ // ║╚╗╔╝║ ╚╣╠╝ ║╔╗╔╗║ // ╚╗╚╝╔╝ ║║ ╔══╗ ╚╝║║╚╝ // ╚╗╔╝ ║║ ║╔╗║ ║║ // ║║ ╔╣╠╗ ║╚╝║ ║║ // ...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
#include <string.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <libopticon/util.h> #include <libopticon/auth.h> #include <libopticon/base64.h> #include <libopticon/log.h> #include <libopticon/var.h> #include <arpa/inet.h> sessionlist SESSIONS[256]; /** Initialize session-related global storag...
/* * gptsync/showpart.c * Platform-independent code for analyzing hard disk partitioning * * Copyright (c) 2006 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * ...
/* Copyright 2002-2006 <NAME>, All Rights Reserved */ #include "d.h" #include "mkdparse.h" extern D_ParserTables parser_tables_dparser_gram; #define SIZEOF_MY_PARSE_NODE 100 /* permit test cases up to this size */ static int save_parse_tree = 1; static int partial_parses = 0; static int fixup = 1; static int fixu...
#include "zcache.h" #include <assert.h> #include <stdlib.h> /* * static unsigned int hash * * DESCRIPTION: * * Hash a variable-length key into a 32-bit value. Every bit of the * key affects every bit of the return value. Every 1-bit and 2-bit * delta achieves avalanche. About (6 * len + 35) instructi...
//-------------------------------------------------------------------------- // Parsing of GPS info from exif header. // // <NAME>, Dec 1999 - Dec 2002 //-------------------------------------------------------------------------- #include "jhead.h" #include <string.h> #include <utils/Log.h> #define TAG_GPS_LAT_REF ...
/* Copyright (C) 2010-2018 The RetroArch team * * --------------------------------------------------------------------------------------- * The following license statement only applies to this file (dir_list.c). * --------------------------------------------------------------------------------------- * * Permiss...
/******************************************************************************* MPLAB Harmony Application Source File Company: Microchip Technology Inc. File Name: app_i2c_eeprom.c Summary: This file contains the source code for the MPLAB Harmony application. Description: This file contai...
/* * Copyright 2018 <NAME> (:avih) <EMAIL> https://github.com/avih * MIT/X Consortium License */ #include <X11/Xft/Xft.h> #include "st.h" #include "boxdraw_data.h" /* Rounded non-negative integers division of n / d */ #define DIV(n, d) (((n) + (d) / 2) / (d)) static Display *xdpy; static Colormap xcmap; static X...
/** ****************************************************************************** * @file usb_desc.c * @author MCD Application Team * @version V4.1.0 * @date 26-May-2017 * @brief Descriptors for Usb midi and Cdc composite device. ******************************************************************...
#include <stdio.h> #include <stdlib.h> /* malloc */ #include <math.h> #include "endian.h" #include "datalist.h" #include "bandbuffer.h" #include "band.h" #include "rasterbuffer.h" #define _WRITER_EXTERN #include "writer.h" #define SNAP(V,SD) (round((V)*(double)(SD))/(double)(SD)) void assignRasterOutputHeader(co...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate how to trigger multiple sample modules and got conversion results in order of priority. * * @copyright (C) 2017 Nuvoton Technology Corp. All rights reserved. ***************...
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/* choices.c - build up simple list of selections type menus out of a list of strings. */ #include <stdio.h> #include <string.h> #include "errcodes.h" #include "menus.h" #include "rastext.h" #include "input.h" #include "memory.h" #include "ptrmacro.h" #include "commonst.h" typedef struct choicer { ...
#include "cache.h" #include "object.h" #include "blob.h" #include "tree.h" #include "commit.h" #include "tag.h" static struct object **obj_hash; static int nr_objs, obj_hash_size; unsigned int get_max_object_index(void) { return obj_hash_size; } struct object *get_indexed_object(unsigned int idx) { return obj_hash...
/*---------------------------------------------------------------------------- | File: | ecu.c | | Description: | Test Measurement and Calibration variables for XCP demo | C language ----------------------------------------------------------------------------*/ /* | Code released into public domain, no attribu...
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 l...
// Convert normal raw image output (ie. GIMP C array output) to the vertical striped format of the SSD1306. #include <stdio.h> unsigned char src[512] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xff, 0x3d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff...
// TODO - try more sub-pixel samples and average them #include "apg_pixfont.h" #define STBIR_DEFAULT_FILTER_UPSAMPLE STBIR_FILTER_BOX #define STBIR_DEFAULT_FILTER_DOWNSAMPLE STBIR_FILTER_BOX #define STB_IMAGE_RESIZE_IMPLEMENTATION #include "../common/include/stb/stb_image_resize.h" #define STB_IMAGE_WRITE_IMPLEMENTATI...
/* float.c -- float environment functions. $Id: float.c,v 1.12 2007/07/01 21:20:32 karl Exp $ Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc. 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 ...
/* * Copyright (c) 1989 The 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: * 1. Redistributions of source code must retain the above copyright *...
/* * Copyright (c) 2013 Balabit * Copyright (c) 2013 <NAME> <<EMAIL>> * * 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...
#include "gtool_file.h" static void fstr2cstr( char *cstr, // (out) char *fstr, // (in) int32_t len) { int i; if ( cstr != fstr ) strncpy( cstr, fstr, len ); for ( i=len-1; i>=0; i-- ) { if ( cstr[i] != ' ' ) { i += 1; break; } } cstr[i] = '\0'; } static void cstr...
/* * Copyright 2019 <NAME> * * 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 ...
#include <mpi.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <omp.h> #ifndef NUM_ITERATIONS #define NUM_ITERATIONS 100 #endif #ifndef MAX_MSG_SIZE_EXPONENT #define MAX_MSG_SIZE_EXPONENT 28 #endif #ifndef BENCHMARK_TYPE #define BENCHMARK_TYPE 0 // regular ping pong benchmark using cached, contig...
#include "avl.h" void initAVLTree(struct AVLTree *tree) { tree->root = 0; tree->cnt = 0; } struct AVLTree *newAVLTree() { struct AVLTree *tree; tree = (struct AVLTree *)malloc(sizeof(struct AVLTree)); assert(tree != 0); initAVLTree(tree); return tree; } /* Prototypes for private functions */ ...
/*** *a_map.c - A version of LCMapString. * * Copyright (c) 1993-2001, Microsoft Corporation. All rights reserved. * *Purpose: * Use either LCMapStringA or LCMapStringW depending on which is available * *Revision History: * 09-14-93 CFW Module created. * 09-17-93 CFW Use unsigne...
// Ruby C extension of Z85 based on the reference C implementation found in // // https://github.com/zeromq/rfc/blob/master/src/spec_32.c // // Original header: // // -------------------------------------------------------------------------- // Copyright (c) 2010-2013 iMatix Corporation and Contributors // // Pe...
/********************************************************************************/ /* */ /* TPM2 Nuvoton Proprietary Command Utilities */ /* Written by <NAME> */ /* IBM Thomas J. Watson Research Center */ /* $Id: ntc2lib.c 1290 2018-08-01 14:45:24Z kgoldman $ */ /* *...
/* * Copyright (c) 2018, GreenWaves Technologies, 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: * * o Redistributions of source code must retain the above copyright notice, this list...
/* * deleteColMoveEnd.c * * Code generation for function 'deleteColMoveEnd' * */ /* Include files */ #include "deleteColMoveEnd.h" #include "blas.h" #include "eml_int_forloop_overflow_check.h" #include "mwmathutil.h" #include "rt_nonfinite.h" #include "runOpt.h" #include "runOpt_data.h" #include "xrot.h" /* Vari...
/****************************************************************************** * * Copyright(c) 2013 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free So...
/* * Copyright (c) 2020 Friedt Professional Engineering Services, Inc * * SPDX-License-Identifier: BSD-3-Clause */ #include <device.h> #include <errno.h> #include <greybus/greybus.h> #include <string.h> #include <sys/util.h> #include <ztest.h> #include <zephyr.h> #if defined(CONFIG_BOARD_NATIVE_POSIX_64BIT) || ...
/* File: pencil_diagram_painter.c; Copyright and License: see below */ #include "pencil_diagram_painter.h" #include "trace.h" #include <pango/pangocairo.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> void pencil_diagram_painter_init( pencil_diagram_painter_t *this_ ) { TRACE_BEGIN(); pencil_ma...
/* ** This file contains tests related to the explicit rollback of database ** transactions and sub-transactions. */ /* ** Repeat 2000 times (until the db contains 100,000 entries): ** ** 1. Open a transaction and insert 500 rows, opening a nested ** sub-transaction each 100 rows. ** ** 2. Roll back to ea...
/* * This file is part of GreatFET */ #include "usb_api_sdir.h" #include "sgpio.h" #include "../sgpio_isr.h" #include <drivers/usb/lpc43xx/usb.h> #include <drivers/usb/lpc43xx/usb_queue.h> #include "../usb_endpoint.h" #include "../usb_bulk_buffer.h" #include <greatfet_core.h> #include <gpio_lpc.h> #include <gpio....
#include <stdio.h> #include <samd21.h> #include "uart.h" int _sercom_pm_init(void) { PM->APBCMASK.bit.SERCOM3_ |= 1; return 0; } int _system_gclk_chan_disable( const uint8_t channel) { /* Select the requested generator channel */ *((uint8_t*)&GCLK->CLKCTRL.reg) = channel; /* Sanity ...
/* chkder.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
/* statistical difference * * Copyright: 1990, <NAME>. * * Author: <NAME> * Written on: 02/05/1990 * Modified on : * 6/8/93 JC * - now works for odd window sizes * - ANSIfication * 25/5/95 JC * - new IM_ARRAY() macro * 25/1/96 JC * - im_lhisteq() adapted to make new im_stdif() * - now partial, plus roll...
// Copyright (c) 2016-2020 Memgraph Ltd. [https://memgraph.com] // // 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 ...
/* * test_syntax.c * Copyright (c) 2019-2021 K.Kosako */ #ifdef ONIG_ESCAPE_UCHAR_COLLISION #undef ONIG_ESCAPE_UCHAR_COLLISION #endif #include <stdio.h> #include <string.h> #include "oniguruma.h" #define SLEN(s) strlen(s) static int nsucc = 0; static int nfail = 0; static int nerror = 0; #ifdef __TRUSTINSOFT...
# include <stdio.h> # include <stdlib.h> /* malloc */ # include <string.h> /* strcpy */ # include "c_iraf.h" # include "hstio.h" # include "xtables.h" # include "stis.h" # include "calstis4.h" # include "hstcalerr.h" # include "stiswild.h" /* for STRING_WILDCARD */ # include "stisdef.h" typedef struct { IRAFPointer...
#include "quic.h" #include <string.h> #include <netinet/in.h> #include <netinet/if_ether.h> #include <time.h> #include <sys/timeb.h> #include <sys/time.h> #include "log.h" #include "uthash.h" #define QUIC_INITIAL_PACKET 0x0 #define QUIC_ZERO_RTT_PACKET 0x1 #define QUIC_HANDSHAKE_PACKET 0x2 #define QUIC_RETRY_PACKET 0x...
#include "SDL.h" #include <GL/gl.h> #include <GL/glu.h> #include <stdio.h> #include <math.h> #define SHIP_MAX_WIDTH 256 #define SHIP_MAX_LENGTH 512 #define SHIP_MAX_HEIGHT 256 struct worldPosition { double x; double y; double z; float pitch; float yaw; float roll; }; /*typedef partIDType shor...
/* linphone Copyright (C) 2010 Belledonne Communications SARL 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 i...
/* yc_uring - a yoctochat server using Linux io_uring */ /* The most important thing to understand about io_uring is its actually a * facility for asynchronous system calls; that is, it decouples the call from * the return. A bit like a future or a promise, if you squint. * * This is different from earlier event r...
/********************************************************** * 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...
/* * $Id: parse.c,v 1.15 2009-03-17 18:40:20 heas Exp $ * * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved * Copyright (c) 1995-1998 by Cisco systems, Inc. * * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that th...
static double g_kx; static double g_ky; static int g_ts_xc, g_ts_yc; static int g_lcd_xc, g_lcd_yc; static int g_ts_xy_swap = 0; static unsigned int fb_base; static int xres, yres, bpp; int get_lcd_x_frm_ts_x(int ts_x) { return g_kx * (ts_x - g_ts_xc) + g_lcd_xc; } int get_lcd_y_frm_ts_y(int ts_y) { return g_ky ...
/******************************************************************************* * Copyright (c) 2014 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this d...
/* this file is part of srm http://srm.sourceforge.net/ It is licensed under the MIT/X11 license */ #include "config.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <tim...
/* Copyright (c) 2009-2012 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
/* * Copyright 2017 <NAME> * * See LICENCE for the full copyright terms. */ #include "type_info_nfa.h" #include <ctype.h> #include <adt/xalloc.h> /* * Expose the NFA-of-PRNG-stream callback, because it's used * as part of other tests too. */ enum theft_alloc_res type_info_nfa_alloc(struct theft *t, void *typ...
/* * 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...
/*- * Copyright (c) 2019 Stormshield. * Copyright (c) 2019 Semihalf. * * 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 o...
/************************************************************************************************** Phyplus Microelectronics Limited confidential and proprietary. All rights reserved. IMPORTANT: All rights of this software belong to Phyplus Microelectronics Limited ("Phyplus"). Your use of this Software is...
#include "hash_aux.h" #include "line_parser.h" #include "str_aux.h" #include "macro_table.h" #include "map.h" #include "vector.h" #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <stdio.h> // sprintf #define MT_LEN 256 #define MAX_LINE_LEN 4096 #define MACRO_LABEL_MAP_LEN 8 #define LABEL_SUFFIX_L...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
// /*thes may be any vlaues >= 0*/ // #define NUMBER_OF_THREADS 5 // #define NUMBER_OF_RESOURCES 3 #include "bankersAlgorithm.h" #include "Functions.h" //#include "randomNumer.c" //#define NUMBER_OF_THREADS 5 //void pointer function void foo(void *); typedef struct { //int NUMBER_OF_RESOURCES; int available[NUMBER...
/*-------------------------------------------------------------------------- ----- File: t1misc.h ----- Author: <NAME> (<EMAIL>) ----- Date: 2004-11-27 ----- Description: This file is part of the t1-library. It contains some miscellaneous definitions. ----- Copyright: ...
// Platform-dependent functions #include "platform.h" #include "type.h" #include "devman.h" #include "genstd.h" #include "stacks.h" #include <reent.h> #include <errno.h> #include <string.h> #include <ctype.h> #include <stdio.h> #include "lpc288x.h" #include "target.h" #include "uart.h" #include "utils.h" #include "com...
/* * Copyright (c) 2002-2016 Balabit * Copyright (c) 2016 <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 Foundation, or (at your option) any later version. * * This pro...
/* * (C) Copyright 2020 Intel Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
/** * @file src/menustate.c * * Menu state */ #include <GFraMe/GFraMe_controller.h> #include <GFraMe/GFraMe_event.h> #include <GFraMe/GFraMe_error.h> #include <GFraMe/GFraMe_keys.h> #include <GFraMe/GFraMe_spriteset.h> #include "audio.h" #include "global.h" #include "globalVar.h" #include "state.h" #include "time...
/* OpenBSD S/Key (skeysubr.c) * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * S/Key misc routines. * * $OpenBSD: skeysubr.c,v 1.34 2015/10/06 15:07:45 tim Exp $ */ #include <stdio.h> #include <stdli...
#include <stdint.h> #include <string.h> #include "draw2d.h" //#pragma GCC optimize ("O3") #pragma GCC optimize ("O2") #define MIN(a, b) \ ((a) < (b)) ? (a) : (b) #define MAX(a, b) \ ((a) > (b)) ? (a) : (b) #define ABS(x) ((x)<0) ? -(x) : (x) #define CHECK_CLIP( x1, y1 ) \ (x1 >= 0 && x1 < FRAMEBUFFER_WIDTH &...