text stringlengths 5.8k 28.2k |
|---|
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
* Copyright (C) 2002-2010 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU... |
/**
* rofi
*
* MIT/X11 License
* Copyright 2013-2016 <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... |
#include "ga.h"
/*
*
* Subroutines of the genetic algorithm calculating every next generation
* with the evolution and genetic mechanisms
*
*/
/*
* Function generating a single genome in genotype form
*
* @param genome the genome of a single individual
*/
void generate_genome(Genome * genome) {
//gen... |
/* zzellplt.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 doublereal c_b27 = 0.;
static doublereal c_b31 = 1.;
static logical c_true = TRUE_;
static logical c_false = FAL... |
/*
* GIF demuxer
* Copyright (c) 2003 <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 published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... |
// Copyright 2020 Espressif Systems (Shanghai) Co. Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
#include "inc/chip8.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <sys/stat.h>
#define debug_print(fmt, ...) \
do { \
if (DEBUG) fprintf(stderr, fmt, __VA_ARGS__); \
} whi... |
/* Copyright 2016 <NAME>
* Copyright 2020 JohSchneider
*
* 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.
*
* Thi... |
#include "raylib.h"
#include <stdio.h> /* sprintf() */
#include <stdbool.h> /* bool */
#include <stddef.h> /* size_t */
#include <stdlib.h> /* malloc(), calloc() */
#include <string.h> /* memcpy(), strdup()*/
#include <assert.h> /* assert() */
#include <math.h> /* fabsf(), cos(), sin() */
#include <lim... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Revision: 2 $
* $Date: 16/10/25 4:27p $
* @brief Demonstrate how to use BPWM output waveform.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2021 Nuvoton Tech... |
/*
* Copyright (C) 2014 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... |
/*
* SHA-512 hash implementation and interface functions
* Copyright (c) 2015, <NAME> <<EMAIL>>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "sha512_i.h"
#include "crypto.h"
/**
* sha512_vector - ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* Process Isolator -- Rules
*
* (c) 2012-2018 <NAME> <<EMAIL>>
* (c) 2012-2014 <NAME> <<EMAIL>>
*/
#include "isolate.h"
#include <limits.h>
#include <mntent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/capability.h>
#include <sys/mount.h>
#include <sys/quota.h>
#include <sys/sta... |
#include <PalmOS.h> // Includes all Palm OS headers
// Our library public definitions (library API)
#define BUILDING_STRING_LIB
#include "StringLib.h"
// Our library private definitions (library globals, etc.)
#include "StringLibPrv.h"
#include "CW.c"
/****************************************************... |
#include "pose.h"
#include "zarray.h"
#include "homography.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
const char* MAT_FMT = "%12f, ";
double EPS = 1e-5;
const double fx = 764, fy = 764, cx = 408, cy = 306;
const double rvec[3] = { 0.5, 0.2, ... |
/* PR tree-optimization/82588 - missing -Warray-bounds on an excessively
large index
{ dg-do compile }
{ dg-require-effective-target alloca }
{ dg-options "-O2 -Warray-bounds -Wno-stringop-overread -ftrack-macro-expansion=0" } */
#include "../gcc.dg/range.h"
#define offsetof(T, m) __builtin_offsetof (T... |
#include "global.h"
#include "build_graph.h"
#include "db_graph.h"
#include "db_node.h"
#include "seq_reader.h"
#include "async_read_io.h"
#include "seq_loading_stats.h"
#include "util.h"
#include "file_util.h"
#include <pthread.h>
#include "seq_file/seq_file.h"
// Update shared_nreads in steps of 100 to reduce threa... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
#include <time.h>
#if __LINUX__
#include <arpa/inet.h>
#else
#include <winsock2.h>
#endif
#include "rohc_buf.h"
#include "rohc_comp.h"
#include "rohc_log.h"
#include "rohc_utils.h"
#include "ip_v4.h... |
#pragma once
#include "can_msg_defs.h"
#include "can_pack_impl.h"
#define CAN_PACK_BPS_HEARTBEAT(msg_ptr, status_u8) \
can_pack_impl_u8((msg_ptr), SYSTEM_CAN_DEVICE_PLUTUS, SYSTEM_CAN_MESSAGE_BPS_HEARTBEAT, 1, \
(status_u8), CAN_PACK_IMPL_EMPTY, CAN_P... |
/*
* 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) 2018, 2019, 2020 <NAME>
*
* Permission to use, copy, modify, and distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright
* notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... |
/* Copyright (C) 2013-2016, The Regents of The University of Michigan.
All rights reserved.
This software was developed in the APRIL Robotics Lab under the
direction of <NAME>, <EMAIL>. This software may be
available under alternative licensing terms; contact the address above.
Redistribution and use in source and bi... |
/* WARNING -- this file is temporary. It is shared between the
sh-utils, fileutils, and textutils packages. Once I find a little
more time, I'll merge the remaining things in system.h and everything
in this file will go back there. */
#ifndef S_IFMT
# define S_IFMT 0170000
#endif
#if STAT_MACROS_BROKEN
# u... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* 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 copy... |
/**
* gaim - Null Protocol Plugin
* http://snarfed.org/space/gaim+null+protocol+plugin
* Copyright (C) 2004, <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 vers... |
/*
* SIT_ScrollBar.c : vertical or horizontal proportionnal scrollbar
*
* written by T.Pierron, amy 2020.
*/
#include <windows.h>
#include <stdio.h>
#include <math.h>
#include "SIT_P.h"
#include "SIT_CSSLayout.h"
TagList SBClass[] = {
{ SIT_MinValue, "minValue", _SG, SIT_INT, OFFSET(SIT_ScrollBar, min... |
/* nova_tt1.c: NOVA second terminal simulator
Copyright (c) 1993-2008, <NAME>
Written by <NAME> and used with his gracious permission.
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... |
/*
* Copyright © 2011 <NAME>
*
* 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 permission notice appear in sup... |
/** @file dictionary.h
* @author <NAME>
*
* @brief Dictionary (hashtable) data structure
*/
#include <stdio.h>
#include <inttypes.h>
#include "dictionary.h"
#include "common.h"
#include "memory.h"
#include "object.h"
/*
* Macros that control the behavior of the dictionary.
*/
/** The initial size of non-empt... |
#include "top.h"
int saca (int max, char *buf){
char *c, i;
if (fgets(buf, max, stdin)) { // Leemos solamente "max" numero de caracteres.
c = strchr(buf, '\n'); // Buscamos el salto de linea
if (c) {
*c = '\0'; // Si existe el salto de linea, lo reemplazamos por nulo.
} else { // Si no eixste salgo de l... |
/***************************************************************************
main.c - description
-------------------
begin : Mon Apr 7 12:05:22 CEST 2003
copyright : (C) 2003-2013 by Intra2net AG and the libftdi developers
... |
/*
* Routines to implement image basic operations
*
*/
#include "string.h"
#include "eqn.h"
#include "tk.h"
#include "ic.h"
/*
* Create a fixed-sized hash table, a hash record and a definition record
*
*/
extern ic_hashRec ic_hash[HASH_SIZE];
extern int hashMode;
extern img_defn imgDefn;
extern ic_iclRec i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#incl... |
#include "tern_huffman.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tools.h"
//#define DEBUG_OUTPUT
int ternary_node_cmp(const void *node_1, const void *node_2) {
tern_huffman_node_t *const *node_1_ptr = node_1;
tern_huffman_node_t *const *node_2_ptr = node_2;
if ((*node_1_ptr)->p... |
/*****************************************************************************
* Ledger App Hive.
* (c) Bartłomiej (@engrave) Górnicki
*
* 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 Licens... |
/* Copyright (C) 2009-2013, Stanford University
* Written by <NAME> (<EMAIL>)
*/
#include "function_sampler_1d.h"
#include <stdlib.h>
#include <math.h>
#include <float.h>
#ifdef DEBUG
#include <stdio.h>
#endif
/* Refinement is determined by considering consecutive triplets of samples.
* When normalizing the thre... |
#define _XOPEN_SOURCE 700
// Support for 64-bit file sizes
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <ftw.h>
#include <termios.h>
#include <signal.h>
#inclu... |
/*
* 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... |
/**
* \file
* \brief AOS paging helpers.
*/
/*
* Copyright (c) 2012, 2013, 2016, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zur... |
/*
* Copyright © 2015 <NAME>
*
* 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 ... |
/*
* Copyright 2021 FUJIFILM Corporation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... |
/**
* @file
*/
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the acco... |
/*
* M_APM - mapm_rnd.c
*
* Copyright (C) 1999 - 2007 <NAME>
*
* Permission to use, copy, and distribute this software and its
* documentation for any purpose with or without fee is hereby granted,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice ... |
/*----------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tel... |
/* Farsight
* Copyright (C) 2006 <NAME> <<EMAIL>>
* (C) 2008 <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... |
/* Copyright (c) 2003-2011
* <NAME> <<EMAIL>>. All rights reserved.
* This file is released under the MIT license
*/
#include "device.h"
#include "driver.h"
#include "debug.h"
#include "ether_driver.h"
#include "interface.h"
#include "wb840.h"
#include <ByteOrder.h>
#include <KernelExport.h>
#include <stdio.h>
#in... |
#include <stdint.h>
#include <string.h>
#include "platform.h"
#include "uevent.h"
#include "timedate.h"
#include "led_drv.h"
#include "peripheral_drv.h"
#include "app_timer.h"
const uint8_t led_blink[2] = {1, 1};
void log_on_uevt_handler(uevt_t* evt)
{
static uint32_t sec = 0;
switch(evt->evt_id) {
case UEVT_... |
/* dataSim - Simulate system where data is dynamically distributed. */
#include "paraCommon.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "dlist.h"
void usage()
/* Explain usage and exit. */
{
errAbort(
"dataSim - Simulate system where data is dynamically distributed\n"
"usage:\n"
" ... |
/* Dia -- an diagram creation/manipulation program
* Support for computing bounding boxes
* Copyright (C) 2001 <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... |
#include <julia.h>
#include <string.h>
#include <stdio.h>
#include <cmpb.h>
void jl_(jl_value_t*); // for debugging
// internal helper functions
jl_function_t* mpb_get_function(const char *name) {
jl_value_t *mpb = jl_eval_string("MathProgBase");
jl_function_t *f = jl_get_function((jl_module_t*)mpb, name);
... |
/*
* $XConsortium: grid.c /main/30 1996/01/14 16:51:17 kaleb $
*
*
Copyright (c) 1989 X Consortium
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) 2008 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/*
* Copyright Notice for
* Proactive Data Containers (PDC) Software Library and Utilities
* -----------------------------------------------------------------------------
*** Copyright Notice ***
* Proactive Data Containers (PDC) Copyright (c) 2017, The Regents of the
* University of California, through Lawre... |
/*
* -- Distributed SuperLU routine (version 2.0) --
* Lawrence Berkeley National Lab, Univ. of California Berkeley.
* March 15, 2003
*
*/
#include <math.h>
#include "superlu_zdefs.h"
void pzgsmv_init
(
SuperMatrix *A, /* Matrix A permuted by columns (input/output).
The type of A can be:
Stype ... |
#include <twr_gpio.h>
#include <twr_irq.h>
#include <stm32l0xx.h>
#define TWR_GPIO_CHANNEL_COUNT 23
#define TWR_GPIO_PORT_P0 GPIOA
#define TWR_GPIO_PORT_P1 GPIOA
#define TWR_GPIO_PORT_P2 GPIOA
#define TWR_GPIO_PORT_P3 GPIOA
#define TWR_GPIO_PORT_P4 GPIOA
#define TWR_GPIO_PORT_P5 GPIOA
#define TWR_GPIO_PORT_P6 GPIOB
#... |
//=========================================================
// src/InitDevice.c: generated by Hardware Configurator
//
// This file will be regenerated when saving a document.
// leave the sections inside the "$[...]" comment tags alone
// or they will be overwritten!
//=================================================... |
/*
* Copyright(c) 2019 Netflix, Inc.
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause Licen... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/* Driver for Realtek PCI-Express card reader
*
* Copyright(c) 2009-2013 Realtek Semiconductor Corp. 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... |
/*
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCL... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2020, <NAME>
* <<EMAIL>>
*/
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <li... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <setjmp.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "expr.h"
#define TRUE 1
#define FALSE 0
#define ID_MAX 32
#define TKN_NONE 0
#define TKN_EOF -1
#define TKN_IDENTIFIER -2
#define TKN_NUMBER -3
#... |
/***** fnSql.c *****/
#include "fntxt2sql.h"
#include <string.h>
#include <math.h>
static const char* ALL_FIELDS =
"ORIG_BLZ, ORIG_KTONR, DATUM, VALUTA, BETRAG, "
"WAEHRUNG, BUCHART, BUCHUNGS_SL, GV_CODE, PART_BLZ, PART_KTONR, "
"PART_NAME1, PART_NAME2, PRIMANOTA, REFERENZ, BUTEXT, "
"VZWECK1, VZWECK2, VZWECK3, ... |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* ... |
/*
* Copyright (C) 2016 <NAME> <<EMAIL>>
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*
* The following Boot Header format/structures and values are defined in the
* following documents:
* * ug1085 ZynqMP TRM doc v1.4 (Chapter 11, Table 11-4)
*
* Expected Header Size = 0x9C0
... |
/*
* Copyright (c) 1994 by the University of Southern California
*
* EXPORT OF THIS SOFTWARE from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license be... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "flash.h"
static bool starts_with(const char * str, const char * prefix) {
size_t n = strlen(prefix);
if (strlen(str) < n) { return(false); }
return (0 == strncmp(str, prefix, n));
}
// support positive integer from 0 to UINT64_MAX
// ... |
/* $Id$ */
/*
* Copyright (c) 2016, 2017, 2020 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... |
/*
* Copyright (c) 2002 <NAME>
* Copyright (c) 1997, 1998 <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
* ... |
#define BLOCKSIZE 512
#define NUMBEROFBLOCKS 1000
#define FILESYSTEMNAME "SimpleFileSystem"
#define NUMBEROFINODES 100
#define MAXNAMELENGTH 25
#define MAXEXTENSIONLENGTH 3
#define MAXOPENFILES 100
#define MAGIC 83934122
#define MAXNUMBEROFFILES 100
//Booleans
#define TRUE 1
#define FALSE 0
//Usage
#define FREE 0
#de... |
/*
* Copyright (c) 2005-2007 <NAME>, Inc. All rights reserved.
* Proprietary and Confidential Material.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <ctype.h>
#include <termio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <time.h>
#incl... |
/*++
/* NAME
/* bounce_template 3
/* SUMMARY
/* bounce template support
/* SYNOPSIS
/* #include <bounce_template.h>
/*
/* BOUNCE_TEMPLATE *bounce_template_create(def_template)
/* const BOUNCE_TEMPLATE *def_template;
/*
/* void bounce_template_free(template)
/* BOUNCE_TEMPLATE *template;
/*
/* void bounce_template_load(... |
/*
* ISC License
*
* Copyright (C) 1982-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
/* load JPEG file (baseline)
*
* written by <NAME>
* <EMAIL>
* 2:5005/93.15@FidoNet
*/
#include <stdio.h>
#include <malloc.h>
typedef struct { // Huffman coding tables
unsigned char bits[16];
unsigned char hval[256];
unsigned char size[256];
unsigned short code[256];
} jpeg_huf... |
/*-------------------------------------------------------------------------
*
* Small tests for gp_libpqwalreceiver
*
*-----------------------------------------------------------------------*/
#include "postgres.h"
#include "fmgr.h"
#include "miscadmin.h"
#include "access/xlog_internal.h"
#include "replication/wal... |
/*-
* Copyright (c) 2002 <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 conditions a... |
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/map.h"
#include "../h/dir.h"
#include "../h/user.h"
#include "../h/proc.h"
#include "../h/buf.h"
#include "../h/reg.h"
#include "../h/inode.h"
#include "../h/seg.h"
#include "../h/acct.h"
#include "../h/subr.h"
#include "../h/slp.h"
#include "../h/nami.h"
#... |
/* strutt.h */
/* PARAMETRI uso interno del programma */
#define UNLEN 30 /* user names max length */
#define UNNUM 20 /* max number of user names */
#define KWDSLEN 20 /* keywords max length */
#define KWDSNUM 110 /* number of language keywords */
#define EMSGSLEN 100 /* PARSER error messages ... |
/*
* _______ _ _ _____ ____
* |__ __| | | | |/ ____| _ \
* | | ___ ___ _ __ _ _| | | | (___ | |_) |
* | |/ _ \/ _ \ '_ \| | | | | | |\___ \| _ <
* | | __/ __/ | | | |_| | |__| |____) | |_) |
* |_... |
/**
* @file initialize.c
* @author <NAME>
* @author <NAME>
*
* Initialize ampliclust.
*
* TODO
* - initialization is unaware of \par options.background_model
* - initialization clusters haplotypes of length \par data.min_read_length;
* initializes remaining positions in a foolish way
*
* DONE
* X initia... |
#include "freertps/freertps.h"
#include "freertps/timer.h"
#include "freertps/udp.h"
#include "freertps/disco.h"
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <ifaddrs.h>
#include <stdlib.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <errno.h... |
/******************************************************************************************
*
* MPFS HSS Embedded Software - tools/hss-payload-generator
*
* Copyright 2020-2021 Microchip FPGA Embedded Systems Solutions.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any pe... |
/*
* Copyright (C) 2014 Freie Universität Berlin
* Copyright (C) 2014 <NAME> <lotte.steenbrink@fu-berlin.de>
* Copyright (C) 2020 Locha Inc
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/... |
/* ---------------------------------------------------------------- *\
file : auth_sha1.c
author : <NAME> <akira at fluxbox dot org>
copyr : copyright (c) 2005 - 2007 by <NAME>
license : based on: openbsd sha1.c/h
SHA-1 in C
By <NAME> <<EMAIL>>
100% Public Domain
start : So 08 Ma... |
/*
rhd.c - Ranga's hex dump
$Id: rhd.c 8 2005-06-18 05:40:25Z ranga $
Copyright (c) 2003-2019 <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
restric... |
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Hardware timers driver */
#include "cpu.h"
#include "common.h"
#include "hooks.h"
#include "hwtimer.h"
#include "hwtimer_chip.h"
#include "... |
/**
* @file linux-powercap.c
* @author <NAME>
* @ingroup papi_components
* @brief powercap component
*
* To work, the powercap kernel module must be loaded.
*/
#include <stdio.h>
#include <dirent.h>
#include <unistd.h>
#include <dirent.h>
#include <fcntl.h>
#include <string.h>
#include <stdint.h>
#include <... |
/***************************************************************************
* Copyright (C) 2008 by <NAME> *
* <EMAIL> *
* *
* This program is free software;... |
#include <memmanager.h>
static uint64_t* memory_map; // Donde empieza mi bitmap de las páginas (6to Mb) (16k)
static Page* page_descriptors; // Donde empieza la memoria donde estan las estructuras de Page
static Process* process_descriptors; // Donde empiezan mis procesos
static Process_Node* process_node_descriptor;... |
/*
* Copyright 2008 <NAME> <<EMAIL>>
* Copyright 2010 <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
* on the righ... |
/* GStreamer
* Copyright (C) <2013> <NAME> <<EMAIL>>
* Copyright (C) <2013> Intel Corporation
*
* 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, ... |
#include "proxy.h"
#define DEBUG_FLAG 0x1
#define MAX_THREAD 0x20
void error(char *msg)
{
perror(msg);
exit(1);
}
void debug(char *msg, ...)
{
#ifdef DEBUG_FLAG
printf(msg);
#endif
}
int main(int argc, char *argv[])
{
// error detect
if (argc < 2) error("ERROR, no port provided\n");... |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research an... |
/*
*
* WKTRaster - Raster Types for PostGIS
* http://trac.osgeo.org/postgis/wiki/WKTRaster
*
* Copyright (C) 2011-2013 Regents of the University of California
* <<EMAIL>>
* Copyright (C) 2010-2011 <NAME> <<EMAIL>>
* Copyright (C) 2010-2011 <NAME> <<EMAIL>>
* Copyright (C) 2009-2011 <NAME> <<EMAIL>>
* Copyri... |
#include "common.h"
#include <stdio.h>
typedef struct {
Timecode tc;
AVec4f v;
} VarPoint;
#define VAR_MAX_POINTS 256
typedef struct {
VarDesc desc;
int used;
int last_used_sequence;
int points;
VarPoint point[VAR_MAX_POINTS];
} VarData;
#define VAR_MAX_VARS 64
typedef struct {
int vars;
VarData var[VAR_... |
/* $OpenBSD: sf16fmr2.c,v 1.6 2002/10/15 15:00:11 mickey Exp $ */
/* $RuOBSD: sf16fmr2.c,v 1.12 2001/10/18 16:51:36 pva Exp $ */
/*
* Copyright (c) 2001 <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
/* sim-safe.c - sample functional simulator implementation */
/* SimpleScalar(TM) Tool Suite
* Copyright (C) 1994-2003 by <NAME>, Ph.D. and SimpleScalar, LLC.
* All Rights Reserved.
*
* THIS IS A LEGAL DOCUMENT, BY USING SIMPLESCALAR,
* YOU ARE AGREEING TO THESE TERMS AND CONDITIONS.
*
* No portion of this w... |
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cCHello.h"
s... |
/******************************Module*Header*******************************\
* Module Name: enable.c
*
* This module contains the functions that enable and disable the
* driver, the pdev, and the surface.
*
* Copyright (c) 1992 Microsoft Corporation
\**************************************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.