text stringlengths 3.12k 18.7k |
|---|
#include "common/externalHeaders/externalHeaders.h"
#include "common/ptrs/ptrs.h"
#include "dex/dexNumbers/dexNumbers.h"
#include "pk/names/names.h"
#include "text/toAscii/toAscii.h"
#include "graphics/pictures/bankSwitch/bankSwitch.h"
#include "dex/dexInfo/dexInfo.h"
#include "pk/stats/stats.h"
#include "graphics/pic... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#include <string.h>
#include <stdbool.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <errno.h>
#include "2310util.h"
#define INITIAL_BUFFER_SIZE 10
#define MIN_ARGC 5
#define STD_RULES_FILE "standard.rules"
#def... |
/* Helper file for declaring TCG helper functions.
Should be included at the start and end of target-foo/helper.h.
Targets should use DEF_HELPER_N and DEF_HELPER_FLAGS_N to declare helper
functions. Names should be specified without the helper_ prefix, and
the return and argument types specified. 3 basic... |
/*
* The original plgndr function was implemented using some code from
* Numerical Recipes in C. However, it was not allowed to release that code
* as open source. The new implementation below is using some code from
* the GNU Scientific Library (http://www.gnu.org/software/gsl).
*
* Copyright (C) 2002-2006 ... |
/*
* base64 utilities
*
* ##ย Authors
*
* The Veracruz Development Team.
*
* ## Licensing and copyright notice
*
* See the `LICENSE_MIT.markdown` file in the Veracruz root directory for
* information on licensing and copyright.
*
*/
#include "base64.h"
#include <kernel.h>
#include <string.h>
// convenience... |
/*
* Copyright 2015 Big Switch Networks, Inc
*
* 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 ... |
/*
* 1802 assembler.
*
* Tables
*/
#include "as.h"
SYM sym[] = {
{ 0, "defb", TDEFB, XXXX },
{ 0, "defw", TDEFW, XXXX },
{ 0, "defs", TDEFS, XXXX },
{ 0, "db", TDEFB, XXXX },
{ 0, "dw", TDEFW, XXXX },
{ 0, "ds", TDEFS, XXXX },
{ 0, "defm", TDEFM, XXXX },
{ 0, "org", TORG, XXXX },
{ 0, "eq... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define __USE_ISOC11
#include <time.h>
#include "ipfs/namesys/routing.h"
#include "ipfs/util/time.h"
#include "multihash/multihash.h"
#include "ipfs/namesys/pb.h"
#include "ipfs/namesys/namesys.h"
#include "ipfs/cid/cid.h"
#include "ipfs/path/path.h"
#include "... |
/*
* Copyright 1993 Network Computing Devices, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permissi... |
/*
* MIT License
*
* Copyright (c) 2020-2021 11037650 Canada 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 u... |
#include "includes.h"
#include "oas.h"
static struct rule *rules = NULL;
static struct config *conf = NULL;
static char *cmdline = NULL;
static void suffix2mask(int suffix, unsigned char *mask)
{
char mhs[50];
int restbitcount = suffix;
// initialize each byte with 0
// >= 8 set all bits
// 7-1 use mapped value
... |
#include "arguments.h"
#include "sequences.h"
const char *argp_program_bug_address =
"<<EMAIL>>";
/* Program documentation. */
static char doc[] =
"\nSWIMM is a software to accelerate Smith-Waterman protein database search on Intel heterogeneous architectures based on Xeon and Xeon Phi processors";
voi... |
/* Socket server for PandA. */
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <unistd.h>
#include <signal.h>
#include <ctype.h>
#include "error.h"
#include "hardware.h"
#include "parse.h"
#include "config_server.h"
#include "socket_server.h"
#include "data... |
/* $NetBSD: mba.c,v 1.25 2000/07/10 09:14:32 ragge Exp $ */
/*
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
* 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. Redistrib... |
/**
* @author ejrbuss
* @date 2017
*/
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <time.h>
#include "filestream.h"
#include "netconfig.h"
#include "util.h"
/* ... |
/** Debug Font Test submenu.
*/
#include "main.h"
#include "revolution/pad.h"
#define TEXT_MENU_XPOS 16
#define TEXT_MENU_YPOS 48
#define TEXT_MENU_WIDTH 128
#define TEXT_MENU_HEIGHT 270
GameLanguageEnum prevLanguage = -1;
u8 curPhrase = 0;
u8 cursor = 3; //digit (left to right)
bool useWindow = true;
static bool i... |
/*
* Copyright (c) 2005 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 (c) 1988 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Computer Consoles Inc.
*
* %sccs.include.redist.c%
*
* @(#)cyreg.h 7.8 (Berkeley) 06/28/90
*/
/*
* Tapemaster controller definitions.
*/
/*
* Wit... |
//#include "bsp_hwtimer.h"
//static rt_sem_t bsp_sem = RT_NULL; /* ๅฎไนไฟกๅท้ */
///***************************************************************
//* ๅฝๆฐ๏ผ static rt_err_t bsp_hwtimer_cb(rt_device_t dev, rt_size_t size)
//* ๅๆฐ๏ผ dev ็กฌไปถๅฎๆถๅจ่ฎพๅคๅฅๆ
//* size ้ฟๅบฆ
//* ่ฟๅๅผ๏ผ0
//* ๅ่ฝ๏ผ ็กฌไปถๅฎๆถๅจ่ถ
ๆถๅ่ฐๅฝๆฐ๏ผ้ๆพไฟกๅท้
//********... |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
#include <stdio.h>
#include <math.h>
#include <ccore/display.h>
#include <ccore/window.h>
#include <ccore/opengl.h>
#include <ccore/time.h>
#include <ccNoise/ccNoise.h>
#include <ccRandom/ccRandom.h>
#ifdef WINDOWS
#include <gl/GL.h>
#else
#include <GL/glew.h>
#endif
#define WIDTH 512
#define HEIGHT (256 + 128)
#... |
/*
Routines for ImageEntry_Open/Close
Copyright (C) 2003 <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, modif... |
#include <linux/ptrace.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/module.h>
#include <asm/leon.h>
#define DEBUG_CONFIG
#define _printk(p) printk p
/*#ifdef DEBUG_CONFIG
#define DBG_printk(p) do { char b[1024]; sprintf p; console_print_LEON(b); } while (0)
#else... |
/*
* Copyright (c) 1996-2001 <NAME>.
* See README file for details.
*/
#include "local.h"
/*
preplot(): interpolates the fit to a new set of points.
lf -- the fit structure.
des -- design structure; really only needed for parfit.
x -- the points to predict at.
f -- vector to return the predictions.
... |
#include "rampr.h"
//
// Distribution
//
struct rampr_distribution_t * rampr_init_distribution ( const double * radii, unsigned nr_total ) {
//
// Memory allocation
//
// Try to allocate the struct and check for success
struct rampr_distribution_t * dist = malloc( sizeof(struct rampr_distrib... |
void audiosys_callback(void *userdata, uint8_t *stream, int stream_bytes)
{
int ib;
audiosys_t *sys = (audiosys_t *) userdata;
double now = get_time_hr();
memset(stream, 0, stream_bytes);
rl_mutex_lock(&sys->mutex);
for (ib=0; ib < sys->bus_count; ib++)
{
// Check expiry
if (sys->bus[ib].on)
if (now - ... |
/*
* Copyright (C) 2021 Red Hat Inc.
*
* Author:
* <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 (at your option)... |
/******************************************************************************
Copyright (C) 2011-2012 by <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 restri... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "../port/error.h"
typedef struct IOMap IOMap;
struct IOMap
{
IOMap *next;
char tag[13];
ulong start;
ulong end;
};
static struct
{
Lock;
IOMap *m;
IOMap *free;
IOMap maps[32]; // some initial f... |
/*
Copyright (c) 2009-2014 <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... |
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <asm/types.h>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/if_arp.h>
#include "arp_db.h"
#de... |
// Taken and modified from the original by <NAME> which is in the public
// domain. It has been modified by <NAME>, <NAME>, <NAME>,
// and now <NAME>.
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "sha1.h"
typedef struct {
uint32_t h0;
uint32_t h1;
uint32_t h2;
uint32_t... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
//Change input size accordingly to your needs
#define wdim 50
#define input_size 8
#define output_size 8
#define hidden_layers_number 8
#define hidden_layers_size 8
#define learning_rate 10
//Output file to save the layers
FILE... |
// getaddrinfo.h
// wrappers for getaddrinfo() and freeaddrinfo()
// see copyright notice at end of file
// NOTE: please don't wrap this whole file in any conditional
// compilation directives; instead wrap the #include line in
// netdb_wrappers.h
// sm: This is my attempt to write a wrapper for getaddrinfo ... the
... |
//Autoren: <NAME>
//<NAME>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <time.h>
#define SRV_PORT 7777
void client(int argc, char** argv);
void server(char** arg... |
/*
* cryptsetup kernel RNG access functions
*
* Copyright (C) 2010-2019 Red Hat, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the Lic... |
/*
* Copyright (c) 2002-2013 Balabit
* Copyright (c) 1998-2013 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any... |
/*
* This demonstrates calling RETRO code from C.
*
* Assuming this is named `demo.c`:
*
* (1) Prepare a demo image:
*
* cp ngaImage demoImage
* retro-extend demoImage demo.c
*
* (2) Build:
*
* make demo
*
* (3) Run:
*
* ./demo
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
#include "base_includes.h"
#include "cw_DIGITALLED.h"
#define DEBUG_LOG 0
#if DEBUG_LOG
static const char* TAG = "DIGITALLED";
#endif
#define state_cw_INIT 1
struct cw_DIGITALLED_Vars {
struct cw_DIGITALLED *m;
unsigned int l_INIT;
Value *l_b;
Value *l_g;
Value *l_max;
Value *l_position;
Value *l_r;
unsigned ... |
/* lcd_keypad_m2560.c
* C driver for SainSmart "LCD Keypad" Shield on Mega2560 Baseboard
* V1.0, (c) 2015, <NAME> (cleanup lcd timing and refactoring in C)
* Derived from Arduino C++ keypad_lcd library (LCD4Bit_mod.cpp)
* Remark: neither author nor license condition are known for Arduino lcd_keypad library
*/... |
/*
* Copyright (c) 2018 SiFive Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
LOG_MODULE_REGISTER(pwm_sifive, CONFIG_PWM_LOG_LEVEL);
#include <sys/sys_io.h>
#include <device.h>
#include <drivers/pwm.h>
/* Macros */
#define PWM_REG(z_config, _offset) ((mem_addr_t) ((z_config)->base + _... |
// This file contains definitions for the
// x86 memory management unit (MMU).
// Eflags register
#define FL_IF 0x00000200 // Interrupt Enable
// Control Register flags
#define CR0_PE 0x00000001 // Protection Enable
#define CR0_WP 0x00010000 // Write Protect
#define CR0_PG ... |
/* Audio tab */
#include "brut.h"
GtkWidget *sndstat;
GtkWidget *mxgrid;
/* Functions */
//void mixer();
static gboolean is_default(char *);
static void cleanup_audio();
static void vol_changed(GtkWidget *item, GtkWidget *);
static void sndstat_changed(GtkButton *, gpointer);
static GtkWidget *CreateRadio (GtkWidget ... |
/* mncloc.f -- translated by f2c (version 19961017).
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__1 = 1;
/* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc */
/* c ... |
/*
* The MIT License
*
* Wavefront Alignments Algorithms
* Copyright (c) 2017 by <NAME> <<EMAIL>>
*
* This file is part of Wavefront Alignments Algorithms.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentati... |
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of the srsLTE library.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Soft... |
// SPDX-License-Identifier: GPL-2.0-or-later
/* AFS silly rename handling
*
* Copyright (C) 2019 Red Hat, Inc. All Rights Reserved.
* Written by <NAME> (<EMAIL>)
* - Derived from NFS's sillyrename.
*/
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/namei.h>
#include <linux/fsnotify.h>
#include "in... |
/*
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#define SHA1_BLOCK_INTS 16
#define SHA1_BLOCK_SIZE_BYTES 64
#define SHA1_DIGEST_SIZE 5
#define BIG_ENDIAN_32(X) (((X) << 24) | (((X) << 8) & 0xff0000) | (((X) >> 8) & 0xff00) | ((X) >> 24))
static void
sha1_buffer_to_block(const char* buffer, int length, uin... |
/*โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ File: aux.c โ
โ Author: <NAME> (94230) โ
โ Description: Contem as funcoes auxiliares โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
*/
#include "aux.h"
/*le os argumentos do stdin para a variavel global args... |
/*
* This 'Tiny Web Serverโ is derived from nweb, which was developed
* by <NAME> and published at
* https://www.ibm.com/developerworks/systems/library/es-nweb/index.html.
*
* The web server was released under the IBM License Agreement.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno... |
/* Modules built-in */
#include <stdio.h> /* E/S comme printf */
#include <unistd.h> /* Primitives systรจmes comme fork ! */
#include <stdbool.h> /* Boolรฉens */
#include <stdlib.h> /* exit */
#include <sys/wait.h> /* wait */
#include <string.h> /* chaine en C */
#include <errno.h> /* Pour les messages d'err... |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (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 distribution or at
* https://www.openssl.org/source/lice... |
/* mbed Microcontroller Library
* Copyright (c) 2017-2017 ARM Limited
*
* 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
*
* ... |
#include <stdio.h>
#include <stdlib.h>
#include "mx_osdef.h"
#include "mx_util.h"
#include "mx_thread.h"
#include "mx_semaphore.h"
#define EXTRA_DEBUGGING FALSE
#define SEMAPHORE_INITIAL_VALUE 2
#define NUM_CHILD_THREADS 4
#define PARENT_SLEEP_SECONDS 2.0
#define CHILD_SLEEP_SECONDS 10.0
MX_SEMAPHORE *semapho... |
/*
* Copyright (c) 2004 Topspin Communications. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this s... |
/*
*
* infer.c
*
* Created at: Mon Aug 24 14:48:17 2015 14:48:17
*
* Author: <NAME> <<EMAIL>>
*
* License: please visit the LICENSE file for details.
*
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#include "env.h"
#include "infer.h"
#include "node.h"
#include "type.h"... |
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// This program is free software; you can redistribute it
// and/or modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
#in... |
/**
******************************************************************************
* @file pid.c
* @version V1.0.0
* @date 2016ๅนด11ๆ11ๆฅ17:21:36
* @brief ๅฏนไบPID๏ผ ๅ้ฆ/ๆต้ไน ๆฏๆงๅซget/measure/real/fdb,
ๆๆ่พๅ
ฅไธ่ฌๅซset/target/ref
*******************************************************************************... |
/*
* @(#)main.c 3.27 (Berkeley) 6/15/81
*
* Rogue: Exploring the Dungeons of Doom
* Copyright (C) 1980, 1981 <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* See the LICENSE file for full copyright and licensing information.
*/
#include <sys/stat.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#... |
/*
* QEMU Cirrus CLGD 54xx VGA Emulator.
*
* Copyright (c) 2004 <NAME>
* Copyright (c) 2004 <NAME> (suzu)
*
* 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... |
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <stdio.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <asm/types.h>
#include <linux/netlink.h>
#include <linux/socket.h>
#include <errno.h>
#define... |
#include <stdint.h>
#include <math.h>
#include "fsl_misc_utilities.h"
#include "fsl_device_registers.h"
#include "fsl_i2c_master_driver.h"
#include "fsl_spi_master_driver.h"
#include "fsl_rtc_driver.h"
#include "fsl_clock_manager.h"
#include "fsl_power_manager.h"
#include "fsl_mcglite_hal.h"
#include "fsl_port_hal.h"
... |
/* ========================================================================== */
/* === umfpack_solve ======================================================== */
/* ========================================================================== */
/* -------------------------------------------------------------------------... |
/* WiFi Connection Example using WPS
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
/*
... |
/**
* @file oval_collection.c
* \brief Open Vulnerability and Assessment Language
*
* See more details at http://oval.mitre.org/
*/
/*
* Copyright 2009--2013 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the te... |
/*
* cbmdos.c - Common CBM DOS routines.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... |
/*
Copyright (C) <NAME> 2002
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 distribut... |
/**
* @file ipv4_address.c
* @author <NAME> <<EMAIL>>
* @brief ietf-inet-types ipv4-address type plugin.
*
* Copyright (c) 2019-2021 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain ... |
// Copyright 2014-2015 <NAME>
// MIT licensed (see LICENSE for details)
#include <libgen.h> // basename(3)
#include <limits.h>
#include <signal.h>
#include <unistd.h> // Work around bad includes in libtls
#include <tls.h>
#include <async/http/HTTPServer.h>
#include "../util/fts.h"
#include "../util/raiserlimit.h"
#inc... |
/* $NetBSD: subr_log.c,v 1.17 1998/08/18 06:27:01 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 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
*... |
/*
* mainloop.c -- The TPM Emulator's main processing loop
*
* (c) Copyright IBM Corporation 2014, 2015, 2016
*
* Author: <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
*... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include "client.h"
#include "hash.h"
#include "signature.h"
// --- Function declaration
int auth();
void *client_loop(void *);
int test_connection();
int sanitize_rea... |
// SPDX-License-Identifier: GPL-2.0-or-later
/* Test the statx() system call.
*
* Note that the output of this program is intended to look like the output of
* /bin/stat where possible.
*
* Copyright (C) 2015 Red Hat, Inc. All Rights Reserved.
* Written by <NAME> (<EMAIL>)
*/
#define _GNU_SOURCE
#define _ATFIL... |
#include <math.h>
/* Log gamma function
* \log{\Gamma(z)}
* AS245, 2nd algorithm, http://lib.stat.cmu.edu/apstat/245
*/
double kf_lgamma(double z)
{
double x = 0;
x += 0.1659470187408462e-06 / (z+7);
x += 0.9934937113930748e-05 / (z+6);
x -= 0.1385710331296526 / (z+5);
x += 12.50734324009056 / (z+4);... |
/***************************************************************************
*
Copyright 2013 CertiVox IOM Ltd. *
*
This file i... |
/*******************************************************************************
*
* Function to write WINEPS AFM data structures as C
*
* Copyright 2001 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published... |
typedef signed long long int64;
typedef signed int int32;
typedef signed short int int16;
typedef signed char int8;
typedef unsigned long long uint64;
typedef unsigned int uint32;
typedef unsigned short int uint16;
typedef unsigned char uint8;
typedef float float32;
typedef double float64;
int8 int8_mul_int8_eq_int8(i... |
#include <stdlib.h>
#include <limits.h>
#include "shogi.h"
static int read_rest_list( tree_t * restrict ptree,
unsigned int * restrict pmove_list );
static int is_move_rest( unsigned int move,
const unsigned int * restrict pmove_restraint );
int
make_root_move_list( tree_t * restrict ptree, int flag )
{
... |
#ifdef BCMHOST
#include "bcm_host.h"
#endif
#include <EGL/egl.h>
#include <stdbool.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdio.h>
#include <string.h>
#include "../gl/gl.h"
// defines yoinked from Mesa glx.h
#define GLX_VERSION_1_1 1
#define GLX_VERSION_1_2 1
#define GL... |
/* ----------------------------------------------------------------------
MR-MPI = MapReduce-MPI library
http://www.cs.sandia.gov/~sjplimp/mapreduce.html
<NAME>, <EMAIL>, Sandia National Laboratories
Copyright (2009) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporat... |
#include <fontconfig/fontconfig.h>
#include <unistd.h>
#include <font.h>
static struct cache cache;
void font_init() {
FcConfig* config = FcInitLoadConfigAndFonts();
FcPattern *pattern = FcNameParse((const FcChar8 *)(options.font_family));
FcConfigSubstitute(config, pattern, FcMatchPattern);
FcDefaultSubst... |
#include <defs.h>
#include <stdio.h>
#include <string.h>
#include <kmalloc.h>
#include <list.h>
#include <fs.h>
#include <vfs.h>
#include <dev.h>
#include <sfs.h>
#include <inode.h>
#include <iobuf.h>
#include <bitmap.h>
#include <error.h>
#include <assert.h>
static int
sfs_sync(struct fs *fs) {
struct sfs_fs *sfs... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
#include "pcap.h"
#include "dnet.h"
#include "prtlog.h"
void printMagic(int num){
if (num == PCAP_MAGIC){
printf("PCAP_MAGIC... |
/*
Copyright (c) 2021 <NAME>. See the COPYRIGHT
file at the top-level directory of this distribution.
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. T... |
/*
* 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... |
/*
* 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... |
/*-
* Copyright (c) 2017--2018 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/*
* tkhash_vectors.h
* TKIP Key Hash test vectors
*
* Copyright (C) 2012, Broadcom Corporation
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
* the contents of this file may not be disclosed to third parties, copied
* or duplicated in any form, in whole or in ... |
/*
* Based on https://github.com/hathach/tinyusb/tree/master/examples/device/webusb_serial
*
* The MIT License (MIT)
*
* 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 restrict... |
/* System dependent declarations.
Copyright (C) 1988-1989, 1992-1995, 1998, 2001-2002, 2004, 2006, 2009-2013,
2015-2018 Free Software Foundation, Inc.
This file is part of GNU DIFF.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licens... |
/**************************************************************************//**
* @file main.c
* @version V1.00
* @brief This sample code performs how to use software to simulate RTC.
* In power down mode, using the Timer to wake-up the MCU and add RTC value per second.
*
* SPDX-License-Identifi... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
******************************************************************************/
#ifdef HAVE_... |
#include "geminc.h"
#include "gemprm.h"
#define HEADER_LINE 1
#define SUBHEADER_LINE 2
#define SEGBGN_LINE 3
#define DATA_LINE 4
static int whatline ( unsigned char *line );
static void maxmin ( float *plat, float *plon, int npts,
float *maxlat, float *minlat,
float *maxlon, float *minlon )... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/lib/crypto/rsa_3072/rsa_3072_verify.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/base/macros.h"
#include "sw/... |
/* Copyright (C) 2011 <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; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY ... |
/*-------------------------------------------------------------------------
*
* nodeSetOp.c
* Routines to handle INTERSECT and EXCEPT selection
*
* The input of a SetOp node consists of tuples from two relations,
* which have been combined into one dataset and sorted on all the nonjunk
* attributes. In additio... |
/**
* \file drm_memory_debug.h
* Memory management wrappers for DRM.
*
* \author <NAME>. (<NAME> <<EMAIL>>
* \author <NAME> <<EMAIL>>
*/
/*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is he... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2019-2020,2022 The Pybricks Authors
#include <dirent.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <pbio/color.h>
#include <pbio/config.h>
#include <pbio/iodev.h>
#include <pbio/port.h>
#include <ev3dev_stretch/lego_motor.h>
#include <ev3dev_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.