text stringlengths 3.12k 18.7k |
|---|
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <libdstr/libdstr.h>
#include <libcitm/libcitm.h>
#include "test_utils.h"
static derr_t test_zeroized(void){
derr_t e = E_OK;
fpr_watcher_t w = {0};
string_builder_t path = SB(FS("_test_fpr_watcher__test_zeroized"));
DROP_CMD( rm_rf_... |
/* SPDX-License-Identifier: BSD-2-Clause */
#include <tilck_gen_headers/config_mm.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#in... |
/*
* Copyright 2019 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/* Heaps and priority queues.
* See <NAME>, <NAME>, and <NAME>, _Introduction to Algorithms_, MIT Press, 1999.
*
* Contents:
* 1. The <ESL_HEAP> object: creation, access.
* 2. Rest of the API: inserting, extracting values.
* 3. Debugging, development.
* 4. Internal functions.
* 5. Unit tests.
*... |
#define _GNU_SOURCE
#include "dbg.h"
#include <unistd.h>
#include <sys/uio.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdint.h>
#include <assert.h>
static int setup(const char *bus_path_p)
{
uint8_t ... |
/*
* Example program using the dvalue debug transport.
*/
#include <stdio.h>
#include <stdlib.h>
#include "duktape.h"
#include "duk_trans_dvalue.h"
void my_cooperate(duk_trans_dvalue_ctx *ctx, int block) {
static int first_blocked = 1;
if (!block) {
/* Duktape is not blocked; you can cooperate with e.g. a us... |
/*
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2013-... |
// ParAd: Parallel Adriana
// grb_mul2a.c
// Multiplies sparse matrices uging GraphBLAS
#include <stdio.h>
#include <stdlib.h>
#include "uti.h"
#include "GraphBLAS.h"
static int first_call=1;
//#define max(x,y) (((x)>(y))?(x):(y))
//#define LINESIZE 256
//#define __MAIN_... |
/*
Copyright (c) 2011-2015, <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 and the followin... |
#include <getopt.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include "mtwist.h"
#include "alphabet.h"
#include "array.h"
#include "config.h"
#include "matrix.h"
#include "motif.h"
#include "motif-in.h"
VERBOSE_T verbosity = QUIET_VERBOSE;
typedef struct {
mt_state prng;
uint32_t seed;
ARR... |
/**
* @file c_linear.c
* @brief Implements the linear constraints for the suite of
* constrained problems.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include "coco.h"
#include "coco_internal.h"
#include "coco_problem.c"
/**
* @brief Data type for... |
/*
* Copyright (c) EMC Corporation 2008
* Copyright (c) <NAME> 2008
*
* You may use/distribute this freely, under the terms of either
* (your choice) the GNU General Public License version 2,
* or a BSD style license.
*/
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcn... |
/*
* -- SuperLU routine (version 4.2) --
* Univ. of California Berkeley, Xerox Palo Alto Research Center,
* and Lawrence Berkeley National Lab.
* June 30, 2009
*
* Modified: September 25, 2011, compatible with 64-bit integer in R2006b
*/
#include <stdio.h>
#include "mex.h"
#include "matrix.h"
#include "slu_dde... |
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <locale.h>
#include <string.h>
#include <time.h>
#include "delay.c"
#include "tipagens.c"
// escrever arquivos do meu menu de lanches
void writeFile(void) {
FILE *pont_arq; // CRIAMOS O PONTEIRO
pont_arq = fopen ("PRODUTOS.DAT.... |
//#include <CAENDigitizer.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "eventX742.h"
#include "strEvX742.h"
CAEN_DGTZ_V1742_EVENT_t * newEventV1742()
{
CAEN_DGTZ_V1742_EVENT_t * ep;
CAEN_DGTZ_V1742_GROUP_t * g0, * g1;
// printf("In newEvent1742\n");
fflush(stdout);
size_t sz = sizeof(CA... |
// Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries.
// SPDX-License-Identifier: MIT
#include <unistd.h>
#include <stdio.h>
#include "cli.h"
#include "example.h"
#include "microchip/ethernet/switch/api.h"
static struct {
mesa_ingress_cnt_id_t icnt_id;
mesa_egress_cnt_id_t ecnt_id;
... |
/*-
* Copyright (c) 2018 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 of source code must retain the above copyr... |
/**
* @file serial_transport_win32.c
* @brief Mercury API - Serial transport over local serial port on Win32
* @author <NAME>
* @date 10/20/2009
*/
/*
* Copyright (c) 2010 ThingMagic, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated d... |
/*-
* mime.c
* This file is part of libmetha
*
* Copyright (c) 2008, <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.
*
* T... |
/* $OpenBSD: m8820x.c,v 1.10 2010/12/31 21:38:07 miod Exp $ */
/*
* Copyright (c) 2004, 2006, 2010 <NAME>.
*
* 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 abov... |
#include <stdio.h> /* pulls in __STDC_IEC_559__ in glibc */
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include <math.h>
#include "lfa.h"
#define MASKL UINT64_C(0x000ffafffffffb3f)
#define MASKH UINT64_C(0x000ffdfffc90fffd)
#define INIT_ITER(v, i) INT32_C(1812433253) * ((v) ^ ((v... |
/*
* XDD - a data movement and benchmarking toolkit
*
* Copyright (C) 1992-2013 I/O Performance, Inc.
* Copyright (C) 2009-2013 UT-Battelle, LLC
*
* This 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
... |
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include "../uv_callback.c"
#include <inttypes.h>
#include <unistd.h>
#include <assert.h>
uv_thread_t worker_thread;
uv_barrier_t barrier;
uv_callback_t stop_worker;
int progress_called = 0;
int static_call_counter = 0;
int dynamic_call_counter = 0;
char ... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* Copyright (c) 2012, <NAME> <<EMAIL>>
* Copyright (c) 2021 Dark Overlord of Data
* 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 a... |
/**************************************************************************//**
* @file system_MK70F.c
* @brief CMSIS Cortex-M4 Device Peripheral Access Layer Source File for
* Device MK70Fxxx
* @version
* @date 18. Aug 2013
*
* @note
*
* @par
* ARM Limited (ARM) is supplying this softwar... |
#pragma config(I2C_Usage, I2C1, i2cSensors)
#pragma config(Sensor, in1, catapultPot, sensorPotentiometer)
#pragma config(Sensor, in2, gyro, sensorGyro)
#pragma config(Sensor, dgtl1, platformLock, sensorDigitalOut)
#pragma config(Sensor, dgtl2, drumPosEnc, sensorQuadEncoder)
#pragma config(Sen... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/** author: mayukh
* github.com/mayukh42
*/
/** Graphs
*/
typedef enum Bool {
false,
true
} Bool;
struct GNode;
/** Node of the adj list
*/
typedef struct List {
struct GNode * node;
struct List * next;
} List;
/** Node of the Graph
*/
typedef st... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*
*/
/* style: allow:fprintf:21 sig:0 */
#include "mpi_fortimpl.h"
#if defined(HAVE_PRAGMA_WEAK) && defined(HAVE_MULTIPLE_PRAGMA_WEAK)
void mpir_is_bottom... |
/*asCa.c*/
/*************************************************************************\
* Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE is distr... |
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <math.h>
#include <X11/Xutil.h>
#include <X11/extensions/Xinerama.h>
#include <cairo/cairo.h>
#include <cairo/cairo-xlib.h>
#include "x11.h"
#include "xkb_unicode.h"
static void die(const ch... |
/*************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... |
#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... |
/*
* The MIT License (MIT)
* Copyright (c) 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, m... |
/*
* 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... |
/*-------------------------------------------------------------------------
*
* show.c: show backup catalog.
*
* Copyright (c) 2009-2021, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
*
*-------------------------------------------------------------------------
*/
#include "pg_rman.h"
static void show_backup_list(... |
#include "../include/my_history.h"
void addHistory(char* string, char* path)
{
FILE* fp;
/*on alloue la mémoire à la chaine qui contiendra le path du fichier history*/
char* historyPath = malloc((LENGTH + 8) * sizeof(char));
/*on concatène le nom du fichier au path*/
sprintf(historyPath, "%s%s", pat... |
/**
* @file logger_rw.c
* @brief Implementation of the real-world logger.
*
* Can be used to log all (or just those that are better than the preceding) solutions with information
* about objectives, decision variables (optional) and constraints (optional). See observer_rw() for
* more information on the options. ... |
/*
* spi_tx_arduino.c
*
* Created on: Mar 27, 2020
* Author: vladi
*/
/*
* spi_tx_testing.c
*
* Created on: Mar 26, 2020
* Author: vladi
*/
#include <stdio.h>
#include <string.h>
#include "stm32f407xx.h"
#include "core_cm4.h"
#define __ENABLE 1
#define __DISABLE 0
#define LED_ON 1U
#define ... |
#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... |
/*
Copyright (c) 2014 fanzyflani & contributors.
See LICENCE.txt for licensing information (TL;DR: MIT-style).
*/
#include "common.h"
uint16_t io_get2le(FILE *fp)
{
int v0 = fgetc(fp);
int v1 = fgetc(fp);
return (v1<<8)|v0;
}
void io_put2le(int v, FILE *fp)
{
int v0 = v&255;
int v1 = (v>>8)&255;
fputc(v0, fp... |
#include <pebble.h>
#include "gbitmap_color_palette_manipulator.h"
static bool is24hrFormat = true;
Window* _window;
static Layer* window_layer;
// Time
static BitmapLayer* hours_tens_layer = NULL;
static BitmapLayer* hours_ones_layer = NULL;
static GBitmap* hours_tens = NULL;
static GBitmap* hours_ones = NULL;... |
/*
* Rogue
* Exploring the dungeons of doom
* Copyright (C) 1980 by <NAME> and <NAME>
* All rights reserved
*
* @(#)main.c 3.27 (Berkeley) 6/15/81
*/
#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include <termios.h>
#include <stdlib.h>
#include <curses.h>
#include <bsd/string.h>
... |
/*****************************************************************************/
/* Transmission Error Detector test application */
/* This program is a part of the ABPS software suite. */
/* */
... |
/*******************************************************************************************
*
* raygui - Controls test
*
* TEST CONTROLS:
* - GuiScrollPanel()
*
* DEPENDENCIES:
* raylib 2.5 - Windowing/input management and drawing.
* raygui 2.0 - Immediate-mode GUI controls.
*
* COMPILATION... |
/*
* drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c
* Copyright (c) 2017 Mellanox Technologies. All rights reserved.
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... |
/*
The MIT License (MIT)
Copyright © 2019 JStatham
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, pu... |
/*
** EPITECH PROJECT, 2020
** My Runner
** File description:
** All function prototype
*/
#include <SFML/Graphics.h>
#include <SFML/System.h>
#include <SFML/Audio.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
typedef enum parralax {
BACK,... |
/*
* File: k_smf_writer.c
* Author: kujira
*
* Created on 2014/12/31, 23:25
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "s_lib.h"
#include "k_smf_writer.h"
/** write event to stream */
void KSmfWriter_writeEvent(SStream *strm, KSmfEvent *e) {
s_byte buf[3];
buf[0] = (e->ch - 1... |
/* $NetBSD: machdep.c,v 1.2 2002/03/24 23:37:42 bjh21 Exp $ */
/*-
* Copyright (c) 1998 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must re... |
/*
Copyright 2012 <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope tha... |
/*
* Copyright (c) 2016 <NAME>
* <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,... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include "common.h"
#include <stdint.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <glib.h... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ISFB project. Version 2.13.24.1
//
// module: int128.c
// $Revision: 354 $
// $Date: 2014-09-26 21:39:44 +0400 (Пт, 26 сен 2014) $
// description:
/* Primitives to manipulate 128-bit integers like,... |
/********************************************************************
* File : basicd.h
* Author : <NAME> Copyright (C) 1994-2019
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://m... |
/*===========================================================================*
* *
* testfind.c - Test searching functions *
* *
* ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/**\file icd/ports.c
* Monitored ports handling
*
* \author <NAME> (<EMAIL>)
*/
#define IPRP_FILE ICD_PORTS
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include "icd.h"
/* Function prototypes */
size_t get_monitore... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... |
/*
* File: scan.c
*
* This top level of the scanline renderer
*
*/
/*
*
* MIT License
*
* Copyright (c) 2018 <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 wi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
typedef unsigned char u8;
typedef signed char s8;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned int u32;
typedef signed int s32;
typedef int bool;
typedef struct
{
u8 map;
u8 submap;
u8 level; //Level o... |
// <NAME> April 1, 2013
// version 1.0
// version 1.1 April 9, 2013 - using mmap to setup GPIO
// version 1.2 October 15, 2013 - support Odroid-XU
// version 1.3 January 31, 2016 - Python wrapper
// note: I have not implemented drive strength access yet
// the default appears to be 1 which should be the lowes... |
/*
* Copyright (c) 2017, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for
* any purpose with or without fee is hereby granted, provided that
* the above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND T... |
/*
* 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 ... |
/* Copyright (C) 1996-2001 Id Software, Inc.
Copyright (C) 2002-2009 <NAME> and others
Copyright (C) 2011-2016 OldTimes Software
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
... |
/****************************************************************************
* PROJECT: Mac external plugin, bundle, cfm mach-o whatever interface code.
* FILE: sqMacExternalPrims.c
* CONTENT:
*
* AUTHOR: <NAME>, <NAME>, and others.
* ADDRESS:
* EMAIL: <EMAIL>
* RCSID: $Id: sqMacExternalPrims.c... |
#include "scGmTitle.h"
#include "hsd_jobj_ext.h"
GmTitle_File title_ptrs; //80479B28
u32 title_inputs; //804D6878
f32 title_anim_speed[3] = { 0.0f, 1600.f, 400.f }; //803DA4F0
f32 title_frames[3] = { 0.f, 1330.f, 130.f }; //803DA4FC
static void* scene_sobj_desc; //0x4EB0(r13)
static HSD_FogDesc* scene_fog_desc; //0x... |
/*************************************************************************************
* MIT License *
* *
* Copyright (C) 2016 <NAME>, <NAME> ... |
#define _ATFILE_SOURCE
#include "sqlite3.h"
#include "little.h"
#include "little_locks.h"
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <string.h>
#define min(x,y) ( (x)<(y)?(x):(y) )
static int read_block(const char* path, int blo... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <stdint.h>
#include <math.h>
#include <cmr/graphic.h>
static inline
size_t randRange(size_t first, size_t beyond)
{
size_t N = beyond - first;
size_t representatives = (RAND_MAX + 1u) / N;
size_t firstInv... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include "alink_protocol.h"
#include "stdlib.h"
#include "json_parser.h"
#include "cota.h"
#include "connectivity_manager.h"
#include "device.h"
#include "aos/aos.h"
#include "service_manager.h"
#include "wsf.h"
#include "config.h"
#include "accs.h"
#incl... |
// usage: ./bb [-rpmz] [temp_deg_k]
// -r: plot Rayleigh-Jeans
// -p: plot Planck
// -m: plot Mine
// -z: test plot of maxwell-boltzmann energy distribution
#include "common.h"
//
// defines
//
#define K 1.38064852E-23 // boltzmann constant
#define C 299792458. // speed of light
#define h 6.62607004... |
#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... |
/*
* 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... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Show how to set pixel on and off on RHE6616TP01(8-COM, 40-SEG, 1/4 Bias) LCD.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2020 Nuvoton Technology Corp.... |
/* $NetBSD: sacc_obio.c,v 1.3 2004/02/21 23:25:01 bjh21 Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
/* Time routines module for the Lua/APR binding.
*
* Author: <NAME> <<EMAIL>>
* Last Change: December 30, 2010
* Homepage: http://peterodding.com/code/lua/apr/
* License: MIT
*
* Lua represents dates as numbers though the meaning of these numbers is not
* specified. The manual does state (in the documentation f... |
/*
* "Copyright (c) 2008 <NAME>, <NAME>, <NAME> ("AUTHORS")"
* All rights reserved.
* (<NAME>, reese_AT_ece.msstate.edu, Mississippi State University)
* (<NAME>, bjones_AT_ece.msstate.edu, Mississippi State University)
* (<NAME>, jwbruce_AT_ece.msstate.edu, Mississippi State University)
*
* Permission to use, co... |
/************************************************************************
Copyright (c) 2015, The Linux Foundation. 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 mu... |
/*
* Copyright (c) 2015, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this list... |
/* motion.c, motion vector decoding */
/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */
/*
* Disclaimer of Warranty
*
* These software programs are available to the user without any license fee or
* royalty on an "as is" basis. The MPEG Softwa... |
/**
* 2DConvolution.c: The original file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <math.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#... |
/*
Copyright <2017> <Scaleable and Concurrent Systems Lab;
Thayer School of Engineering at Dartmouth College>
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 restr... |
#include "lista.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct no_ NO;
struct no_ {
ITEM *item;
NO *anterior;
NO *proximo;
};
struct lista_ {
NO *inicio;
NO *fim;
int tamanho; /*tamanho da lista*/
};
/*Cria logicamente uma lista, inicialmen... |
#pragma once
// Registers (generic virtio) - note: this is considered the "legacy interface" and is defined in 4.1.4.8 of the virtio spec
#define REG_DEVICE_FEATURES 0x00
#define REG_GUEST_FEATURES 0x04
#define REG_QUEUE_ADDRESS 0x08
#define REG_QUEUE_SIZE 0x0C
#define REG_QUEUE_SELECT 0x0E
#define REG_QUE... |
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include "../../GameGent.h"
#include "../mmu/mmu.h"
#include "registers.h"
#include "cpu.h"
#include "codeTables.h"
#include "debugger.h"
#define BREAKPOINT_CAPACITY 20
static void stringifyInstruction( char *instruction... |
/*
* Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below)
// provi... |
/*
History:
Started: Aug 9 by <NAME> (<EMAIL>), to allow user
process control of SCSI devices.
Development Sponsored by Killy Corp. NY NY
Borrows code from st driver.
*/
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/mm.h>
#i... |
#include "csapp.h"
void process(int connectfd);
void read_requesthdrs(rio_t *rp);
int parse_url(char *url, char *filename, char *cgiargs);
void serve_static(int connectfd, char *filename, size_t size);
void client_error(int connectfd, char *errCode, char *errMsg);
void read_requestbody(rio_t *rp, char *buf);
void serv... |
/** MPEG Layer3 (.mp3) reader/writer.
Copyright (c) 2017 <NAME> */
#include <fmedia.h>
#include <avpack/mp3-read.h>
#include <FF/audio/pcm.h>
#include <FF/mtags/mmtag.h>
#include <FF/array.h>
#define errlog1(trk, ...) fmed_errlog(core, trk, NULL, __VA_ARGS__)
#define warnlog1(trk, ...) fmed_warnlog(core, trk, NULL... |
#include <assert.h>
#include <sys/types.h>
#include <string.h>
#include "libunix.h"
#include <unistd.h>
#include "code-gen.h"
#include "armv6-insts.h"
/*
* 1. emits <insts> into a temporary file.
* 2. compiles it.
* 3. reads back in.
* 4. returns pointer to it.
*/
uint32_t *insts_emit(unsigned *nbytes, char *... |
/*
* Copyright (c) 2000 Massachusetts Institute of Technology
* Copyright (c) 2000 <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 <u.h>
#include <error.h>
#include "x11-inc.h"
#include <libc.h>
#include <draw.h>
#include <memdraw.h>
#include <keyboard.h>
#include <cursor.h>
#define Image IMAGE
#include <kern/mem.h>
#include <kern/dat.h>
#include <user.h>
#include <kern/screen.h>
#include <bigarrow.h>
#include "x11-memdraw.h"
#include... |
/*
* BSD-3-Clause
*
* Copyright 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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list o... |
#include "libroq/libroq.h"
#include <string.h>
#include <math.h>
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
struct roq_context* roq_create_context(const struct roq_context_parameters* params) {
struct roq_context* context;
if ((params == NULL) || (params->size != ... |
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <spotify/api.h>
#include "album.h"
#include "artist.h"
#include "browse.h"
#include "debug.h"
#include "ezxml.h"
#include "request.h"
#include "sp_opaque.h"
#include "track.h"
#include "util.h"
static int osfy_albumbrowse_browse_callback(struct br... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*****************************************************************************\
** **
** FILE: funcs.c **
** AUTHORS: Alexios **
**... |
#include "mini_kernel.h"
#include "keyboard.h"
#define KEY_ESCAPE 27
char kbdmap_default[] = {
// key, shift, alt, ctrl&alt
'F', 0xFF, 0xFF, 0xFF, // Esc
'1', '!', '1', '~',
'2', '"', '2', 'ˇ',
'3', '#', '3', '^',
'4', '$', '4', '˘',
'5', '%', '5', '°',
'6', '&', '6', '˛',
'7', '/', '7', '`',
'8', '(', '8'... |
#include <sys/socket.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <signal.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <sys/un.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <syslog.h>
#include <pty.h>
#include <pthread.h>
#include "ops_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.