text stringlengths 3.12k 18.7k |
|---|
/*
* gsaca.c for gsaca
* Copyright (c) 2015 <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 Software without restriction, including without limitation the rights
*... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <yoc_config.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
#ifndef linux
#include <aos/debug.h>
#endif
//#include "crc16.h"
#include "block.h"
#define RW_FLAG_SIZE 5
static inline int ali... |
/*
MIT License
Copyright (c) 2020 Carsten1987
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, publish, di... |
/*
Copyright (c) 2009-2018 <NAME> <<EMAIL>>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
http://www.eclipse.o... |
/***************************************************************************
* test_plugin.c - Test cases for how to build
* a backend out of system/elektra/mountpoints/<name>
* -------------------
* begin : Wed 19 May, 2010
* copyright : (C) 2010 by <NAME... |
/**
* @ingroup event_manager
*
* @file EventManager_public.c
* @author <NAME> (<EMAIL>/<EMAIL>)
* @brief Provides EventManager module functionality.
*
* See corresponding header file for more information.
*
* @version 2.0
* @date 2020-10-28
*
* @copyright Copyright (c) 2020
*/
/* ---------------------... |
#include "system.h"
#include "custom.h"
#include "gfx.h"
#include "ptplayer/ptplayer.h"
#include <clib/alib_protos.h>
#include <devices/input.h>
#include <devices/timer.h>
#include <dos/dosextens.h>
#include <dos/filehandler.h>
#include <exec/execbase.h>
#include <graphics/gfxbase.h>
#include <proto/dos.h>
#include <p... |
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2015 Brazil
This library 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 published by the Free Software Foundation.
This library is distributed in the hope that it will be ... |
// *************************************************************************************************
//
// Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
//
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
#include <stdlib.h>
#include <assert.h>
#include <encoder.h>
#include <_decoder.h>
#include "EMInst.h"
#define deposit(val, pos, len) \
(((unsigned long long)(val) << (64 - (len)) >> (64 - (len) - (pos))))
#define ILL_SEM 8
static unsigned char sem_bits[] = {
/* 0 1 2 3 4 5 6 7 */
... |
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 2007-9 The R Foundation
*
* 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, ... |
/*********************************************************
* Software developed by *
* <NAME> and <NAME> *
* This program benchmarks sorting and search algorithms *
* Take a look at main.h and Readme.md for documentation *
* The output file is defined at OUTPUT... |
/*
* MTD SPI driver for ST M25Pxx (and similar) serial flash chips
*
* Author: <NAME>, <EMAIL>
*
* Copyright (c) 2005, Intec Automation Inc.
*
* Some parts are based on lart.c by <NAME>
*
* Cleaned up and generalized based on mtd_dataflash.c
*
* This code is free software; you can redistribute it and/or modi... |
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<stdbool.h>
#include<time.h>
#include<mpi.h>
#include<string.h>
#include<math.h>
#define X 1049088 // Total Number of pixels in the image, to be given as an input.
#define Y 3 // No change required basically the RBG components of an image
#define... |
/*******************************************************************************
* Copyright (c) 2017 <NAME>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE.md for details.
****************************************************************... |
/*
* libc/gen/drand48.c
*
* Generate pseudo-random numbers using a linear conguential formula
* with 48-bit integer arithmetic.
* See "System V Interface Definition", drand48(lib).
*
* Defines:
* double drand48()
* double erand48(unsigned short xsubi[3])
* long jrand48(unsigned short xsubi[3])
* void lco... |
# include <stdio.h>
# include <stdlib.h>
# include <c_iraf.h>
# include <xtables.h>
# include "pweight.h"
typedef struct {
IRAFPointer tp; /* pointer to table descriptor */
/* column descriptors */
IRAFPointer cp_opt_elem; /* opt_elem (grating) */
IRAFPointer cp_cenwave;
IRAFPointer cp_sporder;
IRAFPointe... |
/*
***************************************************
PSPdisp (c) 2008 - 2015 <NAME>
osk.c - handling the onscreen keyboards
This software is licensed under the BSD license.
See license.txt for details.
***************************************************
*/
#include "osk.h"
#include "com.h"
#include "m... |
#include "mgos_timers.h"
#include "ds18b20.h"
static struct mgos_onewire *ow;
static int _pin;
static int _res;
static int _waiting_us;
static uint8_t _cfg_reg;
static int _n_sensors;
static float result;
ds18b20_result* _list;
static volatile bool is_busy;
const uint8_t _ds18b20_family_code = 0x28;
const uint8_t _ds... |
/*-
* Copyright (c) 1999 <NAME> <<EMAIL>>
* Copyright (c) 1999 <NAME> <<EMAIL>>
* Copyright (c) 1999 <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 sourc... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "dcom.h"
#include "tzmalloc.h"
#include "tztime.h"
#include "pt.h"
#include "lagan.h"
#define RAM_INTERNAL 0
#pragma pack(1)
typedef struct {
uint8_t a;
uint8_t b;
uint8_t c;
} tRid1;
typedef struct {
uint8_t d;
uint8_t e;
} tR... |
/*
* This file is released under the terms of the Artistic License. Please see
* the file LICENSE, included in this package, for details.
*
* Copyright (C) 2003-2008 <NAME> & Open Source Development Labs, Inc.
*
* Based on TPC-C Standard Specification Revision 5.0 Clause 2.8.2.
*/
#include <sys/types.h>
#inclu... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "flash.h"
#include "chad.h"
#include "gecko.h"
#include "iomap.h"
/*
Flash Memory Simulator
The interface to flash memory is through a SPI interface.
Flash memory is a static array of bytes that C initializes to 0.
Read and write ... |
/*
* Copyright (C) 2013 <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, copy, modify, merge, pu... |
/*
* An implementation of the host initiated guest snapshot for Hyper-V.
*
*
* Copyright (C) 2013, Microsoft, Inc.
* Author : <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Sof... |
/*
* GPAC - Multimedia Framework C SDK
*
* Authors: <NAME>, <NAME>
* Copyright (c) Telecom ParisTech 2008-2012
* All rights reserved
*
* This file is part of GPAC / udp TS segmenter (udptsseg) application
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Les... |
#include <assert.h>
#include <dirent.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <errno.h>
#include "common.h"
#include "module.h"
static int get_uid_g... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "info.h"
#define LINEAR_SEARCH_LIMIT 5000
#define MOST 18
typedef struct DATATYPE1 {
long power;
MP_INT *valid;
struct MP_ARRAY_TYPE denom;
struct MP_ARRAY_TYPE the_primes;
struct MP_ARRAY_TYPE kill_us;
MP_INT *prim;
MP_RAT *magic;
} REL_... |
/*******************************************************************************************
*
* Koala Seasons [emegeme 2015]
*
* Koala Seasons is a runner, you must survive as long as possible jumping from tree to tree
* Ready to start the adventure? How long can you survive?
*
* This game has been created usi... |
/******************************************************************************
* Copyright (C) 2016-2018 <NAME> *
* *
* This software is provided 'as-is', without any express or implied *
* warra... |
/* debug_runtime.c - Runtime debugging functions
Copyright (c) 2010-2011 <NAME>
Alore is licensed under the terms of the MIT license. See the file
LICENSE.txt in the distribution.
*/
#include "aconfig.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "alore.h"
#include "runtime.h"
#in... |
#include "unistd.h"
#include "errno.h"
#include "rdef_diagnoser.h"
#define FILE_ACCESS_CHECK(F) \
if (-1 == access(F, R_OK)) \
{ \
rdef_print_error("Error accessing file: %s (%s)\n", F, strerror(errno)); \
exit(errno); \
}
// Cmd line argument values
static char *prog_filename = NULL;
static... |
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include "pico/stdlib.h"
#include "bsp/board.h"
#include "tusb.h"
#include "usb_descriptors.h"
#define BUTTON_NUMBER 4
#define BTN_1_GPIO 4
#define BTN_2_GPIO 8
#define BTN_3_GPIO 10
#define BTN_4_GPIO 11
#define LED_1_RED_GPIO 2
#define LED_2_RED_GPIO 3
#d... |
/* ************************************************************************** */
/* */
/* :::::::: */
/* mlx_images.c :+: :+: ... |
/*******************************************************************************
License:
This software and/or related materials was developed at the National Institute
of Standards and Technology (NIST) by employees of the Federal Government
in the course of their official duties. Pursuant to title 17 Section 105
of... |
/**
* This example takes a picture every 5s and print its size on serial monitor.
*/
// =============================== SETUP ======================================
// 1. Board setup (Uncomment):
// #define BOARD_WROVER_KIT
// #define BOARD_ESP32CAM_AITHINKER
/**
* 2. Kconfig setup
*
* If you have a Kconfig fi... |
#pragma once
#include <float.h>
#if FLT_EVAL_METHOD == 0
typedef float float_t;
typedef double double_t;
#elif FLT_EVAL_METHOD == 1
typedef double float_t;
typedef double double_t;
#elif FLT_EVAL_METHOD == 2
typedef long double float_t;
typedef long double double_t;
#else
#error unknown value for FLT_EVAL_METHOD
#end... |
/* Copyright 2020 t-miyajima
*
* 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... |
/*
* Copyright (c) 2016 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <stdio.h>
#include <s... |
/**
*
* @file
*
* PLASMA is a software package provided by:
* University of Tennessee, US,
* University of Manchester, UK.
*
* @generated from core_blas/core_zgemm.c, normal z -> d, Thu Aug 8 10:20:04 2019
*
**/
#include <plasma_core_blas.h>
#include "plasma_types.h"
#include "core_lapack.h"
#include "b... |
/// Copyright (C) 2003 <NAME>
/// Copyright (C) 2010 Dependable Systems Laboratory, EPFL
/// Copyright (C) 2016-2019 Cyberhaven
/// Copyrights of all contributions belong to their respective owners.
///
/// This library is free software; you can redistribute it and/or
/// modify it under the terms of the GNU Library... |
/********************************************************************
Software License Agreement:
The software supplied herewith by Microchip Technology Incorporated
(the "Company") for its PIC(R) Microcontroller is intended and
supplied to you, the Company's customer, for use solely and
exclusively on Micr... |
/********************************************************************************************************
* @file ali_dfu_port.c
*
* @brief for TLSR chips
*
* @author telink
* @date Sep. 30, 2010
*
* @par Copyright (c) 2018, Telink Semiconductor (Shanghai) Co., Ltd.
* All rights res... |
/*-
* Copyright (c) 2003 <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... |
/*
* <NAME>
* kormi001
*
* csim.c - A cache simulator that can replay traces from Valgrind
* and output statistics such as number of hits, misses, and
* evictions. The replacement policy is MRU.
*
*
* The function printSummary() is given to print output.
* Please use this function to print the numb... |
/* GStreamer
*
* unit test for autoconvert element
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (... |
/*!
*****************************************************************************
* @file: CN0394.c
* @brief:
* @version: $Revision$
* @date: $Date$
*-----------------------------------------------------------------------------
*
Copyright (c) 2016-2017 Analog Devices, Inc.
All rights reserved.
Redistrib... |
#include "slot.h"
#include "../reed_solomon/rs.h"
#define SS_SIZE (1024)
#define TEST_MAX_SLOTS (257)
#define TMP_DIR "."
#define RANDOM_1048576_BIN "random_1048576.bin"
char msg[SS_SIZE];
char ss[SS_SIZE];
uchar *dump_1048576;
char random_path[SS_SIZE]; /* tmp_dir/random_1048576.bin */
static size_t _rs_encode16_s... |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2000-2010. All Rights Reserved.
*
* 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
*
... |
/* JPEG To RGB interface --<NAME> - 04/07/16 - 2004 Hitlab NZ. All Rights reserved--
This file define simple routine functions for converting a JPEG image to RGB format.
It use is ONLY for EyeToy Camera.
WARNING : It use a static image area : at each call of conversion, the new
image is copying on the same mem... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* vivid-radio-common.c - common radio rx/tx support functions.
*
* Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
*/
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/videodev2.h>
#include "vivid-... |
#include <ctype.h>
#include "socket.h"
#include "scanfmt.h"
unsigned fmt_mac(char *s, const char mac[6]){
unsigned i;
unsigned len = 0;
i = fmt_xlong(s, (unsigned long) (unsigned char) mac[0]); len += i; if(s) s += i;
if(s) *s++ = ':'; ++len;
i = fmt_xlong(s, (unsigned long) (unsigned char) mac[1]); len += i; i... |
/*
* Copyright (c) 2017, <NAME>, RWTH Aachen University
* 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) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
#include "mpidimpl.h"
/* FIXME: Explain the contents of this file */
/*
* A first guess. This file contains routines to manage memory-to-memory
* copies of buffers described by MPI datatypes
*/
/* MPIDI_COPY_BUFFER... |
#include <stdlib.h>
#include <assert.h>
#include "qcms.h"
const unsigned char gray_icc[] =
{0x00, 0x00, 0x01, 0x70, 0x4E, 0x4B, 0x4F, 0x4E, 0x02, 0x20, 0x00, 0x00,
0x6D, 0x6E, 0x74, 0x72, 0x47, 0x52, 0x41, 0x59, 0x58, 0x59, 0x5A, 0x20,
0x07, 0xCE, 0x00, 0x0B, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x61, 0x63, ... |
/*
M3 -- Meka Robotics Real-Time Control System
Copyright (c) 2010 Meka Robotics
Author: <EMAIL> (<NAME>)
M3 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 3 of the License, or
(at... |
/* $NetBSD: db_output.c,v 1.27 2002/02/15 07:33:51 simonb Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
*... |
/* lil-gp Genetic Programming System, version 1.0, 11 July 1995
* Copyright (C) 1995 Michigan State University
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* ... |
#include <stdbool.h>
#include <string.h>
#include <dirent.h>
#include <sys/stat.h>
#include <libxml/xmlreader.h>
#include <proj_api.h>
#include <gd.h>
enum { IMG_WIDTH = 12800 };
enum { IMG_HEIGHT = 12800 };
enum { IMG_BORDER = 20 };
enum { MAX_POINTS = 1000000 };
struct point
{
unsigned x, y;
bool is_end;
};
st... |
/*
* Copyright (c) 2011-2015, <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 con... |
/*
* 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... |
#include "auxiliar.h"
/* mostra a hash */
void print(unsigned char* hashf){
int i;
for(i=0; i< SHA256_DIGEST_LENGTH; i++){
printf("%02x", hashf[i]);
}
printf("\n");
}
/* cria a hash dado um vetor de caracteres constante */
void hash(const char* s, unsigned char* dest){
SHA256((const unsigned char*)s, strlen(s)... |
#include "wm8960.h"
const uint16_t wm8960_reg_defaults[] = {
0x0, 0x0117,
0x1, 0x0117,
0x2, 0x01fd,
0x3, 0x01fd,
0x4, 0x0000,
0x5, 0x0000,
0x6, 0x0000,
0x7, 0x0002,
0x8, 0x01c0,
0x9, 0x0000,
0xa, 0x01ff,
0xb, 0x01ff,
0x10, 0x0000,
0x11, 0x007b,
0x12, 0x0100,
0x13, 0x0032,
0x14, 0x0000,
... |
#include "util-rand.h"
#include "util-sha512.h"
#include "util-chacha20.h"
#include <string.h>
typedef struct {
unsigned char buf[64];
uint32_t state[16];
size_t partial;
} myrand_t;
#ifndef MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
#define ROTL32(number, count) (((number) << (count)) | ((nu... |
/* $XConsortium: sunAmProbe.c,v 1.2 94/04/17 20:32:48 dpw Exp $ */
/*-
* sunAmProbe.c:
* Amoeba implementation of functions to probe and map in the
* frame buffer of several supported video cards (CG6, CG3, BW2).
*/
/************************************************************
Copyright 1987 by Sun Microsystems, I... |
/*
* Copyright 2019 International Business Machines
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/* Extended Module Player
* Copyright (C) 1996-2010 <NAME> and <NAME>
*
* This file is part of the Extended Module Player and is distributed
* under the terms of the GNU General Public License. See doc/COPYING
* for more information.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "load.... |
/*
* Copyright 2020 Codethink 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 law or agreed ... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
#include "elf.h"
#include "structures.h"
#include "allocator.h"
#include "common/constants.h"
#include "common/string.h"
#define LOAD_ERROR(reason) \
do { \
res->error_msg = reason; \
return false; \
} while (0)
#define HIGHER_HALF_BASE 0xFFFFFFFF80000000
stat... |
#include "esteps.h"
#include "sweeps.h"
#include <math.h>
/* this routine is to be used only for el,eh and ph */
void init_estep30_array(energy_step30 *nrg30,uint2 *dactable,sweep_cal *cal)
{
int e,i,d=0;
double nrg,anrg0,anrg9;
for(e=0;e<30;e++){
for(i=0;i<4;i++,d++){
nrg = dac_to_energy(dactable[d],c... |
/**
* Copyright (c) 2014, <NAME>. All rights reserved.
* See the file LICENSE for more details.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <signal.h>
#include <ncursesw/ncurses.h>
#include <locale.h>
#include <sys/stat.h>
#include "constants.h"
#incl... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "hardware/clocks.h"
#include "pico.h"
#include "pico/multicore.h"
#include "pico/scanvideo.h"
#include "pico/scanvideo/composable_scanline.h"
#include "pico/stdlib.h"
#include "pico-vga-framebuffer.h"
#if USE_INTERP == 1
#include "hardware/interp.h"
e... |
#include <stdio.h>
#include <stdlib.h>
#define SUCESSO 0
#define LISTA_VAZIA 1
#define FALTOU_MEMORIA 2
#define CODIGO_INEXISTENTE 3
// Structs
typedef struct {
int cod;
float peso;
} Dado;
typedef struct nodo Nodo;
struct nodo {
Dado info;
Nodo *prox;
};
typedef struct {
Nodo *inicio;
} ListaSE;
// Funcoes
v... |
/*
* eth_ctrl.c
*
* Created on: 14 ноября 2016 г.
* Author: krtkr
*
* MIT License
*
* Copyright (c) 2016 <NAME> (krtkr), <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 Sof... |
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include "exec_parser.h"
/* Handler vechi */
static struct sigaction old_handler;
/* Handler nou */
static struct sigaction handler;
/* File-descriptor-ul fisierului */
static in... |
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include "utils.h"
#define MAXFDS 1000
typedef enum { INITIAL_ACK, WAIT_FOR_MSG, IN_MSG... |
//! In this file, you can define all compile settings that is used by the RTCLI.
//! RTCLI does not rely on a specific build system, all code-specific build settings goes here. You can however
//! use the build system you prefer to define macros that affects the configurations listed here.
//!
//! This is the ONLY so... |
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/poll.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <fcntl.h>
#include <confd_lib.h>
#include <confd_cdb.h>
/* include generate... |
/*
* Copyright (C) 2015-present, Ant Financial Services Group
*
* 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 a... |
//
// mcmc_solar.c
//
//
// Created by <NAME> on 11/11/15.
//
//
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <math.h>
#define USAGE "./mcmc_solar.x n_burn n_steps"
//--------------------------------------------------------------------------... |
/*
* Copyright (c) 2008 <NAME> (<EMAIL>)
* Copyright (c) 2008 <NAME> (<EMAIL>)
* Copyright (c) 2009 <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... |
#include <math.h>
#include <float.h>
#include <stdlib.h>
#include <stdbool.h>
#include "trajectory.h"
#include "trajectoryType.h"
#include "../../common/2d/2d.h"
#include "../../common/commons.h"
#include "../../common/math/cenMath.h"
#include "../../common/io/outputStream.h"
#include "../../common/io/p... |
#define LOG_MODULE "http"
#include <curl/curl.h>
#include <stdint.h>
#include "util/base64.h"
#include "util/fs.h"
#include "util/log.h"
#include "util/mem.h"
#include "util/str.h"
#define MEDIA_TYPE "text/plain"
#define RECV_BUFFER_SIZE 1024 * 512
#define CLIENT_CRT "/client-crt.pem"
#define CLIENT_KEY "/client-key... |
// Copyright 2012 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 conditions and... |
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <stdarg.h>
#include "c_string.h"
/*init size*/
#define INIT_CSTRING_SIZE 64
#define MAX_CSTRING_ALLOC (1024*1024)
#ifndef max
#define max(x, y) ((x) > (y) ? (x) : (y))
#endif
#ifndef min
#define min(x, y) ((x) ... |
/*
* Copyright (c) 2018 XLAB d.o.o.
*
* 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 agreed to ... |
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/user.h>
#include "libdis.h"
#include "hook.h"
// Routines to intercept or redirect routines.
// Author: <NAME>
// This was chosen arbitrarily, the maximum amount of code we will sear... |
//
// SUFunction.c
// seuss
//
// Created by <NAME> on 7/12/12.
// Copyright (c) 2012 <NAME>. All rights reserved.
//
#include "SUFunction.h"
#include "SUTypeInternal.h"
#include "SUList.h"
#include "SUString.h"
#include "SUProgram.h"
#include "SUIterator.h"
#include "SUTokenizer.h"
#include "SUStatement.h"
#inclu... |
#include "gpio.h"
#include "asm_tools.h"
#include "uart.h"
#include "config.h"
//
// Constante des puissances de 10
static const int TEN_POW[10] = { 1,
10,
100,
1000,
10000,
100000,
1000000,
10000000,
100000000,
10... |
// clang-format off
// Build this with:
// $ gcc -g -o demo main.c xdg-shell-protocol.c -lwayland-client -lOpenGL -lEGL -lwayland-egl
// Generate the xdg-shell files from protocols with
// $ wayland-scanner private-code < /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml > xdg-shell-protocol.c
// $ wayland-sc... |
/*
This file is part of FFTS -- The Fastest Fourier Transform in the South
Copyright (c) 2012, <NAME> <<EMAIL>>
Copyright (c) 2012, The University of Waikato
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following con... |
/*
* Copyright (c) 2012, 2014, JANET(UK)
* 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 ... |
#include <u.h>
#include <libc.h>
#define BUFSIZE 4096
char *pid;
void
load(char *filename)
{
char *js = "hedit%slog = '';\n"
"hedit%ssent = 0;\n"
"hedit%sread = [];\n"
"mkfile('/hedit%s', function(f, p) {\n"
" if (f.f.used)\n"
" return 'file in use';\n"
" f.f.used = true;\n"
"}, function(f, p) {\n"
... |
/*
* mod_rrd_graph - Graph data in a Round Robin Database (RRD).
*
* Copyright (C) <NAME>
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <rrd.h>
typedef struct {
ngx_str_t root;
} ngx_http_rrd_graph_conf_t;
static void * ngx_http_rrd_graph_create_conf(ngx_conf_t *cf);
s... |
/*D***********************************************************
* Modul: DBI - database info
* PREIS
*
* Copyright: yafra.org, Basel, Switzerland
**************************************************************/... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.c
* Author: brando
*
* Created on May 7, 2019, 5:21 PM
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#in... |
/*
* 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 agreed to in writing, software
* distribu... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
/*
*------------------------------------------------------------------
* channel_config.c: Sample Channel configuration
*
* Copyright (c) 2001-2007 by cisco Systems, Inc.
* All rights reserved.
*------------------------------------------------------------------
*/
#include "sdp.h"
#include <stdio.h>
#define F... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.