text stringlengths 3.12k 18.7k |
|---|
/********************************************************************************
* ____________ _ __________ ______ ___ __
* / ____/ ____/ / | / / ____/ / / / __ \/ | / /
* / / __/ / ______ / |/ / __/ / / / / /_/ / /| | / /
* / /_/ / /___ /___... |
/*
* hyptop - Show hypervisor performance data on System z
*
* Hyptop LPAR data gatherer that operates on debugfs
*
* Copyright IBM Corp. 2010, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <errno.h>
#i... |
/*
* Copyright 2012-16 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify... |
/*
* Copyright (c) 1989 - 1994, <NAME>
* Copyright (c) 1996 - 2000, <NAME>
* Copyright (c) 2000 - 2006, <NAME>
* Copyright (c) 2007 - 2011, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
// Licensed to Pioneers in Engineering under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Pioneers in Engineering licenses
// this file to you under the Apache License, Version 2.0 (the
// "License"); you ... |
#include "../python/uwsgi_python.h"
//FIXME: [upstream:python] needs PyAPI_FUNC(void)
#ifdef PYTHREE
extern void Py_GetArgcArgv(int *, wchar_t ***);
#else
extern void Py_GetArgcArgv(int *, char ***);
#endif
extern struct uwsgi_server uwsgi;
extern struct uwsgi_python up;
extern char **environ;
static int new_argc =... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "GRDerror.h"
#include "GRDlexer\GRDlexer.h"
#include "GRDparser\GRDrules.h"
#include "GRDparser\GRDparser.h"
const unsigned int GRD_STACKSIZE = 128;
extern const enum GRDnonTerminal startRule;
extern int parseTable[27][53];
extern int prod... |
#include <libpruio/pruio.h>
#include "common.h"
#include "mqtt_handler.h"
/********************************************************************************
* Custom functions
********************************************************************************/
void cleanup(pruIo* io, pthread_mutex_t* log_lock, rpa_queu... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/* Copyright (C) 1995,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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
... |
/*
* Copyright 2013 University of Chicago and Argonne National Laboratory
*
* 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
*
* Unles... |
#include <errno.h>
#include <limits.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/shm.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#include "tirion.h"
#define TIRION_BUFFER_SIZE 4096
#define TIRION_TA... |
/******************************************************************************
Copyright (c) 2012
Lantiq Deutschland GmbH
For licensing information, see the file 'LICENSE' in the root folder of
this software module.
*************************************... |
/*
* Tiny PI computation
*
* Copyright (c) 2017 <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, ... |
/********************************************************************************
* send_bpsk.c
* @fun Send a command [start bit and stop bit inserted automatically
* command is an array containing the bits to be sent
* command size is the number of bits in the given command to send
* command array: ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file FDCAN/FDCAN_Classic_Frame_Networking/Src/main.c
* @author MCD Application Team
* @brief This sample code shows how to configure the FDCAN peripheral to
* send and receive Cla... |
/*************************************************************************\
* Copyright (C) <NAME>, 2018. *
* *
* This program is free software. You may use, modify, and redistribute it *
* under the terms of the ... |
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include "./comm.h"
#include "./db.h"
#ifdef __APPLE__
#i... |
/**
* @brief FSK modulator/demodulator
*
* This file handles raw modulation and demodulation of bits using continuous-phase
* frequency shift keying (CPFSK). fsk_mod() takes in an array of bytes and produces
* a CPFSK signal in the form of baseband IQ samples. fsk_demod() takes in an array of
* CPFSK IQ samples... |
//
// Monte Carlo simulation routines
//
byte mcs_get_wins(byte skip_tile, byte num_permutations) {
// make a list of empty tiles and add white/black pieces until
// someone wins. Repeat this a number of times, doing a small
// permuation of the list of empty tiles. Return the number
// of wins found fo... |
/*
* Copyright (c) 2013 PADL Software Pty Ltd.
* 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 li... |
/* Copyright (c) 2008 CSIRO
Copyright (c) 2008-2009 Xiph.Org Foundation
Written by <NAME> */
/*
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 copy... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> (tinyusb.org)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
/*
* scr_prsm.c
*
* Microwindows screen driver for the Isicad Prisma diskless workstation
* by <NAME>.
*
* This is mostly 'glue' code, the real work is done by assembler routines
* in asm_prsm.s.
*
* The Prisma has a custom graphics controller with a fixed resolution
* 1280 x 1024, 256 color display. This wou... |
/***************************************
Memory file dumper for the intermediate files containing parsed data.
Part of the Routino routing software.
******************/ /******************
This file Copyright 2008-2013 <NAME>
This program is free software: you can redistribute it and/or modify
it under the term... |
/*
* Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <arch_helpers.h>
#include <bpmp_ipc.h>
#include <common... |
#include "vi3d.h"
#ifdef VI3D_SYS_WIN
#include <malloc.h>
#endif
static int _llfunc_vi_log(lua_State* L) {
size_t cnt = 1;
const char* ptr[128];
int n = lua_gettop(L);
lua_getglobal(L, "tostring");
for (int i = 0; i < n; i++) {
size_t l;
lua_pushvalue(L, -1);
lua_pushvalue(L, i + 1);
lua_call(... |
#include "hex.h"
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include "log.h"
#include "cmd.h"
#define TYPE_DATA 0x00
#define TYPE_EOF 0x01
#define TYPE_EX_SEG_ADDR 0x02
#define TYPE_STRT_SEG_ADDR 0x03
#define TYPE_EX_LIN_ADDR 0x04
#define TYPE_STRT_LIN_ADDR 0x05
#define EEPROM_START... |
#include <string.h>
#include <curses.h>
#include <ctype.h> // for isalnum isprint
#include "cmds.h"
#include "screen.h"
#include "buffer.h"
#include "sc.h" // for rescol
#include "cmds_edit.h"
#include "utils/string.h"
#include "interp.h"
#include "marks.h"
// this macro is used to determinate a word over a WORD
#def... |
/*
* Copyright 2013 <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, publish, distrib... |
/*
* Copyright (c) 2008 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... |
/* Copyright 2016 <NAME>. All rights reserved. Use of this
* source code is governed by a Apache 2.0 license that can be found
* in the LICENSE file.
*/
// Test driver for the different SHT11 conversions.
// Use on host system for verification.
#include <stdio.h>
#include <math.h>
#include <stdio.h>
#include <intt... |
/*
* License for the Ledger Nano S Menu Demo project, originally found here:
* https://github.com/parkerhoyes/nanos-app-menudemo
*
* Copyright (C) 2016 <NAME> <<EMAIL>>
*
* This software is provided "as-is", without any express or implied warranty.
* In no event will the authors be held liable for any damages ar... |
//
// Created by 孙庆耀 on 2018/7/10.
//
#include "handle_login.h"
#include "../../utils/utils.h"
#include "../../config.h"
#include <ksql.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <limits.h>
enum login_state {
LOGIN_SUCCESS,
LOGIN_SUCCESS_... |
/*
* lux OS kernel
* copyright (c) 2018 by <NAME>
*/
#pragma once
#include <types.h>
#include <lock.h>
#define ACPI_GAS_MMIO 0
#define ACPI_GAS_IO 1
#define ACPI_GAS_PCI 2
#define ACPI_MAX_NAMESPACE_ENTRIES 128 // realloc()'d, to save memory
#define ACPI_MAX_PACKAGE_ENTRIES 256 // Package(), VarPackage(... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-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 License, or (at your option) any lat... |
/*---
This software is copyrighted by the Regents of the University of
California, and other parties. The following terms apply to all files
associated with the software unless explicitly disclaimed in
individual files.
The authors hereby grant permission to use, copy, modify, distribute,
and license this software and... |
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 <NAME>
Modified: <NAME>
**********/
#include "ngspice/ngspice.h"
#include "ngspice/smpdefs.h"
#include "ngspice/cktdefs.h"
#include "mos9defs.h"
#include "ngspice/const.h"
#include "ngspice/sperror.h"
#include "ngspi... |
/*******************************************************************************
* main.c
*
* (c)2015 LimiFrog / CYMEYA
* This program is licensed under the terms of the MIT License.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
* Please refer to the License File LICENSE.txt located at ... |
/* vidhrdw/spbactn.c - see drivers/spbactn.c for more info */
/* rather similar to galspnbl.c */
#include "driver.h"
extern data16_t *spbactn_bgvideoram, *spbactn_fgvideoram, *spbactn_spvideoram;
static struct mame_bitmap *tile_bitmap_bg, *tile_bitmap_fg;
/* mix & blend the paletted 16-bit tile and sprite bitmaps in... |
#include "hardware.h"
// MSX...
// master clock MSX2:21.48MHz | MSX1:10.74
// v99xx clock master/4 = 5.37MHz : 2 dots/period MSX2. MSX1: master/2
// CPU clock master/6 = 3.58MHz : 1T = 3 dots MSX2. MSX1: master/3
typedef struct {
int type;
int num;
} mPageNr;
static mPageNr msxMemTab[4][4] = {
{{MEM_ROM, 0}, {... |
/* $OpenBSD: if_wivar.h,v 1.24 2004/03/18 16:16:10 millert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* <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. Redistribu... |
/*
* This file is part of wl12xx
*
* Copyright (C) 2008 Nokia Corporation
*
* 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.
*
* This program is distributed in the hope that it... |
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
int sd_indexbegin(sdindex *i, sr *r, uint64_t offset)
{
int rc = ss_bufensure(&i->i, r->a, sizeof(sdindexheader));
if (ssunlikely(rc == -1))... |
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
void merge(int *a, int l, int m, int r);
void sequential_merge(int *a, int l, int r);
int main(int argc, char *argv[])
{
int i,n, rank, size ;
MPI_Status status;
MPI_Init(&argc,&argv); //the first arg be no of element, and then enter your a... |
/*
* lin1d3_driver.c
*
* Created on: Sep 14, 2018
* Author: Nico
*/
#include "lin1d3_driver.h"
#include <string.h>
#include <fsl_debug_console.h>
#define master_stack_size_d (256)
#define master_task_priority (configMAX_PRIORITIES - 1)
#define master_queue_size_d (8)
#define slave_stack_size_d (256)
#defin... |
/* wnvald.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__0 = 0;
/* $Procedure WNVALD ( Validate a DP window ) */
/* Subroutine */ int wnvald_(integer *size, in... |
#include "createPubKey.h"
#include "walletImportFormat.h"
#include <ctype.h>
#include <secp256k1.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <unistd.h>
static secp256k1_context *ctx = NULL;
/* Create private & public address pair */
int gen_keypair(unsigned char *seckey, ... |
#include <errno.h>
#include <libgen.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/wait.h>
#include "../config.h"
#include "dir.h"
#include "io.h"
#include "simple-getopt.h"
#include "utils.h"
typedef enum { MEME_FORMAT, TRANSFAC_FORMAT } MOTIF_FORMAT_T;
VERBOSE_T verbosity = NORMAL_VERBO... |
// fat12.c
// A FAT12 "minidriver". Basically just a practicerun...
#include <tros/fs/vfs.h>
#include <tros/fs.h>
#include <tros/tros.h>
#include <tros/memory.h>
#include <tros/klib/kstring.h>
#define FAT12_DIR_MAX 16
#define FAT12_BPS 512
#define FAT12_SECT_OFFSET 33
typedef struct
{
unsigned char bootstrap[3]... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <stdbool.h>
#include <sys/mman.h>
#include <signal.h>
#include "functions.h"
// utils.c
void whereami(char *);
int parse_args(char *, char **, int)... |
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <time.h>
#include <sys/stat.h>
#include <math.h>
#include "ook.h"
//
// Data format comes from http://makin-things.com/articles/decoding-lacrosse-weather-sensor-rf-transmi... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "des.h"
#include "des_internals.h"
//
// Utils
//
void PrintBlockHex (
const char* label,
const uint8_t* block,
const uint32_t block_size
)
{
#ifdef DEBUG
printf("%15s: ", label);
fo... |
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
struct toc_item {
char *contents;
char *anchor;
int depth;
int list_num;
};
void die(const char *s)
{
perror(s);
exit(EXIT_FAILURE);
}
struct out_buf {
char *buffer;
size_t len;
};
void outbuf_appe... |
#include <stdlib.h>
#include <stdio.h>
#include "../help.h"
#define V 7
#define PATH_GOOD 1
#define PATH_BAD 0
#define NOT_VISITED -1
#define VISITING -2
/* Compile with: gcc -o graph graph.c ../help.c */
typedef struct a {
int dest;
struct a *next;
}*List;
typedef List Graph[V];
/* (V,E)
V -> Amount ... |
#include "gplua2x.h"
#include "SDL/SDL.h"
#include <stdlib.h>
#include <unistd.h>
#include "graphics.h"
#include "ui.h"
#ifdef GP2X
#include <lua5.1/lauxlib.h>
#include <lua5.1/lualib.h>
#elif FREEBSD
#include <lua51/lauxlib.h>
#include <lua51/lualib.h>
#elif MACOSX
#include <lauxlib.h>
#include <lualib.h>
#else
#inc... |
/*
* Copyright (C) 2018 Marvell International Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses
*/
#include <assert.h>
#include <debug.h>
#include <mmio.h>
#include <arch_helpers.h> /* for cache maintanance operations */
#include <platform_def.h>
#include <delay_timer.h>
#include <pl... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2019, k4m1 <<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:
*
* * Redistributions of source code must retain the above copyright no... |
/* ************************** */
/* ************************** */
/* ******* ******* */
/* ****** phylocom ****** */
/* ******* ******* */
/* ************************** */
... |
/*
* FreeRTOS Kernel V10.0.1
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, includ... |
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
#include <sys/stat.h>
#include "clipboard.h"
#include "connection.h"
#include "util... |
#undef NDEBUG
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "json.h"
#include "json_helpers.h"
#include "json_out.h"
static unsigned char tmp1[4096];
static unsigned char tmp2[4096];
static void json_msg_cb(void *opaque, size_t loc, ... |
/*
* main.c Main Code Module
*
* Pico Balloon Tracker using HC12 radio module and GPS
* HC12 Module with STM8S003F3 processor and silabs Si4463 Radio
*
* This Branch is for build with TCXO Oscillator only
* includes enable of TCXO, 32MHz Clock and config changes to Si4463
*
* Derived Work Copyright (c) 2018 Imperia... |
/******************************************************************************
* @file main.c
* @brief Nano1xx I2C Driver Sample code
* @version 1.0.1
* @date 04, September, 2012
*
* @note
* Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights reserved.
******************************... |
/* BACnet implementation of an Edgex device service using C SDK */
/*
* Copyright (c) 2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "edgex/devsdk.h"
#include "edgex/device-mgmt.h"
#include <unistd.h>
#include <signal.h>
#include <bacapp.h>
#include <device.h>
#include <bacnet.h>
#incl... |
/* The MIT License
Copyright (C) 2015 zz_zigzag <<EMAIL>>
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
#define PACKAGE_VERSION "0.1.1"
typedef struct
{
char *chr;
char *ref, *alt;
int brk1, brk2, len;
char type; //D:... |
/*! \file
* \brief Calculate the timing for the camera
* \author <NAME>
*/
#include "e_po8030d.h"
#include "../../motor_led/e_epuck_ports.h"
#include "../../I2C/e_I2C_protocol.h"
#include "../../motor_led/e_init_port.h"
#define ARRAY_ORIGINE_X 68
#define ARRAY_ORIGINE_Y 4
#define IRQ_PIX_LAT 1
/... |
/*
* 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
* distribut... |
/******************************************************************************/
/* Files to Include */
/******************************************************************************/
/* Device header file */
#if defined(__XC16__)
#include <xc.h>
#elif def... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "base64.h"
//Test values
///////////////////////////////////////////////////////////////
#define STRING_A "9TrJ"
#define STRING_B "9TrJUQ=="
#define STRING_C "9TrJUfA="
#define HEXNUM_A {0xF5,0x3A,0xC9}
#define HEXNUM_B {0xF5,0x3A,0xC9,0x51}
#define... |
#include <stdio.h>
#include <lua.h>
#include <lauxlib.h>
#include "lib_email/src/SmtpConnection.h"
#include "lib_email/src/ImapConnection.h"
/**
* \brief
* Wrapper for the function that creates a SmtpConnection.
* Parameters from the interpreter:
* 1) smtp flag (boolean)
* 2) ip (string)
* 3) port (number)
* ... |
/**
* @file console_codes.h
* @brief Console control codes definition
* @author EggCar
*/
/**
* MIT License
*
* Copyright (c) 2020 Eggcar(eggcar at qq.com or eggcar.luan at gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated document... |
/*
* Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2015-2016 Cryptography Research, Inc.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source dis... |
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <stdbool.h>
#include <math.h>
#include <stdint.h>
#include <string.h>
#include "nova_utility.h"
static struct TextureMap *CreateTextureMapFromFile(char *file_name);
static bool CreateMaterialsFromFile(char *file_name, struct Mesh *mesh);
static void... |
/*
This file is part of ParTI!.
ParTI! 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 your option) any later version.
ParTI! is distributed... |
/*
* Copyright (c) 2017 CVTE RX. Inc. All Rights Reserved.
*/
/** @file
* PAL RTC software functions.
*
* @author ZhangXiangLong
* @version 1.0
*/
#include <time.h>
#include <unistd.h>
#include "../itp_cfg.h"
/********************************************
* MACRO defination
**************************************... |
/*********************************************************************/
/*** Finding parameters of the cubic transformation ***/
/*** using the Newton algorithm applied to ***/
/*** the least-square function ***/
/*** ... |
/* $Id: xprotos.h,v 1.1.1.1 2003/07/21 16:18:42 pturner Exp $
*
* Prototypes involving X
*
*/
void set_actioncb(Widget w, XtPointer client_data, XtPointer call_data);
void bailout(void);
void autoscale_proc(Widget w, XtPointer client_data, XtPointer call_data);
void autoticks_proc(Widget w, XtPointer client_data, ... |
#include "ssh.h"
static void
recv_ssh_smsg_public_key(Conn *c)
{
Msg *m;
m = recvmsg(c, SSH_SMSG_PUBLIC_KEY);
memmove(c->cookie, getbytes(m, COOKIELEN), COOKIELEN);
c->serverkey = getRSApub(m);
c->hostkey = getRSApub(m);
c->flags = getlong(m);
c->ciphermask = getlong(m);
c->authmask = getlong(m);
free(m);
}
... |
/*
* Copyright (c) Bridgetek Pte Ltd
*
* THIS SOFTWARE IS PROVIDED BY BRIDGETEK PTE LTD "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* BRIDGETEK PTE LTD BE LIABLE F... |
/*
* Copyright (c) 2016 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except i... |
#include "processManagement_lab.h"
/**
* The task function to simulate "work" for each worker process
* TODO#3: Modify the function to be multiprocess-safe
*/
void task(long duration)
{
// Simulate computation for x number of seconds
usleep(duration*TIME_MULTIPLIER);
// TODO#3: Protect the access of s... |
/*
* Shared library hack to translate evdev keycodes to old style keycodes.
*/
#include <stdio.h>
#include <unistd.h>
#include <dlfcn.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
static int (*real_XNextEvent)(Display *, XEvent *) = NULL;
static KeyCode (*real_XKeysymToKeycode)(Display *, KeySym) = NULL;
static ... |
/*-
* Copyright (c) 2011 <NAME>
* Copyright (c) 2011 <NAME>
* Copyright (c) 2011-2012 <NAME>
* Copyright (c) 2012 SRI International
* Copyright (c) 2014 <NAME>
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL cont... |
/*
* 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 <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <mpi.h>
#include <sys/resource.h>
/*#include "print_mpi_resources.h"*/
char hostname[256];
char* hostnames;
char VERS[] = "1.5";
/* =============================================================
* TIMER MACROS
* These macros start/stop the timer an... |
/*
* Portions Copyright 1994-2004 The PL-J Project. All rights reserved.
* Portions Copyright © 2016-Present Pivotal Software, Inc.
*/
/* Postgres Headers */
#include "postgres.h"
#include "utils/builtins.h"
#include "utils/syscache.h"
#include "catalog/pg_proc.h"
#ifdef PLC_PG
#pragma GCC diagnostic push
#pragma GCC... |
/****
Copyright (C) 1996 McGill University.
Copyright (C) 1996 McCAT System Group.
Copyright (C) 1996 ACAPS Benchmark Administrator
<EMAIL>
This program is free software; you can redistribute it and/or modify
it provided this copyright notice is maintained.
This program... |
// 0x0700A928 - 0x0700A940
static const Lights1 ttm_seg7_lights_0700A928 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0700A940 - 0x0700A9C0
static const Vtx ttm_seg7_vertex_0700A940[] = {
{{{ 80, 654, -199}, 0, { 308, 138}, {0x39, 0xf5, 0x70, 0xff}}},
{{{ ... |
/*********************************FILE__HEADER*********************************\
* File: hash.c
* Author: <NAME>
* Date: 09-06-2021
* Code Reviewer: <NAME>
* Version: 1.0
* Description: Hash Map implementation tests file.
\****************... |
typedef struct BD BD;
typedef struct Ring Ring;
typedef struct MALdev MALdev;
typedef struct I2Cdev I2Cdev;
enum
{
/* 405EP UIC interrupt vectors (IBM bit numbering) */
VectorUIC= 0,
VectorUART0=VectorUIC,
VectorUART1,
VectorIIC,
VectorPCIECW,
VectorRsvd1,
VectorDMA0,
VectorDMA1,
VectorDMA2,
Vector... |
/* =============================================================================
* Copyright (c) Texas Instruments Incorporated 2018
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions o... |
/*
Auteur : <NAME>
Date : 26/02/2020
But : -implémenter un outil qui résoud n'importe quelle grille de sudoku faisable en utilisant l'algorithme de backtracking
-donner un algorithme qui génère des grilles de sudoku valables (avec une seule solution)
-permettre à l'utilisateur de rentrer une ... |
// swmm5_iface.c
//
// Example code for interfacing SWMM 5 with C/C++ programs.
//
// Remember to #include the file swmm5_iface.h in the calling program.
#include <stdio.h>
#include <windows.h>
#include "swmm5.h"
int SWMM_Nperiods; // number of reporting periods
int SWMM_FlowUnits; ... |
/*
* ECE 3849 Lab2 project
*
* <NAME> 9/13/2017
* <NAME> 4/2020
*/
/* XDCtools Header files */
#include <xdc/std.h>
#include <xdc/runtime/System.h>
#include <xdc/cfg/global.h>
/* BIOS Header files */
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <stdint.h>
#include <stdbool.h>
#inc... |
/*
* Copyright (C) 2008-2016 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this lis... |
/* $NetBSD: kimpersonate.c,v 1.1.1.2 2014/04/24 12:45:28 pettai Exp $ */
/*
* Copyright (c) 2000 - 2007 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... |
#include <kore/kore.h>
#include <kore/http.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include "assets.h"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <semaphore.h>
/*
* Handles uploading, and transcoding of assets
* Will broadcast transcoding progress over websocket
... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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, co... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "iodefine.h"
#include "lcd_driver.h"
#define KITTEN_BITMAP_WIDTH_PIXELS 150U
#define KITTEN_BITMAP_HEIGHT_PIXELS 137U
void system_clock_config(void);
void setup_dma_button_trigger(void);
volatile uint32_t sections; /* how many sections t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.