text stringlengths 3.08k 10.5k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <mach/mach.h>
#include "task_ports.h"
#include "remote_call.h"
#include "remote_memory.h"
#include "remote_ports.h"
struct task_port_list_entry {
struct task_port_list_entry* next;
mach_port_t port; // send right to a task port
pid_t pid;
char* path; // strdu... |
/*
Algorytmy i Struktury Danych 2019 - Pracownia
<NAME>
Autor: <NAME>
Nr indeksu: 292345
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#define MIN(a, b) ( ( a < b) ? a : b )
#define SORT_BY_1 1
#define SORT_BY_2 2
struct Point {
int x;
int y;
};
struct C... |
/*
* Musepack audio compression
* Copyright (c) 2005-2009, The Musepack Development Team
* Copyright (C) 1999-2004 Buschmann/Klemm/Piecha/Wolf
*
* 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... |
/*
Copyright (C) 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... |
/**
* \file commandes.c
* \author <NAME> - <NAME>
* \date 2017
* \brief contient les fonctions concernant les commandes sur le terminal pour accéder aux fonctions de l'application
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pgp.h"
#include "commandes.h"
#include "lire_ecrire.h"
#includ... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2011 NetApp, 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:
* 1. Redistributions of source code must retain t... |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef NACL_TRUSTED_BUT_NOT_TCB
#error("This file is not meant for use in the TCB")
#endif
#include "native_client/src/trusted/validator... |
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#include "tac_plus.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#define MSGBUFSZ 1024
static char msgbuf[MSGBUFSZ];
static void *client_table[HASH_TAB_SIZE]; /* Table of client declarations */
static void *proc_table[HASH_TAB_SIZ... |
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "bitstream.h"
#include "huffman.h"
#include "stats.h"
#include "misc.h"
#include "vecs_io.h"
typedef struct _config {
const char* pq_input_template;
const char* nn_input_template;
const char* output_t... |
/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
mouse.c
Abstract:
Mouse support for MEP
Author:
<NAME> (ramonsa) 07-Nov-1991
Revision History:
--*/
#include <string.h>
#include "mep.h"
#include "cmds.h"
#include "mouse.h"
void
DoMouseInWindow(
RO... |
/*
Compile: make array_mean
Run: ./array_mean
make array_mean && ./array_mean
*/
#include "base.h"
#include "array.h"
#include "int_array.h"
/*
Compute a subarray of a given array.
*/
// Array, int, int -> Array
// Create a new array consisting of array[start_index, end_index).
// start_index is inclusive, end_inde... |
/* $Id: logrel.cpp $ */
/** @file
* Runtime VBox - Release Logger.
*/
/*
* Copyright (C) 2006-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the ter... |
/* ************************************************************************
* File: colour.c Part of CircleMUD *
* Usage: interprets inline colour codes *
* Name: Easy Colour v2.2 *
* ... |
/*
* SpanDSP - a series of DSP components for telephony
*
* pseudo_terminals.c - pseudo terminal handling.
*
* Written by <NAME> <<EMAIL>>
*
* Copyright (C) 2012 <NAME>
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... |
#include <stdint.h>
#include "outsettings.h"
#include <stdio.h>
#include "DrawFunctions.h"
#include <stdlib.h>
#include "gifenc.h"
static ge_GIF *gif;
#define TILEX (FWIDTH/TILE)
#define TILEY (FHEIGHT/TILE)
int frame;
uint32_t framebuffer[FWIDTH*FHEIGHT];
uint16_t tilemap[TILEX*TILEY];
void HandleKey( int keyc... |
/*
* Swamp - cooperative multitasking operating system
* Copyright (c) 2016 rksdna
*
* 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 th... |
/* Copyright (c) 2019-2022 <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... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2018 Google LLC
* Copyright 2014 Rockchip Electronics Co., Ltd.
* Taken from dc i2s/rockchip.c
*/
#define LOG_CATEGORY UCLASS_I2S
#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#include <sound.h>
#include <asm/io.h>
#include <linux/bitops.... |
/****************************************************************
NAME: p2c
SYNOPSIS: p2c inampName outcpxName
DESCRIPTION:
Convert amp & phase files to a complex image file.
inAPfile is the base file name for the amplitude and phase files.
An extension of .amp & .phase will be appended.
outcpxNa... |
/** echo.c
* Echos strings sent over serial on Raspberry Pi
* Options:
* -h --help : help dialog
* -b : specify baud rate <int>
* -p : specify serial port <char *>
*
* MIT License
* Author: <NAME> 2017-09-07
*/
#include <wiringPi.h> // pin control
#include <wiringSerial.h> // ... |
/******************************************************************************
* (c) <NAME>, 2009
* Free software, distributed under the WTFPL license
* There is absolutely no warranty.
******************************************************************************/
#include "vars.h"
#include <stdio.h>
#include <string... |
//
// instance.c
// C-ray
//
// Created by <NAME> on 23.6.2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
#include "../includes.h"
#include "../accelerators/bvh.h"
#include "../renderer/pathtrace.h"
#include "vector.h"
#include "instance.h"
#include "transforms.h"
#include "bbox.h"
#include "mesh.h"
#inc... |
//
// Created by palulukan on 6/24/20.
//
#include "device.h"
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
struct _device
{
const char *name;
dev_io_info *ioMap;
int irqPriority;
irq_ack_cb irqACK;
dev_reset_cb devReset;
void *arg;
bool bIRQ;
bool r... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rsa_inout.c :+: :+: :+: ... |
/*
Copyright (C) 1997-2011 <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.
Permission is granted to anyone to use this software for any purpose,
including commer... |
/**
* @author <NAME> <<EMAIL>>
* @date May 2016
*
* @section LICENSE
*
* The MIT License (MIT)
* Copyright © 2016 <NAME>, http://nihamkin.com
*
* 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 ... |
#include <target/board.h>
#ifdef MTK_KERNEL_POWER_OFF_CHARGING
#define CFG_POWER_CHARGING
#endif
#ifdef CFG_POWER_CHARGING
#include <platform/mt_typedefs.h>
#include <platform/mt_reg_base.h>
#include <platform/mt_pmic.h>
#include <platform/boot_mode.h>
#include <platform/mt_gpt.h>
#include <platform/mt_rtc.h>
#include ... |
#include "bftca-cli_version.h"
#include <bftcacore/bftca.h>
#include <bftcacore/dir_scan_util.h>
#include <getopt.h>
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
typedef enum _MODE
{
NORMAL = 0,
KEEP_PATH = 1,
CUSTOM = 2
}MODE;
const char* MODE_NAME[] =
{
"normal",
"keep-path",
... |
/*
* DB.c
*/
#include "Include.h"
/* FindDatabase return codes */
enum { FDFOUND, FDNOTFOUND, FDERROR };
/* protos */
static KasinoAppInfo *GetAppInfoBlock(void);
static Int16 RecordCompareFunction(UInt8 *, UInt8 *, Int16, SortRecordInfoPtr, SortRecordInfoPtr, MemHandle);
static UInt16 FindDatabase(Char *, UInt16 *... |
/*
*
* Copyright 2015, 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 condi... |
// Group's created headers
#include "spacecraft.h"
#include "video_card.h"
// Useful header
#include <math.h>
// A static variable that holds the value of gravity's acceleration
static double gravity = 0.075;
// A static variable that holds the value of the boost's force
static double boost_force = -0.25;
// Maxi... |
#ifndef __PROGTEST__
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#endif /* __PROGTEST__ */
typedef struct block {
int size;
struct block *next;
struct block *prev;
uint8_t *self;
bool free;
} Block;
Block *first = ... |
#include "bootpack.h"
#define EFLAGS_AC_BIT 0x00040000
#define CR0_CACHE_DISABLE 0x60000000
unsigned int memtest(unsigned int start,unsigned int end)
{
char flg486 = 0;
unsigned int eflg,cr0,i;
//确认cpu是386还是486以上的
eflg = io_load_eflags();
eflg |= EFLAGS_AC_BIT; //AC-bit = 1
io_store_eflags(eflg);
eflg = io_... |
/*
* Copyright (c) 2016, <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, p... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* File: bin2nc.c */
/* Description: A parallel tool to convert a binary file to netCDF file */
/* */
... |
#include "draw.h"
#define SQR(x) (x)*(x)
void tilezoomview(struct gamestruct *game, int xx, int yy) {
int x = xx * game->gfx.tilesize;
int y = yy * game->gfx.tilesize - game->gfx.tileoverlap;
int t = game->map.tiles[xx][yy];
draw_sprite(game->gfx.zoomview, game->gfx.tiles[t], x, y);
}
void initdraw (... |
/*
* main.c
* this file contains the main function for the game
*/
#include <stdio.h>
#include "gba.h"
#include "moonpatrol.h"
#include "../images/background.h"
#include "../images/objects.h"
#include "../maps/layer0.h"
#include "../maps/layer1.h"
#include "../maps/layer2.h"
#include "../audio/music_16K_mono.h"
/... |
#include "mmt_core.h"
#include "plugin_defs.h"
#include "extraction_lib.h"
#include "../mmt_common_internal_include.h"
/////////////// PROTOCOL INTERNAL CODE GOES HERE ///////////////////
static MMT_PROTOCOL_BITMASK detection_bitmask;
static MMT_PROTOCOL_BITMASK excluded_protocol_bitmask;
static MMT_SELECTION_BITMASK... |
/*
* Copyright (C) 2002 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of con... |
/*
* Rules based system matcher
*
* <EMAIL>
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "common.h"
extern memoryElementType workingMemory[MAX_MEMORY_ELEMENTS];
extern ruleType ruleSet[MAX_RULES];
memoryElementType *chain = NULL;
/*
* searchWorkingMemory()
*
* Search the wor... |
/* Created (MFS based):
* February 2010 (<NAME>)
*/
#include "fs.h"
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <minix/com.h>
#include <minix/u64.h>
#include <minix/vfsif.h>
#include <assert.h>
#include <sys/param.h>
#include "puffs.h"
#include "puffs_priv.h"
#define... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/*
================================================================================>
_
| |
_ __ ___ _ __ __| | ___ _ __ __ _ _ _
| '__/ _ | '_ \ / _` |/ _ | '__/ _` | | | |
| | | __| | | | (_| | __| | | (_| | |_| |
|_| \___|_| |_|\__,_|\___|_| \__,_|\__, |
... |
/* padutilCreateButtonNames.c */
#include "padutil_types.h"
static PadutilButtonName *st_names;
static unsigned int st_names_refcount;
PadutilButtonName *padutilCreateButtonNames( void )
{
if( st_names ){
st_names_refcount++;
return st_names;
}
st_names = (PadutilButtonName *)memoryExalloc( "PadutilBut... |
/**
******************************************************************************
* @file ?.c
* @author <NAME>
* @version V1.0
* @date ?
* @brief ?
******************************************************************************
*/
/* Includes ---------------------------------------------------... |
// Requires root
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <syslog.h>
#include <math.h>
#include <wiringPi.h>
static const int MOTOR0 = 0;
static const int MOTOR1 = 1;
static const int MAX_SPEED = 480;
static const int PIN_MOTO... |
/*
* Copyright © 2011 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, including without limitation
* the rights to use, copy, modify, merge, pub... |
#include "ngx_http_ssdb_handler.h"
#include "ngx_http_ssdb_module.h"
#include "ngx_http_ssdb_response.h"
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <nginx.h>
static ngx_int_t ngx_http_ssdb_create_request(ngx_http_request_t *r);
static ngx_int_t ngx_http_ssdb_reinit_request(ngx_http_r... |
#include <genesis.h>
#include "fix32_patch.h"
fix32 inline fix32Min(fix32 a, fix32 b){
if (a < b)
return a;
else
return b;
}
fix32 inline fix32Max(fix32 a, fix32 b){
if (a > b)
return a;
else
return b;
}
fix32 inline fix32RangeAdjust(fix32 val, fix32 in_lower, fix32 in_upper, fix32 out_l... |
/* Copyright (c) 2017, <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... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/*
* @file knn_seq.c
* @brief KNN classifier SW implementation
*
* This program runs a KNN implementation with configurable parameter K.
* The dataset must be uploaded to memory before execution.
*/
/************************************************************************/
#include <stdio.h>
#include "xil_prin... |
/** \file joystickuserportadapterwidget.c
* \brief Widget to select a userport joystick adapter
*
* \author <NAME> <<EMAIL>>
*/
/*
* $VICERES UserportJoyType -xcbm5x0 -vsid
*/
/*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is f... |
/*
firehorse
by <NAME> & <NAME>, Aleph Research
*/
#include "../../fh.h"
STACKHOOK(fhpatcher)
{
DD("Firehose patcher called!");
init();
DD("Firehose patcher done!");
}
STACKHOOK(pblpatcher)
{
DD("PBL patcher called!");
fh_dacr();
pagecopy();
pageremap();
init();
DD("P... |
/**
* The MIT License (MIT)
*
* Author: <NAME> (<EMAIL>)
*
* Copyright (C) 2020 Seeed Technology Co.,Ltd.
*
* 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 restrict... |
//
// ch2.c
// programs
//
// Created by <NAME> on 5/26/18.
//
// Functions: perror, open, creat, close, lseek, read, write,
#include <stdio.h> // printf
#include <fcntl.h> // open, creat
#include <unistd.h> // close, lseek, read, write
// open or create a file for reading or writing
// returns file... |
#include <tertium/cpu.h>
#include <tertium/std.h>
#define CSTRCMP(a, b) c_mem_cmp((a), sizeof((a)), (b))
#define fmtstr(...) fmtstr_(__VA_ARGS__, nil)
static char *ports;
static ctype_cdb cdb;
static char *
fmtstr_(char *fmt, ...)
{
static ctype_arr arr;
va_list ap;
va_start(ap, fmt);
c_arr_trunc(&arr, 0, sizeo... |
/* wimi - What Is My Ip
* connect with telnet client to this service. It will return the client's ip address.
* cc -o wimi -lpthread wimidc.
*
* Contains duplicate code
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <arpa... |
/*
* https://github.com/jamesbarlow/icmptunnel
*
* 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, in... |
#pragma once
#include "cstb/utils.h"
#include "cstb/mem_labels.h"
#include "cstb/nes_labels.h"
#include <stdint.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
////////////////////////////////////
// Routines without arguments
// simply declare it as extern
//////////////////////////... |
#include <unistd.h> /* getopt */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#define MAX_VALID_KEY 0x7FFFFFFF
#define MAX_BUFFER_SIZE (1024+sizeof(long))
#define DEFAULT_INVALID_KEY 0xDEADBEEF
#define DEFAULT_MESSAGE_TYP... |
/* ANSI Version 1 */
/* 9 6 92 */
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include "nrutil.h"
#ifndef INT
#define INT( a ) ( ( ( a ) > 0.0 ) ? ( (int) ( (a)+0.5 ) ) : ( (int) ( (a)-0.5 ) ) )
#endif
#ifndef MIN
#define MIN( a , b ) ( ( a ) < ( b ) ? ( a ) : (... |
/*
* Copyright © 2015 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, including without limitation
* the rights to use, copy, modify, merge, pub... |
#include <stdio.h>
#include <stdlib.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
#define MAX_SOURCE_SIZE (0x100000)
int main(void) {
printf("started running\n");
// Create the two input vectors
int i;
const int LIST_SIZE = 1024;
int *A = (int*)malloc(sizeof(int)*LIST_SIZE);
i... |
#include "tokenizer.h"
#include <ctype.h> // isdigit, isspace
#include <stdbool.h> // bool
#include <stdio.h> // fprintf
#include <stdlib.h> // exit, strtol
#include <string.h> // memcmp, strlen
Token *new_token(TokenKind kind, char *begin, int length) {
Token *token = calloc(1, sizeof(Token));
token->kind =... |
/*++
/* NAME
/* dict_surrogate 3
/* SUMMARY
/* surrogate table for graceful "open" failure
/* SYNOPSIS
/* #include <dict_surrogate.h>
/*
/* DICT *dict_surrogate(dict_type, dict_name,
/* open_flags, dict_flags,
/* format, ...)
/* const char *dict_type;
/* const char *dict_name;
/* int open_flags;
/* int dict_flags... |
/*------------------------------------------------------------------------------
upsd3200_hardware.h
Change Note:
Stardard upsd3200_hardware.h file modified for DK3200. uPSD_5V changed to a 1
to indicate a 5V part.
Version:
October 1, 2004 Version 2.3 - Set the device's default voltage operation to 3V.
Add... |
/*
* FreeRTOS Kernel V10.3.0
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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, includ... |
/***************************************************************************//**
* @file hal/micro/cortexm3/efm32/bootloader/bootloader-gpio-ezsp-spi.c
* @brief EFM32 bootloader gpio interface
* @version
*******************************************************************************
* @section License
* <b>(C) Co... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
/***************************************************************************
* STM32 VGA demo
* Copyright (C) 2012 Ar<NAME>
* http://www.artekit.eu
* Written by <NAME>
### main.c
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as p... |
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<semaphore.h>
#include<pthread.h>
#define TRUE 1
#define FALSE 0
pthread_mutex_t mutex=PTHREAD_MUTEX_INITIALIZER;
sem_t semaforo, judge_semaphore,reset_semaphore;
int num_concorrenti;
typedef struct chair{
int istaken;
struct chair* next;
}CHAIR;
... |
//
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) 2001-2004 Swedish Institute of Computer Science. All rights reserved.
// Portions Copyright (c) 2006..2015 <NAME>. All rights reserved.
// See LICENSE file in the project root for full license information.
//
// from the original source co... |
/* Copyright (c) 2016 <NAME>. All Rights Reserved.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
#include "i2s_ws2812b_drive.h"
#include "nrf_delay.h"
volatile uint8_t i2s_ws2812b_drive_m_blo... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include"shellmemory.h"
#include"shell.h"
#include"kernel.h"
#include"memorymanager.h"
#define TRUE 1
#define FALSE 0
/*
This function takes an array of string.
First string is the "set" command
Second string is a variable name
Third string is a ... |
// RUN: %libomp-compile-and-run
/* Test for guided scheduling
* Ensure threads get chunks interleavely first
* Then judge the chunk sizes are decreasing to a stable value
* Modified by <NAME>
* For example, 100 iteration on 2 threads, chunksize 7
* one line for each dispatch, 0/1 means thread id
* 0 0 0 0 0 0 0 ... |
/*
* MIT License
*
* Copyright (c) 2019 Tskit Developers
* Copyright (c) 2015-2017 University of Oxford
*
* 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, includin... |
/* note.c
Copyright 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, distr... |
/**
@file vplanet.c
@brief The main entry point for the code. All the magic starts here.
@author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/))
@date May 7 2014
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include "vplanet.h"
#include <sys/time.h>
... |
/* Copyright (c) 2013 The University of Edinburgh. */
/* 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 a... |
/*
* baseClasses.c
* Handle base classes.
*
* Copyright (c) 1996 <NAME> & Associates, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by <NAME> <<EMAIL>>, 1996.
* Modified by MASS Laboratory, SNU, 1999... |
/*
* arch/arm/mach-rpc/include/mach/uncompress.h
*
* Copyright (C) 1996 <NAME>
*
* 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.
*/
#define VIDMEM ((char *)SCREEN_START)
#i... |
/*
Copyright (c) Centre National de la Recherche Scientifique (CNRS,
France). 2010.
Copyright (c) Members of the EGEE Collaboration. 2008-2010. See
http://www.eu-egee.org/partners/ for details on the copyright
holders.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file excep... |
#include <stdio.h>
#include <stdlib.h>
typedef struct MAILLON {
int info;
int parcourue; // sert à la destruction, non utilisée dans le reste
struct MAILLON *suivant;
} MAILLON;
MAILLON *nouveau_maillon(int info) {
// créé un maillon qui va continuer à exister une fois sorti de la fonction
MAILLON... |
/*
* Copyright (C) 2012-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
#include "os_specific.h"
#include <libproc.h>
int check_set_evar(char const* evar, char const* pvar)
{
/* set the pin env var to evar's value if evar has a non-null value */
char* val = 0;
val = getenv(evar);
if... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "commit.h"
#include "tag.h"
#include "merge.h"
#include "diff.h"
#include ... |
/*****************************************************************************/
/* */
/* searchpath.h */
/* */
... |
/*
*------------------------------------------------------------------
* pppoe_api.c - pppoe api
*
* Copyright (c) 2017 Intel and/or its affiliates.
* 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 ... |
/* $OpenBSD: rsa.c,v 1.30 2013/05/17 00:13:14 djm Exp $ */
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 1995 <NAME> <<EMAIL>>, Espoo, Finland
* All rights reserved
*
* As far as I am concerned, the code I have written for this software
* can be used freely for any purpose. Any derived version... |
/* kn.c
*
* Modified Bessel function, third kind, integer order
*
*
*
* SYNOPSIS:
*
* double x, y, kn();
* int n;
*
* y = kn( n, x );
*
*
*
* DESCRIPTION:
*
* Returns modified Bessel function of the third kind
* of order n of the argument.
*
* ... |
/*
Copyright (c) 2021-2022 jdeokkim
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 3 of the License, or
(at your option) any later version.
This program is di... |
#include <ctype.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <syslog.h>
#include <sys/time.h>
#include <errno.h>
#include "librdkafka/rdkafka.h" /* for Kafka driver */
static rd_kafka_t *rk;
/**
* Kafka logger callback (optional)
*/
static void logger (const rd_kafk... |
/*
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Intel, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "pmix_config.h"
#include ... |
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "plugin.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
/* plugin config for all request/connections */
typedef struct {
array *alias;
} plugin_config;
typedef struct {
PLUGIN_DATA;
plugin_config **config_storage;
... |
/*
Codigo feito por:
<NAME> (17/0113043)
<NAME> (17/0115127)
Universidade de Brasília, Segundo semestre de 2018
Curso: Engenharia de Computacao
Materia: Organizacao de Arquivos
Professor: <NAME>
Projeto 1: Indexacao de registros
*/
#include <stdio.h>
#include <stdlib.h>
#include "indice.h"
#include "ordenac... |
/*
* Copyright (c) 2020 <NAME> & <NAME>
* @file
* Remux.c
* Use of the Libavformat and Libavcodec API to cut the video
*
*/
#include <libavutil/timestamp.h>
#include <libavformat/avformat.h>
static void log_packet(const AVFormatContext *fmt_ctx, const AVPacket *pkt, const char *tag)
{
AVRatio... |
#include "page.h"
#include "monitor.h"
#include "utility.h"
#include "idt.h"
extern uint32_t end;
static uint32_t current_ptr = (uint32_t)&end;
uint32_t kernel_malloc(
uint32_t size,
bool32_t is_aligned,
uint32_t *physical) {
if (is_aligned && (current_ptr & 0xFFFFF000)) {
current_ptr &= 0xFFFFF000;
current_ptr += 0x... |
#include <stdio.h>
// Apple Specific Compatibility Issues
#ifdef __APPLE__
#include "GLUT/glut.h"
#else
#include "GL\glut.h"
#endif
// Aliasing int as outcode
#define outcode int
// Smaller Window Boundary
double xmin = 50, ymin = 50, xmax = 100, ymax = 100;
// Larger Viewport Boundary
double xvmin = 200, yvmin =... |
/*
****************************************************************************
*
* UNIVERSITY OF WATERLOO ECE 350 RTOS LAB
*
* Copyright 2020-2021 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
/*
FreeRTOS OTA PAL for Curiosity_PIC32MZEF V1.0.4
Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.