text stringlengths 5.8k 28.2k |
|---|
#include "types.h"
#include "stat.h"
#include "defs.h"
#include "param.h"
#include "traps.h"
#include "spinlock.h"
#include "sleeplock.h"
#include "fs.h"
#include "file.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
// TODO return actual size from read file operations written (if it's sm... |
/*
* 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... |
/*
* Linux IEEE 802.15.4 ping tool
*
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* 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 I... |
/* 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, modify, merge, publish... |
/* nomarch 1.4 - extract old `.arc' archives.
* Copyright (C) 2001-2006 <NAME>. See main.c for license details.
*
* Modified for xmp by <NAME>, Aug 2007
* - add quirks for Digital Symphony LZW packing
* - add wrapper to read data from stream
*
* readlzw.c - read (RLE+)LZW-compressed files.
*
* This is... |
/*
mtr -- a network diagnostic tool
Copyright (C) 1997,1998 <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 ... |
#include <endian.h>
#include <inttypes.h>
#include <hal/atomic.h>
#include <hal/thread.h>
#include <hal/watchdog.h>
#include <fsw/clock.h>
#include <fsw/debug.h>
#include <fsw/telemetry.h>
enum {
TLM_MAX_ASYNC_CLIENT_BUFFERS = 128,
TLM_MAX_ASYNC_SIZE = 16,
TLM_MAX_SYNC_BUFFERS = 1,
T... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sendfile.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <arpa/inet.h>
#include <signal.h>
#include <fcntl.h>
#include <poll.h>
#in... |
/*
* (C) Copyright 2016
* <NAME>, <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <asm/armv7m.h>
#include <asm/arch/stm32.h>
#include <asm/arch/gpio.h>
#include <asm/arch/rcc.h>
#include <asm/arch/fmc.h>
#include <dm/platdata.h>
#include <dm/platform_data/serial... |
/*
* SPAPR PHB emulation, RTAS interface to PCI config space, device tree nodes
* for enumerated devices.
*
* Borrowed heavily from QEMU's spapr_pci.c,
* Copyright (c) 2011 <NAME>, IBM Corporation.
* Copyright (c) 2011 <NAME>, IBM Corporation.
*
* Modifications copyright 2011 <NAME> <<EMAIL>>, IBM Corporation.
... |
/* $Header: /ker/io.386/RCS/scsi.c,v 2.4 93/08/19 10:39:25 nigel Exp Locker: nigel $ */
/*
* This is the generic SCSI part of the
* Adaptec AHA154x host adapter driver for the AT.
*
* $Log: scsi.c,v $
* Revision 2.4 93/08/19 10:39:25 nigel
* r83 ioctl (), corefile, new headers
*
* Revision 2.3 93/08/19 04... |
#include "layout.h"
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdbool.h>
static CooTag *_data_to_tag(void *data) {
return (CooTag *)data - 1;
}
static void *_tag_to_data(CooTag *tag) {
return (void *)(tag + 1);
}
static void *_update_pointer(void *ptr) {
return ptr ? _tag_to_... |
extern int printf(const char *, ...);
static int McCarthy(int x);
static void clobber(int x, int *y);
static void zerofill(char *x);
static int sumof(char *x);
static int svtest(int n);
static void setev(void );
static int testev(void);
static long pow2(long n);
static int zero(void);
struct defs {
int cbits; ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdarg.h>
/*--------------------------------------------------------------------------*/
/* */
/* FORWARD-BACKWARD SPLITTING FOR TV REGUL... |
/*! @file audit.h
@brief Auditing (logging) events.
@author Alexios
Original banner, legalese and change history follow.
@par
@verbatim
*****************************************************************************
** ... |
#include "bplustree.h"
#include <stdio.h>
#include <stdlib.h>
#define true 1
#define false 0
struct BPlusTreeNode* Root;
int MaxChildNumber = 50;
int TotalNodes;
int QueryAnsNum;
/** Create a new B+tree Node */
BPlusTreeNode* New_BPlusTreeNode() {
struct BPlusTreeNode* p = (struct BPlusTreeNode*)malloc(sizeof(str... |
/*
Copyright (c) 1997-2015, <NAME>
All rights reserved.
See the LICENSE.TXT file for licensing information.
*/
#include <stdlib.h>
#include <string.h>
#include "appconst.h"
#include "graphExtensions.private.h"
#include "graphExtensions.h"
#include "graphFunctionTable.h"
/* Imported functions */
ex... |
/**
* author: UncP
* date: 2018-08-22
* license: BSD-3
**/
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
// TODO: remove this
#include <stdio.h>
#include "palm_tree.h"
#include "metric.h"
#include "allocator.h"
static const char *stage_descend = "descend to leaf... |
/*
* MIT License
*
* Copyright 2018 <NAME> for HAW Hamburg
*
* 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, cop... |
/*
The MIT License (MIT)
Copyright (c) 2014-2015 CSAIL, 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 restriction, including without limitation the rights
to use, copy, modify, merg... |
/*
Platform:
- GCC Version: (Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin16.7.0)
- Online Complier (https://www.onlinegdb.com/online_c_compiler)
Author: Tim
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node{
int data;
struct node* left;
struct node... |
#include "vector.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <limits.h>
#include <assert.h>
#define YES_OR_NO(value) (value != 0 ? "Yes" : "No")
/**
* print_char
* ---------
* Mapping function used to print one character element in a vector.
* The ... |
/*
* Copyright 2016-2019 The Opentls Project Authors. All Rights Reserved.
*
* 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 distribution or at
* https://www.opentls.org/source/l... |
/*
* QEMU IPMI KCS emulation
*
* Copyright (c) 2015,2017 <NAME>, MontaVista Software, LLC
*
* 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 limit... |
/* Copyright (c) 2010-2011, Code Aurora Forum. 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 lis... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
// From local.c: IOErrs, GetWord(), GetLong(), GetWords(), GetLongs().
unsigned IOErrs = 0U;
// Read an integer from a line in the index file
int GetWord(FILE *InF) {
int A = 0, n = fscanf(InF, "%d", &A);
if (n < 1) IOErrs++;
return A;
}
// Read a ... |
/***************************************************************************/
/* */
/* cffobjs.c */
/* */
/* Op... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include <stdio.h>
/* #include <malloc.h> */
#include <string.h>
#include <stdlib.h>
/*
#define mymalloc malloc
#define myrealloc realloc
#define myfree free
#define myprintf printf
*/
#include "mex.h"
/* #include "matrix.h" */
#define mymalloc mxMalloc
#define myrealloc mxRealloc
#define myfree mxFree
#define mypr... |
#include <scrn.h>
#include <exception.h>
#include <multicore.h>
#include <asserts.h>
#include <utils.h>
#include <timer.h>
typedef struct {
uint start, end;
} mem_zone;
static mem_zone
get_ebda_zone(void)
{
//De acuerdo a OSDEV, y en GRUB parece asumir lo mismo
// http://linux4u.jinr.ru/pub/misc/sys/grub/SVN/grub... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "timer.h"
#ifdef ABS
#undef ABS
#endif
#define ABS(x) ((x) > 0 ? (x) : -(x))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define printf pclog
#define READFLASH_FDC 0
#define READFLASH_HDC 4
#define readflash_set(offset, drive) ... |
#include "x86-qemu.h"
#include <amdev.h>
void __am_vga_init();
void __am_timer_init();
#define DEF_DEVOP(fn) \
size_t fn(uintptr_t reg, void *buf, size_t size);
DEF_DEVOP(__am_input_read);
DEF_DEVOP(__am_timer_read);
DEF_DEVOP(__am_video_read);
DEF_DEVOP(__am_video_write);
// AM INPUT (keyboard)
static int scan... |
// 0x0700BCD8 - 0x0700BCE0
static const Lights1 castle_grounds_seg7_lights_0700BCD8 = gdSPDefLights1(
0x3d, 0x3d, 0x44,
0x99, 0x99, 0xac, 0x28, 0x28, 0x28
);
// 0x0700BCF0 - 0x0700BD08
static const Lights1 castle_grounds_seg7_lights_0700BCF0 = gdSPDefLights1(
0x58, 0x58, 0x5a,
0xdc, 0xdc, 0xe3, 0x28, 0... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "grb2.h"
#include "wgrib2.h"
#include "fnlist.h"
// #include "omp.h"
// #define DEBUG
/*
* small_grib
*
* 5/2008 Public Domain by <NAME>
* v1.1 8/2011 WNE added mercator, rotated lat-lon, redundant test for we:sn order
* v1.2 1/2012 WNE added Gauss... |
#include "defines.h"
struct sembuf UPR = {0, 1, 0};
struct sembuf DOWNR = {0, -1, 0};
struct sembuf UPW = {0, 100, 0};
struct sembuf DOWNW = {0, -100, 0};
typedef struct{
long tipo;
int PID;
char username[40];
char pass_sha1[42];
int resultado;
char access_token[21];
char mensagem[182];
}SnapStruct;
typedef s... |
/*
* in-kernel handling for sie intercepts
*
* Copyright IBM Corp. 2008, 2014
*
* This program 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 Software Foundation.
*
* Author(s): <NAME> <<EMAIL>>
* ... |
////////////////////////////////////
#include "config_1_2_3.h" //modified to allow 9600 baudrate
// threading library
#define use_uart_serial
#include "pt_cornell_1_2_3.h"
////////////////////////////////////
/*Pinout for the PIC for reference*/
//RA0 - Not Connected
//RA1 - UART2 TX
//RA2 - Y axis L... |
/******************************************************************************
* Copyright 2020 The Firmament Authors. 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 ... |
/*
* FreeRTOS Kernel V10.3.1
* Copyright (C) 2020 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... |
/*
* ALSA PCM interface for the Stetch s6000 family
*
* Author: <NAME>, <<EMAIL>>
* Copyright: (C) 2009 emlix GmbH <<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 Founda... |
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
#include <SDL.h>
#include "gfx.h"
#include "font.h"
surface tilesgs;
int bgsetnumber;
int tilesetnumber;
char *msg;
char *clickonatile="Click on a tile";
char *clickonanothertile="Click on another tile";
void nomem(int code)
{
printf("No memory: %d\n",c... |
/* The MIT License
Copyright (C) 2011 <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, mo... |
/* $OpenBSD: tftp.c,v 1.22 2009/10/27 23:59:44 deraadt Exp $ */
/* $NetBSD: tftp.c,v 1.5 1995/04/29 05:55:25 cgd 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 pe... |
#include "sfs_api.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fuse.h>
#include <strings.h>
#include <signal.h>
#include "disk_emu.h"
#include "typedefs/inode_table.h"
#include "typedefs/directory.h"
#include "typedefs/file_descriptor_table.h"
#include "typedefs/super_block.h"
#include "util... |
/*
* Copyright (c) 2003-2014 <NAME>
* Copyright (c) 2003-2006 <NAME>
* Copyright (c) 2005-2007 Josef '<NAME>
* Copyright (c) 2005-2006 <NAME>
* Copyright (c) 2005 <NAME>
* Copyright (c) 2004-2006 <NAME>
* Copyright (c) 2003-2004 <NAME>
* Copyright (c) 2003 <NAME>
* Copyright (c) 2003 <NAME>
* C... |
/*-
* Copyright 2005,2007,2009 <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 condi... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <stdarg.h>
#include "hawkc.h"
#include "common.h"
#include "crypto.h"
static const char *HAWK_HEADER_PREFIX = "hawk.1.header";
static const char LF = '\n';
/*
* Scheme callback for parsing authorization header.
*/
static HawkcEr... |
// make test-div64_64.bin && qemu-system-arm -M lm3s6965evb -cpu cortex-m3 -nographic -serial null -monitor null -semihosting -kernel test-div64_64.bin
#include <stdio.h>
#include <math.h>
#include "pico/divider.h"
#include "pico/stdlib.h"
#ifdef TURBO
#include "hardware/vreg.h"
#endif
typedef uint64_t ui64... |
#include "compiler.h"
#include "pickle.h"
#include "item_queue.h"
#include "gherkin_document.h"
#include "background.h"
#include "rule.h"
#include "scenario.h"
#include "data_table.h"
#include "doc_string.h"
#include "pickle_table.h"
#include "pickle_id_creator.h"
#include "pickle_tag.h"
#include "pickle_string.h"
#inc... |
/*
* A 32-bit implementation of the XTEA algorithm
* Copyright (c) 2012 <NAME>
*
* loosely based on the implementation of <NAME> and <NAME>
*
* 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 pub... |
//------------------------------------------------------------------------------
// GB_AxB_dot2: compute C=A'*B or C<!M>=A'*B in parallel, in place
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2019, All Rights Reserved.
// http://suitespars... |
/**************************************************************************//**
* @file main.c
* @version V0.10
* $Revision: 3 $
* $Date: 17/05/04 1:54p $
* @brief
* Demonstrate SPI data transfer with PDMA.
* SPI0 will be configured as Master mode and SPI1 will be configured as Sl... |
/*
* Copyright (C) 2017 BlueKitchen GmbH
*
* 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 follo... |
/* Copyright(c) 2015 ANECT a.s.
*
* 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 i... |
/*
Copyright 2015, 2016 IoT.bzh
author: <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
/*
* Copyright (c) 2015-2021 <NAME> (<EMAIL>)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the i... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/* The MIT License (MIT)
*
* Copyright (c) 2019 Monetra Technologies, LLC.
*
* 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 righ... |
/* modify.c - modify request handler for back-asyncmeta */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 2016-2019 The OpenLDAP Foundation.
* Portions Copyright 2016 Symas Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary for... |
/*Daala video codec
Copyright (c) 2004-2012 Daala project contributors. 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
l... |
/******************************************************************************
* $Id: fastresume.c 7455 2008-12-22 00:51:14Z charles $
*
* Copyright (c) 2005-2008 Transmission authors and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associat... |
/*
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <errno.h>
#include <platform_def.h>
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <plat/commo... |
/* Prototype of runtime for nBallerina */
/*
Assume (for now):
1. NoGC memory management - malloc and never free
2. No exceptions: panic aborts
*/
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
// MSC does no... |
#include "i_internal_stm32.h"
#include "opl/dbopl.h"
#include "opl/opl_timer.h"
#include "opl/opl.h"
#include "opl/opl_internal.h"
#include "opl/opl_queue.h"
typedef struct channel_s {
sfxinfo_t* sfxinfo; // sound being played now
int lumpnumber;
int samplerate;
int bit_size;
uint8_t* data; // current positi... |
/*
* Copyright (C) 2004-2007, 2009, 2013-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2003 Internet Software Consortium.
*
* 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 ... |
/****************
*
* DSP-side
* http://fengyh.cn/
*
*****************/
#include <c6x.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <ti/ndk/inc/netmain.h>
#include <ti/ndk/inc/_stack.h>
#include <ti/ndk/inc/tools/console.h>
#include <ti/ndk/inc/tools/servers.h>
#include <x... |
/****************************************************************************/
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
/* ... |
/*
* Copyright (C) 2000, 2001, 2002 <NAME> (<EMAIL>)
* Copyright 2003 PathScale, Inc.
* Derived from include/asm-i386/pgtable.h
* Licensed under the GPL
*/
#ifndef __UM_PGTABLE_H
#define __UM_PGTABLE_H
#include "linux/sched.h"
#include "linux/linkage.h"
#include "asm/processor.h"
#include "asm/page.h"
#include ... |
#include "global.h"
#include "commands.h"
#include "util.h"
#include "file_util.h"
#include "link_tree.h"
#include "gpath_reader.h"
#include "json_hdr.h"
#include "gpath_save.h"
#include "clean_graph.h"
#include "carrays/carrays.h" // gca_median_size()
#define DEFAULT_MAX_DIST 6
#define DEFAULT_MAX_COVG 100
const ch... |
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#define BRAMAJSON_INT (1 << 0)
#define BRAMAJSON_STRING (1 << 1)
#define BRAMAJSON_FLOAT (1 << 2)
#define BRAMAJSON_ARRAY (1 << 3)
#define BRAMAJSON_DICT ... |
/**
* Copyright (c) 2015 - 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 file is part of wl1271
*
* Copyright (C) 2008-2010 Nokia Corporation
*
* Contact: <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.
*
* This progr... |
/*
* IO_WA.c
* course work demo project
* Created: 2016-11-08 21:17:38
* Author : <NAME> Brian
*/
//standard lib
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "string.h"
//private libs
#include "mylib/usart_library.h" // for USART transmiss... |
/******************************* ASA - Grupo 25 *********************************
** <NAME> - 77906
** <NAME> - 79763
*******************************************************************************/
/* C Libraries. Only the bare minimum, no need for clutter */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>... |
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cmdline.h"
#include "zircon_image.h"
#include "zircon.h"
#include "osboot.h"
#define printf(fmt, ...) log(L"" fmt, ##__VA_ARGS__)
static efi_gu... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static const int PC1[56] = {
57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18,
10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36,
63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22,
14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4
... |
/*
* Copyright (c) 2000-2002,2010,2013,2016,2020 by Solar Designer. See LICENSE.
*/
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS /* we use fopen(), sprintf(), strncat() */
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "passwdqc.h" /* also provides <pwd.h> or equi... |
/*
** Copyright 2003-2010, VisualOn, 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... |
#include <wasi/api.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#define TZ_STRLEN_MAX 255
#define ISDIGIT(c) ((c) >= '0' && (c) <= '9')
/* 2000-03-01 (mod 400 year, immediately after feb29 */
#define LEAPOCH (946684800LL + 86400*(31+29))
#define... |
/*
* Copyright 2013-2017 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... |
/* This file is part of the YAZ toolkit.
* Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* \file log.c
* \brief Logging utility
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#include <windows.h>
#include <sys/stat.h>
#endif
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
... |
/*
Authored 2016-2018. <NAME>.
Additional contributions, 2018: <NAME>, <NAME>, <NAME>, <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:
* Redistributions of source code must retain the a... |
/* ===================================================
* file: crgEvalxy2uv.c
* ---------------------------------------------------
* purpose: convert an x/y position into a u/v
* position
* ---------------------------------------------------
* based on routines by Dr. <NAME>, Daimler AG
* ... |
/* $OpenBSD: brswphy.c,v 1.2 2014/12/05 15:50:04 mpi Exp $ */
/*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* 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 c... |
/*
jack: audio output via JACK Audio Connection Kit
copyright 2006-2016 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by <NAME>
I reworked the processing logic. Only one ringbuffer, deinterleaving in the
... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... |
#include <sys/sbunix.h>
#include <sys/utility.h>
#include<sys/syscall.h>
#include<sys/process.h>
#include<sys/memory.h>
#include<errno.h>
/* definition of idt entry */
int exec(char *filename,char **kargv,char **kenvp);
struct idt_entry{
uint16_t offset_0_15;
uint16_t selector;
unsigned ist : 3 ;
unsigned ... |
/* Dump registers.
Copyright (C) 1999-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 1999.
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 b... |
/*
****************************************************************************
*
* UNIVERSITY OF WATERLOO ECE 350 RTOS LAB
*
* Copyright 2020-2021 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
/** @file $Id: vbox_fb.c $
*
* VirtualBox Additions Linux kernel video driver
*/
/*
* Copyright (C) 2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under ... |
/*
The BSD 3-Clause License
Copyright (c) 2022, <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 copyright notice, this
list of conditions and the following dis... |
/*
* The MIT License (MIT)
*
* 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... |
/*======================================================================
*
* Axquisition from a Q330 using Quanterra Lib330 library
*
*====================================================================*/
#include "isi330.h"
#define MY_MOD_ID ISI330_MOD_Q330
#define DEFAULT_RETRY_SEC 30
#define DEFAULT_WATCHD... |
/*
* Main page drawing procedure. Interprets the page commands. A simple
* (if lengthy) case statement interpreter.
*/
#include "dvips.h" /* The copyright notice in that file is included too! */
#include <math.h>
/*
* The external routines we use:
*/
extern void error() ;
extern void pageinit() ;
extern ... |
/*
* Copyright (C) 2018 Oracle. All Rights Reserved.
*
* 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
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option... |
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "localmem.h"
#include "options.h"
#include "verbose.h"
#include "basicBed.h"
#include "bigWig.h"
#include "bits.h"
#include <stdlib.h>
#include <math.h>
char *bedOut = NULL;
char *statsRa = NULL;
int sampleAroundCenter = 200000;
int decay = 10000;
... |
/**
*******************************************************************************
* @file OpenPDMFilter.c
* @author CL
* @version V1.0.0
* @date 9-September-2015
* @brief Open PDM audio software decoding Library.
* This Library is used to decode and reconstruct the audio signal
* ... |
/******************************************************************************/
/* SUPER-FAST G.711 UTILITES (PCMU,PCMA) */
/* */
/* (c) TODO: find authors ... |
/*! \file bcmptm_rm_hash_robust_hash.c
*
* Resource Manager for Hash Table.
*
* This file contains the routines that implement the robust hash feature.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.