text
stringlengths
3.12k
18.7k
/* * tiler-geom.c * * TILER geometry functions for TI TILER hardware block. * * Author: <NAME> <<EMAIL>> * * Copyright (C) 2009-2010 Texas Instruments, Inc. * * This package is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published...
/* * Copyright (C) 2008, <NAME> & <NAME> * F.C. Donders Centre for Cognitive Neuroimaging, Radboud University Nijmegen, * Kapittelweg 29, 6525 EN Nijmegen, The Netherlands * * */ #include <stdio.h> #include <stdlib.h> #include <time.h> /* these are for changing the socket to non-blocking mode */ #include <fcntl...
#include "convlog.h" #include "inetcom.h" #include "logtype.h" #include <winnlsp.h> // // Current output file // OUTFILESTATUS WebOutFile = {0}; OUTFILESTATUS NoConvertOutFile = {0}; // // Used for find first // WIN32_FIND_DATA FindData = {0}; // // struct for holding command l...
/** ============================================================================ * @file tskrgb2ycbcr-dsp.c * * @path $(DSPLINK)/dsp/src/samples/rgb2ycbcr-dsp/ * * @desc This is simple TSK based application that uses SIO interface to * implement rgb2ycbcr-dsp for GPP. * * @ver 1.65.00.03 ...
/* * File: kernel/main.c * This is the main file for the kernel. * It's architecture independent. * The Assembly code passed the control for us, so now * we're gonna do some architechture intependent initialization * and call the next part of the architechture dependent stuff. * * History: * 20...
/* This is a short script which will apply patch to an input binary file. patch file format is defined in its own way. */ #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include "...
/** ****************************************************************************** * @file mcu.c - commit to head * @author Craig, Prem * @version V1.0 * @date 20-May-2017 * @brief main function for task scheduling ****************************************************************************** */ ...
// porres 2017 #include "m_pd.h" #include <math.h> #define LOG001 log(0.001) typedef struct _adsr{ t_object x_obj; t_inlet *x_inlet_attack; t_inlet *x_inlet_decay; t_inlet *x_inlet_sustain; t_inlet *x_inlet_release; t_float x_f_gate; t_float x_last_gate; t_int x_status; t...
#include <aos/aos.h> #include <spawn/spawn.h> #include <elf/elf.h> #include <aos/dispatcher_arch.h> #include <barrelfish_kpi/paging_arm_v7.h> #include <barrelfish_kpi/domain_params.h> #include <spawn/multiboot.h> extern struct bootinfo *bi; static errval_t elf_alloc_sect_func(void *si, genvaddr_t base, size_t size,...
/* Copyright (c) 2013, The Linux Foundation. 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 co...
/* * blogc: A blog compiler. * Copyright (C) 2014-2020 <NAME> <<EMAIL>> * * This program can be distributed under the terms of the BSD License. * See the file LICENSE. */ #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "datetime-parse...
/************************************************************************ * Copyright 2018 <NAME> <<EMAIL>> * * 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 ...
/* * Copyright (c) 2021-2022 Antmicro * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <device.h> #include <net/net_ip.h> #include <stdio.h> #include <net/socket.h> #include <drivers/video.h> #include <drivers/dma.h> #include <drivers/gpio.h> #include <timing/timing.h> #include <logging/log...
// Lista 2 - B /* 1) O IMC – Indice de Massa Corporal é um critério da Organização Mundial de Saúde para dar uma indicação sobre a condição de peso de uma pessoa adulta. A fórmula é imc = peso / (altura)² Com o valor do IMC calculado o programa deve informar a condição . Use a tabela abaixo */ #include <stdio....
/* movement.c Cause the ActivityBot to move in a variety of ways. ------------------------------------------------------------------------------ Copyright 2015 <NAME> Distributed under the MIT License (see accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) -------------------------...
/** * Author: <NAME> * Version: 0.1 * Description: An ELF injector for linux x64 * TODO: * - Add x86 support * - Add marker for already injected files * * Features: * - Uses a relative jump towards OEP (compatible with ASLR) * - Stretch the .text section to prevent EP outside of section * * Based on a...
#include <math.h> #include <stdbool.h> #include <stdlib.h> #include <time.h> #include <stdio.h> #include <pthread.h> #include <sys/time.h> #include "gravity.h" #include "physics.h" #define G 1e-4 int ms = 10; int count = PARTICLES_MAX; int next_m = 256; double next_color[3] = { 0, 0, 0 }; /* flag is true when phy...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* mouse_events.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: abiri <<EMAIL>> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Create...
// Copyright 2017 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 applicab...
#include "point.h" #include <cairo.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include "bitlib.h" bl_point* bl_make_point(double x, double y) { bl_point* p = (bl_point*)malloc(sizeof(bl_point)); p->x = x; p->y = y; p->next = NULL; return p; } bl_point_list* bl_make_point_list() { bl_poi...
/* * The MIT License * * Wavefront Alignment Algorithms * Copyright (c) 2017 by <NAME> <<EMAIL>> * * This file is part of Wavefront Alignment Algorithms. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
/************************************************************************** * * Copyright 2003 Tungsten Graphics, Inc., <NAME>, Texas. * 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")...
/* main.c * <NAME> * * The main reads the file 'test.txt' and * pass on the command and addresses to the appropriate functions. * * test.txt contains lines of the form: * 2 10019d94 * where the first single digit is 'n' * and the second string is the address in hex * */ #include <stdio.h> #include <std...
#include <errno.h> #include <fcntl.h> #include <libgen.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <linux/limits.h> #include <linux/vfio.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/stat.h> static int vfio_cfd = -1; static uint64_t _...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "../inc/gd3.h" #include "../inc/xgmtool.h" #include "../inc/util.h" const char* XGMTOOL_PRINT = "Optimized with XGMTool"; static int getWideStringSize(void* in); static short* getWideStringFromString(char* str); static short* getWideString(unsigne...
/* * Zen_Packer.c Copyright (C) 1998 Asle / ReDoX * Copyright (C) 2006-2007 <NAME> * * Converts ZEN packed MODs back to PTK MODs */ #include <string.h> #include <stdlib.h> #include "prowiz.h" static int test_zen (uint8 *, int); static int depack_zen (FILE *, FILE *); struct pw_f...
/* File: AESendThreadSafe.c Contains: Code to send Apple events in a thread-safe manner. Written by: DTS Copyright: Copyright (c) 2007 Apple Inc. All Rights Reserved. Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration o...
/* * MIT License * * Copyright (c) 2017 Quentin "Naccyde" Deslandes. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
/* jni_patch.c -- Fake Java Native Interface * * Copyright (C) 2021 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <psp2/io/fcntl.h> #include <psp2/apputil.h> #include <psp2/system_param.h> #include <stdio.h> #include...
/* @source equicktandem application ** ** Quick tandem repeat finder ** ** @author Copyright (C) <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 published by the Free Software Foundation; either version 2 ** of...
// Copyright (c) 2017 OPRECOMP Project // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> #include "oprecomp.h" #include <stdlib.h> #include <string.h> #include <assert.h> #include <time.h> #include <stdio.h> #include <stdint.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <...
#include "defs.h" #include <CursorCtl.h> #include <Files.h> #include <Folders.h> #include <MacMemory.h> #include <StringCompare.h> #include <stdio.h> #include <string.h> log_level gLogLevel; bool gFlagForce; bool gFlagDryRun; bool gFlagDelete; static const char *kActionName[] = { "no action", "new", "replace", ...
#include "text.h" #include "style.h" #include "util.h" #include "bounds.h" #include "memory.h" #include <math.h> #define GTimer GTimer_GTK #include <glib.h> #include <glib-object.h> #undef GTimer // A storage structure that holds the current state of the layout. typedef struct { PangoLayout *layout; int placed; ...
/** * @file usolve_dct_inc.c * @brief u-subproblem DCT solver for TV-regularized deconvolution * @author <NAME> <<EMAIL>> * * Copyright (c) 2010-2012, <NAME> * All rights reserved. * * This program is free software: you can use, modify and/or * redistribute it under the terms of the simplified BSD License. ...
#include <string.h> #include "format.h" #include "ciphersuites.h" #include "json.h" #include "util.h" int test_msg1_encode(const edhoc_msg1_t *msg1, const uint8_t *expected, size_t expected_len) { int ret; ssize_t message1_len; uint8_t message1[MESSAGE_1_SIZE]; ret = TEST_FAILED; message1_len =...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "../jsmn.h" /* * A small example of jsmn parsing when JSON structure is known and number of * tokens is predictable. */ char *readJSONFILE(char *file){ FILE *fp; char input[256]; int len = 0; strcat(file,".json"); fp = fopen(file , "rt"); ...
/* * HEIMDALLR: * Copyright [2021] [<NAME> .K (amzy-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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
#include "geminc.h" #include "gemprm.h" #include "cds.h" /* * Private function to convert 4-digit text to 2-digit */ static void _cdspptxt ( VG_DBStruct *el, int indx, char *ntxt, int *iret ); void cds_text ( VG_DBStruct *el, int indx, int *iret ) /******************************************************************...
// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
// Copyright 2021 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include <platform.h> #include <xs1.h> #include "FreeRTOS.h" #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "fs_support.h" #include "app_conf.h...
/* Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved. Distributed by Free Software Foundation, Inc. This file is part of Ghostscript. Ghostscript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the conseque...
#define _DEFAULT_SOURCE 1 #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <time.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <stdbool.h> #include <assert.h> #include <limits.h> #include <poll.h> #include "service-runner.h" enum { ...
/* * PCI Finger-Print Bus Scanner * * Copyright (c) 2016-2020 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <stdlib.h> #include <string.h> #include <pci/pci.h> #include "pfp-scanner.h" struct pci_bus { struct pci_bus *next; struct pfp_sbdf root; int segment, bus; struct pci_dev *d...
/* * Copyright (c) 2015, <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * WITHOU...
/* * Implements a binary heap-based priority queue. Heaps make it easy to answer * the question, "What's the smallest/largest item in my heap?" but they're * completely useless for ordered traversal, since a smaller item can be in * either the left or right branch of the binary heap. * * As it turns out, I'm usi...
/* Escreva um programa que leia um arquivo texto com o nome passado como parâmetro do programa e execute as seguintes funcionalidades através de um menu: 1. Contar caracteres, linhas e palavras do arquivo; 2. Encontrar e mostrar palavras que são palindromos (apenas palavras); 3. Somar números inteiros e positiv...
/** * Copyright (C) 2013 <NAME>. * Copyright (C) 2018 <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 b...
// // AES128.c // AES // // Created by <NAME> on 14.11.2020. // #include "AES128.h" //This file contains the raw implementation of AES, without any auxiliary functionality or data. #define BLOCK_SIZE 16 // 128 bit blocks #define KEY_SIZE 16 // 128 bit-long key uint8_t expandedKey[10][KEY_SIZE]; uint8_t rcon[10]...
/********************************************************************************************* ___ _ ___ _____ ___ | _`\ ( ) ( _`\(_ _)( _`\ | (_) ) _ ___ | |/') | (_(_) | | | (_(_) | , / /'_`\ /'___)| , < | _)_ | | `\__ \ | |\ \ ( (_) )( (___ | |\`\ | ...
//====================================================================================================// // Program to control the 7 Segment Display serially using PC and FT232 (asynchronous mode) // //====================================================================================================// ...
/* -*- Mode: C; tab-width: 4 -*- */ /* bubble3d.c - 3D bubbles */ #if 0 static const char sccsid[] = "@(#)bubble3d.c 4.11 98/06/16 xlockmore"; #endif /*- * BUBBLE3D (C) 1998 <NAME>. * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby g...
/* AUTHOR: dhq DESCRIPTION: CHANGE HISTORY: 23 Aug 2020 dhq Initial version MIT License Copyright (c) 2020 dhq 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 re...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <nginx.h> #include "ngx_rtmp.h" #include "ngx_live.h" #include "ngx_rtmp_version.h" #include "ngx_rtmp_live_module.h" #include "ngx_rtmp_codec_module.h" #include "json/cJSON.h" #define NGX_LIVE_STAT_BW 0x01 #define NGX_LIVE_STAT_BY...
/* * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). * m_topic.c: Sets a channel topic. * * Copyright (C) 2002 by the past and present ircd coders, and others. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publis...
/* linenoise.c -- guerrilla line editing library against the idea that a * line editing lib needs to be 20,000 lines of C code. * * You can find the latest source code at: * * http://github.com/antirez/linenoise * * Does a number of crazy assumptions that happen to be true in 99.9999% of * the 2010 UNIX compu...
/* * slogsink.c -- * * This code is adapted from straps.c program from Technical University of Braunschweig. * * A simple syslog sink. The slogsink demon listens to the syslog port 514/udp * and forwards the received event to connected clients (like scotty). Because * the port 514 needs root access and the port...
// SPDX-License-Identifier: GPL-2.0 /* Driver for ORISE Technology OTM3225A SOC for TFT LCD * Copyright (C) 2017, EETS GmbH, <NAME> <<EMAIL>> * * This driver implements a lcd device for the ORISE OTM3225A display * controller. The control interface to the display is SPI and the display's * memory is updated over t...
/* This program uses a genetic algorithm to optimize a phrase-based rule such as * the NIGERIAN or ADVANCE_FEE rule. * * <@LICENSE> * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information re...
/** * IMP project 2016 - Game Of Life * edited by <NAME> * xkozak15 AT stud.fit.vutbr.cz * last edit : 11.12.2016 * changed about 75-85% of the file */ /******************************************************************************* main.c: LCD + keyboard demo Copyright (C) 2012 Brno University of Technology, ...
/* Copyright (C) 2007-2011 Open Information Security Foundation * * You can copy, redistribute or modify this Program 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 ANY...
#include "game.h" #include <stdio.h> #include <stdlib.h> #include<unistd.h> //write #if ZED #include "lwip/inet.h" #include "lwip/sockets.h" #else #include <arpa/inet.h> //inet_addr #include <sys/socket.h> #endif #define SEND_BUFSIZE (9) #include <errno.h> #include <string.h> //Not API void empt...
/* my-malloc.c */ #include <stddef.h> #include <stdio.h> #include <unistd.h> #include <sys/resource.h> /* get/setrlimit() */ #include "my-malloc.h" static _mem_session *_session = NULL; #define DEBUG #ifdef DEBUG #include <stdarg.h> static int _debug_itr = 0; #endif static void debug(char* fmt, ...) { #ifdef D...
/* traffic_table_ui.c * Copied from gtk/conversations_table.c 2003 <NAME> * Helper routines common to all conversations taps. * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of...
#include "opencl_utils.h" /** Maximum number of OpenCL devices we will query */ #define MAX_DEVICES 4 #define MAX_SOURCE_SIZE (0x100000) #define VERBOSE 0 /** Query the available OpenCL devices and choose one */ void init_device( int platform_selection, cl_device_id *device, char *version_str, cl...
/************************************************************************** * * Copyright 2008 HPCNL-KICS, UET, Lahore, PAKISTAN. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification,are permitted provided that the following conditions * are met: * * ...
/** * The throttle is kept at neutral until its value exceeds * THROTTLE_SAFETY_MARGIN. This is meant to keep noise on the joystick ADC pin * from activating the throttle unexpectedly. * * There are typically two types of throttle joysticks on RC transmitters: * 1) Ones that automatically return to the c...
/* **************************************************************************** * Copyright(C) 2019 Maxim Integrated Products, 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...
#include "ui_settings.h" #include "guilib.h" #include "ime.h" #include "../config.h" #include "../device.h" #include "../connection.h" //#include "../debug.h" #include "../input/vita.h" #include "ui_connect.h" #include <assert.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include...
#include <stdio.h> #include <stdlib.h> #include <string.h> // for memset void invalid_opcode(int address, unsigned short opcode); int main(int argc, char *argv[]){ if (argc < 2) { printf("Usage: disasm <romfile> [offset]\n"); exit(1); } // able to start disassembling from different of...
/* * jabberd - Jabber Open Source Server * Copyright (c) 2006 <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 later ver...
/* * Copyright (c) 2003 <NAME> * Copyright (c) 2003 Massachusetts Institute of Technology * * 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 ...
/** * @file * @author <NAME> * @author <NAME> * * @section LICENSE Copyright (c) 2021, The University of California at Berkeley 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 ret...
/*- * Copyright (c) 2003 <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 ...
/* TM4C123G gpio.c MIT License Copyright (c) 2019 JorgeBratkov64 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, modif...
/** * Primary nginx session management daemon entry point. * * Copyright (C) 2018-2019 <NAME>. All Rights Reserved. * See the LICENSE file accompanying the distribution your rights to use * this software. */ #include "stdconfig.h" #include <signal.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #...
/* * Copyright (c) 2012-2016, Juniper Networks, Inc. * All rights reserved. * * You may distribute under the terms of : * * the BSD 2-Clause license * * Any patches released for this software are to be released under these * same license terms. * * BSD 2-Clause license: * * Redistribution and use in source...
/* * Copyright (C) Intel Corp. * Author: <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 by app...
/* * Copyright (c) 2014, STMicroelectronics International N.V. * 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, ...
/* test.c -- test data * * Copyright <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdint.h> #include <stdlib.h> #include <string.h> #include "hope.h" //...
/* * Copyright 2011 Cisco Systems, Inc. All rights reserved. * * This program is free software; you may 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. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WAR...
#include <stdio.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <sys/stat.h> #include <term.h> #include <termios.h> #include <sys/signalfd.h> #include <err.h> #include <errno.h> #include <getopt.h> #include "ctl.h" #include "cmd.h" #include "display.h" #define LOTS_VERSION...
#include <avr/io.h> #include <stdint.h> #include "../cmd.h" #define SYSCLK 8000000 #define BAUDRATE 115200 #define BAUD_DIV (SYSCLK/(BAUDRATE * 8) - 1) #define PIN_ALE1 (0x10) #define PIN_ALE0 (0x8) #define PIN_CS (0x4) #define PIN_RD (0x40) #define PIN_WR (0x20) unsigned char addr_low; unsigned char ad...
#include <stdbool.h> #include <string.h> #include "coap.h" #include "endpoints.h" #include "umini.h" #include "coap_liteos_port.h" #include "ocean_porting.h" //#include "cJSON.h" static char light = '0'; const uint16_t rsplen = 1500; static char rsp[1500] = ""; void build_rsp(void); char light_flag = ...
/* * Contributor: <NAME> * linkedin: http://www.linkedin.com/pub/xiaobing-li/69/a71/319 * */ #include <fc_core.h> extern uint32_t nfree_msinfoq; /* # free memory slabinfo q */ extern struct slabhinfo free_msinfoq; /* free memory slabinfo q */ extern uint32_t nfull_dsinfoq; /* from fc_slab */ exte...
/* * Copyright (c) 2015-2017, ARM Limited and Contributors. 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 * l...
// board enforces // in-state // accel set/resume // out-state // cancel button // accel rising edge // brake rising edge // brake > 0mph const AddrBus HONDA_N_TX_MSGS[] = {{0xE4, 0}, {0x194, 0}, {0x1FA, 0}, {0x200, 0}, {0x30C, 0}, {0x33D, 0}, {0x39F, 0}}; const AddrBus HONDA_BH_TX_MSGS[] =...
/* dget36.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
#ifdef KLEE_VERIFICATION #include "libvig/models/verified/map-control.h" //for map_reset #endif // KLEE_VERIFICATION #include <assert.h> #include <errno.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <rte_common.h> #include <rte_ethd...
/* * Copyright(c) 2012-2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause-Clear */ #include "ocf/ocf.h" #include "../ocf_cache_priv.h" #include "engine_rd.h" #include "engine_pt.h" #include "engine_inv.h" #include "engine_bf.h" #include "engine_common.h" #include "cache_engine.h" #include "../concurrenc...
/* Programa: dict.c * Autor: <NAME> (RA 139095) * * Descrição: Versão em arquivo único do programa dict.c. Incluí: * - dict.c * - hashtable.h * - hashtable.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* Fator de espalhamento: relação de expansão em memória da tabela de Hash */ #define S...
#include <stdlib.h> #include <stdio.h> #include "binary_compressor.h" #include "binary_function.h" #include "utility_math_functions.h" typedef struct { unsigned char b0; unsigned char b1; unsigned char b2; unsigned char b3; unsigned char b4; unsigned char b5; unsigned char b6; unsigned ...
/* ********************************************************************** */ /* ** stack_trace.c ** */ /* ** Functions for stack walking, getting frame info. ** */ /* ** ---------------------------------------------------------------- ** */ /* ** Author...
/* Glidix GUI Copyright (c) 2014-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: * Redistributions of source code must retain the above copyright notice, this list of condition...
#include "assert.h" #include "stdint.h" #include "stdlib.h" #define CV_Error(code, msg) assert(0 && msg); // cv::error( code, msg, CV_Func, __FILE__, __LINE__ ) #define CV_8U 0 #define CV_8S 1 #define CV_16U 2 #define CV_16S 3 #define CV_32S 4 #define CV_32F 5 #define CV_64F 6 #define CV_32FC1 CV_32F #define CV_64FC...
/* *------------------------------------------------------------------ * vxlan_gpe_api.c - vxlan_gpe api * * Copyright (c) 2016 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...
//**********************************************************************; // Copyright (c) 2017-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. Redistributions...
/*- * Copyright (c) 2014-2016 MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ /* * Supported btree formats: the "current" version is the maximum supported * major/minor versions. */ #define WT_BTREE_MAJOR_VERSION_MIN 1...
/* * RichEdit - string operations * * Copyright 2004 by <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) any later...
/** ****************************************************************************** * @file acceleration_app.c * @author MCD Application Team * @brief This file provides main GUI application program functions ****************************************************************************** * @attention ...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2018 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...