text stringlengths 3.08k 10.5k |
|---|
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> (tinyusb.org)
*
* 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
... |
/***************************************************************************
* Nipper - The network infrastructure parser *
* Copyright (C) 2006 - 2008 by <NAME> *
* <EMAIL> *
* ... |
/*
liberis -- A set of libraries for controlling the NEC PC-FX
Copyright (C) 2011 <NAME> "trap15" <<EMAIL>>
# This code is licensed to you under the terms of the MIT license;
# see file LICENSE or http://www.opensource.org/licenses/mit-license.php
*/
/*
The V810 back end supports these function attributes:
__attri... |
/*
* https://github.com/jamesbarlow/icmptunnel
*
* The MIT License (MIT)
*
* Copyright (c) 2016 <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, in... |
#include <stdio.h>
#include "translator.h"
table* init_op_table() {
table* table = table_init(128);
if (table == 0) {
return 0;
}
table_put(table, "0", 0, "0101010");
table_put(table, "1", 0, "0111111");
table_put(table, "-1", 0, "0111010");
table_put(table, "D", 0, "0001100");
table_put(table, "... |
/**
* \file
* \brief Public interfaces to getdns, include in your application to use getdns API.
*
* This source was taken from the original pseudo-implementation by
* <NAME>.
*/
/*
* Copyright (c) 2013, NLNet Labs, Verisign, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <pthread.h>
#include <glib.h>
#include "json-c/json.h"
#include "manage.h"
#include "db_monitor.h"
#include "log.h"
#ifdef LOG_TAG
#unde... |
/***************************************
*
* Camellia Image Processing Library
*
The Camellia Image Processing Library is an open source low-level image processing library.
As it uses the IplImage structure to describe images, it is a good replacement to the IPL (Intel) library
and a good comple... |
#pragma once
#include <stdarg.h>
#include "quantum.h"
#include "xtonhasvim.h"
/**************************
* QMK Features Used
**************************
* RGBLIGHT_ENABLE
* - Adds layer indication via RGB underglow
* - see the `layer_definitions` enum and following _*_HSV #defines
*
*
*
********************... |
/*
* (C) Copyright 1996- 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 interg... |
#include <stdlib.h>
#include <string.h>
#include "vm_memory.h"
#include "vm_util.h"
vm_memmap_t vm_memmap;
static void memmap_grow(uint32_t size) {
vm_memmap.bottom = (void**)realloc(vm_memmap.bottom, sizeof(void**) * size);
vm_memmap.top = vm_memmap.bottom + vm_memmap.size;
vm_memmap.size = size;
}
static vm_mm... |
/*
** Zabbix
** Copyright (C) 2001-2015 Zabbix SIA
**
** 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 pro... |
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
// 硬链接问题
// 如果一个文件被打包过了
// 后面的硬链接就不需要再打包了,如何判断????
//
// 在全局变量中,保存已经被打包的文件信息
// inode <--> 文件名
typedef struct file_info
{
ino_t inode;
char f... |
/*-
* Copyright (c) 2016 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*-
* Copyright (c) 2017 <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 DISC... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include "hcq.h"
#define INPUT_BUFFER_SIZE 256
#define INPUT_ARG_MAX_NUM 3
#define DELIM " \n"
#define CONFIG_FILENAME "courses.config"
/* Print a formatted error message to stderr.
*/
void error(char *msg) {
fpri... |
// The MIT License (MIT)
// 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... |
/*
* Copyright (c) 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 this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... |
/**
* @file
* Packet buffer management
*/
/**
* @defgroup pbuf Packet buffers (PBUF)
* @ingroup infrastructure
*
* Packets are built from the pbuf data structure. It supports dynamic
* memory allocation for packet contents or can reference externally
* managed packet contents both in RAM and ROM. Quick alloca... |
#include "jd_drivers.h"
// doesn't seem to be working - I keep getting 0/0xffff reading from it
#define SAMPLING_MS 2000
#define PRECISION 10
#ifndef SGPC3_ADDR
#define SGPC3_ADDR 0x58
#endif
#define sgpc3_tvoc_init_continuous 0x20ae
#define sgpc3_tvoc_init_0 0x2089
#define sgpc3_set_absolute_humidity 0x2061
#define... |
#include <stdio.h>
#include <errno.h>
#include "lenv.h"
#include "app.h"
static int ltimeCallback(uint32_t id, void *clientData){
appServer *app = (appServer *)clientData;
lua_State *L = app->L;
int top = lua_gettop(L);
int rType = lua_getglobal(L,"onTimer");
int status = lua_pcall(L,0,1,0);
if (status != LUA_... |
/* npp.c (LP/MIP preprocessing) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
*
* Copyright (C) 2017 <NAME>, Department for Applied
* Informatics, Moscow Aviation Institute, Moscow, Russia. All rights
* reserved. E-mail: <<EMAI... |
/*
* c7pipeline.c
*
* Copyright (c) 2019 <EMAIL>
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include "_config.h"
#define _GNU_SOURCE 1 // execvpe
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <c7fd.h>
#include <c7memory.h>
#inc... |
/*
*
* 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.openso... |
#include <time.h>
//#include <dirent.h>
#define DASH_STATE_NONE 0
#define DASH_STATE_CAPTURING 1
#define DASH_STATE_NOT_CAPTURING 2
#define DASH_STATE_PAUSED 3
#define CLICK_INT 0.2
typedef struct dashboard_element {
int pos_x;
int pos_y;
int width;
int height;
} dashboard_element;
dashboard_element dash_but... |
/* Copyright 2018 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.
*
* Battery pack vendor provided charging profile
*/
#include "battery.h"
#include "battery_smart.h"
#include "charge_manager.h"
#include "charger.h... |
/*
* Copyright (c) 2008 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
/*********************************************************************************/
/* Matrix product program with MPI on a virtual ring of processors */
/* <NAME> - October 2014 */
/*******************************************************************... |
/*
Program 1: Big Boy Computer - contains code to simulate file
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
typedef struct {
int opcode;
int operand;
} Cmd;
typedef unsigned char byte;
typedef unsigned short word;
//-----------Core Processing
char RAM[4096] = {0}; // RA Memo... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h> // shmat
#include <sys/shm.h> // shmat shmget
#include <sys/ipc.h> // shmget
#include <fcntl.h> /* For O_* constants */
#include <sys/stat.h> /* For mode constants */
#include ... |
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<string.h>
#include <unistd.h>
//Global variables
//structs
struct loggedIn
{
char username[20];
int authuser;
};
struct faculty
{
char facultyName[30];
char department[30];
};
struct course
{
char courseName[40];
int courseSem;
}... |
/*
* Copyright (C) 2020-2022 The opuntiaOS Project Authors.
* + Contributed by <NAME> <<EMAIL>>
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "pl181.h"
#include <libboot/devtree/devtree.h>
#include <libboot/log/log.h>
// #define DEBUG_PL181
... |
/**
* @file falcon2616.c
* @brief Falcon 2616 Parktronic decoder API implementation.
*
* @date April 29, 2021
* @author <NAME> <<EMAIL>>
* @copyright Copyright (c) 2021 <NAME>
*/
#include "falcon2616.h"
#include "falcon2616_gpio_intf.h"
#include "common.h"
#include "time.h"
#include <stri... |
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "sqlite3.h"
#define AR_DATABASE 1
#define AR_STMT 2
#define AR_COUNT 2
#define BLOCK_SIZE 256
sqlite3 *db;
sqlite3_stmt *stmt;
int firstrow = 1;
static void escape(unsigned const char *str)
{
if (!str) {
return;
}
unsigned co... |
#include "arm.h"
#include "memio.h"
#include "led.h"
#include "glod.h"
#include <stdint.h>
// Zero the .bss section.
static void zero_bss(const uint32_t zero) {
extern uint32_t __bss_start, __bss_end;
for (uint32_t* i = &__bss_start; i < &__bss_end; i++) {
*i = zero;
}
}
/*
This code will put the core int... |
/* Random utility functions.
* Licensed under the MIT License
* (c) 2018-2020 <NAME>
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fitsio.h>
#include <tinypds.h>
#include "utils.h"
/* Returns a pointer to the last character of a null terminated string. */
const char* ... |
//
// Created by ebeuque on 23/03/2021.
//
#define _GNU_SOURCE
#include <stdio.h>
#include <link.h>
#include <dlfcn.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <pthread.h>
#include "backtrace.h"
static void* g_listAddr[BACKTRACE_ADDR_CACHE_COUNT];
static int g_listAddrCount[BACKTRACE_ADDR_... |
#include "driver.h"
UINT8 *ninjakd2_bg_videoram, *ninjakd2_fg_videoram;
static UINT8 ninjakd2_bg_enable = 1, sprite_overdraw_enabled = 0;
static UINT16 ninjakd2_scrollx, ninjakd2_scrolly;
static tilemap *fg_tilemap, *bg_tilemap;
static mame_bitmap *bitmap_sp; /* for sprite overdraw */
static TILE_GET_INFO( get_bg_t... |
//
// Created by viniavskyi on 22.10.19.
//
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
void print_help() {
printf("Usage: ./mycat [-h|--help] [-A] <file1> <file2> ... <fileN>\n"
"-h, --help\t display this help ... |
#include "types.h"
#include "mmu.h"
#include "kbd.h"
/*
* Data structures that use C99 designated initializers,
* which aren't avialable in C++11.
*/
struct segdesc __attribute__((aligned(16))) bootgdt[NSEGS] = {
// null
[0]=SEGDESC(0, 0, 0),
// 32-bit kernel code
[1]=SEGDESC(0, 0xfffff, SEG_R|SEG_CODE|SE... |
// A wrapper for <libiptc/libip6tc.h>
// This avoids the error due to pointer arithmetic on void*
#pragma once
#include <linux/types.h>
#include <libiptc/ipt_kernel_headers.h>
#ifdef __cplusplus
# include <climits>
#else
# include <limits.h> /* INT_MAX in ip6_tables.h */
#endif
#include <linux/if.h>
#inc... |
#include "terminal.h"
#include "types.h"
//terminal_open
//function to initialize buffers and the terminal, open the terminal
//inputs: filename: unsigned integer pointer
//outputs: return 0
//effects initializes keyboard_buffer, and opens the terminal
int32_t terminal_open(const uint8_t* filename){
int i;
te... |
/*
* Copyright (c) 2015-2018, Renesas Electronics 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:
*
* - Redistributions of source code must retain the above copyright notice,
... |
/* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
* All rights reserved.
*
* This software is supplied "AS IS" without any warranties.
* RDA assumes no responsibility or liability for the use of the software,
* conveys no license or title under any patent, copyright, or mask work
* righ... |
/* Written by MorgothDBMA, <EMAIL>, tel: +48693582014 */
/* <NAME> MiNI M1 CC */
/* License BSD */
#include <unistd.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define PI 3.1415926F /* math constant */
void normalize(double* x, double* y, double* z)
{
double len;
double xx,yy,zz;
xx = *x;
yy = *y;... |
/*
The MIT License (MIT)
Copyright (c) 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 Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... |
/**
* Copyright (c) 2014,2015 NetEase, Inc. and other Pomelo contributors
* MIT Licensed.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <pomelo.h>
#include <pomelo_trans.h>
#include "pc_lib.h"
#if !defined(PC_NO_DUMMY_TRANS)
# in... |
/*
* Open Surge Engine
* simulate_button.h - Simulates that an user is pressing (or not) a button of the input device of the observed player
* Copyright (C) 2010, 2011 <NAME> <alemartf(at)gmail(dot)com>
* http://opensnc.sourceforge.net
*
* This program is free software; you can redistribute it and/or modify
* i... |
// Functions to manage the GPIO peripheral:
// - configure direction, mode and pull-up/pull-down for a set of GPIO pins
// - configure output mode for a set of GPIO pins
// - configure alternative function mapping
// - configure an EXTI line
#include "gpio.h"
// Set the direction, mode and pull-up for a set... |
/* devgibson: hackers in 'yo kernel!
* Copyright (C) 2015 @cyphar <<EMAIL>>
* Copyright (C) 2015 @sysr-q <<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,... |
/*
LUFA Library
Copyright (C) <NAME>, 2019.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2019 <NAME> (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is her... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2019-2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* Clock driver for the clocks of the Juno SoC
*/
#include "juno_id.h"
#include "juno_scc.h"
#include "scp_config.h"
#include "system_clock.h"
#... |
/*
* $Id: printbuf.c,v 1.5 2006/01/26 02:16:28 mclark Exp $
*
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
* <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See COPYING for details.
*
*
* Copyright (c) 2008-2009 Yahoo! Inc... |
/**
* Copyright (c) 2017 IpTronix
*
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(winc1500);
#include <stdio.h>
#include <stdint.h>
#include <device.h>
#include <spi.h>
#include "wifi_winc1500_nm_bsp_internal.h"
#include <bsp/inclu... |
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-05-31 yangjie the first version
*/
#include "sensor_lsc_ap3216c.h"
#include "ap3216c.h"
#define DBG_TAG "sensor.lsc.ap3216c"
#define DBG_LVL DBG... |
#include "ICM-42605.h"
/*
* cat reg | sed 's/,//g' | sed 's/ //' | sed -re 's/(^\w*)/[\1]/' | sed 's/$/ = "",/'
*/
const char* ICM_42605_REG_NAME_BANK0[128] = {
[DEVICE_CONFIG] = "DEVICE_CONFIG",
[DRIVE_CONFIG] = "DRIVE_CONFIG",
[INT_CONFIG] = "INT_CONFIG",
[FIFO_CONFIG] = "FIFO_CONFIG",
[TEMP_DATA1] = ... |
#include <yoc_config.h>
#include <stdbool.h>
#include <aos/aos.h>
#include <yoc/yoc.h>
#include <devices/devicelist.h>
#include <devices/drv_snd_pangu.h>
#include "pin_name.h"
#include "app_init.h"
#include "pin.h"
const char *TAG = "INIT";
#ifndef CONSOLE_IDX
#define CONSOLE_IDX 0
#endif
#include <yoc/partition.h... |
/*
* broadvoice - a library for the BroadVoice 16 and 32 codecs
*
* g192_bit_stream.c
*
* Copyright 2008-2009 <NAME> <<EMAIL>>
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1,
* as publ... |
/*
Name: iprime.c
Purpose: Pseudoprimality testing routines
Author: <NAME>
Copyright (C) 2002-2008 <NAME>, 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 Softwar... |
/* $OpenBSD: prcmvar.h,v 1.4 2010/02/13 06:03:37 drahn Exp $ */
/*
* Copyright (c) 2007,2009 <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 al... |
/*
* Copyright (c) 2014, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government retains certain rights in this software.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
/* @(#)e_fmod.c 1.3 95/01/18 */
/*-
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided ... |
/*
* Copyright Runtime.io 2018. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/** @file
* @brief Shell transport for the mcumgr SMP protocol.
*/
#include <string.h>
#include <zephyr.h>
#include <init.h>
#include "net/buf.h"
#include "mgmt/mgmt.h"
#include "mgmt/mcumgr/serial.h"
#include "mgmt/... |
// Motor.c
// Runs on MSP432
// Provide mid-level functions that initialize ports and
// set motor speeds to move the robot. Lab 13 solution
// <NAME>
// July 11, 2019
/* This example accompanies the book
"Embedded Systems: Introduction to Robotics,
<NAME>, ISBN: 9781074544300, copyright (c) 2019
For more infor... |
/**
* FreeRDP: A Remote Desktop Protocol Client
* certstore Utils
*
* Copyright 2011 <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/LICE... |
/* $Id: demandoc.c,v 1.7 2012/05/31 22:27:14 schwarze Exp $ */
/*
* Copyright (c) 2011 <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 copi... |
#include "unity.h"
#include "../src/gff.h"
#include "../src/gff-char.h"
#include "../src/rules.h"
#include "../src/dsl.h"
#include "../src/ds-load-save.h"
#include "../src/player.h"
#include "../src/ds-state.h"
#include "../src/region.h"
#include "../src/region-manager.h"
#include <string.h>
#include <stdlib.h>
// A h... |
/*
* Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved.
*
* This file is licensed under the Apache License,
* see LICENSE-APACHE at the top level directory.
*/
#include <postgres.h>
#include <utils/rel.h>
#include <utils/lsyscache.h>
#include <utils/syscache.h>
#include <utils/builtins.h>
#include <tcop... |
/* $OpenBSD: regex.c,v 1.3 2015/11/19 23:20:34 tedu Exp $ */
/** regex - regular expression functions related to POSIX regex lib. */
/* This file is part of flex. */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/*... |
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
#include "CSpeed.h"
vector* initVector(vector* vecPtr, double x, double y)
{
vecPtr->x = x;
vecPtr->y = y;
return vecPtr;
}
void initPlayer(player* playerPtr, sprite spr, vector vect)
{
playerPtr->spr = spr;
playerPtr->vect = vect;
}
void initConfig(char* filePath)
{
SC_UP = SDL_SCANCODE_W;
... |
/*
* This file is part of <NAME> password cracker,
* Copyright (c) 1996-98 by Solar Designer
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <err.h>
#include "config.h"
#include "cfg.h"
#include "common.h"
struct cfg_section *cfg_database = NULL;
c... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2010 <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... |
/* net_driver_bt.c - IP Bluetooth LE driver */
/*
* Copyright (c) 2015 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
/*
* File : FaultHandling.c
* Remark : Demonstrate how to handle fault(s) in NanoOS application. This application uses SetProbe()/ResetProbe()
* of NanoOS API to 'simulate' or 'mimic' try/finally logic.
*/
#include "..\NanoOSApi.h"
UINT32_T gVar = 0xFEEDABEE;
/* Display fault(s) */
void ShowFault(U... |
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/*BEGIN_LEGAL
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/* Routines required for instrumenting a program. */
/* Compile this one with gcc. */
/* Copyright (C) 1989-2014 Free Software Foundation, Inc.
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 Public License as published by the Free
Software... |
#include "good.h"
#include "stockex.h"
#include "queue.h"
#include "utility.h"
// Donne un entier aleatoire inférieur à `i`
int random(int i)
{
int r = rand();
return (r%i);
}
// Genere des nombres semi aléatoires a partir de seed
void generate_seed(int s)
{
if (s <= 0) {
srand(time(NULL));
}
else ... |
/*
* Copyright 2015-2017 <NAME>, Inc.
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
/*
Copyright 2021 <NAME>
MIT license, see LICENSE file.
One writer, one reader
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <inttypes.h>
#include <time.h>
#include "circ_buf.h"
typedef uint32_t elem_t;
#define MAX_VAL_ELEM UINT32_MAX
struct shared_thd_data_str
{
elem_t... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/* Copyright 2008 Uppsala University
*
* 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:/... |
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* 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 ap... |
/*
$Id$
Copyright 1989-2014 MINES ParisTech
This file is part of PIPS.
PIPS is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
PIPS is distr... |
// BSD 2-Clause License
//
// Copyright (c) 2021, <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
/... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Advanced Micro Devices, Inc.
* Copyright (C) 2009 coresystems GmbH
*
* 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... |
/*
Written by rofl0r with parts taken from borplay.
LICENSE: GPL v2
gcc -Wall -Wextra bor2wav.c ../borplay/adpcm.c -o bor2wav
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include "../borplay/adpcm.h"
#define BOR_MUSIC_VERSION ... |
/* sb.c - string buffer manipulation routines
Copyright (C) 1994-2021 Free Software Foundation, Inc.
Written by Steve and <NAME> of Cygnus Support,
<EMAIL>
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU Gener... |
#include "mex.h"
#include "math.h"
void rectangule_M_gen( double X[], double Y[], double Z[], double lambda[], double M[][4])
{
double t0, t1, t2, t3, t4, t5, t6, t7, t8, t9;
double t10, t11, t12, t13, t14, t15, t16, t17, t18, t19;
double t20, t21, t22, t23, t24, t25, t26, t27, t28, t29;
... |
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include <fcntl.h>
#include <dos.h>
#include <sys/stat.h>
#include <fdi.h>
char dest_dir[MAX_PATH];
/*
* Memory allocation function
*/
FNALLOC(fdi_mem_alloc)
{
return malloc(cb);
}
/*
* Memory... |
/* template implementation of an Edgex device service using C SDK */
/*
* Copyright (c) 2018-2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "edgex/devsdk.h"
#include <unistd.h>
#include <signal.h>
#define ERR_CHECK(x) if (x.code) { fprintf (stderr, "Error: %d: %s\n", x.code, x.reason)... |
/* $NetBSD: symtab.c,v 1.2 2013/08/29 15:01:57 christos Exp $ */
/*-
* Copyright (c) 2012 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
* modifica... |
/* Copyright 2004,2007,2011 ENSEIRB, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free software. You can
**... |
#include <stdbool.h>
#include "fsalloc.h"
#include "list.h"
#include "hashtable.h"
#include "hashtable_imp.h"
#include "fsdyn_version.h"
/* Values from: https://planetmath.org/goodhashtableprimes */
static const size_t GOOD_SIZES[] = {
53,
97,
193,
389,
769,
1543,
3079,
6151,
12289,... |
/*
* pcmda12.c
* Driver for Winsystems PC-104 based PCM-D/A-12 8-channel AO board.
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 2006 <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 ... |
/*
** ###################################################################
** Processors: LPC845M301JBD48
** LPC845M301JBD64
** LPC845M301JHI33
** LPC845M301JHI48
**
** Compilers: Keil ARM C/C++ Compiler
** ... |
/**
* @file libdlogtest.c
*
* This program is to test "libdlog" library with many threads
*
* @author <NAME>, <NAME>
*
* @date 04/20/2014
* @version 0.9c
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pthread.h>
#include <time.h>
#include <unistd.h>
#include <libdlog.h>
#include <string.h... |
/* goldToAgp - convert from ooGreedy "gold" format to the official
* ".agp" format for golden paths. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "portable.h"
void usage()
/* Print usage instructions and exit */
{
errAbort(
"goldToAgp - convert from ooGreedy 'gold' format to the offici... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011-2016 The Chromium OS Authors. 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; version 2 of th... |
/*
* tick - Tick driver for STM32L1 using the TIMER 9
*
* 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:
*
* * Redistributions of source code must retain the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.