text
stringlengths
3.08k
10.5k
int open_connetion(const char *hostname, const int portno, const char **msgs) { int clientSock, iter; struct sockaddr_in sinClient; struct hostent *host; WSADATA wsaData; int result; if ((result = WSAStartup(MAKEWORD(2, 2), &wsaData)) != 0) err_exit("WSAStartup", EXIT_FAILURE, result); if ((clientSock = soc...
/* Simple program: Test bitmap blits */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "SDL.h" #include "picture.xbm" /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */ static void quit(int rc) { SDL_Quit(); exit(rc); } SDL_Surface *LoadXBM(SDL_Surface *screen, int...
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, * including without...
/* * This program attempts to determine struct layout rules for the compiler * in use. It is only approximate, of course. It looks for: * packed (no gaps) * aligned on 4 bytes * aligned on 8 bytes * aligned on sizeof(largest member) * Suggestions for further improvements are welcome; send to * <EMAIL> ...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
#include "shared.h" #define places 40 // sizeof(ullong) * 8 * log(2) / log(3) #define init_size 32 #define maxlen 8 #define mod (1 << 24) #define masklen (index + 1) static int *table; static ullong **masks; static int *sizes; static int *lengths; static ullong *mask; static int index; static ullong *pow3; static int...
/** * \file * * \brief lwIP Raw HTTP basic example. * * Copyright (c) 2014-2015 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 following conditions are met...
/* * Copyright (c) 2020 Baidu.com, 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 l...
/* COMP 530 - Assignment 5 * <NAME> * * UNC Honor Pledge: I certify that no unauthorized assistance has been * received or given in the completion of this work. * * * The server program acts as a daemon for running commands from a client. The * server accepts commands over a socket connect, executes them, and s...
#include <stdio.h> #include <stdlib.h> #include <locale.h> #include <gpm.h> #include "tebagrasys.h" /* #include "tbgpm.h" */ #include "gpmconvert.h" #include "gpmloop.h" /* int lastX = 0; int lastY = 0; int MyMouseHandler(Gpm_Event* event, void* data) { printf("Cursor event %d at (%d, %d)\r\n", event->type, event-...
#include <CL/cl.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define TOL 1e-8 #define MAX_ERRORS 8 #define MAX_PLATFORMS 8 const char *KERNEL_SOURCE = "kernel void vecadd(global float *a, \n" " global float *b, \n" " global float *c) \n" "{ ...
#include <stdio.h> // printf #include <stdlib.h> // malloc #include <stdint.h> // uint64_t #include <inttypes.h> // PRIu64 #include <stdbool.h> // bool #include <string.h> // memset #ifdef __APPLE__ #include <pthread/qos.h> // thread priority #endif // Number of values in one part of the bigint array ...
/** updated by adriac */ /* Font.c generated by valac 0.36.4-dirty, the Vala compiler * generated from Font.vala, do not modify */ /*[Adriac:Sdx::Font:SdxFont:sdx_font]*/ /* ****************************************************************************** * Copyright 2017 darkoverlordofdata. * * Licensed under the A...
/* ************************************************************************************************** * sglib.c * Some usefull functions needed everythere * * (C) 2009 <NAME> * * * Copyright 2010 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without modificat...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <sys/types.h> #include <dlfcn.h> #include <errno.h> #include <pthread.h> #include <signal.h> #include <string.h> #include "libcgo.h" #include "libcgo_u...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2013 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the ...
#include <stdlib.h> #include <GL/glut.h> float _angle = 0.0; GLuint _textureBrick, _textureDoor, _textureGrass, _textureRoof, _textureWindow, _textureSky; static void resize(int width, int height) { const float ar = (float) width / (float) height; glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTI...
// SPDX-License-Identifier: BSD-3-Clause /* written 2021 by <NAME> */ #include "mod_uart3.h" #include "stm32_init.h" #include <fwk_assert.h> #include <fwk_id.h> #include <fwk_macros.h> #include <fwk_mm.h> #include <fwk_module.h> #include <fwk_status.h> static struct mod_stm32_uart3_ctx { bool initialized; /* Wh...
/* $OpenBSD: release.c,v 1.41 2009/03/21 11:18:45 joris Exp $ */ /*- * Copyright (c) 2005-2007 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
#include "peakFilter.h" #include "helper.h" #include "FreeRTOS.h" void PeakFilter(q31_t* pData, void *opaque){ struct PeakFilter_t *tmp = (struct PeakFilter_t*)opaque; register uint32_t i; /*q31_t V0 = opaque->gain.value; // pow10(opaque->G.value * 0.05 * Q_1) ;*/ /*q31_t H0 = V0 - 1;*/ q31_t calc...
/* * GRUB -- GRand Unified Bootloader * Copyright (C) 2013 Free Software Foundation, Inc. * * GRUB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your...
/* * Copyright (c) 2013 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 agreed...
#include "spell_catalog.h" static Color POWERCHAR_COLOR[256] = { ['I'] = ORANGE, ['C'] = BLUE, ['L'] = PURPLE, ['R'] = BROWN, ['E'] = GREEN, ['F'] = ORANGE, ['O'] = GRAY, ['S'] = PINK, ['$'] = YELLOW, ['0'] = (Color){ 55, 52, 53, 255}, // Fairydust palette ['1'] = (Col...
/* matlib.c Copyright (C) 2012 Adapteva, Inc. Contributed by <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any l...
#include "core/debugger.h" #include "core/graphics.h" #include "cpu/cpu.h" #include "SDL2/SDL.h" #include <stdio.h> enum { DEBUGGER_TAB_CPU = 0, DEBUGGER_TAB_MPU, DEBUGGER_TAB_PPU, DEBUGGER_TAB_APU }; static SDL_Renderer* renderer; static SDL_Texture* target; static SDL_mutex* debugger_mutex; static char ins_str[...
/* * Copyright (c) 2011-2013 UT-Battelle, LLC. All rights reserved. * Copyright (c) 2011-2013 Oak Ridge National Labs. All rights reserved. * * See COPYING in top-level directory * * $COPYRIGHT$ * */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <inttypes.h> #include...
/*! LT3965 - Octal Matrix LED Bypass Switch @verbatim The LT3965 is an LED bypass switching device for dimming indiviadual LEDs in a string using a common current source. It features eight individually controlled floating source N-channel MOSFET switches rated for 17V/330 mΩ. The eight switches can be connect...
/*--- Program to send a datagram. * * Credits to Sun's Network Programming Guide. * * <NAME> 30 May 1992 */ #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> #include <netdb.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define...
/*this file contains the covert channel attack using the kernel context switching time*/ #include <autoconf.h> #include <manager/gen_config.h> #include <side-bench/gen_config.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sel4/sel4.h> #include <channel-bench/bench_common...
#include <stdint.h> #include "threads.h" #include "os.h" #include "malloc.h" #include "reg.h" #define THREAD_PSP 0xFFFFFFFD /* Thread Control Block */ typedef struct { void *stack; void *orig_stack; uint8_t in_use; } tcb_t; static tcb_t tasks[MAX_TASKS]; static int lastTask; void __attribute__((naked)) do_mach_t...
/* * This file is part of the micropython-ulab project, * * https://github.com/v923z/micropython-ulab * * The MIT License (MIT) * * Copyright (c) 2020-2021 <NAME> */ #include "py/runtime.h" #include "ulab.h" #include "ndarray.h" #include "ulab_tools.h" // The following five functions return a float from a ...
/** * @file customwingdi.h * @author Atlanswer (<EMAIL>) * @brief Bitmap Header Definition. * @version 0.2 * @date 2020-12-11 * * @copyright Copyright (c) 2020 * @see https://docs.microsoft.com/en-us/windows/win32/gdi/bitmaps * */ // System headers #include <stdio.h> #include <stdint.h> #include <stdlib.h>...
#include <stdio.h> #include <string.h> #include <assert.h> #include "../string_view.h" #define PRINT_INFO_MESSAGE(msg) printf("\e[1;32m%s\e[0m\n", msg); void test_sv_trim(){ string_view sv = sv_from_parts(" Hello World!!!\n\n ", 20); PRINT_INFO_MESSAGE("Running `sv_trim` test..."); sv_trim(&s...
// // sbb_aff.c // showing screenblock boundaries for affine backgrounds // // (20031115 - 20080416, Cearn) // === NOTES === #include <stdio.h> #include <tonc.h> #include "nums.h" #define MAP_AFF_SIZE 0x0100 // -------------------------------------------------------------------- // GLOBALS // --------...
#include <Adafruit_NeoPixel.h> #define PIN D2 #define STRIPSIZE 20 Adafruit_NeoPixel strip = Adafruit_NeoPixel(STRIPSIZE, PIN, NEO_GRB + NEO_KHZ800); void setup(){ strip.begin(); strip.setBrightness(20); } void loop(){ colorWipe(strip.Color(128, 0, 0), 100); colorWipe(strip.Color(0, 128, 0),...
/* * Copyright 2020 Makani Technologies LLC * * 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) 2014 - 2018, Nordic Semiconductor ASA * * 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 no...
const char rcsid_kd_since_c[] = "$Id: kd_since.c,v 1.2 2002/09/04 21:00:23 dtype Exp $"; /* * Copyright (c) 1996, 1997, 1998, 1999, <NAME>. All rights reserved. * See the LICENSE file in the release for redistribution information. */ #include <sys/types.h> #include <stdlib.h> #include <string.h> #include <time....
/*Implementar as operações listadas abaixo para uma estrutura de dados com alocação sequencial. a)Buscar elemento-OK;b)Busca Binária-OK;c)Inserir elemento-OK;d)Alterar elemento-OK;e)Excluir elemento-OK; By: <NAME>*/ #include <stdio.h> #include <stdlib.h> #include <locale.h> typedef struct lista Lista; struct lista{ ...
#include <stdio.h> #include "csapp.h" /* Recommended max cache and object sizes */ #define MAX_CACHE_SIZE 1049000 #define MAX_OBJECT_SIZE 102400 /* You won't lose style points for including this long line in your code */ static const char *user_agent_hdr = "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko...
#include <uv.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> static uv_loop_t *loop; static uv_tcp_t server; /* * Stores everything about a request */ struct client_request_data { time_t start; char *text; size_t text_len; char *response; int work_started; ...
#include "util.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include "queue.h" typedef struct { int x; int y; }Point; char *shortestPath(game_state_t state, Point *point, int pointNum) { int dirx[4] = { 0, 1, 0,-1}; int diry[4] = { 1, 0,-1, 0}; char dir[4] = {'E','S','W','N'}; ...
/* * MIT License * * Copyright (c) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parser.c :+: :+: :+: ...
/* ========================================================================== ** * ubi_dLinkList.c * * Copyright (C) 1997, 1998 by <NAME> * * Email: <EMAIL> * -------------------------------------------------------------------------- ** * This module implements simple doubly-linke...
#include "geminc.h" #include "gemprm.h" void gdpltc ( int *iframe, int *ibang, int *exist, int *pltmap, int *ix1, int *iy1, int *ix2, int *iy2, int *idrpfl, int *lindef, char *time, char *parm, int *level, int *scavld, int *vctvld, int *ivcord, ...
/* * main.c * * Created on: 27/11/2020 * Author: sjoshi */ //#include "stm32f4xx.h" #include "main.h" #include <stdio.h> //sprintf #include <string.h> //memset and strlen void Timer4_Init(void); void Error_Handler(void); void SystemClockConfigHSE(uint32_t sysclk); void GPIO_Init(void); ...
/* * Copyright (c) 2012 <NAME> * See LICENSE for details. * * <NAME> <<EMAIL>> */ #include <stdbool.h> #include <vdp2.h> #include <vdp2/pn.h> #include "lut_sin.h" #define RGB(r, g, b) (0x8000 | ((r) & 0x001F) | (((g) & 0x001F) << 5) | (((b) & 0x001F) << 10)) static uint32_t *line_scroll_tb = (uint32_t *)VRAM...
/*! * @file main.c * @brief Detect Mifare/ISO14443A card and display UID on ST7735. * ---------- * Adapted code from Seeed Studio PN532 driver for Arduino. * You can find the Seeed Studio PN532 driver here: https://github.com/Seeed-Studio/PN532 * ---------- * Inspired by examples in ValvanoWareTM4C123 by ...
/* * This file is part of the coreboot project. * * Copyright 2014 Google 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 Software Foundation; version 2 of the License. * * This program is distribute...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Duda I/O * -------- * Copyright (C) 2013, <NAME> <swpdtz at gmail dot com> * * 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 F...
/* * $Id: node_composite_viewer.c 39944 2011-09-05 22:04:30Z gsrb3d $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the ...
/* * File: main.c * Author: srdjan.furman * * Compiler: XC8 (v1.41) * IDE: MPLAB X IDE v3.50 * * Created on June 8, 2017, 9:41 AM */ #include <xc.h> #include <string.h> #include <stdlib.h> #include "uart_funcs.h" #include "init_mcu.h" #include "eeprom_funcs.h" #include "utility_funcs.h" const unsigned cha...
/* * This file is part of the OpenSupaplex distribution (https://github.com/sergiou87/open-supaplex). * Copyright (c) 2020 <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, version 3. * *...
// // Copyright (c) 2019 IOTech // // SPDX-License-Identifier: Apache-2.0 // #include "iot/container.h" #include "iot/logger.h" #define IOT_COMPONENT_DELTA 4 typedef struct iot_factory_holder_t { struct iot_factory_holder_t * next; const iot_component_factory_t * factory; } iot_factory_holder_t; typedef struct i...
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
// REQUIRES: arm-registered-target // RUN: %clang_cc1 -Wall -Werror -triple thumbv7-linux-gnueabi -fno-signed-char -O3 -emit-llvm -o - %s | FileCheck %s // Make sure the canonical use works before going into smaller details: int atomic_inc(int *addr) { int Failure, OldVal; do { OldVal = __builtin_arm_ldrex(add...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
//----------------------------------------------------------------------------- // This code is licensed to you under the terms of the GNU GPL, version 2 or, // at your option, any later version. See the LICENSE.txt file for the text of // the license. //-----------------------------------------------------------------...
#include <assert.h> #include <glad/glad.h> #include <stdio.h> #include <stdlib.h> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <stdbool.h> GLFWwindow * window; GLint window_dimensions_uniform_handle; GLuint vao; void create_window(); void load_shaders(); void create_gl_state(); void render(); void window_...
#include "lucre.h" /* USERKEY = [ MPI n MPI e int keyno [ USERPRIVCRYPT encrypt privkey ] ] */ EC_M_Userkey EC_M_new_userkey(BIGNUM *n, BIGNUM *e, UInt32 keyno, EC_M_Encrypt privkey) { EC_M_Userkey newuserkey; newuserkey = (EC_M_Userkey) EC_G...
/* eXosip - This is the eXtended osip library. Copyright (C) 2002,2003,2004,2005,2006,2007 <NAME> - <EMAIL> eXosip 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, o...
/* * $ cc -O3 -Wall -pedantic -Wextra anthem.c -o anthem -lm * * to play sound: * $ ./anthem | aplay -f S16_LE -r 44100 -c 2 * * to save as .wav file: * generate .pcm first * $ ./anthem > sound.pcm * and convert using ffmpeg * $ ffmpeg -f s16le -ar 44.1k -ac 2 -i sound.pcm sound.wav * * convert to .ogg * $...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> #include <unistd.h> #include <sys/types.h> #include <signal.h> #include <readline/readline.h> #include <readline/history.h> #include <sys/stat.h> #include <fcntl.h> #include "common.h" #include "core.h" #include "state.h" #include "myshlex...
/* * memorymanager.c * * Created on: Mar. 17, 2021 * Author: <NAME> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <time.h> #include "straux.h" #include "shell.h" #include "interpreter.h" #include "pcb.h" #include "ram.h" #include "cpu.h" #include "kernel.h" #incl...
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <openssl/ssl.h> #include <openssl/err.h> int port = 8000; int listen_port = 5; //最大监听数 void ShowC...
/* * The Shadow Simulator * See LICENSE for licensing information */ #include "main/host/syscall/timerfd.h" #include <errno.h> #include <stddef.h> #include <sys/timerfd.h> #include "lib/logger/logger.h" #include "main/core/worker.h" #include "main/host/descriptor/timer.h" #include "main/host/process.h" #include "...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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, inc...
#include <stdio.h> #include <stdlib.h> #include "NanoCpu.h" /* * ===== Table of ALU operations ===== * Must match order of ALU_OP... */ char szAlu[16][5] = { /* 0/8 1/9 2/A 3/B 4/C 5/D 6/E 7/F */ "add", "sub", "adc", "sbc ", "rsub", "and", "or ", "xor", "mul", "div", ...
/*! \file ss_flutter_supression.c * \brief * * \details none yet * * \author University of Minnesota * \author Aerospace Engineering and Mechanics * \copyright Copyright 2017 Regents of the University of Minnesota. All rights reserved. * * $Id: ??? $ */ #include "../globaldefs.h" #include "../utils/matrix....
/* * Copyright (c) 2012-2015, <NAME> and other contributors * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/** * Simple library for DisplayTech 64128K graphic LC Display MIT License Copyright (c) 2017 <NAME>, UltraFX 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 witho...
/** @Generated MPLAB(c) Code Configurator Source File @Company: Microchip Technology Inc. @File Name: mcc.c @Summary: This is the mcc.c file generated using MPLAB(c) Code Configurator @Description: This header file provides implementations for driver APIs for all modules selec...
/*- * Copyright (c) 2013-2015 Varnish Software AS * All rights reserved. * * Author: <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
/* * Copyright (c) 2017 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <string.h> #include "fcb_test.h" #include <storage/flash_map.h> struct fcb test_fcb; /* Sectors for FCB are defined far from application code * area. This te...
/* * Copyright (c) 1997-2014 <NAME> * Copyright (c) 1990 <NAME> * Copyright (c) 1990 Imperial College of Science, Technology & Medicine * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at Imperial ...
// GPIO Button demo #include "soc_AM335x.h" #include "beaglebone.h" #include "gpio_v2.h" #include "hw_types.h" // For HWREG(...) macro #include "watchdog.h" #include "uart_irda_cir.h" #include "consoleUtils.h" #include "joystick.h" #include "leds.h" #include <stdint.h> #define BAUD_RATE_115200 (115200) #...
/****************************************************************************** * The MIT License * * Copyright (c) 2012 LeafLabs, LLC. * Copyright (c) 2010 <NAME>. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (t...
/* * Check: a unit test framework for C * Copyright (C) 2001 2002, <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option)...
/* * Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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 * * ww...
/* * SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-3-Clause */ #include <arch/x86_64.h> #include <memory.h> #include <processor.h> #include <vmm.h> void arch_mm_print_ctx(struct vm_context *ctx) { table_print_recur(&ctx->arch.root, 3, 0, 0); } #define RECUR_FLAGS (VM_MAP_USER | ...
void uxa_damage_composite (RegionPtr region, CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pDst, INT16 xSrc, INT16 ySrc, INT16 xMask, INT16 yMask, INT16 xDst, INT16 yDst, CARD16 widt...
/* * File utility functions. * * Author: * <NAME> (<EMAIL>) * * (C) 2006 Novell, 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 l...
#pragma ident "$Id: parse.c,v 1.13 2012/12/13 21:48:17 dechavez Exp $" /*====================================================================== * * parse strings * *====================================================================*/ #include "util.h" #define SAVED_BLANK ((char) -1) /* Save embedded blanks insi...
/* $Id$ *====================================================================== * * DISCLAIMER * * This material was prepared as an account of work sponsored by an * agency of the United States Government. Neither the United States * Government nor the United States Department of Energy, nor Battelle, * nor a...
/**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 5 $ * $Date: 17/05/04 12:58p $ * @brief Change duty cycle and period of output waveform in PWM down count type. * @note * Copyright (C) 2016 Nuvoton Technology Corp. All rights res...
// file copier.c. // created by tekky on 2021.1.27. // Copyright © 2021 tekky. All rights reserved. #include "copier/copier.h" #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> static bool is_directory(const char *file) { struct...
/* Flush dcache and invalidate icache when the dcache is in writeback mode * * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved. * Written by <NAME> (<EMAIL>) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the ...
#define _BSD_SOURCE #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <strings.h> #include <sys/time.h> #include <time.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/sysinfo.h> #include <sys/types.h> #include <X11/Xlib.h> char *tzberlin = "Europ...
/** \file ds12c887widget.c * \brief DS12C887 RTC widget * * \author <NAME> <<EMAIL>> */ /* * $VICERES DS12C887RTC x64 x64sc xscpu64 x128 xvic * $VICERES DS12C887RTCbase x64 x64sc xscpu64 x128 xvic * $VICERES DS12C887RTCSave x64 x64sc xscpu64 x128 xvic * $VICERES DS12C887RTCRunMode x64 x64...
/* * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved * * $Header$ */ #if !defined(lint) && !defined(__CODECENTER__) static char *rcsid = "$Header$"; #endif #include <sys/types.h> #include <sys/file.h> #include <fcntl.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> ...
#include "mex.h" #include "math.h" #include "matrix.h" #include "float.h" /* * VestBMS_likec1sum_discrete.c * *VESTBMS_LIKEC1SUM_DISCRETE Multiple computations for C=1 (correlated,discrete) * * ================ INPUT VARIABLES ==================== * POSTPDF_C2_UNI: p(s) * p(x_vest|s). [S-by-1-by-K] (double) * L...
/* * lan.c * * Copyright (c) 2004 <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, this...
// throttling packets #include "iup.h" #include "common.h" #define NAME "throttle" #define TIME_MIN "0" #define TIME_MAX "1000" #define TIME_DEFAULT 30 // threshold for how many packet to throttle at most #define KEEP_AT_MOST 1000 static Ihandle *inboundCheckbox, *outboundCheckbox, *chanceInput, *frameInput, *dropThro...
/* Package: dyncall Library: dynload File: dynload/dynload_syms_elf.c Description: License: Copyright (c) 2007-2015 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> Permission to use, copy, modify, and distribute this software for any purpose ...
/* * Copyright (c) 2002-2013 Balabit * Copyright (c) 1998-2012 <NAME> * * 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 program ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #define PI 3.14159265358979323846 void getRHS(const int Nx, const int Ny, double C[][Ny], double RHS[][Ny], double s_source[][Ny], const double dt, const double ax, const double ay); void do_Jacobi(const int Nx, const int Ny, const...
/* * 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 (C) 2012-2014 PIVA SOFTWARE (www.pivasoftware.com...
/* ----------------------------------------------------------------------------- * * (c) The GHC Team, 2009 * * Work-stealing Deque data structure * * The implementation uses Double-Ended Queues with lock-free access * (thereby often called "deque") as described in * * D.Chase and Y.Lev, Dynamic Circular Work-...