text stringlengths 3.12k 18.7k |
|---|
//-------------------------------------------------------------------------------
// Copyright (c) 2020 <NAME>
/*-------------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fil... |
/*----------------------------------------------------------------------------
* File: ooaofooa_SM_MOAH_class.c
*
* Class: Moore Action Home (SM_MOAH)
* Component: ooaofooa
*
* your copyright statement can go here (from te_copyright.body)
*--------------------------------------------------------... |
/*
* Copyright 2017 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 <errno.h>
#include <fcntl.h>
#include <linux/memfd.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <math.h>
#include "cache.h"
#define OUTPUT 'o'
#define VERSION 'v'
#define AYUDA 'h'
#define CANTIDAD_VIAS 'w'
#define CACHE_SIZE 'c'
#define BLOCK_SIZE 'b'
#define READ_BYTE 'R'
#define WRITE_BYTE 'W'
#defi... |
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_media.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/if_ether.h>
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_ioctl.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <ctype.h>
#include <e... |
#include <stdio.h>
#include <stdlib.h>
/*******************************************************************************
******************************************************************************/
/* Created by the course staff of CS223 ULA, Spring 2018.
* Modified by <NAME> <<EMAIL>>
*
* Demonstration of comm... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<netinet/in.h>
#include <arpa/inet.h>
#include<time.h>
#include <pcap.h>
#include <ctype.h>
#define BUFSIZE 10240
#define STRSIZE 10240
typedef int bpf_int32;
typedef unsigned int bpf_u_int32;
typedef unsigned short u_short;
typedef unsigned int u_int32;... |
#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... |
/* cstring -- A string library
*
* Version 1.0 September 2021
*
* Copyright (c) 2021, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must r... |
/*
* rubylife.c
*
* Created: 07.10.2018 01:20:25
* Author : kiu
*/
#define F_CPU 4000000L
#define LED_COUNT 8
#define PWM_HIGH 0xE1
#define PWM_MIDDLE 0x37
#define PWM_LOW 0x14
#define PWM_OFF 0x00
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <util/delay.h>
... |
/*
* usb_dev.c
*
* Created: 2020/09/21 5:32:46
* Author: kiyot
*/
#include <stdint.h>
#include <string.h>
#include <samd51_error.h>
#include <samd51_usb_device.h>
#include "drivers/usb_dev.h"
#include "drivers/usb_cdc.h"
#define WORD2BYTE(w) ((w>>0)&0xff), ((w>>8)&0xff)
#pragma pack(1)
uint8_... |
/*
Copyright 1999-2001, 2007, 2009 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
The GNU MP Library test suite 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
/* window resolution */
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 720
/* frames per second */
#define FPS 30
/* game independent logic and resources */
typedef struct {
SDL_Window *w;
SDL_Renderer *r;
/* for all the in-game events */
SDL_Event ... |
#include "cgi_handler_thread.h"
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcgi_config.h>
#include <fcgiapp.h>
#include <mysql.h>
#include <mysqld_error.h>
#include <libmemcached/memcached.h>
#include "cgi_query_parser.h"
#includ... |
/*
* Copyright (C) 2009-2021 <NAME>
*
* 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 DISCLAI... |
/*
* csp_id.c
*
* Created on: 30. jun. 2020
* Author: johan
*/
#include <endian.h>
#include <csp/csp.h>
/**
* CSP 1.x
*
* +-----------+-------------------------+-------------------------+-----------------------------+---------------------------+----------------------------------------+
* | | ... |
// <NAME>
// 2021-09-08 12:54:30
//
// User Functions
#include "common.h"
#include "mongoose.h"
#include <sodium.h>
#include <jansson.h>
#include "user.h"
#include "objects.h"
#include "store.h"
#define COOKIE_KEY ("session")
#define COOKIE_LEN 32
// newuser_verify : returns true if the new user record is valid
i... |
/*
* Copyright (C) 2009-2010 Hebrew University Of Jerusalem, Israel
* See the LICENSE file.
*
* Author: <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <sys/select.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <ctype.h>
#include <sys/sysctl.h>
#include <syslog.h>
#... |
/*
* =====================================================================================
*
* Filename: finalProject.c
*
* Description: Final Project for CIS1057 at Temple University
*
* Version: 1.0
* Created: 11/27/2016 18:22:57
* Revision: none
* Compiler: gcc
*
... |
#include <ksyscalls.h>
#include <manager.h>
#include <sysio.h>
#include <sysconsole.h>
#include "video_mode.h"
#include "sound.h"
#include "process.h"
#include "scheduler.h"
#include <ipc.h>
#include <ports.h>
#include <pit.h>
extern unsigned int manage_read(unsigned int fd, char * buffer, unsigned int length);
extern... |
//
// Created by <NAME> as a part of http://www.github.com/domcermak/progtest
// Copyright © 2017 <NAME>. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
//
// Struct of map of fields with prices
// @param lenght Lenght size of array
// ... |
//
// heligun: 3D flight sim shooter
// Copyright (c) 2016 <NAME>
//
// This software is MIT licensed.
//
#include "renderer.h"
#include "sdlext.h"
#include "glext.h"
#include "game.h"
#include "mathext.h"
#include <stdio.h>
static GLuint g_terrain_diffuse_texture;
static GLuint g_terrain_normal_texture;
static GLu... |
/* Linear Programming Course Assignment 1
* m = 6, n = 10
* Given an m x n matrix A and vector B of dimension m. Find X s.t AX=B.
*
* Input
* m rows, each row containing n elements. These are the elements of matrix A
* m row each containing 1 element. This is the matrix B.
*/
#include<stdio.h>
#include<stdlib.... |
/*
* Copyright (c) 2016, <NAME>. All rights reserved.
*
* “Singularity” Copyright (c) 2016, The Regents of the University of California,
* through Lawrence Berkeley National Laboratory (subject to receipt of any
* required approvals from the U.S. Dept. of Energy). All rights reserved.
*
* This software is li... |
/*
* Copyright (c) 2017 Intel Corporation
*
* 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 fol... |
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
/* Copyright (c) 2012 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.
*/
/* Daisy board-specific configuration */
#include "board.h"
#include "common.h"
#include "dma.h"
#include "i2c.h"
#include "gpio.h"
#include "r... |
/*-------------------------------------------------------------------------
*
* blinsert.c
* Bloom index build and insert functions.
*
* Copyright (c) 2016-2018, PostgreSQL Global Development Group
*
* IDENTIFICATION
* contrib/bloom/blinsert.c
*
*------------------------------------------------------------... |
/*
* Main program entry point - read the command line options, then perform
* the appropriate actions.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "options.h"
#include "pv.h"
/* #undef MAKE_STDOUT_NONBLOCKING */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include... |
/*
*-----------------------------------------------------------------------
*
* vml.c - Internet Explorer VML Buffer Overflow Download Exec Exploit
* !!! 0day !!! Public Version !!!
*
* Copyright (C) 2006 XSec All Rights Reserved.
*
* Author : nop
* : <EMAIL>
* : http://www.xsec.org
* :... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elf.h"
#include "opcode.h"
#include "private.h"
#include "vm.h"
#include "vm_codegen.h"
#define NOT_IN_QUOTE '\0'
#define IS_QUOTE(qs, c) \
((qs == NOT_IN_QUOTE) ? (c == '"' || c == '\'') : c == qs)
#define SET_QUOTE(qs, c) \
do { ... |
/***************** make_prop.c ****************************************/
/* MIMD version 7 */
/* Read and/or generate a propagator */
#include "ks_spectrum_includes.h"
#include "../include/dslash_ks_redefine.h"
// void read_ksprop_to_ksp_field(int startflag, char startfile[],
// quark_source *my_ksqs, ks_pr... |
/*
* Copyright (c) 2016-2018 Positive Technologies, https://www.ptsecurity.com,
* Fast Positive Hash.
*
* Portions Copyright (c) 2010-2018 <NAME> <<EMAIL>>,
* The 1Hippeus project (t1h).
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held ... |
/* cache.c: cache management
*
* Copyright (C) 2006-2014 cgit Development Team <<EMAIL>>
*
* Licensed under GNU General Public License v2
* (see COPYING for full license text)
*
*
* The cache is just a directory structure where each file is a cache slot,
* and each filename is based on the hash of some key (... |
/*
* Copyright (c) 2000-2003, <NAME>
*
* This source code is released for free distribution under the terms of the
* GNU General Public License version 2 or (at your option) any later version.
*
* This module contains functions for generating tags for assembly language
* files.
*/
/*
* INCLUDE FILES
*/
#in... |
/* mipslabwork.c
This file written 2015 by <NAME>
This file should be changed by YOU! So add something here:
String Game
By us,
<NAME> and <NAME>
This file modified 2016-12-09 by <NAME> and <NAME>
Latest update 2016-12-09 by <NAME> and <NAME>
For copyright and licensing, see file COPYING */
#include <std... |
/* cc -o generate-triples-for-GB91 generate-triples-for-GB91.c -lmpfr # -fno-strict-aliasing */
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <mpfr.h>
/*
Find triples (xi, sin(xi), cos(xi)) very close to machine numb... |
/*******************************************************************************
* Copyright (c) 1991, 2015 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
/*
Copyright (c) 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 restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute... |
#include "kmem.h"
#include "kern_utils.h"
#include "sandbox.h"
#include "kexecute.h"
#include "common.h"
typedef uint64_t extension_hdr_t;
typedef uint64_t extension_t;
struct extension_hdr11 {
/* 0x00 */ extension_hdr_t next;
/* 0x08 */ uint64_t desc;
/* 0x10 */ extension_t ext_lst;
/* 0x18 ... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
/* Include the librealsense C header files */
#include <any_librealsense2/rs.h>
#include <any_librealsense2/h/rs_pipeline.h>
#include <any_librealsense2/h/rs_option.h>
#include <any_librealsense2/h/... |
// SPDX-FileCopyrightText: Copyright (c) 2022 <NAME>.
// SPDX-License-Identifier: BSD-3-Clause
#include "sdlui.h"
// NOTE: Sadly, as of at least SDL v2.0.20, SDL_Init() and SDL_Quit() are only
// declared in the jumbo "SDL.h" header-file that includes all the other SDL2
// header-files. Thus we cannot help but bloat t... |
#include "../cardano.h"
#include <assert.h>
#include <string.h>
#include <stdio.h>
/*
Example of transaction generation an signing from the testnet
Two addresses are generated from the given mnemonics, in this case:
- 2cWKMJemoBaiCnmPjDEhmPwDR9HhxtsLmzr4eHQNiQfBsRQ8sJnR94xGF5t8De5iBApqY
- 2cWKMJemoBajYE5NxbHP... |
#include "zxutils_ledger.h"
#ifndef NULL
#define NULL ((void *)0)
#endif
// We implement a light mecanism in order to be able to retrieve the width of
// nano S characters, in the two possible fonts:
// - BAGL_FONT_OPEN_SANS_EXTRABOLD_11px,
// - BAGL_FONT_OPEN_SANS_REGULAR_11px.
#define NANOS_FIRST_CHAR 0x20... |
/*
* Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Computer Consoles Inc.
*
* %sccs.include.redist.c%
*
* @(#)drreg.h 7.3 (Berkeley) 06/28/90
*/
/*
------------------------------------------
M... |
#include <stdio.h>
#include <string.h>
#include "weeip.h"
#include "eth.h"
#include "arp.h"
#include "dns.h"
#include "memory.h"
#include "random.h"
unsigned char dns_query_returned=0;
IPV4 dns_return_ip;
SOCKET *dns_socket;
unsigned char dns_query[512];
uint16_t dns_query_len=0;
unsigned char dns_buf[512];
void dn... |
/******************************************************************************
Octaspire Core - Containers and other utility libraries in standard C99
Copyright 2017 www.octaspire.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You m... |
#include <stdio.h>
// NOTE: outputs internal astera debug based on cmake flags
#include <astera/debug.h>
#include <astera/asset.h>
#include <astera/audio.h>
#include <astera/input.h>
#include <astera/render.h>
#include <astera/sys.h>
#include <astera/ui.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
... |
/*!
\file main.c
\brief USART DMA transmitter receiver
\version 2015-07-15, V1.0.0, demo for GD32F20x
\version 2017-06-05, V2.0.0, demo for GD32F20x
\version 2018-10-31, V2.1.0, demo for GD32F20x
\version 2020-09-30, V2.2.0, demo for GD32F20x
*/
/*
Copyright (c) 2020, GigaDevic... |
#include <fs/iso9660.h>
#include <lib/blib.h>
#include <lib/libc.h>
#include <mm/pmm.h>
#define ISO9660_FIRST_VOLUME_DESCRIPTOR 0x10
#define ISO9660_VOLUME_DESCRIPTOR_SIZE ISO9660_SECTOR_SIZE
#define ROCK_RIDGE_MAX_FILENAME 255
// --- Both endian structures ---
struct BE16_t { uint16_t little, big; } __attribute__((p... |
#include <stdio.h>
//#include <string.h>
//#include <stdlib.h>
#include <machine/patmos.h>
//#include "libcorethread/corethread.h"
//#include "libmp/mp.h"
//LEDs
#define LED ( *( ( volatile _IODEV unsigned * ) PATMOS_IO_LED ) )
//I2C controller
#define I2C ( *( ( volatile _IODEV unsigned * ) PATMOS_IO_I2C ) )
// Def... |
/*
* drlog.c
* Copyright © 2010-2020 <NAME> <<EMAIL>>
* Copyright © 2008-2010 <NAME> <<EMAIL>>
*
* Distributed under terms of the MIT license.
*/
#include "deps/cflag/cflag.h"
#include "deps/dbuf/dbuf.h"
#include "util.h"
#include <assert.h>
#include <time.h>
#include <stdio.h>
#include <limits.h>
#include <stri... |
/*
* Copyright (C) <NAME>
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_array_t *mirror;
ngx_flag_t request_body;
} ngx_http_mirror_loc_conf_t;
typedef struct {
ngx_int_t status;
} ngx_http_mirror_ctx_t;
static ngx... |
/*
* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/).
* All Rights Reserved.
*
* This software is licensed as OpenSource, under the Apache License, Version
* 2.0.
* This license is available at: http://opensource.org/licenses/Apache-2.0.
*/
#include <math.h>
#include "ac.h"
#include "charpath... |
// Copyright 2018 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.
#define _GNU_SOURCE
#include <dirent.h>
#include <err.h>
#include <fcntl.h>
#include <getopt.h>
#include <linux/input.h>
#include <stdbool.h>
#include... |
//
// nflate.c
// nflate
//
// Copyright (c) 2020 <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 ... |
/**
********************************************************************
* @file util_md5.c
* @brief
*
* @copyright (c) 2021 DJI. All rights reserved.
*
* All information contained herein is, and remains, the property of DJI.
* The intellectual and technical concepts contained herein are proprietary
* to DJ... |
/* SPDX-License-Identifier: BSD-3-Clause */
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <ev.h>
#include "ubus.h"
#include <libubus.h>
#include <libubox/blobmsg.h>
#include <apc.h>
#include <libubox/uloop.h>
struct ubus_context *ubus_ctx = NULL;
static struct blob_buf b;
... |
/*
* Copyright 2008-2009 Freescale Semiconductor, Inc.
* <NAME> <<EMAIL>>
*
* calculate the organization and timing parameter
* from ddr3 spd, please refer to the spec
* JEDEC standard No.21-C 4_01_02_11R18.pdf
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the... |
/*
* Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL licenses, (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://www.openssl.org/source/license.html
* or in the file LICENSE ... |
/*
* File: prof_utils.c
* CVS: $Id: prof_utils.c,v 1.8 2009/09/10 20:19:48 terpstra Exp $
* Author: <NAME>
* <EMAIL>
* Mods: <your name here>
* <your email address>
*/
/* This file contains utility functions useful for all profiling tests
It can be used by:
- profile.c,
- sprofil... |
/*
Copyright fevrier 2021, <NAME>
<EMAIL>
SiCP 2.5 simulateur de chaîne de pendules
Ce logiciel est un programme informatique servant à simuler l'équation
d'une chaîne de pendules et à en donner une représentation graphique.
Ce logiciel est régi par la licence CeCILL soumise au droit français et
respectant les principe... |
/* w - show what logged in users are doing. Almost entirely rewritten from
* scratch by <NAME> circa June 1996. Some vestigal traces of the
* original may exist. That was done in 1993 by <NAME> with some
* fixes by <NAME>.
*/
#include "proc/version.h"
#include "proc/whattime.h"
#include "proc/readproc.h"
#includ... |
#include "debug.h"
#include "opcodes.h"
#include "utils.h"
// A single-byte instruction with no arguments.
static size_t atomic_instruction(PyroVM* vm, const char* name, size_t ip) {
pyro_out(vm, "%s\n", name);
return ip + 1;
}
// An instruction with a two-byte argument which indexes into the constants tabl... |
#include "kvm/kvm.h"
#include "kvm/bios.h"
#include "kvm/apic.h"
#include "kvm/mptable.h"
#include "kvm/util.h"
#include "kvm/devices.h"
#include "kvm/pci.h"
#include <linux/kernel.h>
#include <string.h>
#include <asm/mpspec_def.h>
#include <linux/types.h>
/*
* FIXME: please make sure the addresses borrowed
* for ... |
/*
* Copyright 2020 Makani Technologies LLC
*
* 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 ... |
/* build.h - Foundation library build setup - Public Domain - 2013 <NAME>
*
* This library provides a cross-platform foundation library in C11 providing basic support
* data types and functions to write applications and games in a platform-independent fashion.
* The latest source code is always available at
... |
/*
Copyright (c) 2013-2014 <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, sub... |
/* AUTO GENERATED! DO NOT EDIT MANUALLY! */
#ifndef KEYS_INCLUDE
#error do not include this header!
#endif
#include <engine/keys.h>
const char * g_aaKeyStrings[KEY_LAST] =
{
"first",
"&1",
"&2",
"&3",
"&4",
"&5",
"&6",
"&7",
"backspace",
"tab",
"&10",
"&11",
"clear",
"return",
"&14",
"&15",
"&16",
... |
/*****************************************************************************/
/* copy_decompress_rle.c v2.2.1 */
/* */
/* Copyright (c) 2006-2017 Texas Instruments Incorporated */
... |
// 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.
/* TOCSY1D - DPFGSE-TOCSY experiment
Paramters:
sspul : selects magnetization rando... |
/*
* @brief LPC5410x I2C master driver
*
* @note
* Copyright(C) NXP Semiconductors, 2014
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is suppl... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <semaphore.h>
#include "lru_cache.h"
#include "lru_cache_impl.h"
/*******************************
* Wrappers for Posix semaphores
*******************************/
void unix_error(char *msg) /* Unix-style error */
{
fprintf(std... |
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyr... |
#include "cfg.h"
#include "db.h"
#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>
#include <signal.h>
#include <sys/socket.h>
#define SOCKET_PATH "127.0.0.1:9000"
PELEMENT elements;
static int socketId;
typedef struct _PCRE_VALUES {
pcre2_code *re;
pcre2_match_data *match_data;
} PCRE_VALUES;
void stop_all()... |
/*
Random.c
quasi- and pseudo-random-number generation
last modified 5 Jan 06 th
*/
/*
PART 1: Sobol quasi-random-number generator
adapted from ACM TOMS algorithm 659
*/
#define SOBOL_MINDIM 1
#define SOBOL_MAXDIM 40
static struct {
real norm;
number v[SOBOL_MAXDIM][30], prev[SOBOL_MAXDIM];
number seq;... |
/*
* Copyright (C) 1997 Massachusetts Institute of Technology
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this software,
* you agree that you have read, understood, and will comply with the
* following terms and conditions:
*
*... |
/*
* 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 ... |
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "cuart.h"
/*----------------------------------------------------------------------------*/
#define UART_HANDLER huart1
#define DEBUG_USART_INSTANCE USART1
#define UART_DBG
#define UART_RX_BUFFER_SIZE 256
#define INVALID_D... |
/*
* font.c
*
* Copyright (C) 2000 Rasca, Berlin
*
* 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 pr... |
/*
* This file is part of MPlayer.
*
* MPlayer 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.
*
* MPlayer is distributed in th... |
#include <string.h>
#include <stdio.h>
#include "vk_texture.h"
#include "vk_buffer.h"
#include "vk_image.h"
#include "utils.h"
#define TEX_DIR "assets/textures/"
void
destroy_texture_images(struct vk_device *dev, VkDeviceMemory *texture_image_memory,
VkImage *texture_image, uint32_t images_count)
{
int i;
... |
#include <string.h> // memcpy
#include "deque_pool.h"
#include "local_state.h"
#include "full_frame.h"
#include "worker_mutex.h" // __cilkrts_mutex_lock/unlock
#include "scheduler.h" // __cilkrts_worker_lock/unlock
#define BEGIN_WITH_WORKER_LOCK(w) __cilkrts_worker_lock(w); do
#define END_WITH_WORKER_LOCK(w) while ... |
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<time.h>
#include<ctype.h>
#include<cyrand.h>
enum padValues {moduleLength = 18, moduleCount = 100};
char modifiedBase64Alpha[64] = "_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.";
struct padFile{
int outgoingPointer;
int outgoing... |
/******************************************************************************
*
* Module Name: oswindir - Windows directory access interfaces
*
*****************************************************************************/
/******************************************************************************
*
* 1. C... |
/*
* Copyright (c) 2006-2007, <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 conditi... |
/*
* Copyright (c) 2020 <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 (C) 2009 <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 limitation the rights to use, copy, mo... |
#include "aes_funcs.h"
//------------------------------------------------------------------------------
// SubByte2 operation: affine function
//------------------------------------------------------------------------------
void SubByte2( uint8_t Fi[N], uint8_t Fo[N] ){
uint8_t i, tmp1, tmp2, ... |
/*
* SVGA3D example: Simple Shaders.
*
* This is a simple example to demonstrate the programmable pixel
* and vertex pipelines. A vertex shader animates a rippling surface,
* and a pixel shader generates a procedural checkerboard pattern.
*
* For simplicity, this example generates shader bytecode at
* compile-t... |
/*
* Copyright 2014-2017 Cavium, Inc.
* The contents of this file are subject to the terms of the Common Development
* and Distribution License, v.1, (the "License").
*
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the License at available
* at http://opensourc... |
/*
* Pro Pinball Series Soundbank (44c, 22c, 11c, 5c) demuxer.
*
* Copyright (C) 2020 <NAME> (<EMAIL>)
*
* 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... |
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2009 Varnish Software AS
* All rights reserved.
*
* Author: <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... |
#include "allegro5/allegro.h"
#include "allegro5/allegro_native_dialog.h"
#include "allegro5/allegro_image.h"
#include <stdio.h>
#include <math.h>
#include "common.c"
/* The following is a list of menu item ids. They can be any non-zero, positive
* integer. A menu item must have an id in order for it to generate an ... |
#include "balls.h"
state initial_state(int32_t frame)
{
state st;
st.frame = frame;
st.death_count=0;
for (int i = 0; i < MAX_PLAYERS; i++)
st.scores[i] = 0;
int legion_size = 0;
while (legion_size * legion_size < N_BALLS)
legion_size++;
for (int i = 0; i < N_BALLS; i++) {
... |
/* huawei_cdc_ncm.c - handles Huawei devices using the CDC NCM protocol as
* transport layer.
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
*
* ABSTRACT:
* This driver handles devices resembling the CDC NCM standard, but
* encapsulating another protocol inside it. An example are some Huawei 3G
* devices, exposing an... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <pthread.h>
#include "config.h"
#include "statefile.h"
#include "render.h"
#include "mutex_helpers.h"
#include "SFMT/SFMT.h"
/* Bailout is currently hard coded... perhaps we should move this to the config file... |
/* i8259.c - Functions to interact with the 8259 interrupt controller
* vim:ts=4 noexpandtab
*/
#include "i8259.h"
#include "lib.h"
/* Interrupt masks to determine which interrupts are enabled and disabled */
uint8_t master_mask; /* IRQs 0-7 */
uint8_t slave_mask; /* IRQs 8-15 */
unsigned long flags;
/*
* i825... |
/**
******************************************************************************
* File Name : SPI.c
* Description : This file provides code for the configuration
* of the SPI instances.
******************************************************************************
... |
/*
* Copyright (C) 2014 <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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.