text
stringlengths
3.08k
10.5k
/* $Xorg: def.h,v 1.4 2001/02/09 02:03:16 xorgcvs Exp $ */ /* Copyright (c) 1993, 1994, 1998 The Open Group. 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 b...
/* * src/nl-tctree-list.c List Traffic Control Tree * * 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 version 2.1 * of the License. * * Copyright (c) 2003-2009 <NAME> <<EMAIL>> *...
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2018 Mellanox Technologies. */ #include <net/vxlan.h> #include "lib/vxlan.h" #include "en/tc_tun.h" static bool mlx5e_tc_tun_can_offload_vxlan(struct mlx5e_priv *priv) { return !!MLX5_CAP_ESW(priv->mdev, vxlan_encap_decap); } static int mlx5e_tc_t...
/* * 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, modify, merge, p...
/* * prob2.c * * Created on: June 5, 2019 * Author: <NAME> */ /* header files */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> /* the trie node data structure */ struct s_trie_node { char * translation; /* NULL if node not a word */ /* pointer array to ...
/* * Copyright (c) 2016 <NAME> * SPDX-License-Identifier: Apache-2.0 */ /** @file * @brief Atmel SAM MCU family General Purpose Input Output (GPIO) * module HAL driver. */ #include <misc/__assert.h> #include "soc_gpio.h" /* * There exist minor differences between SAM MCU family members in naming * of some of...
#include "Actuators.h" #include <stdio.h> /* Standard input/output definitions */ #include <string.h> /* String function definitions */ #include <unistd.h> /* UNIX standard function definitions */ #include <fcntl.h> /* File control definitions */ #include <errno.h> /* Error number definitions */ #include <term...
// Copyright 2021 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. #include <math.h> #include <sys/ioctl.h> #include <sys/mman.h> // FIXME(HerrSpace): As executor is written in C++, we need to make this patch: // -struct ...
/* * Copyright 2021 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. * * Emscripten-specific version dlopen and associated functio...
#include <gst/gst.h> #include <string.h> typedef struct _CustomData { GstElement *pipeline; GstElement *source; GstElement *sink; gboolean is_live; GMainLoop *loop; } CustomData; static void pad_added_handler(GstElement *source, GstPad *pad, CustomData *data) { GstPad *sink_pad = gst_element_get_static_pa...
/* * 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...
/**************************************************************************** * 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 fi...
/** * USAGE: * init(); * rndColor(-1); // random hue * rndColor(red); // red */ #include <math.h> #include <stdlib.h> typedef struct { double H, S, B; } HSB; enum ColorName { monochrome, red, orange, yellow, green, blue, purple, pink }; void init(); HSB rndColor(int i); static doub...
// // main.c // N-Body // // Authors: // <NAME> (<EMAIL>), <NAME> (<EMAIL>), // <NAME> (<EMAIL>), <NAME> (<EMAIL>) // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sys/time.h> #include <unistd.h> #include <omp.h> #include "support.h" #include "parser.h" /** * \brief Co...
/* * Copyright (c) 2010 <NAME> <<EMAIL>> * Based on early versions of Spreadsheet::WriteExcel * Copyright (c) 2000-2001 <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 p...
/* File: UARTLib.c * Author: <NAME> * Revision Oct 16 2016 */ #include "uartlib.h" #include "syslib.h" #include <string.h> #include "uart0_config.h" // register constants volatile char is_txing = FALSE; volatile strpack_t TxQ[NUM_TXQUEUES]; volatile strpack_cnt_t TxQ_index = { .head = 0, .tail = NUM_TX...
/*********************************************************************** * FILENAME : x64dbgStructures32.h * * DESCRIPTION : * Loading in x64dbg for windows structure parsing * * NOTES : * x96dbg was didn't perfectly support 'typedef'. * In this code, representatives are only BYTE, WORD, DWORD. * * AU...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
// SPDX-License-Identifier: GPL-2.0+ /* * Simulate an I2C eeprom * * Copyright (c) 2014 Google, Inc */ #include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> #include <malloc.h> #include <asm/test.h> #ifdef DEBUG #define debug_buffer print_buffer #else #define debug_buffer(x, ...) #endif struct ...
/* * BSD 3-Clause License * Copyright (c) 2020, <NAME>, <EMAIL> * All rights reserved. */ #include <stdlib.h> #include <stdio.h> #include <time.h> #include <assert.h> #include <string.h> #include <faux_s.h> static int ticks = 0; static int boops_per_minute = 0; static volatile int nboops = 0; sta...
/********************************************************************** * plreloc.c * Relocation management for the P-Code Linker * * Copyright (C) 2008-2009 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are per...
/***************************************************************************//** * @file * @brief Core proprietary application logic. ******************************************************************************* * # License * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b> ***********************...
// Copyright 2019-2021 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT THRUPUT_TEST /* FreeRTOS headers */ #include "FreeRTOS.h" #include "task.h" /* FreeRTOS Plus headers */ #include "FreeRTOS_IP.h" #include "FreeRTOS_Sockets.h" /* Library headers */ ...
void marker1 (void) { } /* misc. function params */ int qux1 (const char cc, const char /*&*/ccr, const char *ccp, char *const cpc) { return 33; } int qux2 (volatile unsigned char vuc, const volatile int cvi, volatile short /*&*/vsr, volatile long *vlp, float *volatile fpv, const volatile signed char *...
/* Copyright (c) 2008 <NAME> <<EMAIL>> Copyright (c) 2008 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...
/* * Copyright (C) 2017 Southern Storm Software, Pty Ltd. * * 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, ...
/* Copyright © 2022 Merbridge 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT nios2_i2c #include <errno.h> #include <drivers/i2c.h> #include <soc.h> #include <sys/util.h> #include <altera_common.h> #include "altera_avalon_i2c.h" #define LOG_LEVEL CONFIG_I2C_LOG_LEVEL #include <loggin...
#if defined(ARDUINO) #include <Arduino.h> #include <SPI.h> #elif defined(__AVR_ARCH__) #include <avr/io.h> #else #include <cmsis_device.h> #endif #include "rfm7x_hardware.h" void rfm7x_io_init(void) //hardcoded at the moment { RFM7x_CSN_HI; RFM7x_CE_LOW; #if defined(USE_EXAMPLE_SPI_MEGA328) //set ce to output...
/* * Copyright 2014 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. */ #include <GLFW/glfw3.h> #include <stdio.h> #include <asser...
/* This file is part of GNUnet. Copyright (C) 2008 GNUnet e.V. GNUnet 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, or (at your option) any later version. G...
#include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" #include "traps.h" #include "spinlock.h" #include "paging.h" #include "fs.h" static pte_t * walkpgdir(pde_t *pgdir, const void *va, int alloc) { pde_t *pde; pte_t *pgtab; pde = &pgd...
/****************************************************************************** * Copyright (c) 2011 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www....
// Super fast integer to string converts. Up to 23x faster than sprintf. #include <stdlib.h> #include <stdio.h> #include "util.h" const char gDigitsLut[200] = { '0','0','0','1','0','2','0','3','0','4','0','5','0','6','0','7','0','8','0','9', '1','0','1','1','1','2','1','3','1','4','1','5','1','6','1'...
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <stdlib.h> #include <string.h> #include <aos/aos.h> #include "aos/cli.h" #include "app_main.h" #include "app_sys.h" #include "app_init.h" #include "w800_devops.h" #include "hci_hal_h4.h" #include <yoc/netmgr.h> #include <uservice/eventid.h> #inc...
/**************************************************************************** * nxp_bms/BMS_v1/src/a1007.c * * BSD 3-Clause License * * Copyright 2020 NXP * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * *...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <stdbool.h> #include <limits.h> #include "include/traces.h" #include <string.h> #include "elt.h" #include "avl.h" #include "dict.h" #include <time.h> #define TAILLE_MAX 15 char *sortArr(char[]); bool isAnagram(char *, char *); bool isEqual(char *, ch...
/* * libDraw library source file * libDraw is a library for BareMetal-OS to draw things. * Written by ohnx. * * https://github.com/ohnx/libDraw * */ //#include <stdio.h> //#include <stdlib.h> //#include <string.h> //#include "libBareMetal.h" //#include <time.h> #include "libDraw.h" //#include <stdarg.h> #inclu...
/* ==================================================================== * Copyright (c) 1992-2000 Carnegie Mellon 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. Red...
#include "picoRTOS-SMP.h" #include <stdbool.h> #include "device_registers.h" #define LED0_0 4 /* PA[4] */ #define LED1_0 0 /* PA[0] */ #define LED2_0 (144 + 4) /* PJ[4] */ #define LED3_0 (112 + 5) /* PH[5] */ #define LED0_1 (32 + 4) /* PC[4] */ #define LED1_1 (112 + 13) /...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "com112_hash.h" //Definição do tipo Hash struct hash { int qtd, TABLE_SIZE; struct aluno **itens; }; Hash* criaHash(int TABLE_SIZE) { Hash* ha = (Hash*) malloc(sizeof(Hash)); if(ha != NULL){ int i; ha->TABLE_SIZE = TAB...
/* * libplayerc : a Player client library * Copyright (C) <NAME> 2002-2003 * * 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) ...
/* Copyright 1989, 1994, 1998 The Open Group 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 this permission notice appear in s...
/* * File : webnet.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team * * This software is dual-licensed: 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. For th...
// Options: --no-arrays --no-pointers --no-structs --no-unions --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --unary-plus-operator --jumps --longlong --int8 --uint8...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "linkedlist.h" /* private helper functions */ static void ds_list_unlink(struct DSLinkedList *lst, struct DSListNode *remove); static struct DSListNode * ds_list_mergesort(struct DSListNode *head, int32_t (compare)(void*, void*)); static struct D...
/** * @file lolifier.c * @author <NAME> <<EMAIL>> * @date 17 September 2018 * @brief Entry point for lolifier tool */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #define DEFAULT_BUFFER_SIZE 1024 static size_t lolify(int fd, size_t file_siz...
/* Hardware abstraction layer around the ATMega16U2 USB bridge device. */ /* * Flipper: Carbon Edition incorperates a multi-cpu harware architecture. * The atmeaga16u2 device is used to handle USB interactions with the host, * while the atsam4s16b is used to perfrom computations and interact with * device peripher...
/* Provided by IBEX UK LTD http://www.ibexuk.com Electronic Product Design Specialists RELEASED SOFTWARE The MIT License (MIT) Copyright (c) 2013, IBEX UK Ltd, http://ibexuk.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft...
/********************************************************************* * Copyright 2010, UCAR/Unidata * See netcdf/COPYRIGHT file for copying and redistribution conditions. * $Id$ * $Header$ *********************************************************************/ #include "nccr.h" #ifdef HAVE_GETRLIMIT #in...
/* * Copyright 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
/* * Copyright 2021 The UAPKI Project Authors. * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * * 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 a...
#include <unistd.h> #include <stdlib.h> #include <assert.h> #include <stdio.h> #include "sam.h" #include "kstring.h" static int8_t seq_comp_table[16] = { 0, 8, 4, 12, 2, 10, 9, 14, 1, 6, 5, 13, 3, 11, 7, 15 }; static char *copied_tags[] = { "RG", "BC", "QT", 0 }; int main_bam2fq(int argc, char *argv[]) { BGZF *fp, *...
/* * Copyright (C) 2000, 2001, 2002 <NAME> (<EMAIL>) * Licensed under the GPL */ #include <stdio.h> #include <unistd.h> #include <signal.h> #include <sched.h> #include <errno.h> #include <stdarg.h> #include <stdlib.h> #include <sys/time.h> #include <sys/ptrace.h> #include <linux/ptrace.h> #include <sys/wait.h> #inc...
/* * * 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...
#include<stdio.h> #include<stdlib.h> struct node { int data; struct node *next; struct node *prev; }; typedef struct node node; node *head = NULL; node *last = NULL; int n; typedef struct node node ; void create() { node *nnode,*newnode,*current; int i,temp = 0; ...
#include <time.h> #include "corange.h" #include "perlin_noise.h" #include "noise.h" static float shader_time = 0.0; void noise_render() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); glOrtho(-1.0, 1.0, -1.0, 1.0, -1, 1); glMatri...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/wait.h> #include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #include <pthread.h> #include "../utils.h" #include "client_functions.h" #include "mes...
/* sets - Do set operations on one-word-per-line files.. */ /* Copyright (C) 2007 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" void usage() /* Explain u...
#include "trick.h" #include "vector.h" #include "vectorsort.h" #include "player.h" #include "hand.h" #include "deck.h" #include "card.h" #include "ui.h" #include <stddef.h> #include <stdio.h> #include <unistd.h> #include "ADTDefs.h" #define TRICK_MAGIC 78952142368 #define TRUE 1 #define FALSE 0 #define HUMAN__PLAYER ...
#include <math.h> #include "MoonRise.h" #include "Moon.h" #define DegPerRad 57.29577951308232087680 #define RadPerDeg 0.01745329251994329576 extern double Glon, SinGlat, CosGlat, TimeZone; void MoonRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet){ double UT, ym, ...
/* * Copyright (c) 2018 ISP RAS (http://www.ispras.ru) * Ivannikov Institute for System Programming of the Russian Academy of Sciences * * 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 *...
/*========================================================== * Copyright 2020 QuickLogic 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/licens...
#include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #include <sys/ioctl.h> #include <time.h> #include <signal.h> #include "protocol.h" #include "client.h" #define INPUT_FD 0 #define MAX(a,b) (((a)>(b))?(a):(b)) char reply[MAX_LEN_MSG] = {0}; char message[MAX_LEN_MSG - LE...
/*####COPYRIGHTBEGIN#### ------------------------------------------- Copyright (C) 2005 <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 version 2 of the License, or (at your optio...
/* * Copyright 1999-2014 University of Chicago * * 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...
/** @file */ /* * ratools: Router Advertisement Tools * * Copyright 2013-2014 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
#include <linux/skbuff.h> #define LLC_MODULE typedef struct llc_struct llc; typedef struct llc_struct *llcptr; /* * LLC private data area structure. */ struct llc_struct { char eye[4]; /* To recognize llc area in dump */ int retry_count; /* LLC link state variables */ unsigned char name[9]; /* name of thi...
/* ieee754 floating point arithmetic * single and double precision * * BUGS * not much dp done * doesn't generate IEEE754_INEXACT * */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. * * This program is free software; you can distribute it and/or modify it * under the terms of...
/* * SPDX-License-Identifier: MIT * * Copyright © 2015 Red Hat, 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 t...
/*********************************************************************** ** ** REBOL [R3] Language Interpreter and Run-time Environment ** ** Copyright 2012 REBOL Technologies ** REBOL is a trademark of REBOL Technologies ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <pthread.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdint.h> #include "proto.h" #include "user.h" static int tcp_listen(char *ip, char *port); #define MAX_THREADS 128 struct thread_pool { p...
// Page vars int movingWhere(); int currentPage = 1; int minPage = 1; int maxPage = 6; // Data vars int secondsSinceRefresh = 0; float holdDownTime = 0.0; // Menu vars int autoMode = getAutonomousMode(); int autoMin = 1; int autoMax = 3; bool detectedL(); bool detectedR(); // TODO: Create task to update page every ...
/* * config.c - blkid.conf routines * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This file may be redistributed under the terms of the * GNU Lesser General Public License. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <ctype.h> #include <sys/types.h...
/* * KubOS Core Flight Services * Copyright (C) 2015 Kubos 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 ...
/* * This file and its contents are licensed under the Apache License 2.0. * Please see the included NOTICE for copyright information and * LICENSE-APACHE for a copy of the license. */ #include <postgres.h> #include <catalog/pg_collation.h> #include <commands/explain.h> #include <nodes/execnodes.h> #include <nodes...
/*************************************************************************** vidhrdw.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" unsigned char *vicdual_char...
/** * * \section COPYRIGHT * * Copyright 2013-2015 Software Radio Systems Limited * * \section LICENSE * * This file is part of the srsLTE library. * * srsLTE is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Softw...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
#include "usbd_cdc_if.h" /* Define size for the receive and transmit buffer over CDC */ /* It's up to user to redefine and/or remove those define */ #if 0 #define APP_RX_DATA_SIZE 1000 #define APP_TX_DATA_SIZE 1000 #else // mzhu optimization #define APP_RX_DATA_SIZE 64 #define APP_TX_DATA_SIZE 64 #endif USBD_CDC...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <pthread.h> #include <xmpp_helper.h> #include "xmpp_common.h" time_t glast_ping_time; struct _xmpp_helper_conn_t { unsigned int ref; xmpp_ctx_t *ctx; xmpp_conn_type_t type; int is_raw; xmpp_conn_type_t state; uint64_t timeout...
#include "gremlin.h" #include <stdatomic.h> #include <sys/types.h> #include <stdio.h> #define _GNU_SOURCE #include <unistd.h> #include <signal.h> #include <fcntl.h> #include <stdlib.h> #include <assert.h> #include <string.h> #define MAX_MAX_NODE 1000 #define PROPOSER_PATH "../sample/proposer" #define ACCEPTOR_PATH ".....
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include "../include/funcov_translate_addr.h" #include "../include/funcov_shm_coverage.h" void get_pc_val (char * dst, char * src) { char copied_string[COV_STRING_MAX] ; strcpy(copied_string, ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "hashmap.h" /* CRC8 */ #define CRC8_TOPBIT (1 << 7) #define CRC8_POLYNOMIAL 0x9b static unsigned char table8[256]; static int crc8_hinit = 0; void crc8_init() { int dividend; unsigned char bit, remainder; crc8_hinit = 1; /* Comput...
#include "ruby.h" #include "ruby/debug.h" #include "threads.h" #include "frame.h" #include "inspector.h" static VALUE c_Thread; static VALUE threads; static VALUE ids; static int next_id; static void thread_reference_free(void* data) { thread_reference_t* thr; thr = data; stack_free(thr->frames); ...
// main.c // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. /** * \file * * \brief An example implementation showcasing CSAPBCOM library usage. * */ #include "csapbcom.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint...
#include "callbackhandler.h" #include "memorymanager.h" #include "debug.h" #include "utils.h" #include "recorddataset.h" #include <pthread.h> #include <cuda.h> #include <cuda_runtime.h> static unsigned long autoincrement = 0UL; static float __get_loss_value (crossbowStreamP s) { /* Get loss value */ /* Default ...
/* * This file is Copyright (c) 2010 by the GPSD project * BSD terms apply: see the file COPYING in the distribution root for details. */ #include <sys/types.h> #include "gpsd_config.h" #ifndef S_SPLINT_S #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endi...
/* SPDX-License-Identifier: BSD-3-Clause */ /* Copyright (C) 2019 Kontron Europe GmbH */ /* FAN speed control. */ #include "shell_tools.h" const char fan_usage[] = "\ * GetFanSensorCount\n\ * GetFanSensorValue <fan_sensor_number>\n\ * GetFanSensorValueList\n\ * GetFanSensorInfo <fan_sensor_number>\n\...
/* $Id$ */ /* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* offsets of interesting fields in EM-pattern */ #define PO_HASH 0 #define PO_NEXT 1 #define PO_MATCH 3 #define ILLHASH...
/* 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 ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> #include <poll.h> #include <sys/wait.h> #include <sys/resource.h> #if (defined(__APPLE__) && defined(__MACH__)) || defined(MAC_OS_X) #include <netinet...
// 99c fontcompleteexample.c -lxcb && ./a.out // +build ignore // src: https://www.x.org/releases/current/doc/libxcb/tutorial/index.html#fontcompleteexample #include <stdlib.h> #include <stdio.h> #include <string.h> #include <xcb/xcb.h> #define WIDTH 300 #define HEIGHT 100 static xcb_gc_t gc_font_get(xcb_connecti...
/* Copyright: <NAME>, 2016-2017 License: MIT except for any non-public-domain algorithms (none that I'm aware of), which might be subject to their own licenses. Feel free to copy, use and enjoy in accordance with to the license(s). */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include "misc.h" /* ****************...
/* * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * * HDF is dual licensed: you can use it either under the terms of * the GPL, or the BSD license, at your option. * See the LICENSE file in the root of this repository for complete details. */ #include "securec.h" #include "osal_io.h" #include "osal_thread.h" ...
/** * \file * \brief remote delete test */ /* * Copyright (c) 2016, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstr 6, CH-8092 Zurich. Attn: Sys...
/* Conway's Game of Life - implementation using pthreads for parallelization <NAME> Williams College Mount Holyoke College Siena College */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> /* using globals for variables that need to be shared and accessible in all threads */ pthread_b...
/* wmget - A background download manager as a Window Maker dock app Copyright (c) 2001-2003 <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...
#include "mouse.h" #include "screen.h" #include "deadbeef_rand.h" #include "microsleep.h" #include <math.h> /* For floor() */ #if defined(IS_MACOSX) #include <ApplicationServices/ApplicationServices.h> #elif defined(USE_X11) #include <X11/Xlib.h> #include <X11/extensions/XTest.h> #include "xdisplay.h" #endif #if...
#include <stdio.h> #include "boolean.h" // Kamus Global boolean valid; /* -------- */ /* DEFINISI */ /* -------- */ /* Pembentukan tipe bentukan POINT (TPOINT) */ typedef struct { int X; // absis int Y; // ordinat } TPOINT; /* Pendefinisian POINT */ typedef TPOINT POINT; /* -------------- */ /* AKH...