text
stringlengths
3.08k
10.5k
#define _GNU_SOURCE #ifdef DEBUG #include <stdio.h> #endif #include <unistd.h> #include <stdlib.h> #include <arpa/inet.h> #include <linux/limits.h> #include <sys/types.h> #include <dirent.h> #include <signal.h> #include <fcntl.h> #include <time.h> #include <sys/ioctl.h> #include <string.h> #include <sys/prctl.h> #incl...
/** * (c) 2016 The LV1RE Project. * Released under MIT license. Read LICENSE for more details. */ #pragma once #include "common/types.h" #include "lv1/driver/rsx/bus/ioif0.h" #include "lv1/driver/rsx/core/context.h" #include "lv1/driver/rsx/core/memory.h" // Devices #include "lv1/driver/rsx/device/audio.h" #incl...
// Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries. // SPDX-License-Identifier: MIT // If using uclibc, compile with // gcc -Wall -shared -fPIC -fasynchronous-unwind-tables btsig.c -lubacktrace -o btsig.so // If using glibc, compile with // gcc -Wall -shared -fPIC -fasynchronous-unwind-tabl...
/* ** The OpenGL Extension Wrangler Library ** Copyright (C) 2002-2008, <NAME> <milan ikits[]ieee org> ** Copyright (C) 2002-2008, <NAME> <mmagallo[]debian org> ** Copyright (C) 2002, <NAME> ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted...
/* ZBOSS Zigbee 3.0 * * Copyright (c) 2012-2018 DSR Corporation, Denver CO, USA. * http://www.dsr-zboss.com * http://www.dsr-corporation.com * All rights reserved. * * * Use in source and binary forms, redistribution in binary form only, with * or without modification, are permitted provided that the ...
/*! \file bcma_cli_cmd_usage.c * * Display usage of CLI command. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the use of the accompanying Broadcom software. Your * u...
/* * Extended memory overlay demo program. * * 2012-17-07, <NAME> (<EMAIL>) * */ #include <string.h> #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <em.h> #ifndef __CBM__ #include <fcntl.h> #include <unistd.h> #else #include <device.h> #endif /* The symbols _OVERLAY?_LO...
/* * Copyright 2015 Rockchip Electronics Co. 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...
/* * Copyright 2011-2012 <NAME>. * Copyright 2011 <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...
/*- * Copyright (c) 2003-2007 <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 conditi...
/* $RCSfile$ Copyright (C) 2003 <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 version. This program is distributed i...
/* simple driver for C code */ #include <inttypes.h> #include "lzjb.c" #include <string.h> #include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> #include <stdio.h> #include <fcntl.h> static char buffer[32768]; int sread (uchar_t *dst, void *fops_ctx, const size_t len, const size_t offset) { int rc = le...
/* Testing Code */ #include <limits.h> #include <math.h> /* Routines used by floation point test code */ /* Convert from bit level representation to floating point number */ float u2f(unsigned u) { union { unsigned u; float f; } a; a.u = u; return a.f; } /* Convert from floating point number to bit-...
/* heavily modified to provide Dapper Miser Vendor HID descriptor original is available here: https://github.com/ataradov/vcp */ /* * Copyright (c) 2016, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
/* * Copyright (c) 1980, 1988, 1993 * The Regents of the University of California. 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...
/* main.c - Entry point for builds with a full operating system */ #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #ifdef WIN32 #define BOOLEAN BOOLEANx #include <windows.h> #include <direct.h> #define chdir(x) _chdir(x) #undef BOOLEAN #else #include <unistd.h> #...
/* * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc. * All Rights Reserved * * This file is a component of an X Window System-specific implementation * of XCMS based on the TekColor Color Management System. Permission is * hereby granted to use, copy, modify, sell, and otherwise distr...
/* * Copyright 2006, 2007, 2008 Fluendo S.A. * Authors: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This library is licensed under 4 different licenses and you * can choose to use it under the terms of any one of them. The * four licenses are the MPL 1.1, the LGPL, the GPL ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #if 1 #define BITS_COUNT 12 #define INPUT_FILE "./input.txt" #else #define BITS_COUNT 5 #define INPUT_FILE "./sample.txt" #endif #define XS_CAP 1024 #define BOOL char #define FALSE 0 #define TRUE 1 int binary2int(char *bin) { int bp = 0;...
/* * FreeRTOS Defender V3.0.3 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, inclu...
// SPDX-License-Identifier: GPL-2.0+ // // sy8106a-regulator.c - Regulator device driver for SY8106A // // Copyright (C) 2016 <NAME> <<EMAIL>> // Copyright (c) 2017-2018 <NAME> <<EMAIL>> #include <linux/err.h> #include <linux/i2c.h> #include <linux/module.h> #include <linux/regmap.h> #include <linux/regulator/driver.h...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2008 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must reta...
#include <asn_application.h> #include <asn_internal.h> #include <gser_support.h> /* XER/XML parsing support */ #include <gser_decoder.h> int gser_decoder_trace = 0; char* gser_decoder_get_error_str() { return gser_decoder_error_str; } /* * Decode the XER encoding of a given type. */ asn_dec_rval_t gser_decode(co...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* * Copyright 2019 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/licens...
/** \brief A simple application to test MAC connectivity. \author <NAME> <<EMAIL>>, August 2014. */ // stack initialization #include "opendefs.h" #include "board.h" #include "scheduler.h" #include "openstack.h" #include "opentimers.h" // needed for spoofing #include "openqueue.h" #include "opentimers.h"...
/* * Copyright 2008-2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
#include <math.h> #include <sndlibsupport.h> /* must come after math.h, or else M_PI redefined */ #include <byte_routines.h> #include <sfheader.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <signal.h> #include <string.h> #include ...
// This-->tab == "functions.h" // Expose Espressif SDK functionality extern "C" { #include "user_interface.h" typedef void (*freedom_outside_cb_t)(uint8 status); int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb); void wifi_unregister_send_pkt_freedom_cb(void); int wifi_send_pkt_freedom(uint8 *bu...
#include "xc.h" #include "mcc_generated_files/mcc.h" #include "i2c.h" #define I2C_WRITE 0 #define I2C_READ 1 // https://github.com/theisolinearchip/nesmini_usb_adapter // http://www.bitbanging.space/posts/bitbang-i2c // https://www.robot-electronics.co.uk/i2c-tutorial // https://sudonull.com/post/21200-Connect-the-ga...
/* Copyright (c) 2011 <NAME> <<EMAIL>> Copyright (c) 2012 <NAME> <<EMAIL>> Copyright (c) 2011-2012 Center for Bioinformatics, University of Hamburg 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 a...
/** * Copyright (c) 2016-2020, ETH Zurich, Computer Engineering Group * 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 no...
/*++ /* NAME /* base64_code 3 /* SUMMARY /* encode/decode data, base 64 style /* SYNOPSIS /* #include <base64_code.h> /* /* VSTRING *base64_encode(result, in, len) /* VSTRING *result; /* const char *in; /* int len; /* /* VSTRING *base64_decode(result, in, len) /* VSTRING *result; /* const char *in; /* int len; /* DESCR...
/* Native-dependent code for AMD64. Copyright (C) 2003-2021 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 ...
// MIT License // Copyright (c) 2020 <NAME> @nesbox // <EMAIL> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, cop...
#pragma once #include <time.h> #include <arpa/inet.h> #include <linux/ip.h> #include <linux/udp.h> #include <linux/tcp.h> #include "includes.h" #include "protocol.h" #define ATTACK_CONCURRENT_MAX 15 #define HTTP_CONNECTION_MAX 500 struct attack_target { struct sockaddr_in sock_addr; ipv4_t addr; uint...
/**************************************************************************** ** $Id$ ** ** Copyright (C) 2001-2006 Trolltech AS. All rights reserved. ** ** This file is part of the Qt Script for Applications framework (QSA). ** ** This file may be distributed and/or modified under the terms of the ** GNU General Publ...
#include "fd_adc.h" #include "fd_event.h" #include "fd_hal_processor.h" #include "fd_pins.h" #include <em_adc.h> #include <em_cmu.h> #include <em_gpio.h> #include <stdint.h> static volatile uint32_t adc_temperature_value; static volatile uint32_t adc_battery_voltage_value; static volatile uint32_t adc_charge_current...
/************************************************************************** * * 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")...
/* Control Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio.h> #incl...
/* * Copyright (c) 2018, <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 condition...
#include "index_result.h" #include "index_iterator.h" #include "rmalloc.h" typedef struct { IndexIterator base; t_docId *docIds; t_docId lastDocId; t_offset size; t_offset offset; } IdListIterator; static inline void setEof(IdListIterator *it, int value) { it->base.isValid = !value; } static inline int i...
/*- * Copyright (c) 1994,1995 <NAME>, <NAME> * Copyright (c) 2000 <NAME> <<EMAIL>> * Copyright (c) 2000 BSDi * Copyright (c) 2001 - 2003 <NAME> <<EMAIL>> * Copyright (c) 2009 by <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are pe...
/** * \file * \brief a set of default configurations for various ATCA devices and interfaces * * \copyright (c) 2017 Microchip Technology Inc. and its subsidiaries. * You may use this software and any derivatives exclusively with * Microchip products. * * \page License * * (c) 2017 Micro...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <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 Sof...
/* * imail_imap version buffer overflow exploit attempt * * Copyright (C) 2007 Sourcefire, Inc. All Rights Reserved * * Writen by <NAME> <<EMAIL>> * * This file may contain proprietary rules that were created, tested and * certified by Sourcefire, Inc. (the "VRT Certified Rules") as well as * rules that were...
/* Template for a setuid program that calls a script. The script should be in an unwritable directory and should itself be unwritable. In fact all parent directories up to the root should be unwritable. The script must not be setuid, that's what this program is for. This is a template program. Yo...
#include <stdio.h> #include <stdlib.h> #include <tgmath.h> #include "mpc.h" /* add Windows portability */ #ifdef _WIN32 #include <string.h> static char buffer[2048]; char* readline(char* prompt) { fputs(prompt, stdout); fgets(buffer, 2048, stdin); char* cpy = malloc(strlen(buffer)+1); strcpy(cpy, buffer); ...
/*D************************************************************/ /* Modul: log an operation */ /* */ /* Copyright: yafra.org, Basel, Switzerland */ /**************************************************************/ static ch...
#include <stddef.h> #include <stdio.h> int x0; char x1 = 'x'; int x2 = 12345; double x3 = 3.14159; char x4[4] = { 'a', 'b', 'c', 'd' }; int x5[10] = { 1, 2, 3 }; struct { int y; int z; } x6 = { 4, 5 }; struct { int y; char z; } x7 = { 6, 'u' }; struct { char y; int z; } x8 = { 'v', 7 }; struct { char y[9]; do...
/***************************************************************************** Copyright(c) 2013 FCI Inc. All Rights Reserved File name : fci_tun.c Description : source of tuner control driver This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
// // clib-search.c // // Copyright (c) 2012-2014 clib authors // MIT licensed // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "case/case.h" #include "commander/commander.h" #include "tempdir/tempdir.h" #include "fs/fs.h" #include "http-get/http-get.h" #include "asprintf/aspri...
// // network system calls. // #include "types.h" #include "param.h" #include "memlayout.h" #include "riscv.h" #include "spinlock.h" #include "proc.h" #include "defs.h" #include "fs.h" #include "sleeplock.h" #include "file.h" #include "net.h" struct sock { struct sock *next; // the next socket in the list uint32 ...
/** * @file command.c * @author <NAME> * @date 2004-2006 * * @brief Handle running startup, shutdown, and restart commands. * */ #include "jwm.h" #include "command.h" #include "misc.h" #include "main.h" #include "error.h" #include "timing.h" #include <fcntl.h> /** Structure to represent a list of commands. */...
/* SPDX-License-Identifier: BSD-3-Clause */ #include <string.h> #include <log.h> #include <tpm2.h> #include "tpm2_tool.h" #include "files.h" typedef struct hierarchycontrol_ctx hierarchycontrol_ctx; struct hierarchycontrol_ctx { struct { const char *ctx_path; const char *auth_str; tpm2_lo...
/** * This module contains the functions to access the HCI devices * on the Kernel level. * * The functions originate as a port of Bleno's and Noble's * node-bluetooth-hci-socket project, providing access from node.js * to Bluetooth via HCI sockets. * */ #include <stdio.h> #include <stdlib.h> #include <stdint....
#include <pebble.h> #include "message-queue.h" #define ATTEMPT_COUNT 2 typedef struct { char* group; char* operation; char* data; } Message; typedef struct MessageQueue MessageQueue; struct MessageQueue { Message* message; MessageQueue* next; uint8_t attempts_left; }; typedef struct HandlerQueue Handl...
/* Copyright (c) 2009,13 The Regents of the University of California * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * See LICENSE for details. * * Multiboot parsing and helper functions. */ #include <multiboot.h> #include <ros/common.h> #include <arch/mmu.h> #include <arch/arch.h> #include <ros/memlayout.h> #include <std...
/* * Copyright (C) 2009-2011 by <NAME> (<EMAIL>) * * Released under the MIT license, see LICENSE.txt */ #include "CuTest.h" #include "sonLib.h" #include "stPinchIterator.h" #include "pairwiseAlignment.h" #include <math.h> static void testIterator(CuTest *testCase, stPinchIterator *pinchIterator, stList *randomPai...
/* * Copyright (c) 2018 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ #include <drivers/clock_control.h> #include <drivers/clock_control/nrf_clock_control.h> #include <drivers/gpio.h> #include <irq.h> #include <logging/log.h> #include <nrf.h> #include <esb.h> #include <zeph...
#include "common.h" /* Test cursors */ static char software_version[] = "$Id: scroll.c,v 1.6 2007/11/26 06:25:11 freddy77 Exp $"; static void *no_unused_var_warn[] = { software_version, no_unused_var_warn }; #define CHK(func,params) \ if (func params != SQL_SUCCESS) \ ODBC_REPORT_ERROR(#func) int main(int argc, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include "http.h" void http_url_init(http_url* u) { memset(u, 0, sizeof(http_url)); } int http_url_set(http_url *u, const char *ustr) { char *ptr = strstr(ustr, "://"); http_url_init(u); if (ptr) { strncpy(u->p...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the terms of...
#include "core.h" #define MAX_SHADER_LEN 100000 int CLE_main(int w, int h, const char *title, CLE_init_callback onStart, CLE_update_callback onUpdate, void * state) { // enable some features glewExperimental = true; // if we cant init glfw, abort ...
#include "multi.h" /*********************************/ #include <zlib.h> // direct access to the gzip API // (ew!) global variable for the gzip stream. gzFile my_gzfile = NULL; int my_abstractread(char *buff, int buffsize) { // zlip usage, code from w w w . a q u a m e n t u s . c o m // called on a request by ...
/* * Copyright (c) 2000-2003, 2008, 2012 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file exc...
/* Last edited: Jun 23 19:33 1995 (gos) */ /* cpg.c: CpG island finder. Larsen et al Genomics 13 1992 p1095-1107 "usually defined as >200bp with %GC > 50% and obs/exp CpG > 0.6". Here use running sum rather than window to score: if not CpG at postion i, then decrement runSum counter, but if CpG then runSum ...
// Copyright (C) 2015 University of Oregon // You may distribute under the terms of either the GNU General Public // License or the Apache License, as specified in the LICENSE file. // For more information, see the LICENSE file. /* PSYCHE_zTOCSY F1-PSYCHE-TOCSY experiment Reference: Foroozandeh, M; <NAME>...
#include "postgres.h" #include <limits.h> #include "access/htup_details.h" #include "commands/tablespace.h" #include "executor/executor.h" #include "miscadmin.h" #include "storage/buffile.h" #include "utils/memutils.h" #include "utils/resowner.h" #include "utils/dense_tuplestore.h" #define DENSE_CHUNK_SIZE (32 ...
/* --------------------------------------------------------------------------------- parser.c Manual Parser for infix calculator. MIT License Copyright (c) 2020 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
#include <avr/io.h> // for port and register definitions #include <avr/interrupt.h> // for ISR #include <util/delay.h> // for _delay_ms #include <string.h> // for memcpy #include "ohc.h" // for message definitions #include "message_crc.h" #include "message_send.h" #include "bootldr.h" ...
/* * (C) Copyright 2005 * <NAME>, DENX Software Engineering, <EMAIL>. * * Copyright (C) 2002 <NAME> <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licen...
/* Copyright (c) 2007-2008 <NAME> <<EMAIL>> Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg 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 ...
#define NPY_NO_DEPRECATED_API NPY_API_VERSION #include <Python.h> #include <numpy/arrayobject.h> #include <numpy/ufuncobject.h> #include <stdio.h> #include "example_gufuncs.h" static void example_core_loop_f(char **args, npy_intp *dimensions, npy_intp...
/* * Copyright (c) 2019 PHYTEC Messtechnik GmbH * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <sys/printk.h> #include <zephyr/types.h> #include <stddef.h> #include <sys/util.h> #include <stdio.h> #include <drivers/display.h> #include <display/cfb.h> #include <lvgl.h> #include "qrcodegen...
/* SPDX-License-Identifier: BSD-2-Clause */ #include <string.h> #include <unistd.h> #include <limits.h> #include <stdlib.h> #include <stdio.h> #include <getopt.h> #include <fcntl.h> #include <errno.h> #include <stdbool.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <linux/vtpm_proxy.h...
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
// // Created by ed on 10/5/16. // #include "matrix.h" // set the new matrix size // if operation completed returns 0 // in another way returns -1 int set_size_matrix(Matrix* matrix, int height, int width) { if (height < 0 || width < 0) { fprintf(stderr, "set_matrix_size: size is negative (%d, %d)\n", height, widt...
#include "mgos.h" #include "led_master.h" #include "led_master.h" typedef struct { int gap; int group; int pos; tools_rgb_data chase_color; tools_rgb_data color; tools_rgb_data out_pix; tools_rgb_data chase_pix; audio_trigger_data* atd; } theater_chase_data; static theater_chase_d...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Hardware monitoring driver for IR35221 * * Copyright (C) IBM Corporation 2017. */ #include <linux/err.h> #include <linux/i2c.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include "pmbus.h" #define IR35221_MFR_VIN_PEAK 0xc5 #defin...
// Copyright (c) <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this file, // You can obtain one at https://spdx.org/licenses/MIT.html. #include "matoya.h" #include <stdlib.h> #include <stdio.h> #include <windows.h> #i...
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "stage3.h" #include "draw.h" #include "background_anim.h" #include "wriggle.h"...
/* * cn_test.c * * 2004-2005 Copyright (c) <NAME> <<EMAIL>> * 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 as published by * the Free Software Foundation; either version 2 of the License, or * (at your op...
#include "const.h" #include "file.h" #include "cute_files.h" #include "tommyarray.h" #include "array.h" #include "onf.h" #include <rya_file.h> #include <math.h> #include <assert.h> /** * @brief Callback for cf_traverse() * * I add filenames to the tommy array. * * @warning File names are malloc'd in this function...
/* cmd.c: the cgit command dispatcher * * Copyright (C) 2006-2017 cgit Development Team <<EMAIL>> * * Licensed under GNU General Public License v2 * (see COPYING for full license text) */ #include "cgit.h" #include "cmd.h" #include "cache.h" #include "ui-shared.h" #include "ui-atom.h" #include "ui-blame.h" #in...
#include <stdlib.h> #include <strings.h> #include <string.h> #include <stdio.h> #include <time.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <inttypes.h> #define DATA_SIZE 1536 #define EXAMPLE_PORT 3937 // Service Discovery //#define EXAMPLE_GROUP "192.168.12...
/* $NetBSD: test_pkcs12.c,v 1.1.1.1 2011/04/13 18:14:51 elric Exp $ */ /* * Copyright (c) 2006 <NAME> * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
/* (c) Copyright 1996 Hewlett-Packard Company (c) Copyright 1996 International Business Machines Corp. (c) Copyright 1996 Sun Microsystems, Inc. (c) Copyright 1996 Novell, Inc. (c) Copyright 1996 Digital Equipment Corp. (c) Copyright 1996 Fujitsu Limited (c) Copyright 1996 Hitachi, Ltd. Permission is hereby granted, f...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*============================================================================= ** ** Source: test1.c ** ** Purpose: Test to ensure that log returns correct valu...
/* * ISC License * * Copyright (c) 2016 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
/* ----------------------------------------------------------------- */ /* The Speech Signal Processing Toolkit (SPTK) */ /* developed by SPTK Working Group */ /* http://sp-tk.sourceforge.net/ */ /* -----------------------------...
/* -------------------------------------------------------------------------- * * A Monte Carlo simulation of a stochastic activity network. * * * * Name : san.c ...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
#include <stdio.h> #include <stdlib.h> #include <string.h> /* This program takes a ttc file and turns it into its component ttf files */ /* The makes two changes to the data: */ /* * The tables are placed a different offsets */ /* (so the offset fields in t...
/* test_config.c - Test harness for configuration file code * * Copyright 2020 <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 witho...
/**************************************************************************//** * @file main.c * @version V3.0 * $Revision: 3 $ * $Date: 17/05/04 1:49p $ * @brief Configure SPI0 as Slave mode and demonstrate how to communicate * with an off-chip SPI Master device with FIFO mode. This sampl...
#define F_CPU 16000000UL #define FORWARD 0x00 #define REVERSE 0x01 #define RIGHT 0x02 #define LEFT 0x03 #define STOP 0x04 #define NEUTRAL 0x05 #define TRUE 1 #define FALSE 0 #define MOTOR_DDR DDRC #define MOTOR_PORT PORTC #define MOTOR_RIGHT_FWD_PIN PC0 #define MOTOR_RIGHT_REV_PIN PC1 #define MOTOR_LEFT_FWD_PI...
/* * pthread_once.c * * Description: * This translation unit implements miscellaneous thread functions. * * -------------------------------------------------------------------------- * * Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems * Copyright(C) 2008 <NAME> * * Contact...
/******************************************************************************* * Copyright (C) Maxim Integrated Products, Inc., All rights Reserved. * * This software is protected by copyright laws of the United States and * of foreign countries. This material may also be protected by patent laws * and technology tra...
/* * tinyport.c * * Created: 11/23/2017 3:31:56 PM * Author: Jake */ #include "tinyport.h" tinyport_t tinyport_new(Uart *uart, Pio *port, uint32_t peripheral_abcd, uint32_t pinRX_bitmask, uint32_t pinTX_bitmask, ringbuffer_t *rbrx, ringbuffer_t *rbtx, pin_t *stlr, pin_t *stlg, pin_t *stlb){ tinyport_t tp; ...