text
stringlengths
3.08k
10.5k
/* * $Id: store_swapmeta.c,v 1.7.8.3 2000/07/18 03:10:11 wessels Exp $ * * DEBUG: section 20 Storage Manager Swapfile Metadata * AUTHOR: <NAME> * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ * ---------------------------------------------------------- * * Squid is the result of efforts by ...
/** * Copyright (C) Mellanox Technologies Ltd. 2021. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #include "config.h" #include "components/tl/ucp/tl_ucp.h" #include "components/tl/ucp/tl_ucp_coll.h" #include "core/ucc_progress_queue.h" #include "components/tl/ucp/tl_ucp_sendrecv.h" #include "coll_patte...
/* * 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 ...
#include "kernel_loader.h" #include "ata.h" int get_le(int sector, int offset, int byte) { // Read in little-endian manner. Length can be 1, 2 or 4 bytes. int i; int result = 0; uint8_t ch[READ_LENGTH_MAX]; uint8_t sector_data[SECTOR_SIZE]; ata_lba_read(sector, 1, sector_data); for (i = 0; i < byte; i++) { c...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <ctype.h> typedef struct String { char* s; size_t len; size_t size; } String; String string_create(void) { String s = { .s = calloc(1, 1), .len = 0, .size = 1 }; if (!s.s) { s.size = 0; } ...
/* * Copyright 2018 <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 2 of the License, or * (at your option) any later version. * * This program is distr...
/*********************************************************************** * * Stopwatch with LCD display output. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) 2017-2020 <NAME> * Dept. of Radio Electronics, Brno University of Technology, Czechia * This work is licensed under the ...
/**************************************************************************//** * @file linker_magic.c * @brief Demonstrate linker initializing SRAM upon boot * @date 18. April 2020 ******************************************************************************/ /* * Copyright (c) 2020 <NAME> <<EMAIL>>. ...
/* $OpenBSD: main.c,v 1.17 2009/10/27 23:59:26 deraadt Exp $ */ /* $NetBSD: main.c,v 1.5 1995/04/22 10:08:54 cgd Exp $ */ /* * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are pe...
/* Copyright (C) 1997, <NAME>, e-mail <EMAIL> */ #include"chep_crt.h" #include "syst2.h" #include "physics.h" #include "s_files.h" #include "procvar.h" #include "out_serv.h" #include "saveres.h" #include "process.h" #include "red_out.h" #include "writeF.h" static void writeprocessname(int * prtclNum) { int i; ...
/* * Copyright (C) 2007 <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 2 of the * License, or any later version. * * This program is distributed in th...
#include <stdio.h> #include <windows.h> #include <conio.h> #include <string.h> #include "presentacion.h" #include "TADColaDin.h" #define tiempoEspera 500 void hidecursor(void){ HANDLE consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_CURSOR_INFO info; info.dwSize = 100; info.bVisible = FALSE; Se...
// UART.c // Runs on LM3S811, LM3S1968, LM3S8962, LM4F120 // Simple device driver for the UART. This version of the UART // driver uses UART1 instead of UART0 and has fewer character // I/O functions compared to the example project UART_4F120. // <NAME> // August 1, 2013 // Modified by EE345L students <NAME> && <NAME>...
/* Copyright (c) 2012, <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 copyright notice, this * list of conditions and ...
/************************************************************** * Modul: GUI - user interface usoftkey.c * * check the Softkey action buttons * (normal and BM menus) * ...
/* * Copyright 2005-2018 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/* * npu_hwts_sq.c * * about npu hwts sq * * Copyright (c) 2012-2019 Huawei Technologies Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * T...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
/* * Broadcom tag support * * Copyright (C) 2014 Broadcom Corporation * * 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 v...
/** * \file * * \brief UART Sleepwalking Example for SAM. * * Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip prod...
/* ----------------------------------------------------------------- */ /* The Speech Signal Processing Toolkit (SPTK) */ /* developed by SPTK Working Group */ /* http://sp-tk.sourceforge.net/ */ /* -----------------------------...
/** * @file usbd_user_hid.c * @brief HID driver for CMSIS-DAP packet processing * * DAPLink Interface Firmware * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use th...
#include "uf2.h" /** Wait for the synchronization bits (BITMASK) of the peripheral (PER). **/ #define SYNCBUSY_WAIT(PER, BITMASK) \ while ((PER)->SYNCBUSY.reg & (BITMASK)) { \ continue; ...
#include <math.h> #include <string.h> // // Function to draw a reference box // int DrawGridbox() { GLfloat col[3]; GLfloat d = 0.5; GLfloat x1[3],x2[3],x3[3],x4[3]; GLfloat x5[3],x6[3],x7[3],x8[3]; // colour col[0] = 1.0; col[1] = 1.0; col[2] = 1.0; // lower points x1[0] = -d; x1...
#include "server.h" #define REQUEST_HANDLER_SIZE 13 void print_hash_table(gpointer key, gpointer value, gpointer user_data) { g_print("Connected user id is %lld\n", *(gint64 *)key); (void)user_data; (void)value; } sqlite3 **mx_get_db(void) { static sqlite3 *db = NULL; return &db; } void mx_dest_...
/* Prototypes for exported functions defined in m68hc11.c Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. Contributed by <NAME> (<EMAIL>) This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Pub...
/**************************************************************************** * Copyright 2018,2020 <NAME> * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this so...
/* Simple Plugin API * Copyright © 2018 Collabora Ltd. * @author <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 ...
/* # _____ ___ ____ ___ ____ # ____| | ____| | | |____| # | ___| | ___| ____| | \ PSPDEV Open Source Project. #----------------------------------------------------------------------- # (c) 2005 <NAME> <<EMAIL>> # Licenced under Academic Free License version 2.0 # Review pspsdk ...
#include <string.h> #include "xs.h" static inline char *refcount_create(size_t size) { RefCounted *rc = malloc(sizeof(RefCounted) + size - 1); rc->refcnt = 1; return &(rc->data[0]); } static inline char *refcount_realloc(const xs *x, size_t size) { char *p = NULL; assert(1 == refcount_get(x)); ...
/** @file * Copyright (c) 2021, 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 * * http://ww...
/* Copyright (c) 2013 The Chromium OS 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 <netinet/in.h> #include <sbc/sbc.h> #include <syslog.h> #include "cras_a2dp_info.h" #include "cras_sbc_codec.h" #include "cras_types....
#include <stdio.h> #include <stdlib.h> #include <string.h> //#include <unistd.h> #include <assert.h> #include <time.h> #include "csidh.h" #include "cycle.h" #include "fp.h" #include "mont.h" #include "u512.h" void u512_print(u512 const *x) { for (size_t i = 63; i < 64; --i) printf("%02hhx", i[(unsigned char *)x...
/* Copyright 1999, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ #include <string.h> #include <stdlib.h> #include <signal.h> #include "cm_private.h" extern void dump_card(cmedia_pci_dev * card); #if !defined(_KERNEL_EXPORT_H) #include <KernelExpor...
/** * @file pcd8544.c * * Roughly based on: * https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library * https://github.com/olikraus/u8g2 */ #include "disp_spi.h" #include "driver/gpio.h" #include <esp_log.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "pcd8544.h" #defi...
#include <stdio.h> #include <stdlib.h> #include <assert.h> /*Se tiene que elaborar una cola tal que permita recorrer los procesos de manera ordenada que contenga nodos de dos elementos, id y la rafaga*/ //Definiciones para la cola typedef struct Nodo{ int id; //Identificador del proceso int rafaga; //Rafaga del pr...
/* Wait on a condition. Generic version. Copyright (C) 2000, 2002, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free ...
/* The MIT License (MIT) Copyright (c) 2022 bluezr Copyright (c) 2022 The Dogecoin Foundation 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 limitat...
/* * count.c */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "oniguruma.h" #define ulen(enc, p) onigenc_str_bytelen_null(enc, (UChar* )p) static int test(OnigEncoding enc, OnigMatchParam* mp, char* in_pattern, char* in_str) { OnigPos r; unsigned char *start, *range, *end; regex_t* reg; ...
/* * Copyright (C) 2018 Jolla Ltd. * Contact: <NAME> <<EMAIL>> * * You may use this file under the terms of BSD license as follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of...
#include <kernel/types.h> #include <kernel/vm.h> #include <kernel/lists.h> #include <kernel/dbg.h> #include <kernel/config.h> /* * MemRegionFindFree(); */ struct MemRegion *MemRegionFindFree (struct AddressSpace *as, vm_addr addr) { struct MemRegion *mr; if (as->hint != NULL && as->hint->base_addr <= addr...
// // exploit_utilities.c // sock_port // // Created by <NAME> on 7/17/19. // Copyright © 2019 <NAME>. All rights reserved. // #import "exploit_utilities.h" mach_port_t new_mach_port() { mach_port_t port = MACH_PORT_NULL; kern_return_t ret = mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &p...
#include "cpuid.h" /* inline assembly interface to cpuid */ static inline void cpuid(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) { asm volatile("cpuid" : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) : "0" (*eax), "2" (*ecx)); } /* checks for CPU...
/* Copyright © 2021-2022 <NAME> * * See LICENSE.txt for licensing info. * * Name: rand.c * * Description: A random number generation API that keeps RNGs * per-thread to minimize contention. * * Note that this interface isn't particularly high * ...
#include "logging.h" #include "logging.priv.h" #include <stdarg.h> #include <string.h> #include "dynamic-array.h" #include "threads.h" enum log_sink_type { LOG_SINK_INVALID = 0, LOG_SINK_CB, LOG_SINK_FILE }; typedef struct { log_message_sink callback; void *data; } log_callback_sink_t; typedef ...
#include "app_layer.h" #include <string.h> #include "../app_layer/packet/packet_al.h" #include "../data_link/data_link.h" #include "../util/flags.h" #include "../util/util.h" int al_send_packet(int fd, char *packet, unsigned int size) { return llwrite(fd, packet, size); } int send_control_packet(int fd, char *f...
/* * ============================================================================= * * Filename: ngx_http_haskell_compile.c * * Description: Compile Haskell code * * Version: 2.0 * Created: 05.02.2018 13:48:01 * Revision: none * Compiler: gcc * * Author: <NA...
/// \file PhysicalDevice.c /// \author <NAME> #include "VK2D/PhysicalDevice.h" #include "VK2D/Initializers.h" #include "VK2D/Validation.h" #include "VK2D/Constants.h" #include <stdio.h> #include <malloc.h> static VkPhysicalDevice* _vk2dPhysicalDeviceGetPhysicalDevices(VkInstance instance, uint32_t *size) { ...
/* ** Copyright 2012-2016 by Kvaser AB, Molndal, Sweden ** http://www.kvaser.com ** ** This software is dual licensed under the following two licenses: ** BSD-new and GPLv2. You may use either one. See the included ** COPYING file for details. ** ** License: BSD-new ** ===============...
/* Simple Plugin API * Copyright © 2018 Collabora Ltd. * @author <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 ...
#include "cslack.h" static void setnonblocking(int sock) { int opts; if ((opts=fcntl(sock,F_GETFL))<0) die_errno(errno,"fcntl(sock,GETFL)"); opts = opts|O_NONBLOCK; if(fcntl(sock,F_SETFL,opts)<0) die_errno(errno,"fcntl(sock,SETFL,opts)"); return; } static int create_noblock_sockfd...
#include <ruby.h> #ifdef HAVE_RUBY_IO_H # include <ruby/io.h> #else # include <rubyio.h> #endif #ifdef HAVE_RUBY_ST_H # include <ruby/st.h> #else # include <st.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include "set_file_path.h" #include "ancient_ruby.h" static ...
// // searchLeftOrRight.c // dataStructureHW2 // // Created by <NAME> on 4/23/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include <stdio.h> int searchLeftMost(int [], int, int, int); int searchRightMost(int [], int, int, int); int getNumOf(int, int); int main(void){ int leftMost = 0, rightMost=...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file USART/USART_SlaveMode/Src/stm32l5xx_hal_msp.c * @author MCD Application Team * @brief HAL MSP module. ****************************************************************************** *...
/* See LICENSE file for copyright and license details. */ #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <linux/limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/sendfile.h> #include <sys/stat.h> #include <time.h> #include <unistd.h> #include "config.h" #include "di...
#include <stdio.h> #include <stdlib.h> /* Zbog funkcije exit() */ #include <string.h> int n=0; void unesi(char niz[], int velicina){ char znak = getchar(); if (znak == '\n') znak=getchar(); int i = 0; while (i < velicina-1 && znak != '\n') { niz[i] = znak; i++; znak = getchar(); } niz[i]='\0'; } void une...
/*Projeto de: <NAME> 78215 <NAME> 78579 <NAME> 79042*/ #include <stdio.h> #include <stdlib.h> #include <float.h> /* 28 estados membros 12 PPES */ #define EM 28 #define PPE 12 /*prototipos*/ void addvote(int votos[EM][PPE]); void infoem(char estadosmembro[EM][3],char partidos[PPE][4],int votos[EM][PPE]...
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed...
#include <stdint.h> #include <stdbool.h> #include "library/STM32F10x_StdPeriph_Driver/inc/misc.h" #include "BIOS.h" void Delay_mS(uint32_t mS); extern void (* g_pfnVectors[76])(void); #define GPIOD_BRR (*((volatile uint32_t *)(0x40011400+0x14))) #define GPIOD_BSRR (*((volatile uint32_t *)(0x40011400+0x10))) #defi...
/* * Copyright (c) 2015 <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 AUTHOR DISCL...
/* * slp-pkgmgr * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, * <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
/* * This file is part of the bladeRF project * * Copyright (C) 2013 Nuand LLC * * 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) an...
/*****************************************************************************\ |* |* COPYRIGHT: Copyright (c) 2004, Altium |* |* DESCRIPTION: SRL0 device driver |* \*****************************************************************************/ #include "proc_tsk3000.h" #include "util_timing.h" #include "wb_sr...
/* Simple Config file API * <NAME> * <NAME> * <NAME> (originally in Cyrus distribution) * $Id: cfile.c,v 1.1 2005/01/19 00:11:41 shadow Exp $ */ /* * Copyright (c) 2001 Carnegie Mellon University. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
#pragma once #include <stdint.h> #include <stdbool.h> #pragma once enum { // RV32I rv_inst_lui, rv_inst_auipc, rv_inst_jal, rv_inst_jalr, rv_inst_beq, rv_inst_bne, rv_inst_blt, rv_inst_bge, rv_inst_bltu, rv_inst_bgeu, rv_inst_lb, rv_inst_lh, rv_inst_lw, rv_inst_lbu, rv_inst_lhu, rv_i...
#include "../luacef.h" #include "include/internal/cef_string_list.h" /* <CefStringList> CefStringList; - create new string list: cef.newStringList{<str>, <str>, ...} cef.newStringList(<str>) -> <CefStringList> - read string from index (from zero): CefStringList[0] -> <str> -- index 0 CefSt...
#include "../../include/header.h" #include "../../include/dir_queries.h" #include "../../include/monitor_queries.h" #include "../../include/VaccinMonitor_Utilities.h" #include "../../include/sockets.h" #include "../../include/my_threads.h" int listener_sock = -1; static void find_query(int ccode, char *sanitised, c...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <jack/jack.h> #include <time.h> #include <string.h> #include "plumber.h" static int sporth_jack_in(sporth_stack *stack, void *ud); void plumber_stop_jack(plumber_data *pd, int wait); void sporth_start_listener(sporth_listener *sl); typedef struct { ...
/* Name: Assignment #: 4 Instructor: <NAME> Due Date: 28 April 2016 @ 11:59 PM */ #include <stdio.h> #include <string.h> #include <stdlib.h> int cmpWords(const void *, const void*); struct sortedWords { char *string; int count; }; int main(int argc, char *argv[]) { int space, fileNameLength, numWords, i,...
/** \brief Iot_Lab_M3 definition of the "sctimer" bsp module. On Iot_Lab_M3, we use RTC for the sctimer module. \author <NAME> <<EMAIL>>, May 2017. */ #include "stdint.h" #include "stm32f10x_conf.h" #include "sctimer.h" #include "board.h" #include "leds.h" #include "rcc.h" #include "nvic.h" // ==================...
/* * MONA * Copyright (C) 1997-2013 Aarhus University. * * 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. * * Th...
/* * Copyright (C) <NAME>, Koordinates Limited. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> typedef struct { ngx_flag_t enable; } ngx_http_bodytime_conf_t; typedef struct { time_t body_start_sec; ngx_msec_t body_...
#include "buffer.h" // Creates a buffer with the given capacity state_t* buffer_create(int capacity) { state_t* buffer = (state_t*) malloc(sizeof(state_t)); buffer->fifoQ = (fifo_t *) malloc ( sizeof (fifo_t)); fifo_init(buffer->fifoQ,capacity); buffer->isopen = true; // Initialize Mutex variables...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> //follows numpy convention, //assuming 2-dim matrix, row operations //summarizes across all rows, (#lines == 1, #columns = original input) //while column operations summarize across the columns (#lines == #rows, #columns...
#include "fwcfg.h" #include "vm.h" #include "libcflat.h" static void *free = 0; static void *vfree_top = 0; static void free_memory(void *mem, unsigned long size) { while (size >= PAGE_SIZE) { *(void **)mem = free; free = mem; mem += PAGE_SIZE; size -= PAGE_SIZE; } } void *alloc_page() { void *p; ...
/**************************************************************************** * * inc.h - global includes * * Copyright (c) 1992-2009 by Amzi! inc. All Rights Reserved. * ****************************************************************************/ // Amzi! string & character #if defined(_UNICODE) #ifnde...
//Some voxel space #define VIEW_HEIGHT 400 #define XDOTS 256 #define YDOTS 256 #define MAXCOLOR 199 #define MINCOLOR 20 #define BPL 256 #define MAXDEPTH 20 #define K0 3 #define K2 128 char* buf = buffer; int invtab[MAXDEPTH]; unsigned char *height, *col...
/* * Intel Wireless Multicomm 3200 WiFi driver * * Copyright (C) 2009 Intel Corporation <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by the Free Software F...
/* $Id: printwin.c,v 1.1.1.1 2003/07/21 16:18:41 pturner Exp $ * * Printer initialization */ #include <stdio.h> #include <Xm/Xm.h> #include <Xm/BulletinB.h> #include <Xm/DialogS.h> #include <Xm/Label.h> #include <Xm/PushB.h> #include <Xm/Text.h> #include <Xm/ToggleB.h> #include <Xm/RowColumn.h> #include <Xm/Separa...
/* Copyright (c) 2017, <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 copyright notice, * this list of conditions and the...
/* * Remote Fan Controller * Copyright (c) 2019 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/* Copyright (C) 1997-2001 Id Software, Inc. Copyright (C) 2000-2002 <NAME> and <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any ...
/** \file policy_filesize.c * * \copyright Copyright 2013-2015 <NAME>, <NAME>, and <NAME>. * All rights reserved. This project is released under the New BSD License. */ #include "policy.h" #include "policy_util.h" /* Per-prefix info about filesize range */ struct filesize_info { int minfilesize; int maxfi...
#include "gateway_mock.h" const nrf_drv_timer_t TIMER_LED = NRF_DRV_TIMER_INSTANCE(2); sensors_t mock; void mock_uart_data (void) { char msg_str_raw[32]; get_mock_uart_data(msg_str_raw); UART_PRINTF("%s\n\r", msg_str_raw); SEGGER_RTT_printf(0, "%s\n\r", msg_str_raw); } // Timer used to generate mo...
/*- * Copyright (c) 2009 <NAME> * Copyright (c) 2003-2008 <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 copyright * ...
// // KBLabel.c // KBEngine // // Created by <NAME> on 1/7/13. // Copyright (c) 2013 Kieffer Bros., LLC. All rights reserved. // #include "KBLabel.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "KBEngine.h" void KBLabelDraw(KBType *drawableObj, KBFloat opacity) { KBLabel *label = draw...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 <NAME> <<EMAIL>> */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <sys/utsname.h> #define TST_NO_DEFAULT_MAIN #include "tst_test.h" #include "tst_kconfig.h" static const char *kconfig_path(char *path_buf, ...
#include "Gpio.h" #include <stdint.h> #include <SysTimer.h> uint8_t reflectance_read(void) { //bits 3 downto 0 correspond to the leftmost downto the rightmost sensor // Counters for the individual reflectance sensors int32_t counter_1 = 0; int32_t counter_2 = 0; int32_t counter_3 = 0; int32_t counter_4 = 0;...
//The MIT License (MIT) // //Copyright 2018, Sony Mobile Communications 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 to...
/* * Copyright 2016 General Electric Company * * SPDX-License-Identifier: GPL-2.0+ */ #include "vpd_reader.h" #include <linux/bch.h> #include <stdlib.h> /* BCH configuration */ const struct { int header_ecc_capability_bits; int data_ecc_capability_bits; unsigned int prim_poly; struct { int min; int max...
#include "cache.h" #include "repository.h" #include "config.h" #include "submodule-config.h" /* The main repository */ static struct repository the_repo; struct repository *the_repository = &the_repo; static char *git_path_from_env(const char *envvar, const char *git_dir, const char *path, int fromenv) { i...
/* TEST_HEADER id = $Id$ summary = test of location dependencies language = c link = testlib.o rankfmt.o END_HEADER */ #include "testlib.h" #include "mpscawl.h" #include "mpscmvff.h" #include "mpscamc.h" #include "rankfmt.h" #define MAXLDS 1000 #define genCOUNT (3) static mps_gen_param_s testChain[genCOUNT] = ...
/* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferab...
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Plankton board configuration */ #include "adc.h" #include "adc_chip.h" #include "common.h" #include "console.h" #include "gpio.h" #include "...
#include <Python.h> #include "python_functions.h" #include <apr_strings.h> #define _QUOTEME(x) #x #define QUOTEME(x) _QUOTEME(x) #ifndef PYTHON_MODULE_PATH #define PYTHON_MODULE_PATH /var/libcrange/python #endif #define PYTHON_BOOT \ "import sys\n" \ "sys.path.append('" QUOTEME(PYTHON_MODULE_PATH) "')\n" \...
/* * Command for accessing SPI flash. * * Copyright (C) 2008 Atmel Corporation * Licensed under the GPL-2 or later. */ #include <common.h> #include <spi_flash.h> #include <asm/io.h> #ifndef CONFIG_SF_DEFAULT_SPEED # define CONFIG_SF_DEFAULT_SPEED 1000000 #endif #ifndef CONFIG_SF_DEFAULT_MODE # define CONFIG_SF_...
/* $Id$ Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (C): 1985-2005, University of Amsterdam This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
/* * Copyright (C) 2007 Nokia Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * A...
// // This is an example of parsing and building strict documents into C structs. // // The general approach is that each object type has a struct type and a // builder function. The struct type has members which represents its // properties. The builder function is more intresting: It takes a tokenizer // state and a ...
/* * Legal Notice * * This document and associated source code (the "Work") is a part of a * benchmark specification maintained by the TPC. * * The TPC reserves all right, title, and interest to the Work as provided * under U.S. and international laws, including without limitation all patent * and trade...