text stringlengths 3.12k 18.7k |
|---|
/*
* This file is part of RGBDS.
*
* Copyright (c) 2013-2018, stag019 and RGBDS contributors.
*
* SPDX-License-Identifier: MIT
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "gfx/main.h"
void transpose_tiles(struct GBImage *gb, int width)
{
uint8_t *newdata;
int i;
int newbyte;
new... |
/*
* Copyright (c) 2011 Samsung Electronics Co., Ltd 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 ... |
// Copyright 2015 <NAME>. Released under the MIT license.
#include "secure_boot_mode.h"
#include "setup_screen.h"
#include "tp_UDKenv.h"
#include "tp_draw_logo.h"
#define EFI_RUNTIME_NOT_USE_AFTER_EXITBOOTSERVICES 1
#define SCREEN_WIDTH 1024
static EFI_HANDLE IH = NULL;
static EFI_GRAPHICS_OUTPUT_PROTOCOL* gop = NU... |
/*
* Copyright (c) 2018-2020
* <NAME>
* <EMAIL>
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-07-23 <NAME> The first version
*/
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include "nnom.h"
#include "nnom_local.h"
#include "nnom_la... |
/*
* Copyright (C) 2008 Google, Inc.
* Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
*... |
#include "context.h"
#include <stdlib.h>
#include <string.h>
#include "app_timer.h"
#include "nrf_log.h"
#include "pca20020.h"
#include "sensor.h"
void temp2ctx(void* temp_in, context_t* context_out);
void humid2ctx(void* temp_in, context_t* context_out);
void pressure2ctx(void* temp_in, context_t* context_out);
voi... |
/*
* MIT License
*
* Copyright (c) 2019-2021 Ecole Polytechnique Federale Lausanne (EPFL)
*
* 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 limit... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
#define alpha 1
#define beta 1
double A[N][N +20];
double B[N][N +20];
double x[N];
double u1[N];
double u2[N];
double v1[N];
double v2[N];
double w[N];
double y[N];
double z[N];
void init_arrays()
{
int i, j;
for (i=0; i<N; i++)... |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
/* E D I T I T . C
* BRL-CAD
*
* Copyright (c) 2008-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
/*-
* Copyright (c) 1998, 2001 <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 condit... |
#include <emgui/Emgui.h>
#include <bass.h>
#include "Dialog.h"
#include <math.h>
#include <stdio.h>
#include "TrackData.h"
#include <tinycthread.h>
static mtx_t s_mutex;
typedef struct ThreadFuncData {
HSTREAM stream;
MusicData* data;
} ThreadFuncData;
// This code has in many parts been ported to C from thi... |
/**
* @file integrator_janus.c
* @brief Janus integration scheme.
* @author <NAME> <<EMAIL>>
* @details This file implements the Janus integration scheme.
* Described in Rein & Tamayo 2017.
*
* @section LICENSE
* Copyright (c) 2017 <NAME>, <NAME>
*
* This file is part of rebound.
*
* rebound is fre... |
#include <stdio.h> //Declarations used in most input and output operations;
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#include <math.h>
#include <sys/types.h> //Defines a number of data types used in system calls
#include <sys/socket.h> //Defines a number of structures ne... |
#include "category.h"
static char *filename = "category.txt";
ssize_t sizeOfStringObject(robj *obj) {
if (obj->encoding == REDIS_ENCODING_INT) {
return sizeof(long long);
} else {
// serverAssertWithInfo(NULL,obj,sdsEncodedObject(obj));
return sdsAllocSize(obj->ptr);
}
}
/* Save a ... |
/*
*
* Copyright 2016, 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... |
/* Copyright (c) 2007 <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, distr... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*
* Copyright (c) 2015-2018 Nexenta Systems, inc.
*
* This file is part of EdgeFS Project
* (see https://github.com/Nexenta/edgefs).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
// This is free and unencumbered software released into the public domain.
// For more information, please refer to <https://unlicense.org>
// bbbbbr 2020
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdint.h>
#include "common.h"
#include "banks.h"
#inc... |
/*******************************************************************************
*
* @file rtc_hal.c
*
* Copyright (C) 2019 Eta Compute, Inc
*
* 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
*
... |
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
double getRand()
{
return (double)rand()/RAND_MAX*2.0-1.0;
}
typedef struct
{
double weights1[2][2], weights2[1][2];
double bias1[2], bias2[1];
double gradientMod;
} GradientVector;
typedef struct
{
double y;
double a0[2], ... |
#pragma once
//////// Buzzer Settings /////////////
/*
The buzzer sounds at a fixed frequency, but the duration of the tone can be controlled by:
M300 Snnn
Snnn = tine to buzz in seconds
This will consume GPIO25.
*/
const int BUZZ_PIN = 25;
//___________________________________________________________________... |
/*
* Copyright 2016 GoPro Inc.
*
* 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, Vers... |
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include "shared.h"
unsigned char *disk;
struct ext2_super_block *sb;
// Initialize the ext2 disk by the disk image path
int disk_init(const char *image_path){
int fd = op... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2012-2020 ASPEED Technology Inc.
* Copyright 2016 IBM Corporation
* Copyright 2017 Google, Inc.
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
#include <i2c.h>
#include <asm/io.h>
#include <asm/arch/scu_ast2500... |
/*
$Id: dump_xml.c 231 2011-06-27 13:46:19Z marc.noirot $
FLV Metadata updater
Copyright (C) 2007-2012 <NAME> <<EMAIL> AT <EMAIL>>
This file is part of FLVMeta.
FLVMeta is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published b... |
/** @file
* Copyright (c) 2018-2020, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* 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
*
* ht... |
/*
* Python interface to libgfshare()
* Copyright (C) 2017, 2018, 2019 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* ... |
/* $OpenBSD: fxpvar.h,v 1.37 2013/12/06 21:03:03 deraadt Exp $ */
/* $NetBSD: if_fxpvar.h,v 1.1 1997/06/05 02:01:58 thorpej Exp $ */
/*
* Copyright (c) 1995, <NAME>
* All rights reserved.
*
* Modifications to support NetBSD:
* Copyright (c) 1997 <NAME>. All rights reserved.
* ... |
/**************************************************************************/
/*!
@file main.c
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2016, Adafruit Industries (adafruit.com)
All rights reserved.
Redistribution and use in source and binary forms... |
void
fibonacci(Monitor *mon, int s) {
unsigned int i, n, nx, ny, nw, nh;
Client *c;
for(n = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next), n++);
if(n == 0)
return;
nx = mon->wx;
ny = 0;
nw = mon->ww;
nh = mon->wh;
for(i = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next)) {
if((i % 2... |
#include "print_info.h"
#include <stdio.h>
// A list of all partition types - as found on Wikipedia.
const char* const partition_types[] = {
"Empty", // 0x00
"FAT12", // 0x01
"XENIX root", // 0x02
"XENIX usr", // 0x03
"FAT16", // 0x04
"Extended", //0x05
"FAT16B", // 0x06
"NTFS/HPFS/exFA... |
/*RADARSAT Auxiliary data decoding utilites.*/
#include "asf.h"
#include "decoder.h"
#include "auxiliary.h"
/******************************************************************************
* Information about RSAT_raw_aux for function: RSAT_decodeAux()
* Description of the RSAT aux data header in raw form - it is a 5... |
#include "../qiniu/resumable_io.h"
#include "../qiniu/http.h"
#include "../qiniu/rs.h"
#include "../qiniu/base.h"
#include "../cJSON/cJSON.h"
#include <openssl/md5.h>
#include <stdio.h>
#include <wchar.h>
#if defined(_WIN32)
#pragma comment(lib, "libeay32.lib")
#endif
#ifndef RS_FILE_RECORDER_UPLOAD
#define RS_FILE_R... |
/**
******************************************************************************
* @file ntp.c
* @author WIZnet Software Team
* @version V1.0
* @date 2015-02-14
* @brief ntp 演示函数
******************************************************************************
**/
#include "w5500.h"
#include "w5500_... |
/*****************************************************************************
* Lab Project: Blinky/Button with RTOS (FreeRTOS)
* Board: EK-TM4C123GXL
*
* Q u a n t u m L e a P s
* ------------------------
* Modern Embedded Software
*
* Copyright (C) 2005-2020 ... |
/* specfunc/zeta.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004 <NAME>
*
* 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) a... |
/* Iperf Example - wifi commands
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
3in software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
/*Remov... |
/*
* linux/net/sunrpc/svcauth_des.c
*
* Server-side AUTH_DES handling.
*
* Copyright (C) 1996, 1997 <NAME> <<EMAIL>>
*/
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/sunrpc/types.h>
#include <linux/sunrpc/xdr.h>
#include <linux/sunrpc/svcauth.h>
#include <linux/sunrpc/svcsock.h>
#define RPC... |
static const char version[] = "$Id$";
/*
* test_category.c
*
* Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*
*
* Note: there's a known issue with this program double closing the
* test file pointer. This is because the... |
//******************************************************************************
// lz4_ex2_custom_frame - Compress a block of text with CRC32 checksum.
//
// This example demonstrates how to compress a block of text into a custom
// frame with CRC32 checksum. The advantage is a significantly faster checksum
// cal... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 <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 (at your option) ... |
/****************************************************************************
* @file main.c
* @version V1.00
* @brief Transmit and receive UART data in UART IrDA mode.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
****************************... |
#include "output.h"
#include "prime_shared.h"
#include "shared.h"
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#define BUFFER_SIZE 0x100000
#define SCAN_DEBUG_MASK 0x3FFFFF
static unsigned char checkMask[] = {0x00, 0x01, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00,... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2017, Texas Instruments Incorporated
* 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 copy... |
/* $OpenBSD: hpcdma.c,v 1.1 2012/03/28 20:44:23 miod Exp $ */
/* $NetBSD: hpcdma.c,v 1.21 2011/07/01 18:53:46 dyoung Exp $ */
/*
* Copyright (c) 2001 <NAME>
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>
*
* Redistribution and use in source and bin... |
#include "snd.h"
/* -------- drop watcher lists -------- */
/* the rigamarole for dealing with a drop is so messed up that I think it's
* worth the trouble of setting up a separate callback list -- hence the
* drop watchers
*/
typedef struct {
void (*drop_watcher)(Widget w, const char *message, Position x, ... |
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "tcpip_adapter.h"
//#include "protocol_examples_common.h"
//#include "esp_tls.h"
#include <string.h>
#include <sys/param.h... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 <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 (at your option) ... |
/**
* \file
*
* \brief Template of a user-defined protocol support for PLC USI service
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
/*
tel2com
Copyright (c) 2018 Nanshiki Corporation
This software is released under the MIT License.
https://opensource.org/licenses/mit-license.php
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <termios.h>
#include <errno.h>
#include <unistd.h>
#include <fcn... |
/**
* Copyright (c) 2014,2015,2016 Enzien Audio Ltd.
*
* 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 T... |
/**************************************************************************
*
* Copyright 2007 VMware, Inc.
* 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 wi... |
/*
* Oracle Linux DTrace.
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include <assert.h>
#include <errno.h>
#include <sys/epoll.h>
#include <sys/ioctl.h>
#include <sys/m... |
/***************************************************************************
/* ned_cli.c <NAME> Nov. 9, 1993
/*
/*commands(sent by client, received by server):
/* . the length of the command is less than 100
/* . the command is always ended with a '\n', and is always a string
/*
/* 1. name_resolver ... |
/*
* Copyright (c) 2005 Topspin Communications. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this s... |
/**
* \file
* \brief Framebuffer glue
*/
/*
* Copyright (c) 2007, 2008, 2009, 2010, 2011, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8... |
/* 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... |
#include "integrators.h"
#include "config.h"
#include "helpers.h"
#include "pot.h"
#include <assert.h>
#include <math.h>
/*!
* \brief Vanilla Strang splitting
*/
const double P2GAMMA_p2s1[] = {
1.0,
};
/*!
* \brief Tripple Jump
*
* 4th-order symmetric composition method with 3 stages.
*/
const double P2GAMM... |
/*
* isbench
* bench.c
*
* Main entry point and user interface of the benchmark, relies on platform-defined
* functions.
*
* Copyright ©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 dea... |
/* Copyright (c) 2012, <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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
//
// Created by <NAME> on 07.02.18.
//
#include "data.h"
#include "filters.h"
#include "mem.h"
#include "types.h"
#include <assert.h>
#include <misc/misc.h>
#include <sb/error.h>
#include <string.h>
#include <scheme_interpreter/scheme-private.h>
pointer handle_generic_filter(scheme *sc, pointer args) {
const size... |
// Copyright 2017 <EMAIL>
// Licensed under the MIT license (http://opensource.org/licenses/MIT)
#include <avr/pgmspace.h>
#include <string.h>
#include "xmega/usb_xmega.h"
#include "core/flash.h"
#include "core/settings.h"
#include "usb_reports/keyboard_report.h"
#include "usb_reports/mouse_report.h"
#include "usb_... |
/* sniffer.c: show all incoming messages */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "lib/app_util.h"
#include "lib/packet.h"
#include "lib/mgmt.h"
#include "lib/media.h"
#include "lib/sockets.h"
#include "lib/util.h"
#include "lib/app_util.h"
#include "lib/sha.h"
#inclu... |
#include <stdio.h>
#include <windows.h>
BOOL DoComIo(LPSTR lpCom,DWORD Baud,BYTE Size,BYTE Parity,BYTE Stop);
//#define COM_DEB 1
#define NUM 128
#define print printf
#define SETTINGS1 "COM1",9600,8,NOPARITY,ONESTOPBIT
#define SETTINGS2 "COM1",4800,8,NOPARITY,ONESTOP... |
/*
File: hd44780_i2c.c
Interface with the HD44780 16x02 LCD display via a i2c backpack which
requires the display operates in 4-bit mode
----- Registers -----
The HD44780U has two 8-bit registers:
1. Instruction register (IR)
The IR stores instruction codes, such as display clear and cursor shift,
and... |
/*
* This software is copyrighted as noted below. It may be freely copied,
* modified, and redistributed, provided that the copyright notice is
* preserved on all copies.
*
* There is no warranty or other guarantee of fitness for this software,
* it is provided solely "as is". Bug reports or fixes may be sent
... |
/****************************************************************************
* *
* BeOS Randomness-Gathering Code *
* Copyright <NAME> and <NAME> 1996-2003 *
* *
****************************************************************************/
/* This module is part of t... |
#include "skynet.h"
#include "mread.h"
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdarg.h>
struct connection {
uint32_t agent;
uint32_t client;
int connection_id;
int uid;
};
stru... |
/*
* Board functions for TI AM335X based dxr2 board
* (C) Copyright 2013 <NAME> AG
* (C) <NAME>, DENX Software Engineering, <EMAIL>.
*
* Based on:
*
* Board functions for TI AM335X based boards
* u-boot:/board/ti/am335x/board.c
*
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
*
*... |
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyr... |
/*
* wifi_service.c
*
* Created: 10/4/2018 2:21:45 PM
* Author: I17643
*/
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include "../clock.h"
#include <libpic30.h>
#include "wifi_service.h"
#include "../winc/driver/include/m2m_wifi.h"
#include "../drivers/timeout.h"
#include "../app... |
/*
* This program performs some simple operations with the various libbladeRF
* "control" functions. It is mainly intended to only check for the presence
* of grossly erroneous code in these functions, that would cause crashes or
* very bizarre results.
*
* This file is part of the bladeRF project:
* http://ww... |
//
// Use the following R command to compile and link:
// R CMD SHLIB connected.c helperFunctions.c
//
// in case of error, e.g. "error: bad value (core2) for -mtune= switch"
//
// R CMD SHLIB connected.c helperFunctions.c --dry-run
//
// This will show the commands that you can then run individually:
// make -f "C:/P... |
/* ------------------------------------------------
Copyright 2014 AT&T Intellectual Property
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
Unle... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2012, 2013 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by <NAME> under sponsorship
* from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
/*
* Copyright (c) 2014, <NAME>
* Copyright (c) 2014, <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, t... |
/*
* nb.c - Nick's simple HTTP client benchmark
*
* Heavily based on bench_httpclient.c from the Libevent distribution
* but with output 'ab'-like to be parseable by scripts for comparison
*
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* _ _
* ... |
/**
* crc7.c
*
* Functions and types for CRC checks.
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* 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 Found... |
/***************************************************************************//**
* @file
* @brief Silicon Labs implementation of FreeRTOS Bluetooth Low Energy library.
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silab... |
/*
* DOS upper memory management.
*
* Copyright 2002 <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 (at your option) any later ve... |
/*
* Unit tests for dmsynth functions
*
* Copyright (C) 2012 <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 (at your option) any ... |
/*****************************************************************************
* *
* Copyright (c) 2003-2015 Intel Corporation. *
* All rights reserved. *
* ... |
#include <rand.h>
#include <spinlock.h>
#include <string.h>
typedef unsigned long long ub8;
#define UB8MAXVAL 0xffffffffffffffffLL
#define UB8BITS 64
typedef signed long long sb8;
#define SB8MAXVAL 0x7fffffffffffffffLL
typedef unsigned long int ub4; /* unsigned 4-byte quantities */
#define UB4MAXVAL 0xffffffff
typedef... |
/* speakup_keyhelp.c
* help module for speakup
*
*written by <NAME>.
*
* Copyright (C) 2003 <NAME>.
*
* 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 Licens... |
/**
@file
@brief
RTC Example 2
Display a message every two seconds via an RTC interrupt.
*/
/*
* ============================================================================
* History
* =======
* 2 Oct 2014 : Created
*
* Copyright (C) Bridgetek Pte Ltd
* =================================================... |
/*
* Copyright 2019 fpv-github
* 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
* of conditions and ... |
/*
* Copyright (C) 2016 Southern Storm Software, Pty 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 restriction, including without limitation
* the rights to use, copy, ... |
#include "exc.h"
#include "io.h"
#include "pcb.h"
#include "sched.h"
#include "sem.h"
#include "syscall.h"
#include "utils.h"
void test ();
/**
* Initializes the system-wide ready process queue to contain the test process.
* @see proc_factory
*/
static void sched_queue_init();
/**
* @return A PCB initialized to exe... |
#include "sign.h"
#include <stdlib.h>
#include <string.h>
#include "randombytes.h"
#include "zerobytes.h"
#include "params.h"
#include "wots.h"
#include "horst.h"
#include "hash.h"
#include "crypto_hash_blake512.h"
#include "hash_address.h"
#include "tree.h"
#define BIGINT_BYTES ((TOTALTREE_HEIGHT-SUBTREE_HEIGHT+7)/8... |
/**
* collectd - src/collectdmon.c
* Copyright (C) 2007 <NAME>
*
* 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; only version 2 of the License is applicable.
*
* This program is distrib... |
#include "cscoordinator.h"
Boolean checkGameConfig(GameConfig a)
{
/* Contrainte d'intégrité
*
* Humans > 0 => Coordinated actions = True
*
* 0 < Initial quantity <= 50000
* 0 <= Number of producer <= 5
* SUM(Number of producer) > 0
* SUM(Agent) > 0
* 0 <= Cooperative <= 10
... |
/*
* arch/ppc/mm/fault.c
*
* PowerPC version
* Copyright (C) 1995-1996 <NAME> (<EMAIL>)
*
* Derived from "arch/i386/mm/fault.c"
* Copyright (C) 1991, 1992, 1993, 1994 <NAME>
*
* Modified by <NAME> and <NAME>.
*
* Modified for PPC64 by <NAME> (<EMAIL>)
*
* This program is free software; you ca... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME> for Adafruit Industries
*
* 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... |
/*
* Human-readable table.
* Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT
* Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
*/
#include <string.h>
#include "ujpp_main.h"
#include "ujpp_utils.h"
#include "ujpp_demangle_lua.h"
#include "ujpp_output.h"
#include ".... |
//------------------------------------------------------------------------------
// GB_AxB_heap: compute C<M> = A*B using a heap-based method
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2019, All Rights Reserved.
// http://suitesparse.com ... |
#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "led.h"
#include "key.h"
#include "lcd.h"
#include "sram.h"
#include "malloc.h"
#include "sdio_sdcard.h"
#include "w25qxx.h"
#include "ov7670.h"
#include "timer.h"
#include "exti.h"
#include "beep.h"
#include "ff.h"
#include "exfuns.h"
#include "string.h"
... |
/*
* tcpkill.c
*
* Kill TCP connections already in progress.
*
* Copyright (c) 2000 <NAME> <<EMAIL>>
*
* $Id: tcpkill.c,v 1.17 2001/03/17 08:10:43 dugsong Exp $
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <err.h>
#include <libnet.h>
#includ... |
#include "FSBase.h"
// char current[140][30];
// uint16_t current_p = 0;
path current;
// i_index_t current_i;
const uint8_t DIRTYPE = 0;
const uint8_t FILETYPE = 1;
uint8_t uid = 0;
uint8_t gid = 0;
uint8_t default_file_right[3] = {6, 6, 4};
uint8_t default_dir_right[3] = {7, 7, 4};
const int ENTRYSIZE = (1 << 5)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.