text stringlengths 3.12k 18.7k |
|---|
/*
* The MIT License (MIT)
* Copyright (c) 2015 <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,... |
/*
* Copyright (c) 2019, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <errno.h>
#include <lib/mmio.h>
#include "socfpga_mailbox.h"
#include "socfpga_reset_manager.h"
#include "socfpga_system_manager.h"
#inc... |
#include "base64.h"
static const unsigned char enc_64[256] = {
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 62, 64, 64, 64, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 64, ... |
/*
* 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) 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... |
#include <tigcclib.h>
#include <stdio.h>
#define H_RANGE 60
#define H_OFFSET 5
#define TERRAIN_STEPS 8
#define TERRAIN_ROUGHNESS 2000
#define BASE_WIDTH 30
#define MIN_TERRAIN 21
#define WIND_RANGE 30
#define WIND_ARROW_Y 15
#define WIND_ARROW_HEIGHT 5
#define CANNON_LE... |
#include <stdio.h>
#define getName(var) #var
// SOLUTION FILE
char shiftby(char inchar,int i,int isRight){
char c = inchar;
if(isRight){
c = c>>i;
}else{
c = c<<i;
}
return c;
}
int main()//main()
{
int var_int; // 2
char var_char;
short var_short;
long var_long;
... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <unistd.h> //for closing the connection
#include "protocol.h"
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#define MAX_W... |
/* SPDX-License-Identifier: MIT */
#include "ebcvm.h"
static opcode decode_opcode(uint8_t);
static reg decode_gp_reg(uint8_t);
static reg decode_dd_reg(uint8_t);
static inst *decode_jmp(inst *, uint8_t *);
static inst *decode_jmp8(inst *, uint8_t *);
static inst *decode_cmpi(inst *, uint8_t *);
static inst *decode_mo... |
// libmylcd - http://mylcd.sourceforge.net/
// An LCD framebuffer library
// <NAME>
// <EMAIL>
// Copyright (c) 2005-2009 <NAME>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU LIBRARY GENERAL PUBLIC LICENSE
// as published by the Free Software Foundat... |
#include "../headers/header.h"
static size_t WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp) {
size_t realsize = size * nmemb;
struct MemoryStruct *mem = (struct MemoryStruct *)userp;
mem->memory = realloc(mem->memory, mem->size + realsize + 1);
if(mem->memory == NULL) retur... |
// 0x07009000 - 0x07009040
static const Vtx bitfs_seg7_vertex_07009000[] = {
{{{ -588, 154, -306}, 0, { 4464, 3440}, {0x8c, 0xcc, 0xd8, 0xff}}},
{{{ -1714, 154, -306}, 0, { 0, 3440}, {0x8c, 0xcc, 0xd8, 0xff}}},
{{{ -1714, 154, 307}, 0, { 0, 990}, {0x8c, 0xcc, 0xd8, 0xff}}},
... |
/* dhcp6.h
DHCPv6 Protocol structures... */
/*
* Copyright (c) 2006-2016 by Internet Systems Consortium, Inc. ("ISC")
*
* 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... |
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "http_parser.h"
#include "http_parser_wrapper.h"
#define MAX_HTTP_HEADERS 8
struct http_header {
char *key;
char *value;
};
struct http_headers {
size_t capacity;
size_t count;
struct http... |
/********************************************************************************
FILE HEADER
* NAME : parse_line.c
* DESCRIPTION : Contains function descriptions.
* DATE AUTHOR REFERENCE PURPOSE
*********************************************************... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "math.h"
#define MAXNAME 250
#define MAXL 250
#define MAXW 65
#define LONGS 5000
// Macros
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
// Functions
int parse_string(char* s, char* a[]);
void char_to_float(... |
//
// rtpOverTcp.c
// Pods
//
// Created by hyq on 16/10/20.
//
//
#include "rtpOverTcp.h"
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <err.h>
#include <netdb.h>
const int FU_HEADER_LEN = 2;
cons... |
/*
Copyright 2018 sk
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 writing, software
dist... |
#include "utils.h"
// tune number of threads and block size considering processor
void tuning (int * threads, int * block_size, unsigned short int * vect_db_sequences_lengths,
unsigned short int * vect_db_sequences_blocks, unsigned long int vect_db_sequences_count){
#if AVX512F
int * submat = iBlosum62;
#else
ch... |
/**
* ==== Dangerous Dave ====
*
* Esse trabalho se trata de um jogo inspirado no jogo Dangerous Dave,
* de 1988
*
* Jogo desenvolvido como trabalho final da disciplina
* INF-01202 - Algoritmos e Programação
*
* Professor: <NAME>
* Estudantes: <NAME>, <NAME>
*/
#include <stdio.h>
#include <string.h>
#inclu... |
/* Copyright (c) 2016 <NAME> <<EMAIL>>
* Released under the MIT License
*/
/* include the object list and exception headers. */
#include <matte/object-list.h>
#include <matte/except.h>
/* object_list_type(): return a pointer to the object list object type.
*/
ObjectType object_list_type (void) {
/* return the s... |
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <sys/time.h>
#include <pthread.h>
#include <stdbool.h>
#define q 11 /* for 2^11 poin... |
/**
*
* @copyright © 2010 - 2017, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. All rights reserved.
*
* BSD 3-Clause License
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistri... |
#include "hid.h"
#include <kernel/api/sys/sysmacros.h>
#include <kernel/console/console.h>
#include <kernel/fs/fs.h>
#include <kernel/interrupts.h>
#include <kernel/memory/memory.h>
#include <kernel/panic.h>
#include <kernel/scheduler.h>
#define QUEUE_SIZE 128
// en-US
static const char scancode_to_key[256] = {
0... |
// © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
// Low-level page table manipulation routines.
//
// Functions in this interface generally should only be called by modules that
// are responsible for managing address spaces. Don't call them directly from
// m... |
/*
* flows_summary.c
*
* From live or given a .pcap file, prints summary information about the contained flows.
*
* Created on: 05/01/2019
* =========================================================================
* Copyright (c) 2016-2019 <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to ... |
/**
Central Regulatory Domain Daemon for Linux
Copyright (c) 2012, National Instruments Corp.
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.
... |
/*
* conv.c
*
* Created on: May 1, 2013
* Author: <NAME>
*/
#include "conv.h"
int factorf(int M) {
int N;
N = M;
while (N%7 == 0){
N = N/7;
}
while (N%3 == 0){
N = N/3;
}
while (N%5 == 0){
N = N/5;
}
while (N%2 == 0){
N = N/2;
}
return N;
}
int factor2(int M) {
int N;
N = M;
... |
/* Utility routines for Minix tests.
* This is designed to be #includ'ed near the top of test programs. It is
* self-contained except for max_error.
*/
#include <errno.h>
#include <paths.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/statvfs.h>
#... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char cmd[256] = "";
char args[256] = "";
char temp[256] = "";
char cd[256] = "A:/";
char * _envp[4096];
uint8_t idx = 0;
uint8_t child_pid = 0;
bool failed = false;
void change_dir() {
memcpy(temp, cmd + 3, 253);
temp[255] = 0... |
/*
Copyright (c) 2015 <NAME>
A text-only sample metadata player for Shairport Sync
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 ... |
/*
* NanoBreaker, a Nano-X Breakout clone by <NAME>.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/
*
* Software distr... |
/*
* Copyright (c) 2019 Sprint
* Copyright (c) 2020 T-Mobile
*
* 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 ... |
#define _XOPEN_SOURCE
#define LINE_SIZE 150
#define VELOCITY_SIZE 2
#define SHIP_SIZE 6
#include <math.h>
#include <stdlib.h>
#include <ncurses.h>
#include <stdbool.h>
#include "helper.h"
/*we will rotate the ship relative to this direction*/
double direction = 270.0 * M_PI/180.0;
/* prints 'end' command into sket... |
/*
* DocBaker
* (http://github.com/mity/docbaker)
*
* Copyright (c) 2017 <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
* ... |
#include <xdc/std.h>
#include <ti/sysbios/io/IOM.h>
#include <xdc/runtime/Memory.h>
#include <ti/sysbios/heaps/HeapMem.h>
#include <xdc/runtime/IHeap.h>
#include <xdc/runtime/Error.h>
#include <xdc/runtime/Log.h>
#include <xdc/runtime/System.h>
#include <ti/sysbios/BIOS.h>
#include <ti/drv/uart/UART.h>
#include <ti/drv... |
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> // open
#include <stdio.h>
#include <sys/mman.h> // MAP_FAILED
#include <unistd.h> // write
#include <stdlib.h> // exit
#include <string.h> // memcpy
#include <math.h> // sqrt
#include... |
// XMHF must separate earlyinit from runtime, because secure loader links different files from the runtime.
#include <xmhf.h>
#include "dmap-vmx-internal.h"
//==============================================================================
// local (static) variables and function definitions
//=========================... |
#include "urf_radio.h"
#include "urf_timer.h"
#include "nrf.h"
#include <stdlib.h> //NULL
uint32_t pack_max_length = 255; //maximum length in bytes
uint32_t pack_payload; //current payload size in bytes
uint32_t rx_packet_counter = 0;
uint32_t last_processed_rx_packet = 0;
volatile uint8_t current_mode = 0;
volati... |
/* pgcont.f -- translated by f2c (version 20020208).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Common Block Declarations */
struct {
integer pgid, pgdevs[8], pgadvs[8], pgnx[8], pgny[8], pgnxc[8], pgnyc[8];
real pgxpin[8], pgypin[8], pg... |
/*
* CGlib
*
* A Low-Level GPU Graphics and Utilities API
*
* Copyright (C) 2011, 2013 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, in... |
#include <windows.h>
#include <commctrl.h>
#include "SysToolX.h"
#include "FlashKit.h"
// http://code.google.com/p/miniz/
// miniz flags
#define MINIZ_NO_STDIO
#define MINIZ_NO_TIME
#define MINIZ_NO_ARCHIVE_APIS
#define MINIZ_NO_ARCHIVE_WRITING_APIS
// miniz routines
#define malloc(x) GetMem((x))
#define free(x) FreeM... |
/**
* \file
*
* \brief ANCS Profile
*
* Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
* It is your responsibility ... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/crypto/builtin/sha2/sha256.c - SHA-256 implementation */
/*
* Copyright (c) 2006 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modif... |
/***********************************************
*
*Filename: client.c
*
*@author: <NAME>
*@email: <EMAIL>
*@description: ---
*Create: 2015-11-24 19:08:50
# Last Modified: 2016-01-26 13:19:07
************************************************/
#include "client.h"
#include "util.h"
int main(int argc, char * argv[]) {
/... |
/*
* License: MIT
*
* Copyright (c) 2012-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 without restriction, including
* without limitation the rights to use, copy, mo... |
//
// Created by root on 3/17/16.
//
#include "handle.h"
#include <linux/tcp.h>
#include <pthread.h>
#include <netdb.h>
#include <fcntl.h>
#include <arpa/inet.h>
#include <sys/epoll.h>
#include <sys/mman.h>
char * cache_file = NULL;
enum SERVE_STATUS {
CLOSE_SERVE = 1,
RUNNING_SERVER= 0
};
static enum SERVE_S... |
#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... |
/****************************************************************
* RCM.C *
* Chiz/Unidata 10/99 *
* *
* Routines for obtaining RCM bulletin and projecting *
* points into 1/16x1/16 LFM grid. *
* *
* void rcm (char *fname, char *wws, char *wwatt, int *idither, *
* cha... |
/**
* init.c:进行一些初始化,在Steppingstone中运行
* 它和head.S同属第一部分程序,此时MMU为开启,使用物理地址
*/
/* WATCHDOG寄存器 */
#define WTCON (*(volatile unsigned long *)0x53000000)
/* 存储控制器的寄存器地址 */
#define MEM_CTL_BASE 0x48000000
/* 关闭WATCHDOG,否则CPU会不断重启 */
void disable_watch_dog(void)
{
WTCON = 0;
}
/*
* 设置存储控制器以使用SDRAM
*... |
/*
The MIT License (MIT)
Copyright (c) 2017 <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, publis... |
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <math.h>
#define M_PI_3 3 * M_PI_2
#define DR 0.0174533 /* Degree in radians */
float px, py, pdy, pdx, pa;
int mapX = 8, mapY = 8, mapS = 64;
int map[] =
{
1, 1, 1, 1, 1, 1, 1, 1,
1, 0, 1, 0, 0, 0, 0, 1,
1, 0, 1, 0, 0, 0... |
/*
*copyright (c) 2019 Nordic Semiconductor ASA
*
*SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
*/
#include <zephyr.h>
#include <stdio.h>
#include <net/mqtt.h>
#include <logging/log.h>
#include <net/aws_jobs.h>
LOG_MODULE_REGISTER(aws_jobs, CONFIG_AWS_JOBS_LOG_LEVEL);
/** @brief Mapping of enum to stri... |
/*
* Copyright 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distrib... |
/**/
#define DEBUG
#define CFG_LIB_STDOUT
#define CFG_LIB_TIME
#define CFG_LIB_SOCKET
#define CFG_LIB_DEVICE
#define CFG_LIB_FILE
#define CFG_LIB_ERRNO
#define CFG_LIB_DNS
#define CFG_LIB_NET
#define CFG_LIB_STRING
#include "AMCCommonLib.h"
#include "AMCLibevTools.h"
#include <openssl/ssl.h>
#include <openssl/err.h>
... |
// Copyright 2021-2022 <NAME>. 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
//
// Unless required by applicabl... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to dea... |
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <pthread.h>
#include <errno.h>
#include <ctype.h>
#include <fcntl.h>
#include <dirent.h>
#define INPUT_SIZE 513
#define MSG_LEN 64
#define ARG_SI... |
#include <sys/socket.h> // socket definitions
#include <sys/types.h> // socket types
#include <arpa/inet.h> // inet (3) funtions
#include <unistd.h> // misc. UNIX functions
#include <signal.h> // signal handling
#include <stdlib.h> // standard library
#include <stdio.h>... |
/*
* Remote-control functions.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "options.h"
#include "pv.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#ifdef HAVE_IPC
#include <sys/ipc.h>
#include <sys/ms... |
// AVR Multi Motor Control
/*! \file client/source/shell_commands.c
* Shell module - Commands
*
* \author <NAME>
* \todo Define various declarations and macros in a head file
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include "shell.h"
#include "serial.h... |
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2012 ARM Limited. All rights reserved.
*
* $Date: 17. January 2013
* $Revision: V1.4.0
*
* Project: CMSIS DSP Library
* Title: arm_matrix_example_f32.c
*
* Description: Example code demonstrating l... |
/*
* FreeRTOS Kernel V10.2.1
* Copyright (C) 2019 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... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "mesh.h"
// 行列式 |q-p, r-p|
double determinant(Vector2D p, Vector2D q, Vector2D r) {
double a = q.x - p.x, b = r.x - p.x, c = q.y - p.y, d = r.y - p.y;
return a * d - b * c;
}
// 三角形 tau の面積(の絶対値)の倍
double area_parallelogram(Triangle tau) {
return ... |
#include <stdio.h>
#include <stdlib.h>
#define DEBUG
typedef unsigned long ulong;
typedef unsigned short ushort;
ushort add(long a, long b)
{
return (ushort)((a + b) % 65536l);
}
ushort multiply(long a, long b)
{
long ch, cl, c;
if (a == 0) a = 65536l;
if (b == 0) b = 65536l;
c = a * b;
if (c) {
ch... |
/* Gaussian elimination without pivoting.
* Compile with "gcc gauss.c"
*/
/* ****** ADD YOUR CODE AT THE END OF THIS FILE. ******
* You need not submit the provided code.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <sys/types.h>
#include <sys/times.h>
#include <sys/tim... |
/*
* Copyright (c) 2017, Intel Corporation
* 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 cond... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2021 - <NAME>
* Copyright (C) 2016-2019 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee a... |
/*
* $Id: ipc.c,v 1.15.4.3 2000/02/09 23:29:57 wessels Exp $
*
* DEBUG: section 54 Interprocess Communication
* AUTHOR: <NAME>
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individu... |
typedef struct _RTL_USER_PROCESS_PARAMETERS *PRTL_USER_PROCESS_PARAMETERS;
typedef struct _RTL_CRITICAL_SECTION *PRTL_CRITICAL_SECTION;
// private
typedef struct _ACTIVATION_CONTEXT_STACK
{
struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME* ActiveFrame;
LIST_ENTRY FrameListCache;
ULONG Flags;
ULONG N... |
/*! \file field_arr_mem_mgr.c
*
* Field array memory manager API implementation
*
* Interface to the field array memory manager
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Switch Software License
*
* This license ... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
//
// BRScript.c
//
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Raven Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
#include "BRScript.h... |
/*-
* Copyright (c) 2017-2018 wenba, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
/**************************************************************************
* sim_sender_test是一个模拟视频数据发送的工程,用于调试收发双端的正确性,它是建立
* 在sim_transport之上的,所以它依赖于razor和sim_transport工程
******************... |
/*
* Copyright (c) 2014-2020 Seagate Technology LLC 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... |
#include "server.h"
int main(int argc, char *argv[]) {
// Arguments
if (argc < 2) {
fprintf(stderr, "Required argument(s): Number of players\n");
exit(1);
}
// Init RNG
srand(time(NULL));
// Start server
int port = DEFAULT_PORT;
int server_sockfd = start_server(port);
// Connect to clients
int n_clien... |
#define MICROPY_HW_BOARD_NAME "WEACT_H743"
#define MICROPY_HW_MCU_NAME "STM32H743"
#define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_TIMER (1)
#define MICROPY_HW_ENABLE_SERVO (1)
#define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENA... |
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <pthread.h>
#include <unistd.h> // for close
#include <stdlib.h>
#include <string.h> // for memset
#include <ctype.h>
#include <sys/stat.h>
#define SERVER_STRING "Server: TinyHttpd/0.1.0\r\n"
#define SERVER_HELP "usage: httpd [-p <port>] [-d <... |
/**
* Copyright © 2019, 2021 Push Technology Ltd.
*
* 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... |
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <lib/libc.h>
#include <lib/acpi.h>
#include <sys/cpu.h>
#include <lib/blib.h>
#include <lib/print.h>
#include <sys/smp.h>
#include <sys/lapic.h>
#include <sys/gdt.h>
#include <mm/vmm.h>
#include <mm/pmm.h>
struct madt {
struct sdt header;
ui... |
/* class.c
Handling for client classes. */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1998-2003 by Internet Software Consortium
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the... |
/******************** (C) COPYRIGHT 2010 **************************************
* File Name : USART2_rxinttxintRTC.c
* Hackor : deh
* Date First Issued : 10/16/2010 deh
* Description : USART2 rx & tx char-by-char interrupting using line buffers
**********************************************... |
/*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... |
/*
* va_wayland_drm.c - Wayland/DRM helpers
*
* Copyright (c) 2012 Intel Corporation. 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... |
/*
* Promizer_0.1_Packer.c Copyright (C) 1997 Asle / ReDoX
*
* Converts back to ptk Promizer 0.1 packed MODs
*
* Modified in 2016 by <NAME>
*/
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "prowiz.h"
static int depack_pm01(HIO_HANDLE *in, FILE *out)
{
uint8 ptable[128];
uint8 len;
uint8 ... |
/*
** Copyright (C) 2002-2008 <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... |
/*
RvnicRaven retro game engine
Written in 2021,2022 by <NAME> (Captain4LK) email: captain4lk [at] tutanota [dot] com
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without an... |
/**************************************************************
LZSS.C -- A Data Compression Program
(tab = 4 spaces)
***************************************************************
4/6/1989 <NAME>
Use, distribute, and modify this program freely.
Please send me your improved versions.
PC-VAN SCIENCE
NIFTY-Ser... |
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 follo... |
/*-
* Copyright (c) 1990, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
/*
* Copyright (c) 2004-2006 <NAME> <<EMAIL>>
* Copyright (c) 2006-2007 Sippy Software, Inc., http://www.sippysoft.com
* 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. Redistribution... |
/*
* 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... |
// Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <assert.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h... |
/* cot.f -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of th... |
// =============================================================================
// High Performance ParalleX Library (libhpx)
//
// Copyright (c) 2013-2017, Trustees of Indiana University,
// All rights reserved.
//
// This software may be modified and distributed under the terms of the BSD
// license. See the C... |
/* GStreamer
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
*... |
/* See LICENSE file for copyright and license details. */
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utf.h"
#include "util.h"
/* tokens, one-character operators represent themselves */
enum {
VAL = CHAR_MAX + 1, GE, LE, NE
};
struct val {
char *str;
long long num;
};
... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// This sample demonstrates how a downstream device connects to an Edge device. For more details
// pertaining to this scenario please see:
// https://docs.microsoft.co... |
/*
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.