text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>
#include "socket_wrap.h"
#include "ipcam_message.h"
#include "ipcam_list.h"
#include "pa... |
/* Copyright © 2015-2016 <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, dis... |
/******************************************************************************
* *
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... |
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <fsl_clock.h>
#include <fsl_common.h>
#include <fsl_rdc.h>
#include <init.h>
#include <kernel.h>
#include <soc.h>
#include <dt-bindings/rdc/imx_rdc.h>
/*
* ERR050362: TCM: AXI2AHB cannot handle part... |
// <NAME>, 2011
// false.ekta.is
// BSD/MIT license
#include <assert.h>
#include <stdbool.h>
#include <string.h>
#include "config.h"
#include "simrf.h"
// aMaxPHYPacketSize = 127, from the 802.15.4-2006 standard.
static uint8_t mrf_rx_buf[127];
static uint8_t simrf_sequence = 0;
volatile uint8_t flag_got_rx;
volati... |
#pragma once
typedef struct {
uint8_t *input;
size_t input_len;
uint8_t tag_256[32];
uint8_t tag_512[64];
} sha2mb_test_vector;
static uint8_t in0[71] = { 0 };
static uint8_t in1[71] = { 1 };
static uint8_t in2[71] = { 2 };
static uint8_t in3[71] = { 3 };
static uint8_t in4[71] = { 4 };
static uint8_t in... |
//
// breakout.c
// simulator
//
// Created by <NAME> on 08.11.19.
// Copyright © 2019 Focusrite Audio Engineering Ltd. All rights reserved.
//
#include "app.h"
#include "breakout.h"
void debug_board(const BOARD board) {
int x, y;
PRINTF("\n");
PRINTF("--------------------------\n");
for (y = 0;... |
/*
* 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 condi... |
/**
* Copyright © Optimal Computing Limited New Zealand, 2012.
* Licensed under the MIT licence, see LICENSE file for details
*
* This is a generic linux network server, destined to be a graph database
* server xframedb
*
* FIXME: USE EPOLLONESHOT in epoll_ctl(), and re-arm with EPOLL_CTL_MOD after
* t... |
/*
* Copyright 2019, DornerWorks
* Copyright 2019, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: GPL-2.0-only
*/
/*
* Arm Generic Interrupt Controller v3
*/
#pragma once
/* tell the kernel we have the set trigger feature */
#define HAVE_SET_TRIGGER 1
#include <stdint.h>
#include <util.h>
#i... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/accel/agx/agxSeg.c,v 3.10 1996/12/23 06:33:01 dawes Exp $ */
/***********************************************************
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
Copyrigh... |
/*
* unet-helloworld
*
* Example using unet sockets
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <asser... |
#include <SDL2/SDL.h>
#include <stdio.h>
#include <limits.h>
#include <math.h>
#include "constants.h"
#include "player.h"
#include "ray.h"
#include "mathaux.h"
#include "upng/upng.h"
const int map[MAP_NUM_ROWS][MAP_NUM_COLS] = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ,1, 1, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 0, 0, ... |
/* This source file is part of the ATMEL QTouch Library 5.0.8 */
/*****************************************************************************
*
* \file
*
* \brief This file contains the SAMD QTouch library sample user application.
*
*
* - Userguide: QTouch Library Peripheral Touch Controller User Gu... |
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 <NAME> <<EMAIL>>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* OV7670 driver.
*
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "stm32f4xx_hal.h"
#include "sccb.h"
#include "ov76... |
/* CHAPTER 5 */
#include <stdio.h>
#include <stdbool.h>
void broker(void);
void date(void);
void ex_01(void);
void ex_02(void);
void ex_03(void);
void ex_04(void);
void ex_05(void);
void ex_06(void);
void ex_07(void);
void ex_08(void);
void ex_09(void);
void ex_10(void);
void pr_01(void);
void pr_02(void);
void pr_0... |
/* config.h.in. Generated from configure.ac by autoheader. */
#include "vtk_netcdf_mangle.h"
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* If true, will attempt to download and build netcdf-fortran. */
/* #undef BUILD_FORTRAN */
/* default file chunk cache nel... |
#include "maxlbfgs.h"
#include "gsl/gsl_errno.h"
#define SCREWUPVALUE -20000
/**
* @file
* @author <NAME>-Smith <EMAIL>
* @version 1.1
* @section DESCRIPTION
*
* contains routines to use the lbfgs maximisation method
* this is a constrained modified-newtons method, see the
* file lbfgs/routines.f and the f... |
/*-------------------------------------------------------------------------
*
* pg_buffercache_pages.c
* display some contents of the buffer cache
*
* contrib/pg_buffercache/pg_buffercache_pages.c
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "a... |
/* $Id$ */
/*
* Copyright (c) 2008, <NAME>
* Copyright (c) 2011, <NAME>
* Copyright (c) 2014, <NAME>, <NAME> and the Hoedown authors
* Copyright (c) 2016, <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* c... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/**
* @file
*
* @version 1.0
*
* @section DESCRIPTION
*
* Main entry point for dcp. This file is responsible for parsing all
* arguments, command line and environment, and beginning an dcp call.
*
*/
/* for asprintf */
#define _GNU_SOURCE
#include <stdio.h>
#undef _GNU_SOURCE
#include <errno.h>
#include <f... |
/*
* <NAME> - yhr
* This is the main code for a caching web proxy. It waits for clients
* and creates a new thread for each client. The thread detaches and the
* proxy does not wait for its completion. There are several error
* handling functions to deal with badly formed requests.
*
* The cache contains object... |
//Modified nsc_dclm to calculate residue weighted areas
//<NAME> (1/26/16)
//Original nsc.c header follows:
/*
*
* program NSC
* version 2.0 (April 1995)
*
* Author: <NAME>
*
* For user notes see file nsc.h and readme.nsc !!
*
* Copyright Notice:
* All rights reserved, whether the whole or part of the ... |
/*
* tfmx.c
* File loader and UI for TFMX player.
* jhp 29Feb96
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tfmx.h"
#include "tfmx_player.h"
#include "tfmx_iface.h"
#include "unsqsh.h"
#include "tfmx_audio.h"
#ifdef _WIN32
#include <Winsock2.h>
#define strncasecmp ... |
// SPDX-License-Identifier: GPL-2.0
/*
* IIO rescale driver
*
* Copyright (C) 2018 Axentia Technologies AB
* Copyright (C) 2022 <NAME> <<EMAIL>>
*
* Author: <NAME> <<EMAIL>>
*/
#include <linux/err.h>
#include <linux/gcd.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <li... |
/*
* 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... |
#define FUSE_USE_VERSION 25
//#define DEBUG_FUSE
#include <fuse.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include <unistd.h>
#include <inttypes.h>
#include <sys/types.h>
#include "debug.h"
#include "runtime.h"
#include "type_info.h"
#include "fuse_node.h"
#inc... |
/*-
* Copyright (c) 2019 <NAME> <<EMAIL>>
* Copyright (c) 2016 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above ... |
/** \file algorithm.cpp ******************************************************
*
* Project: MAXREFDES117#
* Filename: algorithm.cpp
* Description: This module calculates the heart rate/SpO2 level
*
*
* --------------------------------------------------------------------
*
* This code follows the following naming conven... |
/* cgfx_interfaces.c - an OpenGL-based CgFX 1.5 demo */
/* This CgFX demo renders a torus shaded with a sequence
of "layers" composited together in sequence. The layers
are instances of implementations of a common "Layer" interface.
The sequence of layers is implemented via an unsized array
(sized and sp... |
/*
nb_n.c : Clasificador Naive Bayes usando la aproximacion de funciones normales para features continuos
Formato de datos: c4.5
La clase a predecir tiene que ser un numero comenzando de 0: por ejemplo, para 3 clases, las clases deben ser 0,1,2
PMG - Ultima revision: 20/06/2001
*/
#include <stdio.h>
#include <math.h>... |
// To get required headers, runf
// sudo apt-get install libcups2-dev libcupsimage2-dev
#include <cups/cups.h>
#include <cups/ppd.h>
#include <cups/raster.h>
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
// uncomment next line in order to have verbose dump in DEBUGFILE
// after print
... |
/*
* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
/*
* Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1999-2003 by Internet Software Consortium
*
* 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 pe... |
/* Target-dependent code for GNU/Linux running on the Fujitsu FR-V,
for GDB.
Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Pub... |
/******************************************************************************
* INCLUDES
*****************************************************************************/
#include "splatt_cmds.h"
#include "../io.h"
#include "../sptensor.h"
#include "../completion/completion.h"
#include "../stats.h"
#include "../splat... |
/*
* -----------------------------------------------------------------
* $Revision: 4146 $
* $Date: 2014-06-24 09:04:33 -0700 (Tue, 24 Jun 2014) $
* -----------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL (based on idaRoberts_dns.c)
* -------------------------------------... |
/*-
* Copyright (c) 2006 <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 an... |
/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <ztest.h>
#include <net/net_core.h>
#define NET_LOG_ENABLED 1
#define NET_SYS_LOG_LEVEL 4
#include "net_private.h"
#include <net/net_ip.h>
#include <net/nbuf.h>
#include <ieee802154_frame.h>
#inclu... |
/* ctgsna.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... |
/***********************************************************************
*
* sync-pppd.c
*
* An LNS handler which starts pppd attached to a PTY in
* synchronous mode.
*
* Copyright (C) 2002 by <NAME> Software Inc.
*
* This software may be distributed under the terms of the GNU General
* Public License, Version 2, or (a... |
/*
* Copyright 2017 NXP
*
* 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 following disclaimer.
... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/crypto/crypto_tests/t_cksums.c - Test known checksum results */
/*
* Copyright (C) 2010 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specifi... |
/**
* (C) Copyright 2017-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#define D_LOGFAC DD_FAC(tests)
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <uuid/... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2017 The University of Tennessee a... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/mman.h>
#include <sched.h>
// version 1: from http://stackoverflow.com/questions/21369381/measuring-cache-latencies
// fails with segmatation fault
// versi... |
/*
* "streamable kanji code filter and converter"
* Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
*
* LICENSE NOTICES
*
* This file is part of "streamable kanji code filter and converter",
* which is distributed under the terms of GNU Lesser General Public
* License (version 2) as published by th... |
#include "ltp1245.h"
#include "pinning.h"
uint8_t LTP1245_Buffer[LTP1245_LINEWIDTH / 8 * LTP1245_BUFFER_LINES];
typedef struct State_t
{
struct State_t (*fn)(void);
} State_t;
static volatile int Stepper_Delta = 0;
static int PrintLines;
static int CurrentBufferLine;
static volatile int PulseWidth = 2000;
// Ma... |
// Copyright (C) 2015 University of Oregon
// You may distribute under the terms of either the GNU General Public
// License or the Apache License, as specified in the LICENSE file.
// For more information, see the LICENSE file.
/* gHSQCAD_PS - Gradient Selected phase-sensitive HSQC
Adiabatic version
... |
#include "types.h"
#include "mmu.h"
#include "param.h"
#include "proc.h"
#include "user.h"
#define MAX_CHILDREN 32
typedef void (*function_type)(void);
struct test_case {
const char *name;
int total_tests;
int errors;
int num_children;
int tickets[MAX_CHILDREN];
int expect_ticks_unscaled[MAX_... |
// gcc -g -O3 -Wall bam2depth.c -o bam2depth -I./samtools-0.1.19 -I./zlib-1.2.8/include -L./samtools-0.1.19 -L./zlib-1.2.8/lib -I. -L. -lhashtbl -lpthread -lm -lz -lbam
#include <stdio.h>
#include <getopt.h>
#include <math.h>
#include <err.h>
#include <time.h>
#include <sys/time.h>
#include <libgen.h>
#include "sam.h"
... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2007-2009 <NAME> - All Rights Reserved
* Copyright 2009-2013 Intel Corporation; author: <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated docum... |
#include "modes/special/setup.h"
#define setup_custom_r 47
#define setup_custom_g 63
#define setup_custom_b 63
#define setup_preset_r 47
#define setup_preset_g 63
#define setup_preset_b 47
#define setup_velocity_r 31
#define setup_velocity_g 63
#define setup_velocity_b 63
#define setup_top_pro_r 63
#define setup_to... |
/*
* Copyright (C) 2011 <NAME> <<EMAIL>>
* 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, including without limitation
* the rights to use,... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hashmap.h"
unsigned Coeff1 = 27;
int Pwrs_2[] = {
16, 32, 64, 128, 256,
512, 1024, 2048, 4096, 8192,
16384, 32768, 65536, 131072, 262144,
524288, 1048576, 2097152, 4194304, 8388608,
16777216, 33554432, 67108864, 134217728, 268435456,
53687091... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
* Purpose: The CINT demonstrates a Controlling bridge configuration as part of a Port Extender (802.BR) application.
... |
/**
*
* @file testing_ssygv.c
*
* PLASMA testing routines
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author <NAME>
* @author <NAME>
* @date 2010-11-15
* @generated s Tue Jan 7 11:45:18 2014
*
**/
#inc... |
/*
* 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... |
/* GStreamer
* Copyright (C) 2011 Axis Communications <<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) any later v... |
/* -------------------------------------------------------------------- */
/* CALCULIX */
/* - GRAPHICAL INTERFACE - */
/* */
/* A 3-dimen... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 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 ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*
* Copyright (c) 2021, <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 IS PROVIDED "AS IS" AND THE AUTHOR D... |
/* Copyright 2016-2018 The Ulord Core Foundation */
#include "PoW.h"
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
// #include <omp.h>
#include "my_time.h"
#include "common.h"
#include "my_rand48_r.h"
#include "oneWayFunction.h"
// #define SSE_VE... |
/*
* pinmux setup for siemens draco board
*
* (C) Copyright 2013 Siemens Schweiz AG
* (C) <NAME>, DENX Software Engineering, <EMAIL>.
*
* Based on:
* u-boot:/board/ti/am335x/mux.c
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <comm... |
/* crop an image down to a specified size by removing boring parts
*
* Adapted from sharp's smartcrop feature, with kind permission.
*
* 1/3/17
* - first version, from sharp
* 14/3/17
* - revised attention smartcrop
* 8/6/17
* - revised again
* 15/9/18 lovell
* - move shrink to start of processing
* 22/... |
/* sas_support.c
* <NAME> <<-- many updates required
* zicew
* ECE 2230 Fall 2018
* MP3
*
* Propose: A genral saslist manipulations for MP3
*
* Assumptions: This file contains some operations for LISTCH and other data.
*
* Bugs: no bugs.
*
* You can modify the interface for any of the sas_ functi... |
/**
******************************************************************************
* @file wm8960.c
* @author YANDLD
* @version V2.6
* @date 2015.07.23
* @brief www.beyondcore.net http://upcmcu.taobao.com
******************************************************************************
*/
#i... |
/* ----------------------------------------------------------------- */
/* The Speech Signal Processing Toolkit (SPTK) */
/* developed by SPTK Working Group */
/* http://sp-tk.sourceforge.net/ */
/* -----------------------------... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This functio... |
#include <err.h>
#include <pthread.h>
#include <unistd.h>
#include <libavformat/avformat.h>
#include <libavresample/avresample.h>
#include <libavutil/opt.h>
#include <SDL.h>
#include "debug.h"
#include "player.h"
#include "mqtt_loop.h"
/*
TODO:
1 framelist --> blockqueue ?? 控制解码速度防止读取过多占用较多内存
https://github.com/... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include "fromToStateARTCC.h"
int main (int argc, char *argv[])
/******************************************************************************
fromToStateARTCC
This program was developed to take a FROM Line with VOR references as argument... |
/* sv.h
*
* Copyright (c) 1991-1994, <NAME>
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*/
// 2006.08.29 updated by K.Takata
#ifndef BREGONIG_NS
#ifdef UNICODE
#define BREGONIG_NS unicode
#else
#define... |
/*
* LibXDiff by <NAME> ( File Differential Library )
* Copyright (C) 2003 <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 (... |
#include <types.h>
#include <terminal.h>
#include <kernel.h>
#include <fs.h>
#include <fat.h>
#include <mem_mgr.h>
#include <ata.h>
#include <string.h>
// -------------------------------------------------------------------------
// Static Declares
// --------------------------------------------------------------------... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2017 <NAME> //
// ... |
/*! \file bcm56780_a0_cth_meter_l2_iif_sc_drv.c
*
* bcm56780_a0 driver for storm control meter.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <shr... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <errno.h>
#include <string.h>
#include <sys/param.h>
#ifndef MAX
//! Get the maximum of two values
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef MIN
//! Get the minimum of two values
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
#d... |
#include <gc.h>
#include <stdio.h>
#include <stdint.h>
#include <sys/types.h>
#include <string.h>
#include <ctype.h>
#include "sfs.h"
/*
* simple functional strings library, by esotericist (eso at esotericist dot org)
* because i realized after i started on this project i needed immutable strings
* but i started ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>
int utf8_to16_iconv(const unsigned char *buf8, size_t len8,
unsigned short *buf16, size_t *len16);
int utf8_to16_naive(const... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 <NAME>
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) a... |
/*
* Image format
* Copyright (c) 2000, 2001, 2002 <NAME>
* Copyright (c) 2004 <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
* versi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "SDL.h"
#include "common.h"
#include "io.h"
/* the keyboard-mapping equivalents for the joysticks */
static struct input_def key_defs[MAX_JOY];
static int joy_ct;
static SDL_Joystick *joy[MAX_JOY];
static int has_quit;
/* in... |
/*
* Copyright 2008 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distrib... |
/* Copyright 2016 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.
*/
#include <math.h> /* for abs() */
#include <stdio.h> /* for printf() */
#include <string.h> /* for memset() */
#include <stdint.h> /* for uint64 ... |
#include "config.h"
#include "hpack.h"
#include "hpack-data.h"
struct cno_header_table_t {
struct cno_header_table_t *prev;
struct cno_header_table_t *next;
size_t k_size;
size_t v_size;
size_t refcnt;
char data[];
};
void cno_hpack_free_header(struct cno_header_t *h) {
if (h->flags & CNO_... |
/*
* Copyright © 2008 <NAME> <<EMAIL>>
* Copyright © 2008 <NAME> <<EMAIL>>
* Copyright © 2008 <NAME> <<EMAIL>>
* Copyright © 2008 <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... |
/*
*
* i2c tv tuner chip device driver
* controls all those simple 4-control-bytes style tuners.
*/
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/videodev.h>
#include <media/tuner.h>
static int offset = 0;
module_param(offset, int, 0666);
MODULE_PARM_DESC(offset,"Allows to specify an offset for t... |
#include "djb.h"
/* define to enable verbose debug output from prf_handle() function */
#undef DEBUGHANDLE
/* XXX: relies on strdup/calloc, verify if all is free()'d properly */
static mutex_t l_mutex;
static char *l_current_preferences = NULL;
static json_t *l_bridge_access_list = NULL;
/* keep these ALL the same ... |
#include "proto.h"
void generate_palette (struct context * context, unsigned flags) {
size_t count = (size_t) context -> image -> width * context -> image -> height * context -> image -> frames;
void * palette = plum_malloc(context -> image, plum_color_buffer_size(0x100, context -> image -> color_format));
uint8... |
/* pdp8_ttx.c: PDP-8 additional terminals simulator
Copyright (c) 1993-2012, <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
... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/* ... |
/*-
* Copyright (c) 1992 <NAME>.
* Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... |
/*
* Mesa 3-D graphics library
*
* Copyright (C) 1999-2008 <NAME> 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, including without limit... |
/*
* Copyright (c) 2019-2020 Amazon.com, Inc. or its affiliates.
* 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 ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/wait.h>
#include <signal.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <openssl/sha.h>
#include <pwd.h>
#i... |
/*
* Copyright 2021, Breakaway Consulting Pty. Ltd.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
/*
* The seL4 Core Platform Monitor.
*
* The monitor is the initial task in a core platform system.
*
* The monitor fulfills two purposes:
*
* 1. creating the initial state of the system.
* 2. acting as the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.