text
stringlengths
3.08k
10.5k
/** * Copyright 2014-2016 CyberVision, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
/* PR opt/6516 */ /* On x86, something about the structure of this function prevented cross-jumping from combining the three arms of the switch statement until the last moment. After which we did not delete dead code, which left a reference to the deleted ADDR_VEC. */ /* { dg-do compile { target fpic } } *...
#include <stdio.h> #include <stdlib.h> //引入头文件 java import #include <string.h> void test01(); void test02(); void test03(); void test04(); int main() { test01(); // test02(); // test03(); // test04(); } void test2(int n) { printf("test2 %d ... \n", n); } int plus(int i, int j...
/* This file is part of GNUnet. Copyright (C) 2009, 2015, 2016 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 vers...
/* * Copyright 2015 MongoDB, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krad/t_remote.c - Protocol test program */ /* * Copyright 2013 Red Hat, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#include "LKH.h" #include "Segment.h" typedef int (*OK_Function) (ZoneConstraint *Z, int *Rank, int Count); static int OK_Neighbor(ZoneConstraint *Z, int *Rank, int Count); static int OK_Path(ZoneConstraint *Z, int *Rank, int Count); static int OK_Precedence(ZoneConstraint *Z, int *Rank, int Count); static long long Z...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
// Copyright 2015 <NAME> 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 applicable law or agreed to in w...
/***************************************************************************** * | File : DEV_Config.c * | Author : Waveshare team * | Function : Hardware underlying interface * | Info : *---------------- * | This version: V3.0 * | Date : 2019-07-31 * | Info : # # Permiss...
/* Copyright (c) 2009 <NAME> and <NAME>, University of Geneva 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 ...
#pragma once #include "../global/vars.h" void inject_deltaPak(bool replace); void andrea1_init(); void andrea1_control(); void andrea1_end(); void andrea2_init(); void andrea2_control(); void andrea2_end(); void andrea3_init(); void andrea3_control(); void andrea3_end(); void andrea3b_init(); void andrea3b_control();...
#include <stdio.h> #include <stdint.h> #include <unistd.h> #include <sys/mman.h> #include <fcntl.h> #include <sys/types.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define RAM_START 0x8000000 #define TCP_PORT 1002 /* @brief Number of ADC acquisition bits. */ const i...
/* object to track refseqs that are to be retrieved */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "refSeqVerInfo.h" #include "linefile.h" #include "hash.h" #include "jksql.h" #include "sqlNum.h"...
/* title: Absolute Loader Created on : 08 Dec 18, 10:49 */ #include <stdio.h> #include <string.h> char input[10], label[10], ch1, ch2; int addr, w = 0, start, ptaddr, l, length = 0, end, count = 0, k, taddr, address, i = 0; FILE *fp1, *fp2; void check(); void main() { fp1 = fopen("input.txt", "r"); fp2 = fo...
/* @(#) im_Lab2LabQ: quantise FLOAT Lab image into 10 11 11 format * 4 bytes per pel: l a b lsbs * this is an image wrapper which calls line-wise packing * Copyright K.Martinez 3/5/93 * Modified: * 7/6/93 JC * - adapted for partial v2 * 5/5/94 JC * - some nint->+0.5, for speed and to ease portability * - other...
/* * librdkafka - Apache Kafka C library * * Copyright (c) 2020, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyrig...
/** This code is released in the Public Domain (no restrictions, no support 100% free) by Notion. */ #include "../src/runloop.h" #include "../src/sockserv.h" #include "../src/sockconn.h" #include "../src/mpool.h" #include "../src/sockaddr.h" #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <err.h> ...
#include "coffee.h" // stack and heap share the same area /******************************************* +-----------------+ | VM | +-----------------+ | Stack | +-----------------+ <- stack pointer | | | | | Objs...
/* * This template creates a simple key value store. The key-value pairs are stored in an expandable * array in key sorted order. A key comparison function must be supplied by the user at * initialization of the store. Lookup has O(log(N)) complexity because key are ordered. Insertion * and deletion has complex...
/* * Copyright (c) 1991 <NAME> * * Disclaimer: No guarantees of performance accompany this software, * nor is any responsibility assumed on the part of the authors. All the * software has been tested extensively and every effort has been made to * insure its reliability. */ /* * diffseq.c - difference images...
/* * Dump R4x00 TLB for debugging purposes. * * Copyright (C) 1994, 1995 by <NAME>ics, written by <NAME>. * Copyright (C) 1999 by Silicon Graphics, Inc. */ #include <linux/kernel.h> #include <linux/mm.h> #include <asm/hazards.h> #include <asm/mipsregs.h> #include <asm/page.h> #include <asm/pgtable.h> #include <as...
/* $Id$ */ /* * Copyright (c) 2019 <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 all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
#include "include/astar.h" Path* getPathAStar(int numRows, int numCols, int grid[][numCols], Point start, Point end) { Path * finalPath = NULL; bool ** seen = (bool**)malloc(numRows*sizeof(bool*)); for(int i=0; i<numRows; i++) seen[i] = (bool*)malloc(numCols*sizeof(bool)); Path *** paths = (Path***)mall...
/** @copyright Copyright (c) 2002 - 2010, <NAME>. All rights reserved. linux_kernel_alloc.c Implementations of the kernel allocation API defined in engine/kernel_alloc.h for Linux platforms. */ #include "linux_internal.h" #include "kernel_alloc.h" #define SSH_DEBUG_MODULE "SshLinuxKer...
/*@ Implementation of prime.h. * * Copyright (c) 2001 - 2020 <NAME>) Nurpmeso <<EMAIL>>. * SPDX-License-Identifier: ISC * * 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 noti...
/* * Written by Solar Designer <solar at openwall.com> in 2000-2011. * No copyright is claimed, and the software is hereby placed in the public * domain. In case this attempt to disclaim copyright and place the software * in the public domain is deemed null and void, then the software is * Copyright (c) 2000-2011...
#include <stdio.h> #include "hardware.h" #include "delay.h" #include "lcd/lcd_hal.h" #include "lcd/lcd_gfx.h" /** This one is executed onece a second. it counts seconds, minues, hours - hey it shoule be a clock ;-) it does not count days, but i think you'll get the idea. */ volatile int irq_counter, offset; volatile ui...
/* * Acess2 mount command */ #include <acess/sys.h> #include <stdlib.h> #include <stdio.h> #define MOUNTABLE_FILE "/Acess/Conf/Mountable" #define MOUNTED_FILE "/Devices/system/VFS/Mounts" // === PROTOTYPES === void ShowUsage(char *ProgName); int GetMountDefs(char *Ident, char **spDevice, char **spDir, char **spTyp...
/* * Copyright (c) 2018 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 applicabl...
/* * @TAG(OTHER_GPL) */ /* * (C) Copyright 2009 <NAME>, Emcraft Systems Ltd <<EMAIL>> * (C) Copyright 2008,2009 <NAME> <<EMAIL>> * (C) Copyright 2008 Armadeus Systems nc * (C) Copyright 2007 Pengutronix, <NAME> <<EMAIL>> * (C) Copyright 2007 Pengutronix, <NAME> <<EMAIL>> * (C) Copyright 2018, NXP * * This pr...
/* * srec2bin.c: Read Motorola SREC format, write binary data. * * By default reads from stdin and writes to stdout. The command-line * options `-i` and `-o` can be used to specify the input and output * file, respectively. Specifying an output file allows sparse writes. * * NOTE: Many SREC files produced by com...
#define _GNU_SOURCE #include <string.h> #include <stdlib.h> #include <glib/gprintf.h> #if MODERN_PLATFORM #include <libebook-contacts/libebook-contacts.h> #else #include <libebook/e-vcard.h> #endif #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) static const gchar *FILE_EXTENSION = ".vcf"; static const gchar VCARD...
/** * @file RA8875_TOUCH.c */ /********************* * INCLUDES *********************/ #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include <stddef.h> #include "ra8875_touch.h" #include "../lvgl_tft/ra8875.h" #ifndef CONFIG_LVGL_TFT_DISPLAY_CONTROLLER_RA8875 #error "...
/* * This program finds the index of first non-repeating character in a string. * If there are no non-repeating characters in the string, then the program * returns '-1'. More information on this, please visit the post:- * https://leetcode.com/problems/first-unique-character-in-a-string/ */ #include<stdio.h> #incl...
#include <cpuid.h> #include <stdarg.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "memcpy.h" #include "tinyprintf.h" #include "fpu.h" #include "heap.h" #include "idt.h" #include "mandel.h" #include "multiboot.h" #include "pic.h" #include "ports.h" #include "print.h" #include "serial.h" #inc...
#include <lib9.h> #include <bio.h> #include <regexp.h> #undef assert #define assert mkassert extern Biobuf bout; typedef struct Bufblock { struct Bufblock *next; char *start; char *end; char *current; } Bufblock; typedef struct Word { char *s; struct Word *next; } Word; typedef ...
/*! TP4 - SGM (groupe SR 1.1) <NAME> <NAME> */ // Includes #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <signal.h> #include <sys/mman.h> // Constants #define PAGES_PER_MATRIX 1 #define ROW_SIZE getpagesize() * PAGES_PER_MATRIX #define RAND_MIN_VALUE 0...
/* * Copyright (c) 2019 Yubico AB. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ /* * cc -fPIC -D_GNU_SOURCE -shared -o preload-snoop.so preload-snoop.c * LD_PRELOAD=$(realpath preload-snoop.so) */ #include <sys/types.h> #include <...
/* * Generates URLs for Google Authenticator. */ #include <sys/types.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include "errinc.h" #include "base32.h" static void urlencode(FILE *fp, const char *s); static void print_key(FILE *fp, const...
#include <stdio.h> #include <stdlib.h> #include <time.h> const int SWEEPS = 100; void printArray(int* arr, int size) { for (int i = 0; i < size; i++) { printf("%d ", arr[i]); } printf("\n"); } int getSize(FILE* fptr) { int size = 0; int temp; while (fscanf(fptr, "%d", &temp) == 1) { size++; } return size...
/** * @file test-cpu.c * @brief black-box testing of cpu.c for week09 * * @author <NAME>, <NAME>, EPFL * @date 2020 */ #include "opcode.h" // opcode_check_integrity() #include "cpu.h" #include "cpu-storage.h" // cpu_read_at_idx() #include "util.h" // for SIZE_T_FMT #include "error.h" #include <assert.h> #inclu...
/** @file flashes_socket.c @brief Listen TCP socket for flash program binary. @author <NAME> @version 1.0 @date 24.9.2018 The flashes_socket_setup() opens listening socket port 6827. The flashes_socket_loop() function is intended to be called from IO board's main loop. It checks for incoming so...
// Endgame database generator code // <NAME> // 08sept99 #include <stdio.h> #include <unistd.h> #include "params.h" #include "rules.h" #include "endgame.h" char *file = "endgame.dat"; long long ai[100][100],bi[100],ci[LPIT][100]; int stones, saved, maxval; long long size, crunched; void create() { if (access(fil...
/* This file is part of libmicrohttpd Copyright (C) 2018 <NAME> (and other contributing authors) 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....
// // chp5.c // chp5-Decisions // // Created by @HKuz on 2/3/17 // Exercises from Chapter 5: Making Decisions // #include <stdio.h> #include <stdbool.h> #include <math.h> // Function Prototypes int checkDivisibility(void); int showDivision(void); int printCalculator(void); int reverseDigits(void); int numWords(void);...
/* * teststr.c * * Created on: 2011-9-21 * Author: qcg */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "binarytree.h" #include "bst.h" #define RANGE 100 #define N 6 void print_item(linkitem p) { printf("%d", p->item); } struct record { char name[10]; int age; }...
/* * cms.c : GeeXboX uShare Connection Management Service. * Originally developped for the GeeXboX project. * Parts of the code are originated from GMediaServer from Oskar Liljeblad. * Copyright (C) 2005-2007 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the...
//Author: LabJack //May 25, 2011 //This example program sends a ControlConfig low-level command, and reads the //various parameters associated with the Control processor. #include "ue9.h" int controlConfig_example(HANDLE hDevice, ue9CalibrationInfo *caliInfo); int main(int argc, char **argv) { HANDLE hDevice; ...
//------------------------------------------------------------------------------ // LAGraph/Test/KTruss/ktest.c: test program for LAGraph_ktruss //------------------------------------------------------------------------------ // LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved. // SPDX-License-Identi...
#include<stdio.h> #include<stdlib.h> #include "gdal.h" #include<omp.h> #include "fillin.h" #define MAXFILES 7000 //For MODIS NDVI //#define TBC 10000 //#define BBC -2000 //NODATA, Top and Bottom Boundary conditions #define NODATA -28768 //For MODIS LST //#define TBC 20000 //#define BBC 5000 //NODATA, Top and Bottom ...
/* * 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...
/* This code is an implementation of Hill Cipher. It is a polygraphic substitution cipher. It forms a nxn matrix of key and nx1 matrix(s) of the plaintext and then multiplies the two matrices to obtains the matrix of ciphertext.*/ #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h...
/* Arduino SPIFlash Library v.2.6.0 * Copyright (C) 2017 by <NAME> * Created by <NAME> - 19/05/2015 * Modified by <NAME> - 14/04/2017 * * This file is part of the Arduino SPIFlash Library. This library is for * Winbond NOR flash memory modules. In its current form it enables reading * and writing individual data...
#include "add_water.h" int WMInit(WaterMarkInfo *WM_info, char WMPath[30]) { int i; int watermark_pic_num = 13; char filename[64]; FILE *icon_hdle = NULL; unsigned char *tmp_argb = NULL; int width = 0; int height = 0; int start_bmp = 0; WM_info->width = 0; WM_info->height = 0; ...
#include "rtc.h" #include "keyboard.h" #include "../lib/types.h" /* Referring https://wiki.osdev.org/RTC#Setting_the_Registers */ #define REG_A 0x8A #define REG_B 0x8B #define REG_C 0x8C /* Port Locs */ #define RTC_PORT 0x70 #define CMOS_PORT 0x71 /* RTC IRQ vector number */ #define RTC_IRQ 8 /* Defining permittib...
/* ************************************************************************** <MIT License> Copyright (c) 2013 <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 restri...
/* ppmchange.c - change a given color to another ** ** Copyright (C) 1991 by <NAME>, Jr. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appear in all copies and that both that ** ...
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
/* $NetBSD: ttyaction.c,v 1.19 2008/04/28 20:23:03 martin Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modifi...
/* * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/l...
#include "page.h" #include <types.h> #include <varied.h> #include <printf.h> #include <sched.h> void* page_map_binary(void* addr, size_t size, size_t* ctx_pgd) { size_t* pgd_addr, *pud_addr, *pmd_addr, *pte_addr; size_t total_pgd_entry, total_pud_entry, total_pmd_entry, total_pte_entry; size_t num_of_pud_entry...
/* * The Yices SMT Solver. Copyright 2014 SRI International. * * This program may only be used subject to the noncommercial end user * license agreement which is downloadable along with this program. */ #include <stdio.h> #include <stdint.h> #include <string.h> #include <inttypes.h> #include "utils/cputime.h" #i...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <sys/mman.h> #include <signal.h> #include <sys/wait.h> #include <sys/uio.h> #include <asm/unistd.h> #include "zdtmtst.h" #include "lock.h" #define MAP_SIZE (1UL << 20) #define MEM_SIZE (1UL << 29) const char *test_doc = "create ...
#include "uvudt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> /* strlen */ #include <assert.h> #define TEST_PORT (51686) #define SERVER_MAX_NUM 10 #define CLIENT_MAX_NUM 10 /* Run the benchmark for this many ms */ #define TIME 6000 typedef struct { int domain; int pongs; int state; uvud...
/* * cocot - COde COnverter on Tty * * Copyright (c) 2002, 2004, 2005, 2008 <NAME> * All rights reserved. */ #if HAVE_CONFIG_H # include <config.h> #endif #include <stdio.h> #if HAVE_STDLIB_H # include <stdlib.h> #endif #if HAVE_UNISTD_H # include <unistd.h> #endif #if HAVE_UTMP_H # include <utmp.h> #endif #...
#include "SENNA_utils.h" static int is_verbose = 0; static void buffer_reverse_memory(void *ptr_, int block_size, int n_blocks); static int is_little_endian_cpu(); void SENNA_error(const char *fmt, ...) { va_list args; fprintf(stderr, "FATAL ERROR: "); va_start(args, fmt); vfprintf(stderr, fmt, args); fpr...
#pragma ident "$Id: mmap.c,v 1.5 2012/02/14 20:19:04 dechavez Exp $" /*====================================================================== * * Returns a pointer to a memory mapped nrts_sys structure. * *====================================================================*/ #include "nrts.h" #include "util.h" #i...
/** * @file sdlkbd.c * @brief Implementation of the keyboard */ #include "compiler.h" #include "sdlkbd.h" #include "keystat.h" #include "libretro.h" /** * @brief SDL Key tables */ struct TagSdlKey { int code; /*!< SDL key */ UINT8 data; /*!< PC-98 serial data */ }; #define NC 0xff /*!< N/C */ /** Key t...
#include <poll.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <ucontext.h> #include <unistd.h> #include "check.h" #include "log.h" #include "schedule.h" #include "vector.h" #define STACK_SIZE 0x23000UL #define unreachable() ...
/** * VOAPPS.h -- Task declarations for the VOClient Package applications. * * @file voApps.h * @author <NAME> * @date 6/03/11 * * @brief Task declarations for the VOClient Package applications. */ #include <getopt.h> #ifdef SZ_FORMAT #undef SZ_FORMAT #endif #define SZ_FORMAT 32...
/* Copyright (c) 2015 <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, merge, publish, d...
/* * Copyright (c) 2010,2011,2012,2015,2017,2018 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this ...
/* * ch1/bad_miscdrv/rdwr_test_hackit.c *************************************************************** * This program is part of the source code released for the book * "Linux Kernel Programming (Part 2)" * (c) Author: <NAME> * Publisher: Packt * GitHub repository: * https://github.com/PacktPublishing/Li...
#include <stdint.h> #include "../common/pongo.h" static uint64_t sign_extend(uint64_t number, uint32_t numbits /* signbit */){ if(number & ((uint64_t)1 << (numbits - 1))) return number | ~(((uint64_t)1 << numbits) - 1); return number; } uint64_t bits(uint64_t number, uint64_t start, uint64_t end){ ...
#include<stdio.h> #include<graphics.h> int c_line; void draw_xy(); float sine(float x); float cosine(float x); float tangent(float x); void sine_draw(float theta1,float theta2); void circle_draw(int xc,int yc,int r,int c); void main() { int xc,yc,r,i; float theta1,th...
#include <stdio.h> // Defining the MAX size of set #define MAX 100 // Defining a macro for getting the length of array #define LENGTH(x) (int) (sizeof(x) / sizeof(*x)) // Declaring SETS as global int setOne[2][MAX], setTwo[2][MAX]; /* Function for taking input | The function returns the array entered to the user |...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include "a2_helper.h" #include <pthread.h> #include <semaphore.h> #include <time.h> #include <fcntl.h> #include <sys/stat.h> sem_t T21Started; sem_t T21Ended; sem_t T24Started; sem_t T24Ended; sem_t T5s; sem_t ...
/* ** Copyright 2007-2018 RTE ** Author: <NAME> ** ** This file is part of Sirius_Solver. ** This program and the accompanying materials are made available under the ** terms of the Eclipse Public License 2.0 which is available at ** http://www.eclipse.org/legal/epl-2.0. ** ** This Source Code may also be made availabl...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <time.h> #include "client.h" int main(int argc, char *argv[]) { char *resHost; char *path; char *port; char *url; char *request_msg; short sho...
/* Practica: 8 Nombre: <NAME> Asignatura: Redes de computadoras Profesor: <NAME> Fecha: 14/mayo/2021 Equipo: 3 Integrantes: - <NAME> - <NAME> - <NAME> */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netinet/in.h> #include <string.h> #include <sys/socket.h> #include <linux/if_packe...
// ******************************************************************************* // Project Timer Demo2 Single-Timer LED Moving bar (Embedded C) // Target ATMEL ATmega1281 micro-controller on STK300 board // Program TimerDemo2_SingleTimer_LED_MovingBar_1281_C.c // Author <NAME> // Date 15th September 201...
/* -MODULE---------------------------------------------------------------------- RapidBATCH Copyright (C) 2008, 2009 by Phorward Software Technologies, <NAME> http://www.phorward-software.com ++ <EMAIL> File: rb_comp.codegen.c Author: <NAME> Usage: Virtual machine code generator ---------------------------------------...
#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" // Interrupt descriptor table (shared by all CPUs). struct gatedesc idt[256]; extern uint vectors[]; // in vectors.S: array of 256 entry pointers ...
/* * Copyright (c) 2011-2012, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this...
/** * Copyright (C) 2013-2015 Netronome Systems, Inc. All rights reserved. * * @file nfp_imem.c * @brief Set internal memory either from a file or from a static value */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <ctype.h> #include <nfp.h> #define IMU0_ISLAND 28 #define IMU...
#include "reg24le1.h" //Defini��es de muitos endere�os de registradores. #include "stdint.h" //inteiros uint8_t, int8_t, uint16_t.... #include "stdbool.h" //Booleanos #include "API.h" #include "nRF-SPIComands.h" //Subendere�os usados no sistema #define MY_SUB_ADDR 0x01 #define OTHER_SUB_ADDR 0x02 // pacote = [sub_end...
/* -*- Mode: c; c-basic-offset: 2 -*- * * example.c - Redland example parsing RDF from a URI, storing on disk as BDB hashes and querying the results * * Copyright (C) 2000-2008, <NAME> http://www.dajobe.org/ * Copyright (C) 2000-2004, University of Bristol, UK http://www.bristol.ac.uk/ * * This package i...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> struct Node { int valor; char let; struct Node* esq; struct Node* dir; }; typedef struct Node NODO; // prototipos void inserir(NODO** arv, int val, char c); int pesquisar(NODO* arv, char caracter, char letra...
/* * Copyright (c) 2017 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source ...
/** ****************************************************************************** * @file TIM/OnePulse/main.c * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief Main program body ****************************************************************************** * @c...
/* * The Gubbins Microcontroller Operating System * * Copyright 2020 Zynaptic Limited * * 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 ...
/* * Creating a KVM-based VM basically needs 7 steps: * * 1. Open the KVM device, `kvmfd=open("/dev/kvm", O_RDWR|O_CLOEXEC)` * 2. Do create a VM, `vmfd=ioctl(kvmfd, KVM_CREATE_VM, 0)` * 3. Set up memory for VM guest, `ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &region)` * 4. Create a virtual CPU for the VM, `vcpufd...
/* * ff-protocol-ff400.c - a part of driver for RME Fireface series * * Copyright (c) 2015-2017 <NAME> * * Licensed under the terms of the GNU General Public License, version 2. */ #include <linux/delay.h> #include "ff.h" #define FF400_STF 0x000080100500ull #define FF400_RX_PACKET_FORMAT 0x000080100504ull #def...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "naomi/system.h" #include "naomi/video.h" #include "naomi/eeprom.h" #include "naomi/console.h" #include "naomi/timer.h" typedef struct { const char * name; int result; char *log; int logleft; char *reason; int reasonleft; } tes...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifdef FREEBL_NO_DEPEND #include "stubs.h" #endif #include "nspr.h" #include "hasht.h" #include "blapi.h" /* belo...
/*D*********************************************************** * Modul: DBI - Preis * get a price for an object and print it to a * buffer with currency signs * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ #include <mpmain.h> ...
#include <stdio.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/epoll.h> #include <liburing.h> #include <liburing/io_uring.h> #define pr(name) printf(" " #name " (0x%08x),\n",name) #define nl() printf("\n") /** * A utility to print various #DEFINE'...
/* * Copyright (c) 2019, Mellanox Technologies. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this so...