text stringlengths 3.12k 18.7k |
|---|
#define DREAMCAST_AUDIO_DEVICE_NAME "Yamaha AICA Stereo Device"
#ifndef _arch_dreamcast
typedef uint32_t snd_stream_hnd_t;
const snd_stream_hnd_t SND_STREAM_INVALID = -1;
#else
static kthread_t* THREAD = NULL;
static mutex_t DEVICE_MUTEX = MUTEX_INITIALIZER;
#endif
// This is the spec that MojoAL asked for
static SD... |
/*
* elf.c - ELF file format handlers
*
* Copyright 2010 <NAME> <<EMAIL>>. All rights reserved.
* This code is available under the simplified BSD license. See LICENSE for details.
*/
#include "8cc.h"
/*
* Functions to create an ELF format object file that you can link to create an
* executable.
*
* ELF obj... |
#include "s.h"
#include "r.h"
#include "sparc.h"
extern int NumGC;
int KBytesAllocated = 0;
int KBytesCollected = 0;
void object_profile_init(Object_Profile_t *p)
{
p->RecordWord = 0;
p->Record = 0;
p->Pair = 0;
p->IArray = 0;
p->RArray = 0;
p->PArray = 0;
p->IArrayWord = 0;
p->RArrayWord = 0;
p->P... |
/*
* Copyright (C) Nginx, Inc.
* Copyright (C) <NAME>
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
static void *ngx_http_v3_create_srv_conf(ngx_conf_t *cf);
static char *ngx_http_v3_merge_srv_conf(ngx_conf_t *cf, void *parent,
void *child);
static void *ngx_http_v3_create_loc_conf(... |
#define X_DISPLAY_MISSING
#include <Imlib2.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <gd.h>
#include "imlib_errno_generated.h"
#include "exif_data.h"
#include "commons.h"
#include "fallbacks.h"
#include "gifthumb.h"
#include "copy.h"
#include "funn... |
#include <stdlib.h> // malloc
#include <string.h> // memset
#include <sys/socket.h>
#include <netdb.h>
#include "socks5.h"
#include "selector.h"
#include "buffer.h"
#include "stm.h"
#include "socks5mt.h"
#include "socks5_handler.h"
#include "logger.h"
#include "sm_actions.h"
#include "config.h"
// Retorna la cantid... |
#include <u.h>
#include <kvm.h>
#include <nlist.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/dkstat.h>
#include <net/if.h>
#include <machine/apmvar.h>
#include <sys/ioctl.h>
#include <uvm/uvm_param.h>
#include <uvm/uvm_extern.h>
#in... |
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of the srsLTE library.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Soft... |
/*
* scache.c - USB Mass storage driver for PS2
*
* (C) 2004, <NAME> (<EMAIL>)
* (C) 2004 Hermes (support for sector sizes from 512 to 4096 bytes)
*
* Sector cache
*
* See the file LICENSE included with this distribution for licensing terms.
*/
#ifdef _PS2_
#include <tamtypes.h>
#define mal... |
/*******************************************************************************
* @file alsa_utils.c
*
* @brief This module have common functions for ALSA
*
* This module should contain common functions used for different ALSA programs
* this could be:
* @li HW Configuration
* @li SW Config... |
#include "primes.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/resource.h>
#include <assert.h>
#define LONG64 unsigned long long
#define MIN(A,B) ((A) < (B) ? (A) : (B))
static int _initialized = 0;
static LONG64 _blockSize = 0;
static LONG64 _taskId;
static LONG64 _nTasks;
static LONG64 ... |
/*****************************************************************************
NAME: atdp -- ASF time domain processor
SYNOPSIS: atdp ifile ofile
*****************************************************************************/
/******************************************************************************
* ... |
/***************************************************************************//**
* @file
* @brief CCM* as used by 802.15.4 security.
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
************************... |
/*------------------------------------------------------------------------------
Copyright (c) 2009-2022 The GRRLIB Team and HTV04
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 restricti... |
typedef unsigned short uint16;
typedef unsigned char byte;
volatile uint16 *oam = ((volatile uint16 *)0x07000000);
volatile uint16 *tile_obj = (volatile uint16 *)0x06010040;
volatile uint16 *tile = (volatile uint16 *)0x06000000;
volatile uint16 *ioram = (volatile uint16 *)0x04000000;
volatile uint16 *palette = (volati... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <sys/select.h>
#include <unistd.h>
#include "sqlite3.h"
#define MAX_THREAD 10
#define MAX_MAT 8
typedef struct mat_xy {
int y, x, ha, hs;
}mat_;
typedef struct command_parcel {
int index... |
/*
* vuart.c implements a full-duplex software UART
*
* This implementation requires an external and a timer interrupt.
* INT0 and TIMER0 is used by default.
*
* If you are using anything other than 8Mhz internal oscillator, you
* need to adjust ONE_BIT_COUNT and ONE_PLUS_BIT_COUNT as well as
* timer's prescale... |
/**
* \file
* \brief Serial port driver.
*/
/*
* Copyright (c) 2007-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, CAB F.78, Universitaetstrasse 6, CH-809... |
/* wmwb dat2csv
alias
wmwbh: wang ma wu bi hun
wmwb: wang ma wu bi
jm.dat: jian ma
qm.dat: quan ma
zg.dat: zi gen
cmts: chong ma ti shi
kmts: kong ma ti shi
zgts: zi gen ti shi
pyts: zi gen ti shi
6jpjbts: 6 Jian PuJiBan TiShi
jp: jian pin
6j: 6 jian
*****
https://zh.wikipedia.org/wiki/GB_18030
*****
有些字因为很常用,它可能... |
/*
* Copyright 1997,1999,2000 <NAME>. Subject to the GPL.
* $Id: statistics.c,v 1.14 2001/02/02 18:01:23 pb Exp $
* 19980630 - i18n - <NAME> <<EMAIL>>
* 19981113 - i18n fixes - <NAME> <<EMAIL>>
* 19990101 - added net/netstat, -t, -u, -w supprt - <NAME>
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib... |
#include <kernel/pci.h>
typedef struct {
uint8_t class;
uint8_t subclass;
const char *name;
} pci_classname;
pci_classname classnames[] = {
{0x00, 0x00, "Non-VGA-Compatible Unclassified Device"},
{0x00, 0x01, "VGA-Compatible Unclassified Device"},
{0x01, 0x00, "SCSI Bus Controller"},
{0x01, 0x01, "... |
/* PCGS.f -- translated by f2c (version 12.02.01).
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 t... |
/*
** Copyright (c) 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 c... |
/*
* MIT License, see root folder for full license.
*/
#include "base-encoding.h"
/** array of base10 alphabet letters */
static const char BASE_2_ALPHABET[] = { '0', '1' };
/** array of base10 alphabet letters */
static const char BASE_10_ALPHABET[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
/** arra... |
/*
* Copyright 2013, Google Inc.
* 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 list of cond... |
/*
Copyright (c) 2020 <NAME> <<EMAIL>>
The implementation of the numbers library
*/
#include "numbers.h"
#include <memory.h>
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
void init_number_by_integer(number_t *n, integer_t value)
{
n->real_value = value;
n->is_number = ... |
/*
* Copyright 2018 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Author <NAME> <<EMAIL>>
*/
#include <platform_def.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <debug.h>
#include <errno.h>
#include <utils.h>
#include <string.h>
#include <ddr.h>
struct dimm_par... |
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of... |
/*
* This file is part of pgn-extract: a Portable Game Notation (PGN) extractor.
* Copyright (C) 1994-2020 <NAME>
*
* pgn-extract 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 3 of ... |
/**
******************************************************************************
* @file UART/UART_HyperTerminal_DMA/Src/main.c
* @author MCD Application Team
* @brief This sample code shows how to use UART HAL API to transmit
* and receive a data buffer with a communication process base... |
/* Copyright (c) 2007 CSIRO
Copyright (c) 2007-2009 Xiph.Org Foundation
Written by <NAME> */
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyrig... |
/*
Hugo Project 1.0 Rev.3
Structures and global definitions
Localisation: English Int.
Created by <NAME>
Platform: LinkIt ONE by Mediatek
Copyright <NAME> (<EMAIL>)
Source released under Apache license 2.0
*/
#define REMOTE_NUMBER "+34636230559"
#define REMOTE_NUMBER_LENGTH 20
#define SMS_PAUSED 1000 ... |
/*Copyright (c) 2020 <NAME>.
*
* This software component is licensed under MIT license.
* You may not use this file except in compliance retain the
* above copyright notice.
*/
#include "xpt2046.h"
#include "ili9325.h"
#include "mcu_init.h"
#include "tft.h"
#include <stddef.h>
/**
TO... |
/**
* ExaNIC Firmware Development Kit 'spam' example.
*
* To be used with "exanic_*_native_spam_example.fw" generated from the
* devkit examples.
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <getopt.h>
#include <exanic/exanic.h>
#include <exanic/uti... |
#include "core_debug.h"
#include "core_pkbuf.h"
#include "core_time.h"
#include "core_hash.h"
/*
* The internal form of a hash table.
*
* The table is an array indexed by the hash of the key; collisions
* are resolved by hanging a linked list of hash entries off each
* element of the array. Although this is a rea... |
/*
* Copyright (c) 2009, Google Inc.
* All rights reserved.
*
* Copyright (c) 2009-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 ... |
/*
* KMAPINFO.C
*
* cc -I/usr/src/sys kmapinfo.c -o ~/bin/kmapinfo -lkvm
*
* Dump the kernel_map
*
* Copyright (c) 2010 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and bina... |
/* Background I/O service for Redis.
*
* This file implements operations that we need to perform in the background.
* Currently there is only a single operation, that is a background close(2)
* system call. This is needed as when the process is the last owner of a
* reference to a file closing it means unlinking i... |
/*********************************************************************
wavfile.c
Format code for wave (*.wav) files
*********************************************************************/
#include <stdio.h>
#include <assert.h>
#include "wavfile.h"
#include "cassimg.h"
static const char magic1... |
/******************************************************************************
* 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 ... |
/*********************************************************************
*
* $Id: dbf2sqlite.c,v 1.3 2012-06-03 14:00:20 woodbri Exp $
*
* dbf2sqlite
* Copyright 2008, <NAME>, All rights Reserved
* Redistribition without written permission strictly prohibited
*
********************************************************... |
/*
Unix SMB/CIFS implementation.
trivial database library - private includes
Copyright (C) <NAME> 2005
** NOTE! The following LGPL license applies to the tdb
** library. This does NOT imply that all of Samba is released
** under the LGPL
This library is free software;... |
/*
* HUST_fs disk layout:
* 100MB disk -> 25600 blocks
* And can write 25600 files at most.
* inode size is 128B
* block size is 4096B <=> 4K
* block0 |dummy block
* block1 |super block
* block2 |bmap block
* block3 |imap block
* block4 - block(25600/(4096/64) + 3) |inode table
* other blocks |data blocks
*... |
#include "rc.h"
#include "exec.h"
#include "io.h"
#include "getflags.h"
#include "fns.h"
int getnext(void);
int
wordchr(int c)
{
return !strchr("\n \t#;&|^$=`'{}()<>", c) && c!=EOF;
}
int
idchr(int c)
{
/*
* Formerly:
* return 'a'<=c && c<='z' || 'A'<=c && c<='Z' || '0'<=c && c<='9'
* || c=='_' || c=='*';
*... |
/*****************************************************************************
* Copyright 2020-2021 Intel 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://ww... |
/*
* 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 ma... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 <NAME>
* Modifications Copyright © 2021 Ci4Rail GmbH
*
* influenced by lrndis https://github.com/fetisov/lrndis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
/* $OpenBSD: itevar.h,v 1.11 2003/06/02 23:27:45 millert Exp $ */
/* $NetBSD: itevar.h,v 1.14 1997/03/31 07:37:27 scottr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contr... |
/* grabbag - Convenience lib for various routines common to several tools
* Copyright (C) 2002-2009 <NAME>
* Copyright (C) 2011-2016 Xiph.Org Foundation
*
* 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 Fr... |
/**This is the program that's uploaded to a Windows machine when psexec is run. It acts as a Windows
* service, since that's what Windows expects. When it is started, it's passed a list of programs to
* run. These programs are all expected to be at the indicated path (whether they were uploaded or
* they were al... |
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
develop this 3D driver.
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 ... |
/*****************************************************************
*
* defines for 3Com Etherlink Plus adapter
*
*****************************************************************/
#define ELP_DMA 6
#define ELP_RX_PCBS 4
#define ELP_MAX_CARDS 4
/*
* I/O register offsets
*/
#define PORT_COMMAND 0x00 /* r... |
#include "worker.h"
#include "core/context.h"
#include "shared.h"
#include "time/time.h"
#include <buffer/cc_buf.h>
#include <buffer/cc_dbuf.h>
#include <cc_debug.h>
#include <cc_event.h>
#include <cc_ring_array.h>
#include <channel/cc_channel.h>
#include <channel/cc_pipe.h>
#include <channel/cc_tcp.h>
#include <st... |
/**
* Relatório 8 - INE5416/2017.2
* <NAME>
* 16100735
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define size(x) (sizeof(x)/sizeof((x)[0]))+1
/**
Parte 1 - Vetores
*/
float norma(const float* vetor) {
float soma = 0;
int size1 = size(vetor);
for (int i = 0; i < size1; ++i)
soma += v... |
/*!
* t-dbformat.c - dbformat test for lcdb
* Copyright (c) 2022, <NAME> (MIT License).
* https://github.com/chjj/lcdb
*
* Parts of this software are based on google/leveldb:
* Copyright (c) 2011, The LevelDB Authors. All rights reserved.
* https://github.com/google/leveldb
*
* See LICENSE for more informa... |
/* **********************************************************
* Copyright (c) 2003-2008 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
#define _GNU_SOURCE
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "includes.h"
#include "xalloc.h"
#include <unistd.h>
#include <sched.h>
#include <pthread.h>
#include <sys/types.h>
#include <pwd.h>
#include "../lib/logger.h"
#define MAX_SPLITS 128
int m... |
//========================================================================
// Input lag test
// Copyright (c) <NAME> <<EMAIL>>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// ... |
/// @file blas_comm.c
/// @brief The standard implementations for blas_comm.h
///
#include "blas_comm.h"
#include "blas.h"
#include "gf.h"
#include "rainbow_config.h"
#include <stdint.h>
#include <string.h>
void PQCLEAN_RAINBOWVCIRCUMZENITHAL_CLEAN_gf256v_set_zero(uint8_t *b, unsigned int _num_byte) {
for (size_... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
/*
* SHA-256 hash implementation and interface functions
* Copyright (c) 2003-2011, <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.
*
* Alternatively, this s... |
/* Copyright 2020 <NAME> <<EMAIL>>
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.
2.... |
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
#include "wasm_export.h"
#include "bh_read_file.h"
#include "pthread.h"
#define THREAD_NUM 10
typedef struct ThreadArgs {
wasm_exec_env_t exec_env;
int start;
int length;
} Thr... |
#include <stdio.h>
#define uint unsigned int
int find_in_table_bsearch(short val,int keys,int number_of_keys)
{
int iVar1;
int iVar2;
int tmp_key_idx;
int iVar3;
/* find_in_table_binary_search */
number_of_keys = number_of_keys + -1;
tmp_key_idx = (int)(char)((uint)number_of_keys >> 8);
iVar3 = tm... |
/*
MIT License
Copyright (c) 2021 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... |
/*
* An implementation of host to guest copy functionality for Linux.
*
* Copyright (C) 2014, Microsoft, Inc.
*
* 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 version 2 as published
* by the Free Softwa... |
/* $Id$
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 Silicon Graphics, Inc. All rights reserved.
*/
#include <linux/init.h>
#include <linux/types.h>
#include <lin... |
/**********************************************************************************************************************
* @file cli.c
* @author <NAME>
* @date 26-05-2018
* @brief
*********************************************************************************************************************/
/* Inc... |
//Copyright <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, distribute, sublice... |
/* asciitopgm.c - read an ASCII graphics file and produce a portable graymap
**
** Copyright (C) 1989 by <NAME>, Jr
**
** - Based on fstopgm.c and other works which bear the following notice:
** Copyright (C) 1989 by <NAME>.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation fo... |
static int heal_rate, heal_amount, heal_time;
int player_age;
int stunned;
int paralysed;
#define YEAR 31536000
#define DAY 86400
#define HOUR 3600
#define MIN 60
void set_heal_rate(int rate) {
heal_rate = rate;
}
int query_heal_rate(void) {
return heal_rate;
}
void set_heal_step(int amt) {
heal_amount = a... |
#include <genesis.h>
#include <resources.h>
//Datos del nivel en cuadricula de 16x16 pixeles
//1=Bloque solido 0=Nada
const short nivel1_map[14][40] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... |
/* Copyright 2020 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 <ctype.h>
#include <stdlib.h>
#include <strings.h>
#define HIDE_EC_STDLIB
#include "common.h"
#include "console.h"
#include "util.h"
/* ... |
/* $Id: udns_dn.c,v 1.8 2010-12-27 17:14:17 mjt Exp $
domain names manipulation routines
Copyright (C) 2005 <NAME> <<EMAIL>>
This file is part of UDNS library, an async DNS stub resolver.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General ... |
/*
* Copyright (c) 2008-2009 <NAME>
* Copyright (c) 2008-2009 <NAME>
* Copyright (c) 2013 Intel Corporation
*
* 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, inc... |
/*
Nintendo Switch Fightstick - Proof-of-Concept
Based on the LUFA library's Low-Level Joystick Demo
(C) Dean Camera
Based on the HORI's Pokken Tournament Pro Pad design
(C) HORI
This project implements a modified version of HORI's Pokken Tournament Pro Pad
USB descriptors to allow for the creation of custom contro... |
/*
* Posix generic OS implementation for drawterm.
*/
#include "u.h"
#ifndef _XOPEN_SOURCE /* for Apple and OpenBSD; not sure if needed */
#define _XOPEN_SOURCE 500
#endif
#include <pthread.h>
#include <time.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/select.h>
#include <signal.h>
#include <pwd.h>... |
/*
* The persistant daemon that handles incoming floods,
* outgoing floods, etc.
*/
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <strings.h>
#include <sys/socket.h>
#include <mrt_thread.h>
#include <sys/types.h>
#include <sys/tim... |
/* $Name $Revision$ $Date$ */
/*************************************************************************
*
* pkttype.c
*
* Recognize a packet type
*
*
* Author: <NAME>
* UCSD, IGPP
* <EMAIL>
************************************************************************/
#include "defunctpkt.h"
... |
/*
MIT License
Copyright (c) 2019 <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, d... |
/* This file is part of fotix
* Copyright (c) 2013 <NAME>
*
* elf.c -- Defines the functions needed
* to support elf file loading in the kernel.
*/
#include "include/common.h"
#include "include/elf.h"
/** Functions to access the section headers **/
static inline Elf32_shdr *
elf_sheader (Elf32_elfhdr *header)
{
... |
/*
* Copyright (c) 2013-2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* 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 r... |
/* src/pre_config.h. Generated from pre_config.h.in by configure. */
/* src/pre_config.h.in. Generated from configure.ac by autoheader. */
/* DEPRECATED (use P4EST_ENABLE_BUILD_2D instead) */
#define BUILD_2D 1
/* DEPRECATED (use P4EST_ENABLE_BUILD_3D instead) */
#define BUILD_3D 1
/* DEPRECATED (use P4EST_ENABL... |
/*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... |
/*****************************************************************************
* unicode.c: Unicode <-> locale functions
*****************************************************************************
* Copyright (C) 2005-2006 VLC authors and VideoLAN
* Copyright © 2005-2010 <NAME>
*
* Authors: <NAME>
*
* This pr... |
#include "helper.h"
#include "helper2.h"
#include "errno.h"
#define MAXSIZE 1024
#define MAXSIZE2 128
struct block {
void *addr; // addr of header
int size;
int ID;
int flag;
struct block *next;
struct block *prev;
};
void* createLL(void *ram);
void swap(struct block *a, struct block *b);
void bubbleSort(void... |
/*********************************************************************
赤外線リモコン受信部 for Raspberry Pi
本ソースリストおよびソフトウェアは、ライセンスフリーです。
利用、編集、再配布等が自由に行えますが、著作権表示の改変は禁止します。
Copyright (c) 2009-2016 <NAME>
https://bokunimo.net/raspi/
*******************************... |
/*
============================================================================
Name : TelnetService.c
Author : xr.lee
Version :
Copyright : toonan
Description : Hello World in C, Ansi-style
============================================================================
*/
#include <sys/types.h>... |
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include "fibheap.h"
/* intel assembly */
#define LOG2(X) ({ \
unsigned int _i = 0; \
__asm__("bsr %1, %0" : "=r" (_i) : "r" ((X))); \
_i; })
#define CHECK_MALLOC(X) ({ \
if((X)==NULL) { \
fprintf(stderr, \
... |
/*
* ELF data structures and values
*/
typedef unsigned short Elf32_Half;
typedef unsigned int Elf32_Word;
typedef signed int Elf32_Sword;
typedef unsigned int Elf32_Off;
typedef unsigned int Elf32_Addr;
typedef unsigned char Elf_Char;
/*
* File Header
*/
#define EI_NIDENT 16
typedef struct {
Elf_Char e_id... |
/*
Olly BP Man
Copyright (C) 2005 <NAME> <<EMAIL>,<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)
any late... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <getopt.h>
#include <errno.h>
#include <error.h>
#include <iconv.h>
#include "cfbf.h"
struct write_pub_text_state {
iconv_t iconv_desc;
FILE *out;
};
int
print_dir_entry(void *cookie, struct cfbf *cfbf, struct DirEntry ... |
/* 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 may not... |
/*
* Copyright (c) 2018 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except i... |
/*
* Copyright (C) 2015 - <NAME>
*
* This 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.
*
* It is distributed in the hope tha... |
/* Config file for rfm
*/
/*#define RFM_ICON_THEME "elementary"*/
/*#define RFM_SEND_DND_HOST_NAMES*/
#define RFM_TOOL_SIZE 22
#define RFM_ICON_SIZE 48
#define RFM_THUMBNAIL_SIZE 128 /* Maximum size for thumb dir normal is 128 */
#define RFM_MX_MSGBOX_CHARS 1500 /* Maximum chars for RFM_EXEC_SYNC_MARKUP output; messa... |
#define _IOC(a,b,c,d) ( ((a)<<30) | ((b)<<8) | (c) | ((d)<<16) )
#define _IOC_NONE 0U
#define _IOC_WRITE 1U
#define _IOC_READ 2U
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
#define _IOW(a,b,c) _IOC(1,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(2,(a),(b),sizeof(c))
#define _IOWR(a,b,c) _IOC(3,(a),(b),sizeof(c))
#defi... |
/* $NetBSD: local.c,v 1.1.1.1 2009/12/02 00:27:10 haad Exp $ */
/*
* Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public Licens... |
/*
* Copyright (c) 2015 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
LOG_MODULE_DECLARE(net_zperf_sample, LOG_LEVEL_DBG);
#include <zephyr.h>
#include <misc/printk.h>
#include <net/net_core.h>
#include <net/net_ip.h>
#include <net/net_pkt.h>
#include "zperf.h"
#include ... |
/***************************************************************************//**
* @file
* @brief This file provides functionality to test RAIL error rates.
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.