text stringlengths 3.12k 18.7k |
|---|
#include <driver/gpio.h>
#include <driver/spi_master.h>
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <stdio.h>
#include <string.h>
#include <u8g2.h>
#include "sdkconfig.h"
#include "u8g2_esp32_hal.h"
#include "lib_display.h"
#include "mwifi.h"
#include "main.h"
int meshLaye... |
/*
* buffer_manager.c
*/
#include "buffer_manager.h"
// GLOBALS.
/**
* Initialized by init_db function.
* A buffer array where all buffers are stored.
*/
buffer_t *g_buffer_pool = NULL;
/**
* Store size of buffer pool.
*/
int g_buffer_size = 0;
/**
* Replacement policy uses LRU clock.
* And this global v... |
// Trabalho 4 - SCC0215 - Organizacao de Arquivos
// <NAME> <NAME>
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include "indexfile.h"
# include "servidorheader.h"
# include "servidorregister.h"
# include "util.h"
// Cria um arquivo de índice secundário a partir de um arquivo binário.
int create... |
#include <ctype.h>
#include <getopt.h>
#include "common.h"
#include "openssl/aes.h"
#include "openssl/sha.h"
#include "openssl/evp.h"
#include "openssl/err.h"
#include "openssl/rand.h"
#include "openssl/hmac.h"
#define SIZE BUFSIZE
void tokenize_inputfile(char* in, char** abe, char** aes, char** iv);
int... |
/*
* University of Illinois/NCSA Open Source License
*
* Copyright (c) 2020, Advanced Micro Devices, Inc.
* All rights reserved.
*
* Developed by:
*
* AMD Research and AMD Software Development
*
* Advanced Micro Devices, Inc.
*
* www.amd.com
*
* Permission i... |
#include <setjmp.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../common/io.h"
#include "../common/quake-colormap.h"
#include "../common/wal.h"
#include "cmocka.h"
void test_q2_read(void **state)
{
(void)state;
int i, j;
sptr_t data = file_read("cli... |
/*
* Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
///////////////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////... |
/*****************************************************************************/
/* FILE NAME: eMIOS.c COPYRIGHT (c) NXP Semiconductors 2016 */
/* All Rights Reserved */
/* PLATFORM: DEVKIT-MPC5748G */
/* DESCRIPTION: eMIOS modules fu... |
#include <stdbool.h>
#include "open62541.h"
#include "variables.h"
#include "methods.h"
#include "util.h"
//#include "dictionary.h"
//Dictionary *stateToValue = dict_new();
extern void
updateVariable(UA_Server *server, char *pszVariableName, bool verbose) {
UA_Boolean bit;
UA_Variant value;
... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/*
FRACTAL - A program growing fractals to benchmark parallelization and drawing
libraries.
Copyright 2009-2021, <NAME>.
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 abo... |
/*
* Copyright 2020 Intel Corporation
* SPDX-License-Identifier: Apache 2.0
*/
/*!
* \file
* \brief Abstraction layer for DH based key exchange crypto routines of openssl
* library.
*/
#include "network_al.h"
#include "fdoCryptoHal.h"
#include "util.h"
#include "crypto_utils.h"
#include "BN_support.h"
#include... |
/*
* TODO:
* - merge runtime and bundle logic
* - move payload building into infect()
* Copyright (c) 2009 <NAME> <<EMAIL>>. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file or at http://github.org/redpig/patient0.
*/
#include <limits.h>
#... |
/*
* main.c
*
* Created on: 25.08.2016
* Author: Megacrafter127
*/
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <limits.h>
#include <math.h>
#define x 0
#define n (x-1)
#define add (n-1)
#define subtract (add-1)
#define multiply (subtract-1)
#define divide (multiply-1)
#define range (... |
/*
* Copyright 2021, alex at staticlibs.net
*
* 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 ag... |
/* File: kgshell.c
* Date: 12/07/2015
* Author: <NAME>
*/
#include "kgshell.h"
const char * const builtin[] = { "cd", "fg", "exit"};
char cwd[MAXPATHLEN];
char *HOME, *USER;
int waiting;
int fd_in;
int main(){
pid_t proc[2];
cmd_t *cmd, **cmds;
args_t *args;
char *line;
int i;
init();
while(1){
getcwd... |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <errno.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
#include <tim... |
/*
* This file is part of MPlayer.
*
* MPlayer 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.
*
* MPlayer is distributed in th... |
//
// main.c
// tcpcrypt
//
// Created by <NAME>.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include <sys/socket.h>
#include <sys/signal.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include <sys/kern_control.h>
#include <sys/sys_domain.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#... |
/*
3 languages, eciNewEx
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <iconv.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include "eci.h"
#define... |
/**
* @file ui_dev_ctrl.c
* @brief
* @version 0.1
* @date 2021-10-29
*
* @copyright Copyright 2021 Espressif Systems (Shanghai) 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 co... |
/*
* <NAME>
* CS 4760
* Assignment 5
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "clock.h"
#include "resmgr.h"
#define PARAM_B 3000
static struct
{
/** Nonzero if in verbose mode, otherwise zero. */
int verbose;
/... |
#include "drally.h"
extern byte ___243ca4h[];
extern byte ___196de4h[];
extern byte ___243334h[];
extern byte ___243320h[];
extern byte ___243d80h[];
extern byte ___243d6ch[];
extern byte ___196de0h[];
extern byte ___19bd60h[];
extern byte ___24387ch[];
extern byte ___243878h[];
extern byte ___243330h[];
e... |
/******************************************************************************
* NLK - Neural Language Kit
*
* Copyright (c) 2014 <NAME> <<EMAIL>> http://luisrei.com @lmrei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the ... |
/*********************************************************************
* Filename: sha1.c
* Author: <NAME> (brad AT bradconte.com)
* Modified by: <NAME> (avs.aswyk AT gmail.com) 2016-01-05
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Implementation of the SHA... |
/*
* Copyright (c) 2020 - 2021, ETH Zurich, Computer Engineering Group (TEC)
* 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 copy... |
/* OpenRISC exception, interrupts, syscall and trap support
Copyright (C) 2017-2020 Free Software Foundation, Inc.
This file is part of GDB, the GNU debugger.
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 Fr... |
/*********************************************************************
* COPYRIGHT NOTICE *
**********************************************************************
* This software is copyright (C) 1982 by <NAME> *
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
/**
* this code build after some modifications on code in links:
* https://github.com/cfperea/multithreaded-sudoku/blob/master/main.c
* https://docs.oracle.com/cd/E19455-01/806-5257/sync-12/index.html
*/
int board[9][9] = {
{6, 2, 4, 5, ... |
#pragma once
#include <uapi/cdefs.h>
/* error code */
#define ACPI_SUCCESS(a) (!(a))
#define ACPI_FAILURE(a) (a)
#define AE_OK ((acpi_status)0x0000)
#define AE_CODE_ENVIRONMENTAL 0x0000 /* General ACPICA environment */
#define AE_CODE_PROGRAMMER 0x1000 /* External ACPICA interface caller */
#define AE_CODE_ACPI... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/**
* \file gaussian_demo.c
* \brief Gaussian convolution demo
* \author <NAME> <<EMAIL>>
*
* Copyright (c) 2012-2013, <NAME>
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under, at your option, the terms of the GNU General Public License as
* publishe... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the... |
/*
* Please read the disclaimer
*
*
* DISCLAIMER
*
* The learning_path_libs functions provided in the learning_path_libs folder:
*
* 1. are NOT supported Azure Sphere APIs.
* 2. are prefixed with lp_, typedefs are prefixed with LP_
* 3. are built from the Azure Sphere SDK Samples at https://gi... |
/*
* shrink_streaming.c - streaming compression implementation
*
* Copyright (C) 2019 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyon... |
/*
FreeRDP: A Remote Desktop Protocol client.
Redirected Parallel Port Device Service
Copyright 2010 O.S. Systems Software Ltda.
Copyright 2010 <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... |
#include "genetic_algorithm.h"
#include "individual.h"
#include "utils.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int read_input(sack_object **objects, int *object_count, int *sack_capacity,
int *generations_count, int argc, char *argv[]) {
FILE *fp;
if (argc... |
/*
Copyright 2021 <NAME>
MIT license, see LICENSE file.
The purpose of this example is to show how this library can be used to store blocks of contiguous memory in the ring buffer.
=> The keyword here is "contiguous".
In this example we suppose that the block size is somehow imposed (which is usually the ... |
/**
src/omxregister.c
Register OpenMAX components. This application registers the installed OpenMAX
components and stores the list in the file:
$HOME/.omxregistry
It must be run before using components.
The components are searched in the default directory:
OMXILCOMPONENTSPATH
If the components are installed i... |
//ECE 385 USB Host Shield code
//based on Circuits-at-home USB Host code 1.x
//to be used for ECE 385 course materials
//Revised October 2020 - <NAME>
#include <stdio.h>
#include "system.h"
#include "altera_avalon_spi.h"
#include "altera_avalon_spi_regs.h"
#include "altera_avalon_pio_regs.h"
#include "sys/al... |
/*
* The MIT License (MIT)
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,... |
/*
* Copyright 2019-present Open Networking Foundation
* Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include "mme_app.h"
#include "u... |
#include <gsKit.h>
#include <dmaKit.h>
#include <malloc.h>
#include <audsrv.h>
#include <kernel.h>
#include <sifrpc.h>
#include <iopheap.h>
#include <loadfile.h>
#include "rom_data.h"
#include "log.h"
#include "cpu.h"
#include "ppu.h"
#include "apu.h"
#include "rom.h"
#define NES_RGB(r, g, b) ( ((u64)r)|(((u64)g)<<8)... |
// PDP-8 emulator, no EAE, only field 0, i.e. 4K words
// -jcw, 2016-08-24
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <sys/ioctl.h>
#ifdef macosx
#include <sys/filio.h>
#endif
#define MEMSIZE 4096
typedef unsigned short Word;
Word pc, mem [MEMSIZE];
struct termios tiosOrig;
Word mask(Word w... |
/*The purpose of the module is to import pkey_mprotect system calls
to allocate memory with a protection key*/
#include "Python.h"
#include "marshal.h"
#include "pythread.h"
#include "structmember.h"
#include <float.h>
#include <signal.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <stdio.h>
#include <sy... |
//
// apm.c
// volumes
//
// Created by <NAME> on 11/7/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#include "apm.h"
#include "logging/logging.h" // console printing routines
#include "volumes/_endian.h"
#include "volumes/output.h"
#pragma mark Interface (Private)
void swap_APMHeader(APMHeader* ... |
/******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
* File Name : tim.c
* Author : MCD Application Team
* Date First Issued : 09/08/2003
* Description : This file provides all the TIM software functions
***********************************************************... |
/*
# clove
#
# Copyright (C) 2019-2020 <NAME>
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the MIT license. See LICENSE.md for details.
*/
#include "include/fh_mainactivity.h"
#include "3rdparty/FH/src/value.h"
#include "fhapi/keyboard.h"
#include "fhapi/mo... |
#include "deca_platform.h"
#include "deca_port.h"
#include <FreeRTOS.h>
#include <task.h>
beeboardChannelConfig_t g_beeboardChannelsConfig[DWT_NUM_DW_DEV];
void deca_setSync(bool state) {
HAL_GPIO_WritePin(SYNC_GPIO_Port, SYNC_Pin, state ? GPIO_PIN_SET : GPIO_PIN_RESET);
}
void deca_pulseSyncSignal() {
deca_... |
/* This file was generated by upbc (the upb compiler) from the input
* file:
*
* envoy/config/core/v3/config_source.proto
*
* Do not edit -- your changes will be discarded when the file is
* regenerated. */
#include <stddef.h>
#include "upb/msg_internal.h"
#include "envoy/config/core/v3/config_source.upb.h"
... |
#include "stm32l476xx.h"
//************************************* 32L476GDISCOVERY ***************************************************************************
// STM32L4: STM32L476VGT6 MCU = ARM Cortex-M4 + FPU + DSP,
// LQFP100, 1 MB of Flash, 128 KB of SRAM
// Instruction cache = 32 lines of 4... |
/*
* Copyright 2020 Makani Technologies LLC
*
* 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 ... |
/*
* Copyright (C) 2012 Altera Corporation <www.altera.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <altera.h>
#include <miiphy.h>
#include <netdev.h>
#include <asm/arch/reset_manager.h>
#include <asm/arch/system_manager.h>
#include <asm/arch/dwmmc.h>
#include <as... |
#include <stdlib.h>
#include <sys/mman.h>
#include "mkfs.h"
#include "inode.h"
#include "bitmap.h"
#include "buffer.h"
#include "dentry.h"
static void create_superblock(void) {
_u8 unit_size = DEFAULT_UNIT_SIZE;
_str_t serial;
_u32 sz_usize;
_str_t str_usize;
_u32 sz_serial;
if(clargs_option(&_g_clargcxt_, "-... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "inc/defines.h"
#include "inc/re.h"
int lexline = 1;
char *input;
char *stringTable[1024];
//List of regexes to match against
#define reg_whitespace "^\\s+"
#define reg_identifier "^[a-zA-Z$][a-zA-Z0-9$']*"
#def... |
// ------------------------------------------------------------------------------------------------
// tools/fat16_test.c
// ------------------------------------------------------------------------------------------------
#include "test/test.h"
#include "tools/fat16.h"
#include <string.h>
// -------------------------... |
/* bedUp - Load bed submissions after conversion back into new database.. */
#include "common.h"
#include "hash.h"
#include "jksql.h"
#include "psl.h"
#include "clonePos.h"
void usage()
/* Explain usage and exit. */
{
errAbort(
"bedUp - Load bed submissions after conversion back into new database.\n"
"usage:\n"
... |
/*
* @file ibv_display_local_infiniband_device_statistics.c
* @date 25 Dec 2020
* @author <NAME>
* @brief Display at regular intervals statistics for all local Infiniband devices.
* @details This reads the statistics counters from the sysfs files, rather than using Infiniband MAD, so that can work if
* a... |
/* Copyright (C) 2007-2012 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... |
/*
Copyright (c) 2015, Plume Design 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:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... |
// ATMEL Microcontroller Software Support - Colorado Springs, CO -
// ----------------------------------------------------------------------------
// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
/... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <termios.h>
#include <time.h>
#include <stdbool.h>
#define N 4
#define MOVE_UP 'A'
#define MOVE_LEFT 'D'
#define MOVE_DOWN 'B'
#define MOVE_RIGHT 'C'
#define QUIT 'q'
#define WHITE " "
#define LINE_HOR "\u2500"
#define LI... |
/*
just cold_turkey.c but uses floats instead
also all helper functions are static so that they don't collide with helper functions in cold_turkey.c
*/
#include <stdint.h>
#include <math.h>
#define PI 3.14159265358979323846
// multiplies a by b and returns the real component
#define complex_multiply_real(a_real, ... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "xis.h"
#include "xcpu.h"
#include "xmem.h"
#include <pthread.h>
#include "xdev.h"
static pthread_mutex_t mutex_lock = PTHREAD_MUTEX_INITIALIZER;
/* Use
* xcpu_print( c );
* to print cpu state, where c i... |
//#include <config.h>
#include <string.h>
#include "soc_types.h"
#include "cli.h"
#include "osal.h"
#include "net_types.h"
#include "uart/drv_uart.h"
#include "uart/hal_uart.h"
OsEvent cli_rx_evt = NULL;
#define fflush(x)
/* Command Line: */
char *sgCmdBuffer = NULL;
static char *sgArgV[CLI_ARG_SIZE];
static u32 s... |
//
// Created by Hugo on 12/11/2017.
//
#include <string.h>
#include <stdlib.h>
#include "../../header/yaml/api.h"
#include "../../header/sql/query.h"
#include "../../header/string_array_functions.h"
#include "../../header/utils/hashmap.h"
#include "../../header/sql/join.h"
/**
* Add a warning message to a query res... |
/******************************************************************************
* (c) Copyright 2017-2019 Xilinx, Inc. All rights reserved.
*
* This file contains confidential and proprietary information of Xilinx, Inc.
* and is protected under U.S. and international copyright and other
* intellectual property law... |
/*
* stdlib.c - Scratch standard library, implemented in C
* this is part of the scratch86 project,
* and as such will not be useful for a generic Scratch interpreter:
* sure, it implements general Scratch stuff, but it also implements a lot of very specific code that isn't really relevant..
*/
#include <stdio.h>... |
/*
* Copyright 1997-2001 by <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission noti... |
#include "f4lib.h"
void IO_init () {
GPIO_InitTypeDef gp;
RCC_AHB1PeriphClockCmd (RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOB |\
RCC_AHB1Periph_GPIOC | RCC_AHB1Periph_GPIOD | RCC_AHB1Periph_GPIOE |\
RCC_AHB1Periph_GPIOF | RCC_AHB1Periph_GPIOG, ENABLE);
GPIO_StructInit (&gp);
gp.GPI... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/* Standard headers */
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <float.h>
#include <mpi.h>
/* FDPS headers */
#include "FDPS_c_if.h"
/* User-defined headers */
#include "user_defined.h"
void setup_NaCl_crystal(int psys_num,
... |
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* i2c.c --- STM32F4 I2C driver.
*
* Copyright (C) 2012, Galois, Inc.
* All Rights Reserved.
*
* This software is released under the "BSD3" license. Read the file
* "LICENSE" for more information.
*/
#include <stddef.h>
#include <string.h>
#in... |
/*
* (C) Copyright 2000-2003
* <NAME>, DENX Software Engineering, <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 License as
* published by the Free Softwa... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/* ebt_mark
*
* Authors:
* <NAME> <<EMAIL>>
*
* July, 2002, September 2006
*
* Adapted by <NAME> <<EMAIL>>
* to use libxtables for ebtables-compat in 2015.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <xtables.h>
#include <linux/netfilter_bridge/ebt_mark_t.h>
#inc... |
/*
* authors : <NAME>, <NAME>
* logins : <EMAIL>, <EMAIL>
* group : 1.4
*
*/
#include "func.h"
/*prints an error*/
void cmd_error() {
printf("error: invalid command.\n");
printf("type 'help' for a list of valid commands in the shell.\n");
}
/*shows the authors of the program*/
void do_autores(char ... |
/*
* Copyright (C) 2007 by <NAME>
* <EMAIL>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* ... |
//包括后续非 exec 逻辑
#include "MultiThread_httpd.h"
#define DEFAULT "src_html/default.html"
#define IMG "src_html"
#define CGI "src_cgi"
int times=0;
void echo_error(int fd,int _errno)
{
switch(_errno){
case 400://Bad Request //客户端请求有语法错误,不能被服务器所理解
break;
case 404:////请求资源不存在,eg:输入了错误的URL
... |
/*====================================================================
index.c:
generates index.html file with all plugin .js, .css, and html files
included/embeded
====================================================================*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h... |
#include "blockfactory.h"
#include <stdlib.h>
#include <string.h>
#include <limits.h>
// Float array sections (Total 14N)
// 0..2N - Base points (N sides, 2 floats per coord)
// 2N..4N - Top uv coords (N verts on top, 2 floats perr uv coord.)
// 4N..6N - Bottom uv coords
// 6N..10N - Side UV coords (N sides, u... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
*... |
#include <assert.h> /* assert */
#include <stdint.h> /* uint8_t */
#include <stdlib.h> /* free */
#include <string.h> /* memmove, strlen */
#include "client.h"
#include "client-private.h"
#include "uv.h"
#include "openssl/evp.h" /* EVP_* */
#include "protocol/framer.h" /* mc_framer_t */
#include "protocol/parser... |
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netdb.h>
#include <... |
/*
Adjustable Power Supply
MIT License
Copyright (c) 2021 <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 rig... |
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <graph.h>
#include <graph_config.h>
int graph_make_config(int mode, int interlace, int ffmd, int x, int y, int flicker_filter, char *config)
{
// Save the current mode value.
switch (mode)
{
case GRAPH_MODE_NTSC: sprintf(config, "GRAPH_MODE_N... |
/*
* $Id: node_composite_bilateralblur.c 39944 2011-09-05 22:04:30Z gsrb3d $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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
* ... |
#include <board.h>
#include <drv/lcd.h>
#include <utils.h>
#include <kernel/printk.h>
#include <mach/pio-stm32.h>
#include <mach/rcc-stm32.h>
#include <errno.h>
#include <drv/device.h>
#include <init.h>
#include <string.h>
#include <fdtparse.h>
#define GCR_MASK ((unsigned int)0x0FFE888F)
#define RCC_PLLSAIDivR_Div4 (... |
#include <assert.h>
#include "GLDrv.h"
#include <Render/Device.h>
#include <Engine/Engine.h>
#include <Engine/Resource.h>
#ifndef GL_SRC1_COLOR
# define GL_SRC1_COLOR 0
#endif
#ifndef GL_ONE_MINUS_SRC1_COLOR
# define GL_ONE_MINUS_SRC1_COLOR 0
#endif
#ifndef GL_ONE_MINUS_SRC1_ALPHA
# define GL_ONE_MINUS_SRC1_ALPHA ... |
/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include "models.h"
#include "get_items.h"
#include "item_table.h"
#include "util.h"
#include "z64.h"
#define slot_count 8
#define object_size 0x1E70
typedef struct {
uint16_t object_id;
int8_t graphic_id;
} model_t;
typedef struct {
uint16_t object_id;
uint8_t *buf;
} loaded_object_t;
loaded_objec... |
// Version 1.4
// Created by <NAME>
// 19 May 2011
// Pits your AI against each other
// Must compile with Game.c and ai.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#include "Game.h"
#include "mechanicalTurk.h"
// Game aspects
#define UNI_CHAR_NAME ('A' - UNI_A)
#define WINNING_KPI... |
/*
* Copyright © 2009 <NAME> <<EMAIL>>
* Copyright © 2012 Intel Corporation
* Copyright © 2012 <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, i... |
#include "headers/bobcoin.h"
#include "headers/ecdsa.h"
#include "headers/sha256.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
unsigned char *GetHash(unsigned char *buffer, unsigned char *text) {
assert(buffer != NULL && text != NULL);
unsig... |
/*
* @XMHF_LICENSE_HEADER_START@
*
* eXtensible, Modular Hypervisor Framework (XMHF)
* Copyright (c) 2009-2012 Carnegie Mellon University
* Copyright (c) 2010-2012 VDG Inc.
* All Rights Reserved.
*
* Developed by: XMHF Team
* Carnegie Mellon University / CyLab
* VDG Inc.
* ... |
/*
* anon_mef.c
* convert_mef
program to anonymize mef2 headers:
*
* copyright 2012, Mayo Foundation, Rochester MN. All rights reserved
* usage and modification of the MEF source code is governed by the Apache 2.0 license
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
... |
#pragma ident "$Id: main.c,v 1.17 2016/01/21 21:22:02 dechavez Exp $"
/*======================================================================
*
* Monitor, and control, multiple Q330 digitizers
*
*====================================================================*/
#include "qmon.h"
#define MY_MOD_ID QMON_MOD_M... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <math.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define I2C_SLAVE 0x0703 /* Use this slave address */
#define... |
/* SKaMPI MPI-Benchmark
Copyright 2003-2008 <NAME>, <NAME>
Lehrstuhl Informatik fuer Naturwissenschaftler und Ingenieure
Fakultaet fuer Informatik
University of Karlsruhe
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
publis... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2010 <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) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.