text stringlengths 3.08k 10.5k |
|---|
/**
* VOCATALOG -- Query all VO Catalog services
*
* Usage:
* vocatalog [<opts>] [ <object> | <ra> <dec> ] [ <size> ]
*
* @file vocatalog.c
* @author <NAME>
* @date 2/03/13
*
* @brief Query all VO Image services.
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#i... |
/*-
* SSLsplit - transparent SSL/TLS interception
* https://www.roe.ch/SSLsplit
*
* Copyright (c) 2009-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2017-2020, <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
#include <stdio.h>
#include<stdbool.h>
#include <stdlib.h>
#include <time.h>
#define dim 333
void initial_condition(bool ***nodes, bool **edges, float Ps, float Pb, float I0);
int simulation(bool ***nodes, bool **edges, float Ps, float Pb, int ND, float betta, float gamma, int snode[ND+1], int inode[ND+1], int rnode[... |
/**
* Copyright (c) 2018, Nordic Semiconductor ASA
*
* 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
* ... |
/**
@mainpage Building a locamotion based Hexapod Application
@author Group 17:
<NAME>
<NAME>
<NAME>
<NAME>
Sun 08 April 2012 12:49:10 AM IST
ICC AVR 7
Conatins various functions for basic, advanced hexapod motions
*/
/*********************************************************************************
C... |
/*
* lowly.h
* low-ell likelihood in the pixel domain
*
* JF Cardoso and <NAME>. January 2008.
*
*/
#include <gsl/gsl_vector.h>
#include <gsl/gsl_vector_int.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_errno.h>
#include <gsl/... |
/*************************************************************************************
* qTESLA: an efficient post-quantum signature scheme based on the R-LWE problem
*
* Abstract: testing and benchmarking code
**************************************************************************************/
#include <stdio.h>
#... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define MDATA_MAX_SIZE 1000
#define MOVINGAVERAGING_WINDOW_SIZE 10
#define NO_ERROR 0
#define OUT_OF_MEMORY_ERROR 1
#define FILE_ERROR 2
#define Fenster 4
#define ECGDATA_SAMPLE_RATE 360
double genSinusWithNoise (double f[], int length, double length_period... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
*/
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/mman.h>
#include <string.h>
#include <rte_log.h>
#include <fcntl.h>
#include "eal_hugepages.h"
#include "eal_internal_cfg.h"
#include "eal_filesystem.h"
#define CONTIGM... |
#include "fd_ssd1315.h"
#include "fd_delay.h"
#include "fd_gpio.h"
#include "fd_i2cm.h"
#include "fd_log.h"
#include "fd_unused.h"
#include <stddef.h>
// i2c address 0x78
typedef struct {
const fd_i2cm_device_t *device;
} fd_ssd1315_t;
fd_ssd1315_t fd_ssd1315;
static void fd_ssd1315_write(const uint8_t *data,... |
/*
* "streamable kanji code filter and converter"
* Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
*
* LICENSE NOTICES
*
* This file is part of "streamable kanji code filter and converter",
* which is distributed under the terms of GNU Lesser General Public
* License (version 2) as published by th... |
/*
* Copyright (c) 2017 Fastly, <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, publ... |
/* ****************************************************************************
* Copyright (C) 2019 Maxim Integrated Products, Inc., All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to de... |
/**
@file ioboard_example.c
@brief IO board example 2.
@author <NAME>
@version 1.2
@date 26.4.2021
ioboard2 example demonstrates basic IO board with network communication. This example is
kept minimalistic. An IO board typically has one memory block for the inputs and the one
other for the ou... |
/*
Planarity-Related Graph Algorithms Project
Copyright (c) 1997-2010, <NAME>
All rights reserved. Includes a reference implementation of the following:
* <NAME>. "Simplified O(n) Algorithms for Planar Graph Embedding,
Kuratowski Subgraph Isolation, and Related Problems". Ph.D. Dissertation,
University of Victoria... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... |
/*
* auth_driver.c
*
* a driver for auth functions
*
* <NAME>
* Cisco Systems, Inc.
*/
/*
*
* Copyright (c) 2001-2005, Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
#include <curses.h>
#include <stdlib.h>
#define STARTX 9
#define STARTY 3
#define WIDTH 6
#define HEIGHT 4
#define TRACE_VALUE TRACE_MAXIMUM
void board( WINDOW *win, int starty, int startx, int lines, int cols,
int tile_width, int tile_height);
void magic(int **, int);
void print(int **, int);
voi... |
/*
* rtmon.c RTnetlink listener.
*
* 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.
*
* Authors: <NAME>, <<E... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 1508
* Seed: 1508
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
int32_t g_3[1] = {0xF46DB505L};
int32_t ... |
/* -*- mode: C; c-basic-offset: 3; -*- */
/*
This file is part of MemCheck, a heavyweight Valgrind tool for
detecting memory errors.
Copyright (C) 2012-2015 <NAME>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published... |
/*
* Utility to up- and down-load memory contents:
* 1) ctrlyarvi $PORT read $ADDRESS $N > $FILE
* 2) ctrlyarvi $PORT write $ADDRESS < $FILE
* 3) ctrlyarvi $PORT monitor
*
* $N has to be a multiple of 4. $ADDRESS and $N have to be in hex
* monitor is for a TBD IO protocol
*/
// From: http://stackoverflow.com... |
#define _POSIX_C_SOURCE 199309L
#include <ctype.h>
#include <errno.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <curses.h>
#define BALL 'o'
#define PATH ' '
#define MAX_LINE 1024
/* start_ncurses: initializes ncurses */
static void start_ncurses(void) {
initscr();
keypad(s... |
/*------------------------------------------------------------------------------
*
* Copyright (c) 2011-2020, EURid vzw. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... |
//------------------------------------------------------------------------------
// GB_mex_rdiv: compute C=A*B with the rdiv operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Identifier: Apache... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
*/
#include <k5-int.h>
#include <kdb.h>
#include <kadm5/server_internal.h>
#include "misc.h"
#include "auth.h"
#include "net-server.h"
kadm5_ret_t
schpw_util_wra... |
/*
* Copyright (c) 2013 <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 c... |
/*
* Problem with clang 3.3 (and 4.0) on FreeBSD; seems to be fixed in
* Clang 5.0 at least:
*
* $ clang -v
* FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
* Target: x86_64-unknown-freebsd10.0
* Thread model: posix
*
* Possible root cause:
*
* https://bugs.llvm.org/show_... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "common.h"
#include "appconfig.h"
#include "procfile.h"
#include "rrd.h"
#include "plugin_proc.h"
#include "log.h"
#define MAX_INTERRUPTS 256
#define MAX_INTERRUPT_CPUS 256
#define MA... |
/* $NetBSD: iomd_io.c,v 1.1 1997/10/14 10:58:50 mark Exp $ */
/*
* Copyright (c) 1997 <NAME>.
* Copyright (c) 1997 Causality Limited.
* 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... |
// Copyright 2019 Shift Cryptosecurity AG
//
// 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 ... |
#include <stdio.h>
#include <inttypes.h>
#include <assert.h>
#define MINUS_ONE (0 << 7)
#define PLUS_ONE (1 << 7)
#define PLUS_I (2 << 7)
#define MINUS_I (3 << 7)
#define PLUS_J (4 << 7)
#define MINUS_J (5 << 7)
#define PLUS_K (6 << 7)
#define MINUS_K (7 ... |
#include <gb/gb.h>
#include <gb/bgb_emu.h>
#include <stdlib.h>
#include <stdio.h>
#include "../res/map-tiles.h"
#include "../res/room-map.h"
#include "../res/sprites.h"
#include "../res/splash-data.h"
#include "../res/splash-map.h"
#include "../res/backyard.h"
#include "../res/backyard-tiles.h"
char BUFFER[100];
uint8... |
/* Public Domain Curses */
/* $Id: pdcwin.h,v 1.6 2008/07/13 06:36:32 wmcbrine Exp $ */
#ifdef PDC_WIDE
#ifndef UNICODE
# define UNICODE
#endif
#ifndef _UNICODE
# define _UNICODE
#endif
#endif
#include <windows.h>
#if defined( GS_8BIT_INDICES) && defined( PDC_WIDE)
/* We only need the 'fallback font' for the ... |
/**
******************************************************************************
* @file hw_config.c
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief Hardware Configuration & Setup
******************************************************************************
... |
/*
* Linux driver attachment glue for aic7770 based controllers.
*
* Copyright (c) 2000-2003 Adaptec 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 ... |
#include <stdio.h>
#include <stdlib.h>
// Time function, sockets, htons... file stat
#include <sys/time.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/stat.h>
// File function and bzero
#include <fcntl.h>
#include <unistd.h>
#include <strings.h>
#define BU... |
/******************************************************************************
* Copyright (C) 2019 - 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/****************************************************************... |
/*
* Copyright (c) 2014-2015 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... |
/****************************************************************************
* boards/arm/stm32/stm32f429i-disco/src/stm32_extmem.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information ... |
/*
* Copyright (c) 2017 Fastly, <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, publ... |
/*
* See the dyninst/COPYRIGHT file for copyright information.
*
* We provide the Paradyn Tools (below described as "Paradyn")
* on an AS IS basis, and do not warrant its validity or performance.
* We reserve the right to update, modify, or discontinue this
* software at any time. We shall have no obligation to... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
* Copyright (c) 2017 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... |
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <SDL2/SDL.h>
#include "babytiger_emu.h"
struct matrix_display gDisplay = {NULL, NULL, NULL};
Pixel pixels[NUM_PIXELS];
enum snake_direction {
UP,
DOWN,
LEFT,
RIGHT,
};
struct snake_position {
unsigned short x : 4;
unsigned short y : 4;... |
/*
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... |
/*
* Serial Attached SCSI (SAS) Phy class
*
* Copyright (C) 2005 Adaptec, Inc. All rights reserved.
* Copyright (C) 2005 <NAME> <<EMAIL>>
*
* This file is licensed under GPLv2.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
*... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h> /* read & write */
#include <string.h>
#include <pthread.h>
#include <netinet/ip.h> /* struct sockaddr_in & in_addr (netinet/in.h?) */
#include <arpa/inet.h> /* inet_ntop */
#include <sys/types.h> /* open */
#include <sys/stat.h> /* open */
#include <fcntl.... |
/*
* iperf, Copyright (c) 2014, The Regents of the University of
* California, through Lawrence Berkeley National Laboratory (subject
* to receipt of any required approvals from the U.S. Dept. of
* Energy). All rights reserved.
*
* If you have questions about your rights to use or distribute this
* software, pl... |
/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
* No other uses are authorized. This software is owned by Renesas Elect... |
//* testing TIMER1 interrupt with software generated PWM for servomotor - main.c *
#include "bios_timer_int.h"
#include <stdint.h>
#include <avr/interrupt.h>
#include "bios_leds.h"
#include "bios_keys.h"
//------------------------------------------------------------------------------------
// Global consta... |
#include <common.h>
#include <lcd.h>
#include <command.h>
#include <asm/byteorder.h>
#include <malloc.h>
#include <splash.h>
#include <video_fb.h>
#include <video.h>
/* Graphic Device */
static GraphicDevice *gdev = NULL;
extern void osd_debug(void);
extern void osd_set_log_level(int);
extern void osd_test(void);
ext... |
/*
* Copyright (C) 2000-2007 <NAME>, <NAME> and various contributors
* Copyright (C) 2004-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 wi... |
/*
* $Id$
* Copyright (C) 2007 Technorama Ltd. <<EMAIL>>
*/
#include "ossl.h"
VALUE mPKCS5;
VALUE ePKCS5;
#ifdef HAVE_PKCS5_PBKDF2_HMAC
/*
* call-seq:
* PKCS5.pbkdf2_hmac(pass, salt, iter, keylen, digest) => string
*
* === Parameters
* * +pass+ - string
* * +salt+ - string - should be at least 8 bytes lon... |
/*
* perf_memset_s.c
* with the 64bit version.
*
* gcc-7 darwin:
* objsize --disable-constraint-handler
* memset_s.o 760
* default:
* memset_s.o 1464 +92%, 704 bytes
*
* Speed overhead: 0 - 16%
*
* clang-7 darwin:
* objsize --disable-constraint-handler
* memset_s.o 784... |
#include "position.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
const int8_t PAWN_CAPTURES[2] = { 9, 11 };
const int8_t KNIGHT_MOVES[8] = { 8, 19, 21, 12, -8, -19, -21, -12 };
const int8_t BISHOP_DIRECTIONS[4] = { 9, 11, -9, -11 };
const int8_t ROOK_DIRECTIONS[4] = { 10, 1, -10, -1 };
const int8_t QU... |
#include <printk.h>
#include <mm/mmu.h>
#include <mm/kalloc.h>
#include <mm/kmalloc.h>
#include <mm/shm.h>
#include <hardware.h>
#include <kernel.h>
#include <system.h>
#include <proc.h>
#include <irq.h>
#include <kstring.h>
#include <timer.h>
#include <scheduler.h>
#include <dev/basic_dev.h>
#include <printk.h>
#inclu... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#in... |
/*
* Copyright 2005-2018 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 int... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
// struct timeval {
// long tv_sec; seconds
// long tv_usec; /* microseconds*/
// }
// struct hos... |
#include "game.h"
Player * gameLoop (Game * game, int mode) {
int version = game->version;//version 0 = version simple plus de pions - version = 1 plus de pions sur le plateau
Point click;
int inGame = 1;
Player * winner;
updateBoard(game);
render();
do{
if (!checkVictory(version,game)){
if(mode == 2... |
/* PipeWire
*
* Copyright © 2020 <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, pu... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details... |
/*****************************************************************************/
/* */
/* Random Polygon Generator (RPG) */
/* */
... |
/*******************************************************************************
Data.c Copyright 2002 Silicon Laboratories
This file contains the neccessary data for the main program.
************************************************************************************/
#include "dual_io.h"
//#include "stdlib.h"... |
//
// raw.c
//
// Raw network protocol interface
//
// Copyright (C) 2002 <NAME>. All rights reserved.
// Portions Copyright (C) 2001, Swedish Institute of Computer Science.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// ... |
/*
Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of condition... |
/***************************************************************************//**
* @file
* @brief Utilities for sending and receiving ZigBee AMI InterPAN messages.
*
* @deprecated The ami-inter-pan library is deprecated and will be removed in a
* future release. Similar functionality is available in the Inter-PAN... |
/*
* Copyright (c) 2017 Redpine Signals Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... |
/******************************************************************************
*
* Copyright (C) 2002 - 2019 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Softwa... |
/* * $OpenBSD: defs.h,v 1.12 2004/01/16 01:12:35 espie Exp $*/
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
/*
* life.c
*
* Created on: Sep 13, 2016
* Author: leune
*/
//Header Files
#include <stdio.h>
#include <unistd.h>
#include "life.h"
//Main Function
int main(int argc, char *argv[]) {
setbuf(stdout, NULL);
int board[XSIZE][YSIZE];
int rounds = DEFAULTROUNDS;
initBoard(board);
board[5][5] = ALIVE;
boa... |
/// MentOS, The Mentoring Operating system project
/// @file pic8259.c
/// @brief pic8259 definitions.
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include "hardware/pic8259.h"
#include "io/port_io.h"
#include "stddef.h"
/// End-of-interr... |
/**
* DSVerifier - Digital Systems Verifier
*
* Federal University of Amazonas - UFAM
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Contributors: <NAME> <<EMAIL>>
*
* ---------------------------------------... |
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <chiasm.h>
pthread_t gui_thread;
struct ch_frmbuf outbuf;
struct ch_dl_cx *dl_cx;
/**
* @brief Callback function that occurs on a t... |
/*
* task_rf.c
*
* Created on: 2018. 8. 18.
* Author: eclipse
*/
#include <stdio.h>
#include "rf/rf_config.h"
#include "rf/basic_rf.h"
#include "rf/hal_rf_util.h"
#include "rf/hal_rf.h"
#include "rf/zb/hdr/zb_zdo.h"
#include "task_rf.h"
#include "lib/queue.h"
#include "hal/bool.h"
#i... |
#include "readData.h"
void getSect1(graph g,FILE *fp,int src){
char buff[1000];
while (!feof(fp) && fscanf(fp, "%s",buff)){
if (strcmp("#end", buff)==0) {
/* push one more to end this session*/
fscanf(fp, "%s",buff);
break;
}
// resolve the dest nu... |
/* $OpenBSD: dev_net.c,v 1.8 2003/08/20 00:26:00 deraadt Exp $ */
/*
* Copyright (c) 1995 <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 ... |
/*-----------------------------
MIT License
Copyright (c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... |
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... |
/*
* kernel/power/tuxonice_sysfs.h
*
* Copyright (C) 2004-2010 <NAME> (nigel at tuxonice net)
*
* This file is released under the GPLv2.
*/
#include <linux/sysfs.h>
struct toi_sysfs_data {
struct attribute attr;
int type;
int flags;
union {
struct {
unsigned long *bit_vector;
int bit;
} bit;
str... |
#include "framework/platform_timer.h"
#include "framework/platform_file.h"
#include "framework/platform_system.h"
#include "framework/platform_window.h"
#include "framework/input.h"
#include "framework/logger.h"
//
#include "application.h"
static struct Application {
struct Application_Callbacks callbacks;
struct A... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2009 The University of Tennessee and The University
* ... |
#include "header.h"
#define MUTEX 0
#define TOTAL_SALA 1
#define VIP_ESPERA 2
#define ESPECIAL_ESPERA 3
int spawn_childs(int n){
pid_t pid;
int i;
for (i = 0; i < n; i++)
{
pid = fork();
if (pid < 0)
return -1;
else if (pid == 0)
return i + 1;
}
... |
/*
* Copyright (C) 2017 C-SKY Microsystems Co., Ltd. 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
*
* Unless ... |
// This file is free software, distributed under the BSD license.
#include "hack.h"
#include "extern.h"
const char *const shkliquors[] = {
// Ukraine
"Njezjin", "Tsjernigof", "Gomel", "Ossipewsk", "Gorlowka",
// N. Russia
"Konosja", "<NAME>", "Syktywkar", "Sablja",
"Narodnaja", "Kyzyl",
// Sil... |
/*
* axp192 for standby driver
*
* Copyright (C) 2015 allwinnertech Ltd.
* 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 Software Foundation.
*/
#include "../standby.... |
///////////////////////////////////////////////////////////////////////////////
//
/// \file suffix.c
/// \brief Checks filename suffix and creates the destination filename
//
// Author: <NAME>
//
// This file has been put into the public domain.
// You can do whatever you want with this file.
//
////... |
#define SLVERSION "SLVERSION_T"
#ifndef SLPLUGIN
#include <pthread.h>
#include "FLAC/stream_encoder.h"
#endif
#ifdef SLPLUGIN
/*
* effect/effect.c
*/
void effect_set_bypass(bool value);
#endif
enum ws_type {
WS_BARESIP,
WS_CALLS,
WS_CONTACT,
WS_CHAT,
WS_METER,
WS_CPU,
WS_OPTIONS,
WS_RTAUDIO
};
enum webapp_... |
/*
$RCSfile$
Copyright (C) 2003 <NAME>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed i... |
/* vi: set sw=4 ts=4: */
/*
Implements the Secure Hash Algorithm (SHA1)
Copyright (C) 1999 <NAME>
Released under the terms of the GNU General Public License v2
see file COPYING for details
Credits:
<NAME> <<EMAIL>> -- Expansion function fix
---
FIXME: This source takes int to be a 32 b... |
#include "llvm_codegen.h"
#include "../../io/io.h"
#include "../../io/log.h"
#include "../../ast/types.h"
#include "../../error/error.h"
#include "llvm_casts.h"
#include <llvm-c/Core.h>
#include <llvm-c/Analysis.h>
#include <llvm-c/TargetMachine.h>
#include <llvm-c/ErrorHandling.h>
#include <llvm-c/Types.h>
#include <... |
/*
bob.c
Bob IMG functions
*/
#include "inc/stdafx.h"
#include "inc/bob.h"
#include "inc/motorola.h"
// Picture file
typedef struct _t_pic
{
FILE *fp; // stream pointer
int w; // width
int h; // height
} t_pic, *PPIC;
#pragma pack(1)
typedef struct _t_bob_hdr
{
WORD width;
WORD... |
/*!
\file property.c
\brief Native property implementation.
This module implements a native property, which is not public to any
provider programmer. It is used to implement various other data types
natively, such as instances, object-paths and args.
It provides means to maintain linked lists of named pro... |
/*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
#include "mpi.h"
#include "stdio.h"
#include "mpitest.h"
#define SIZE 100
MPI_Win win;
int win_buf[SIZE], origin_buf[SIZE], result_buf[SIZE];
int do_test(int origin_count, MPI_Datatype origin_type, int result_count,
... |
//0. INFORMATION & NOTES_________________________________________________________________________________________________________________
/////////////////////////
// Lab: Data Networking /
// Name: <NAME> /
// Student ID: 9563426 /
/////////////////////////
//Port A: Analogue inputs from the rotary po... |
#include "params.h"
#include "horst.h"
#include "hash.h"
#include "prg.h"
#include <stdint.h>
#include <stdio.h>
static void expand_seed(unsigned char outseeds[HORST_T*HORST_SKBYTES], const unsigned char inseed[SEED_BYTES])
{
prg(outseeds, HORST_T*HORST_SKBYTES, inseed);
}
int horst_sign(unsigned char *sig, unsigne... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <stdint.h>
#include "vm.h"
void *AX_Memory_Map(Core *core,uint64_t offset)
{
void *address = NULL;
uint64_t max = 0;
if(offset&MEMORY_MAP_WRAM_BEGIN)
{
address = core->mmap.wram;
max = core->mmap.nwr... |
/*
* Copyright (c) 2010 The WebM 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 contributin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.