text
stringlengths
3.08k
10.5k
/* SPDX-License-Identifier BSD-3-Clause */ #define _GNU_SOURCE #include <stdarg.h> #include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include <netinet/in.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <jansson.h> #include <ev.h> #include <evsched.h> #include <syslog.h> #include <getop...
#include <u.h> #define NOPLAN9DEFINES #include <libc.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <sys/un.h> #include <netinet/in.h> static char *nets[] = { "tcp", "udp", nil }; #define CLASS(p) ((*(uchar*)(p))>>6) static struct { char *net; char *service; int port; } porttbl[] = ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "../aica_registers.h" #include "../aica_common.h" #include "interrupt.h" #include "spinlock.h" #include "task.h" extern struct io_channel *__io_init; static struct io_channel *io_addr; static spinlock_t call_lock = SPINLOCK_INITIALIZER, fpara...
#define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #define __MSVCRT_VERSION__ 0x0700 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> /** * Name........: permute3 * Autor.......: <NAME> <<EMA...
/* MIT License * * Copyright (c) 2018 SealHAT: Seal Heart and Activity Tracker * * 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 ri...
/* Example of instantiating of the WebAssembly module and invoking its exported function. You can compile and run this example on Linux with: cargo build --release -p wasmtime cc examples/multi.c \ -I crates/c-api/include \ -I crates/c-api/wasm-c-api/include \ target/release/libwasmtime.a \...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/typ...
/* C type extensions */ typedef unsigned char uint8_t; typedef char int8_t; typedef unsigned short int uint16_t; typedef short int int16_t; typedef unsigned int uint32_t; typedef int int32_t; typedef unsigned long long uint64_t; typedef long long int64_t; typedef unsigned long size_t; typedef void ...
/* This program counts trigraphs in all the dictionaries specified and outputs a C++ include file of constants for gpw.C to use. Change to a C include file by changing "const" to "static." Output of this program needs postprocessing to eliminate comma closebrace, see the makefile for gpw. THVV 6/94 Cod...
/* * Copyright 2015, 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 conditio...
// Analog accelerometer app // // Reads data from the ADXL327 analog accelerometer #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "app_timer.h" #include "app_error.h" #include "nrf.h" #include "nrf_delay.h" #include "nrf_gpio.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_def...
/**************************************************************************** * hmm.c * openacousticdevices.info * March 2018 *****************************************************************************/ #include "hmm.h" #include "arm_math.h" #include <stdint.h> #define NUM_FEATURES 3 #define NUM_STATES ...
#include <stdlib.h> #include <stdio.h> #include <float.h> #include <stdbool.h> #include <math.h> #include <unistd.h> #include <string.h> #include <limits.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <time.h> /* Recursively * max => 1*10^6 */ bool isPrimeRec (unsigned long long num, u...
#include "raw.h" #include "common.h" #include "http.h" #include "client.h" #include "cmd.h" #include <string.h> #include <hiredis/hiredis.h> #include <hiredis/async.h> static char * raw_wrap(const redisReply *r, size_t *sz); void raw_reply(redisAsyncContext *c, void *r, void *privdata) { redisReply *reply = r; st...
/** @file Wide character classification and conversion functions. Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The ful...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus-core - osal/files_win32.c * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2009 <NAME> * * ...
/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ * ...
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
/*- * Copyright (c) 2002, 2003 <NAME> * Copyright (c) 2006 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
#include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <limits.h> #include "af.h" #include "help_mp.h" // Convert from string to format int af_str2fmt(const char* str) { int format=0; // Scan for endianess if(strstr(str,"be") || strstr(str,"BE")) format...
/* * Copyright (c) 2017-2019 Cisco and/or its affiliates. * 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 appl...
/* Target-dependent code for OpenBSD/sparc. Copyright 2004 Free Software Foundation, Inc. This file is part of GDB. 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 o...
#include <stdio.h> #include <string.h> #include <signal.h> #include <math.h> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #ifndef M_SQRT2 #define M_SQRT2 1.41421356237309504880 #endif #ifdef _MSC_VER #pragma warning( disable : 4244 ) #pragma warning( disable : 4305 ) ...
/* * Copyright (c) International Business Machines Corp., 2006 * * 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. ...
/* * Copyright 1994-2011, Regents of the University of Minnesota * * mpmetis.c * * Drivers for the mesh partitioning routines * * Started 8/28/94 * George * * $Id: mpmetis.c 10567 2011-07-13 16:17:07Z karypis $ * */ #include "metisbin.h" /*****************************************************************...
/** * \file * * \brief AVR XMEGA Analog to Digital Converter Driver Example 1 * * Copyright (c) 2010-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
#include "nrf.h" #include "nrf_log.h" #include "nrf_timer.h" #include "mem_manager.h" #include <mbedtls/platform.h> #include <openthread/heap.h> #include <openthread/dataset.h> #include "simple_thread.h" static otInstance * m_ot_instance; void __attribute__((weak)) thread_state_changed_callback(uint32_t flags, void...
/*---------------------------------------------------------------------------- * Copyright (c) <2018>, <Huawei Technologies Co., Ltd> * 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. Redist...
/* * ***** BEGIN LICENSE BLOCK ***** Copyright (C) 2009-2016 <NAME> and <NAME> Copyright (C) 2017-2019 <NAME> This file is part of CLIXON. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
/* * $Id: spm_project.c 2572 2008-12-18 12:03:24Z guillaume $ */ /* spm_project.c % forms maximium intensity projections - a compiled routine % FORMAT spm_project(X,L,dims) % X - a matrix of voxel values % L - a matrix of locations in Talairach et Tournoux (1988) space % dims - assorted dimensions. % ...
/* * Author: <NAME> <<EMAIL>> * * Copyright (c) 2008-2009 Plausible Labs Cooperative, 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...
/* * QEMU host memfd memory backend * * Copyright (C) 2018 Red Hat Inc * * Authors: * <NAME> <<EMAIL>> * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" #include "qemu-common.h" #include "sysemu/hostmem...
/* mpn_divrem_2 -- Divide natural numbers, producing both remainder and quotient. The divisor is two limbs. THIS FILE CONTAINS INTERNAL FUNCTIONS WITH MUTABLE INTERFACES. IT IS ONLY SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT THEY'LL CHANGE OR DISAPPEAR IN A F...
#define _GNU_SOURCE // to use math constants like Pi. #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "user_inputs.h" #include "geometry.h" #define MAX_BUFFER_SIZE 1024 static float Buffer_x[MAX_BUFFER_SIZE]; static float Buffer_y[MAX_BUFFER_SIZE]; static int pixel_rank = 0; // Framework for...
#include <err.h> #include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <asm/unistd.h> #include <linux/perf_event.h> #define BITS_TESTED 24 #define BUF_SIZE (1L<<BITS_TESTED) const int INSN_RET = 0xC3; // 1 byte const ...
//void setupESNIconnection(){ // //} // //void sendReceiveESNI(){ // // //} // //void closeESNIconnection(){ // // //} #include <stdio.h> #include <curl/curl.h> #include <stdlib.h> #include <string.h> #include <openssl/sha.h> #include <openssl/rand.h> char *buffer; struct MemoryStruct { char *memory; si...
/* * This file is part of the coreboot project. * * (C) Copyright 2001 <NAME>, DENX Software Engineering, <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 Software Foundation; version 2 of the Licen...
#include "common.h" #include "monitor.h" #include "virtix_proc.h" #include "clock.h" #include "isr.h" #include "virtix_page.h" #include "single.h" #include "kheap.h" #include "file.h" unsigned int pid = 0; virtix_proc_t* root; virtix_proc_t* current_proc = NULL; registers_t hold_root; extern unsigned int stack_hold...
#include <stdbool.h> #include <FreeRTOS.h> #include <queue.h> #include <bl_wifi.h> #include <driver/uart/uart.h> #include <rwip.h> QueueHandle_t xRwmainQueue; uint32_t rw_main_task_hdl; const struct rwip_eif_api uart_api; uint32_t error; uint32_t critical_sec_cnt; void *(*ble_memcpy_ptr)(void *, const void *, unsign...
#include "entry.h" #include "stream.h" static int tcp_method_get(void *p, Janet key, Janet *out); const JanetAbstractType tcp_type = { "uv/tcp", NULL, juv_handle_mark, tcp_method_get, NULL, NULL, NULL, NULL }; static Janet juv_tcp_new(int32_t argc, Janet *argv) { janet_arity(argc, ...
/* Copyright 2019-2020 NetFoundry, Inc. 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 agreed to in writing, softw...
#include <VLIB/video_controller.h> #include <VLIB/video_packetizer.h> #include <VLIB/Platform/video_utils.h> #include <VP_Os/vp_os_malloc.h> #include <VP_Os/vp_os_assert.h> #include "uvlc_codec.h" #include "uvlc_layers.h" #include "uvlc.h" #ifndef HAS_UVLC_WRITE_BLOCK void uvlc_write_block( video_stream_t* const st...
/* * 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...
/* * (C) Copyright 2010 * <NAME>, Guntermann & Drunck GmbH, <EMAIL> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <command.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/ppc4xx-gpio.h> #include <dtt.h> #include <miiphy.h> #include "405ep.h" #include <gdsys_fpga.h> #def...
/* 109 - SCUD Busters */ #include <stdio.h> #include <stdlib.h> #include <math.h> #define EPSILON 1E-13 #define MAXPOLY 100 typedef char bool; #define TRUE 1 #define FALSE 0 typedef struct { int x, y; } point; typedef struct { point p[MAXPOLY]; int n; bool elec; } poly; poly kingdom[20]; #define ...
/** ****************************************************************************** * AD9833_reg.h - internal register definitions and internal library functions * this file is internal to the library, and should not be #included in your project directly * * @author <NAME> * @version V1.0 All major functio...
/*- * (MPSAFE) * * Copyright (c) 1999 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, ...
//#define __use_parallel_approach #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include <omp.h> #ifdef __include_mpi #include <mpi.h> #endif #include "graph.h" #include "problem.h" #include "bignumbers.h" #include "depth_first_search.h" #include "gather_and_search_approach.h" #include...
/* Authors: <NAME> and <NAME>, MPI-SWS; <NAME>, <NAME> Based on: - <NAME> and <NAME>. Relaxed separation logic: a program logic for C11 concurrency. OOPSLA 2013. http://www.mpi-sws.org/~viktor/papers/oopsla2013-rsl.pdf - <NAME> and <NAME>. A program logic for C11 memory fences. VMCAI 2016. http://www.mpi-sws.org/~vik...
/*- * Copyright (c) 2006 nCircle Network Security, Inc. * Copyright (c) 2009 <NAME> * All rights reserved. * * This software was developed by <NAME> for the TrustedBSD * Project under contract to nCircle Network Security, Inc. * * Redistribution and use in source and binary forms, with or without * modificatio...
/* A Bison parser, made by GNU Bison 2.4.1. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the term...
/* * Copyright 2013 <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 agr...
/* grTCairo5.c - * * Copyright 2017 Open Circuit Design * * Manipulate the programable cursor on the graphics display. * * Written by <NAME> */ #include <stdio.h> #include <X11/Xlib.h> #include <cairo/cairo-xlib.h> #include "tcltk/tclmagic.h" #include "utils/magic.h" #include "utils/styles.h" #include "utils/...
#include <yaml.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> int col=0; int inc=2; void print_escaped(yaml_char_t * str, size_t length); int usage(int ret); /* hdt 2021-08-12 Use this function and the global "col" to indent and pair event +/- blocks */ void inprnt(char *str) { if (str[0]=='-') col ...
/* * EHCI HCD glue for Cavium Octeon II SOCs. * * Loosely based on ehci-au1xxx.c * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2010 Cavium Networks * */ #include <l...
/* Copyright 2018 Technical University of Denmark, DTU Compute. All rights reserved. TTEthernet test program for interrupt solution Author: <NAME> (<EMAIL>) */ #include <stdio.h> #include <stdlib.h> #include <machine/patmos.h> #include <machine/exceptions.h> #include "ethlib/eth_mac_driver.h" #include "ethli...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2003 <NAME> <<EMAIL>> * Copyright (c) 2018 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. ...
/* * Copyright © 2017 Valve 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, pu...
/* * swdiag_unix_cli.c * * Copyright (c) 2007-2009 Cisco Systems 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...
/* Use of this source code is governed by the Lucent Public License, * complete license can be found in the LICENSE.lpl file. */ /* * mc - columnate * * mc[-][-LINEWIDTH][-t][file...] * - causes break on colon * -LINEWIDTH sets width of line in which to columnate(default 80) * -t suppresses expanding multiple ...
/* kgXref2 - create new Known Gene cross reference table kgXref.tab file */ #include "common.h" #include "hCommon.h" #include "hdb.h" void usage() /* Explain usage and exit. */ { errAbort( "kgXref2 - create new Known Gene cross reference table kgXref2.tab file." "usage:\n" " kgXref2 <tmpDb> <YYMMDD> <roDb>\n" ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #define FALSE 0 #define TRUE !(FALSE) void fileRead(FILE *file_in, int socket_in, struct sockaddr_in destination, socklen_t destlen, char* timesta...
/*************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2007-2021 Intel Corporation. All rights reserved. ...
/* ZZZZZZZZZZZZZZZZZZZZ 8888888888888 00000000000 ZZZZZZZZZZZZZZZZZZZZ 88888888888888888 0000000000000 ZZZZZ 888 888 0000 0000 ZZZZZ 88888888888888888 0000 0000 ZZZZZ 8888888888888 0000 0000 ...
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "utf-conv.h" #include "path.h" #include "findfile.h" #define REG_MSYSGIT_INSTALL_LOCAL L"SOFTW...
#include <stdio.h> #include <string.h> #include <dirent.h> #include <fcntl.h> #include <unistd.h> #include <sys/mount.h> #include <sys/stat.h> #include <stdlib.h> #include <libgen.h> #include <errno.h> #include <pwd.h> #include <sys/capability.h> #include <sys/prctl.h> static void raise() { cap_t init = cap_get_...
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <devicetree.h> #include <kernel.h> #include <sys/util.h> #include <soc.h> #if DT_PROP(DT_CHOSEN(zephyr_console), pcie) BUILD_ASSERT(IS_ENABLED(CONFIG_PCIE), "NS16550(s) in DT need CONFIG_PCIE"); #define UART_NS16550_PCI...
/* Copyright (c) 2017-2019 <NAME> a.k.a mr.DIMAS * * 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, ...
/*- * Public Domain 2014-2018 MongoDB, Inc. * Public Domain 2008-2014 WiredTiger, Inc. * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary,...
/* * File : att_estimator.c * * Change Logs: * Date Author Notes * 2016-07-01 zoujiachi first version. */ #include <rthw.h> #include <rtdevice.h> #include <rtthread.h> #include <math.h> #include "quaternion.h" #include "sensor_manager.h" #include "AHRS.h" #include "MARG_AHRS.h" #incl...
/* * ilesManager.c * * Created on: 20/7/2018 * Author: fran */ #include <stdio.h> #include "services_config.h" #include "terminalManager.h" #include "binaryFiles.h" #include "api_EEPROM.h" //extern TaskHandle_t MGR_DATALOG_HANDLER; //extern UBaseType_t* STACKS_TAREAS; extern QueueHandle_t MGR_DATAL...
#include <semaphores.h> #define MAX_SEMS 100 int sem_id; semaphore semaphores[MAX_SEMS]; //initiates the array of semaphores with no sems in it void init_sems(){ int i=0; while(i < MAX_SEMS){ semaphores[i++] = NULL; } sem_id = 0; } //mallocs a struct to open a sem semaphore create_sem_st...
// // sky.c // C-Ray // // Created by <NAME> on 16/06/2020. // Copyright © 2020 <NAME>. All rights reserved. // #include "../includes.h" #include "sky.h" #include "../datatypes/vector.h" #include "../datatypes/color.h" #include "../datatypes/lightray.h" /* This implementation here is adapted from the CUDA imple...
/** * @file test_jalp_audit.c This file contains functions to test jalp_audit(). * * @section LICENSE * * Source code in 3rd-party is licensed and owned by their respective * copyright holders. * * All other source code is copyright Tresys Technology and licensed as below. * * Copyright (c) 2011-2012 Tresys T...
/****************************************************************************** * FILE PURPOSE: ICSS_EMAC Peripheral Device Configuration ****************************************************************************** * FILE NAME: icss_emacSoc.c * * DESCRIPTION: ICSS_EMAC Peripheral Device Configuration Mapping...
/* * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <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://w...
/* * Based on pattern matching code from Lua removing captures. */ #include <dbg.h> #include <stdlib.h> #include <pattern.h> #include <string.h> #include <assert.h> #include <ctype.h> typedef struct MatchState { const char *src_init; /* init of source string */ const char *src_end; /* end (`\0') of source s...
#include "boorubot.h" #ifdef THREADED #include "C-Thread-Pool/thpool.h" #endif #include <curl/curl.h> #include <sys/stat.h> #include <errno.h> #include <unistd.h> #define getUpdatesURL \ "https://api.telegram.org/bot" TELEGRAM_TOKEN "/getUpdates" CURLSH *te...
/** * 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 following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list o...
/* * 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...
#include "util/u_memory.h" #include "util/u_math.h" #include "pipe/p_state.h" #include "pipe/p_defines.h" #include "util/u_inlines.h" #include "brw_resource.h" #include "brw_context.h" #include "brw_batchbuffer.h" #include "brw_winsys.h" static boolean brw_buffer_get_handle(struct pipe_screen *screen, struc...
// AOC 2021 solution in C // @chadsy // Copyright (C) 2021 <NAME> // MIT License http://opensource.org/licenses/MIT // // Day 4 // The one about bingo with a squid. // // First thing is, read in a comma-separated list of ints that are the bingo // draw numbers. Then read a series of 5x5 arrays of bingo boards. Then 'pl...
// SPDX-License-Identifier: GPL-2.0+ /* * Cortina CS4315/CS4340 10G PHY drivers * * Copyright 2014 Freescale Semiconductor, Inc. * Copyright 2018 NXP * */ #include <config.h> #include <common.h> #include <log.h> #include <malloc.h> #include <linux/ctype.h> #include <linux/delay.h> #include <linux/string.h> #incl...
/* S E R V E R . C * BRL-CAD * * Copyright (c) 2006-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as p...
/* Copyright (c) 2009-13 The Regents of the University of California * <NAME> <<EMAIL>> * See LICENSE for details. * * x86 trap.c bit-specific functions. */ #include <arch/mmu.h> #include <arch/x86.h> #include <arch/arch.h> #include <arch/console.h> #include <arch/apic.h> #include <ros/common.h> #include <smp.h> #...
/* Copyright (c) 2007 <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, ...
#include "ext.h" #include "ext_obex.h" #include "ext_systhread.h" #include <string.h> #include <unistd.h> #include <zmq.h> // derived from max-sdk/sources/advanced/simplethread typedef struct _zthread { t_object x_ob; // standard max object t_systhread x_systhread; // thread reference t_systhread_mut...
/* Copyright 2015 Google Inc. 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 required by applicable law ...
/* * * Copyright (c) International Business Machines Corp., 2001 * 07/2001 Ported by <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, ...
/*********************************************************************** bitvector.h - some macros for dealing with bitvectors Copyright (C) 1991 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License. See ../COPYING for the full agreement. ...
/* * pr_pset14_06.c * * A text file holds information about a softball team. Each line has data * arranged as follows: * * 4 <NAME> 5 2 1 1 * * The first item is the player’s number, conveniently in the range 0–18. The * second item is the player’s first name, and the third is the player’s last * n...
// // Console input and output, to the uart. // Reads are line at a time. // Implements special input characters: // newline -- end of line // control-h -- backspace // control-u -- kill line // control-d -- end of file // control-p -- print process list // #include <stdarg.h> #include "types.h" #include "p...
/*++ Copyright (c) 1996 Microsoft Corporation Module Name: pnp.c Abstract: NULL filter driver -- boilerplate code Environment: Kernel mode Revision History: --*/ #include <WDM.H> #include "filter.h" #ifdef ALLOC_PRAGMA #pragma alloc_text(PAGE, VA_PnP) #pra...
// libMeshb 7.5 basic example: read a quad mesh, split it into triangles // and write the result back using fast block transfer #include <stdio.h> #include <stdlib.h> #include <libmeshb7.h> #ifdef PRINTF_INT64_MODIFIER #define INT64_T_FMT "%" PRINTF_INT64_MODIFIER "d" #else # ifdef GMF_WINDOWS # define INT64_T_...
/* * This file is part of the libpayload project. * * Copyright (C) 2010 coresystems GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
/* coloredExonToBed - Convenience utility to make simple-formatted colored-exon beds into standard bed 14.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "bed.h" #include "coloredExon.h" void usage() /* Explain usage and exit. */ { errAbort( "coloredExonToBed - Convenie...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <stdarg.h> #include <sys/time.h> #include "debug.h" #include "sdc_sdk_legacy.h" #include "dcal_internal_api.h" int debug_to_stdout=0; int debug_level=0; #ifdef DEBUG // there are two options for debug. If the environment is set,...
/* * Copyright (c) 2018-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. */ #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <signal.h> #include...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "../examples/openmp_dot_product/scalar/runner.h" #include "utils.h" struct context { int m, n, P; int* a; }; int* gen_rand_ints(int n) { int* a = malloc(n * sizeof(int)); for (int i = 0; i < n; ++i) { a[i] = rand() % 100; }...
/*CODE_BLOCK_BEGIN[RESET001.c]*/ /******************************************************************************* Copyright (c) 2011, Infineon Technologies AG ** All rights reserved. ** ...