text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright (c) 2018-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... |
//==============================================================================
// includes
//==============================================================================
#include <celib/memory/allocator.h>
#include <celib/api.h>
#include <celib/memory/memory.h>
#include <celib/module.h>
#include <celib/id.h>
#incl... |
/*++
/* NAME
/* dsn_filter 3
/* SUMMARY
/* filter delivery status code or text
/* SYNOPSIS
/* #include <dsn_filter.h>
/*
/* DSN_FILTER *dsn_filter_create(
/* const char *title,
/* const char *map_names)
/*
/* DSN *dsn_filter_lookup(
/* DSN_FILTER *fp,
/* DSN *dsn)
/*
/* void dsn_filter_free(
/* DSN_FILTER *fp)
/* DESCR... |
/* $Id$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* S H A R E D F I L E
*
* A U X I L I A R Y R O U T I N E S
*
*/
#include <em_mes.h>
#include <em_pseu.h>
#include "types.h"
#include... |
/**
* File Name: TopLogicalSort.c
* Author: tyrantlucifer
* E-mail: <EMAIL>
* Blog: https://tyrantlucifer.com
*/
#include <stdio.h>
#include <stdlib.h>
/**
* define graph struct
*/
typedef struct Graph {
char* vexs;
int** arcs;
int vexNum;
int arcNum;
}Graph;
/**
* define stack node struct
*/... |
/* Target-dependent code for SuperH running NetBSD, for GDB.
Copyright 2002, 2003 Free Software Foundation, Inc.
Contributed by Wasabi Systems, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pub... |
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2016 Cromulence LLC
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, m... |
/*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of the MIT License.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <sys/socket.h>
extern ngx_module_t ngx_http_tcp_keepalive_module;
typedef struct {
ngx_flag_t enable;
ngx_uint_t tcp_... |
#include "types.h"
#include "defs.h"
#include "x86.h"
#include "pci.h"
// Forward declaration
static void check_bus(struct pci_bus *bus);
static struct pci_driver pci_devices[] = {
{ VENDOR_ID_INTEL, DEVICE_ID_82540EM, &i82540em_init},
{ 0, 0, 0 },
};
static void set_conf_addr(struct pci_func *func, uint3... |
#define _CRT_SECURE_NO_WARNINGS
#define PROGRAM_FILE "rdft.cl"
#define KERNEL_FUNC "rdft"
#define NUM_POINTS 256
#include "fft_check.c"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef MAC
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
int main() {
/* Host/device da... |
/* $OpenBSD: uscom.c,v 1.4 2016/01/07 12:53:37 mpi Exp $ */
/*
* Copyright (c) 2006 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies... |
/**
* @file spi_mcp3208.c
* @brief Microchip MCP3208 over SPI
* @author <NAME>
* @see http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf
*/
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <wiringPiSPI.h>
#include "spi_mcp3208.h"
#define MCP3208_... |
#include <camkes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <counter.h>
#include <data.h>
#include <queue.h>
#include <stdint.h>
#include <sys/types.h>
#include "hexdump.h"
char geoFenceMsgBuffer[256];
data_t _geoFenceData;
data_t *geoFenceData = &_geoFenceData;
size_t geoFenceDataSizeBy... |
/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... |
#include <u.h>
#include <libc.h>
typedef struct DS DS;
static int call(char*, char*, DS*);
static int csdial(DS*);
static void _dial_string_parse(char*, DS*);
enum
{
Maxstring = 128,
Maxpath = 256,
};
struct DS {
/* dist string */
char buf[Maxstring];
char *netdir;
char *proto;
char *rem;
/* other args */... |
// commacro.h - Handy COM boilerplate
//
// Microsoft Confidential
// Copyright 1999-2000 Microsoft Corporation. All Rights Reserved.
//
//-----------------------------------------------------------------
// Created: [....] 7, 1999 <NAME> [paulde]
//
// This was all stolen or inspired by existing macros.
//
// Note: M... |
/*
* Copyright (c) 2013-2017 Intel Corporation. All rights reserved.
* Additional copyrights may follow
*
* $HEADER$
*/
#include "orcm_config.h"
#include "orcm/constants.h"
#include "opal/mca/base/base.h"
#include "opal/mca/base/mca_base_var.h"
#include "orcm/mca/sensor/base/sensor_private.h"
#include "sensor_s... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) <NAME>. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*----------------------------------------------------------------------------------... |
/* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
*
* Copyright (c) 2018 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <board.h>
#include <gpio.h>
#include "common.h"
#include "ble_mesh.h"
#include "device_composition.h"
#include "publisher.h"
struct device *led_device[4];
s... |
//
// Created by <NAME> on 1/7/22.
//
#include "../graphic/GUI_init.h"
#include "inner_characters.h"
#include "../graphic/MrJack_Map.h"
#include "../gameplay/MrJack_Gameplay.h"
int SergentGoodley_bfs(int start, int out[]);
void SergentGoodley_select_characters(){
MapElement *elements = get_elements(0);
for (... |
/******************************Module*Header*******************************\
* Module Name: sort.c
*
*
* Created: 20-Mar-1995 09:52:19
* Author: <NAME> [erick]
*
* Copyright (c) 1993 Microsoft Corporation
*
*
\**************************************************************************/
#include "htp.h"
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "defs.h"
#include "misc.h"
#include "mem.h"
#include "parser.h"
#include "buffer.h"
#include "argparse.h"
char TranslateCodon(char *codon)
{
if(!strcmp(codon, "ATA")) { return 'I';}
else if(!strcmp(codon, "ATC")) { return 'I';}
else if(!strcmp... |
/*
* ParticleEngine.c
* FountainMusic
*
* Copyright 2003-2011 <NAME>
*
*/
#include "ParticleEngine.h"
#include "FMDefs.h"
#ifdef FM_WINDOWS_BUILD
//
#else
#include <stdlib.h>
#endif
void ResetParticle(Particle3D *particle)
{
particle->position.x = 0.0f;
particle->position.y = 0.0f;
particle->po... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 Lic... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define MAX_LENGTH 100
struct position {
int x, y;
};
// These are the various moves the knight can make
struct position knight_moves[] = {
{ -2, -1 },
{ -1, -2 },
{ 1, -2 },
{ 2, -... |
// NOTE: anything defined herein should be filled in by the mapper;
// leaving them uninitialised may lead to surprising runtime behaviour
// various types
PyTypeObject PyType_Type;
PyTypeObject PyBaseObject_Type;
PyTypeObject PyClass_Type;
PyTypeObject PyInstance_Type;
PyTypeObject PyMethod_Type;
PyType... |
/* Copyright (c) 2015, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/**
* @file re_ice.h Interface to Interactive Connectivity Establishment (ICE)
*
* Copyright (C) 2010 Creytiv.com
*/
/** ICE mode */
enum ice_mode {
ICE_MODE_FULL,
ICE_MODE_LITE
};
/** ICE Component ID */
enum ice_compid {
ICE_COMPID_RTP = 1,
ICE_COMPID_RTCP = 2
};
/** ICE Nomination */
enum ice_nominatio... |
#include "dccmn.h"
#ifdef UNDERSCORE
#define dc_gbufr dc_gbufr_
#endif
/*
** Define and initialize the finite-state machine for finding a
** bulletin in the buffer.
*/
/* States for finding a bulletin */
typedef enum {
BUFR_START,
BUFR_NOT_IN_BULLETIN,
BUFR_B_,
BUFR_B_U_,
BUFR_B_U_F_,
BUFR_I... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <Windows.h>
#include <time.h>
#define TOM 0
#define CUA 1
#define BAU 2
#define GA 3
#define CA 4
#define HUOU 5
unsigned long SoTienHienTai = 100;
// Người chơi đặt cược và đợi thông báo
int main()
{
char key;
unsigned long TienTom, TienCua, TienBa... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/shared/at_scancode.c,v 1.4 2003/08/24 17:37:05 dawes Exp $ */
/*
* Copyright (c) 2002-2003 by The XFree86 Project, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "... |
/*----------------------------------------------------------------
* rdmchat/server.c - RDM chat server demo for libnet
*----------------------------------------------------------------
* libnet is (c) Copyright <NAME> and <NAME> 1997-1999
*
* Please look in `docs' for details, documentation and
* distribution... |
/*
* libhfs - library for reading and writing Macintosh HFS volumes
* Copyright (C) 1996-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 Foundation; either version 2 of the License, or
... |
/* Copyright (C) 2000-2012 by <NAME> */
/*
* 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 conditions and the following disclaim... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 ... |
#include <stdbool.h>
#include "../src/ruby-lemon-parse/parse.c"
#include "../src/ruby-lemon-parse/token_helper.h"
#include "common.h"
#include "compiler.h"
#include "debug.h"
#include "generator.h"
#include "scope.h"
#include "stream.h"
#include "token.h"
#include "tokenizer.h"
#include "tokenizer_helper.h"
#include "... |
/*
* Copyright (C) 2018 helllayde
*
* 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... |
/**
* Original code: https://gist.github.com/ronivaldo/5587355
*
* Cleaned up code: https://github.com/migsantiago/lcd_big_numbers
* This is only a snippet. Adapt this code to your own LCD code :D
*/
/**
* Draw a character manually by sending 8 bytes
* @param address - choose user char from 0 to 7
* @param row... |
/* http://www.maverick-os.dk/ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "readfat.h"
int show_usage(void);
int main_proc(const char *imgfile);
void parser_boots(const char * buffer);
void parser_rootdir(const char * buffer);
short toWord(const char *bytes);
long toDWord(const char *bytes);... |
/**
******************************************************************************
* @file tim.c
* @brief This file provides code for the configuration
* of the TIM instances.
******************************************************************************
* @attention
*
* <h2><center>©... |
// (C) 2005-2006 <NAME>
// This file is available under the MIT/X license, see COPYING
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <stdlib.h>
#include "nutmerge.h"
#define FREAD(file, len, var) do { if (fread((var), 1, (len), (file)) != (len)) return -1; }while(0)
typedef struct ogg_stream_s... |
// directory iteration.
// - rlyeh, public domain.
#ifndef DIR_H
#define DIR_H
typedef struct dir dir;
dir *dir_open(const char *filename, const char *mode); // recursive 'r'
int dir_find(dir*, const char *entryname); // returns entry number; or <0 if not found.
unsigned dir_count(dir*);
char* di... |
/*
Copyright 2015 Concurrent Computer Corporation
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... |
/********************************************************************
NAME: prn_dssr.c
PURPOSE: Reads the input (.ldr) file given and prints all of the
fields of the dataset summary record.
PROGRAM HISTORY:
VERSION DATE AUTHOR
------- ---- ------
1.0 4/96 <NAME> (ASF)
... |
#define SEQUENCE_IDLE 0x00
#define GET_SAMPLE 0x10
#define GET_SAMPLE__WAITING 0x12
#include <Hash.h>
long lastSend = 0;
//-----------------------------------------------------------------------
void sendProximity() {
if (sensors.left.done & sensors.right.done) {
sensors.left.done = false;
sensors.right.... |
/* This same code is used in both the VICAR RTL and in the tape mount */
/* commands in TAE. The code must be repeated to keep the RTL separate */
/* from TAE as much as possible. */
/* */
/* The following #includes must be changed to reflect which place the */
/* file is in. They must be the only differe... |
#pragma once
#define PI 3.14159265
#include <windows.h>
#include <windowsx.h>
#include <mmsystem.h>
#include <string>
#include <vector>
#include <d3d9.h>
#include <d3dx9.h>
#include <dinput.h>
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
// color RGB for D3DXVECTOR3
#define ... |
/*
* ============================================================================
* Copyright (c) 2011 Marvell International, Ltd. All Rights Reserved
*
* Marvell Confidential
* ============================================================================
*
* PIE Col... |
/************************************************************\
* Copyright 2018 <NAME> <<EMAIL>>
* (c.f. COPYING)
*
* This file is part of BREWCOP, a coffee pot monitor.
* For details, see https://github.com/garlick/brewcop.
*
* SPDX-License-Identifier: BSD-3-Clause
\*********************************************... |
/**************************************************************************
Etherboot - BOOTP/TFTP Bootstrap Program
Prism2 NIC driver for Etherboot
Wrapper for prism2_plx
Written by <NAME> of Fen Systems Ltd
$Id$
***************************************************************************/
/*
* This program is free... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include "parsing_struct.h"
#include "struct_utils.h"
#include "nodes.h"
#include "cmd.h"
#incl... |
/*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Pi in the Sky - Autumn 2021
*
* This file contains the main script that is run on the remote control (ground unit).
*
* Credit: We make use of the spi.h, uart.h, assert.h, mcp3008.h libraries provided by the course.
*
*/
#include "printf.h"
#in... |
/*
* Copyright 2019, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
#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... |
// https://github.com/jantari
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
unsigned long long int other_to_decimal (char input[], int input_length, int source_num_sys, _Bool verbosemode);
void decimal_to_other (unsigned long long int input, unsigned int target_num_sys, _... |
#pragma once
#include <Arduino.h>
#include <string.h>
#include "enums.h"
// #include <WiFiUdp.h>
// #include "SENSORS.h"
// #include "STORAGE.h"
// #include <ESP32Servo.h>
#define MAX_TELEMETRY_LENGTH 2 // 2kb is probably too much but anyways. I don't wanna fail because of this in tests
class OLDDATACLASS
{
publ... |
/*
* 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... |
/**
* @file drive_simple_timed.c
*
* This file drives the MBOT in a square using pre-determined times.
*/
#include <stdio.h>
#include <robotcontrol.h> // includes ALL Robot Control subsystems
#include <rc/motor.h>
#include <rc/time.h>
#include <signal.h>
enum motor {
RIGHT = 1,
LEFT = 2,
};
enum direc... |
/*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... |
/* BSD 2-Clause License
*
* Copyright (c) 2018, 2019 <NAME> All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* thi... |
/*D***********************************************************
* Modul: DBI - utilities
* put text for a message code
*
* Copyright: yafra.org, Basel, Switzerland
**************************************************************/
#include <mpmain.h>
#include <mpsqlsel.h>
#include <mpprodbi.h> /* Proto... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "dnscache.h"
#define DNS_CACHE_ALLOC 1000
#define QUERY_MIN_INTERVAL 60
static int search (dnscache_t *dnscache, const char *dname, int type, unsigned int *position);
static int allocate (dnscache_t *dnscache);
void dnscache_init (dnscache_t *dns... |
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... |
#include "drv_uart4.h"
#include "KS_Data_Transfer.h"
#include "Face_track.h"
void UART4_Init(u32 br_num)
{
USART_InitTypeDef USART_InitStructure;
USART_ClockInitTypeDef USART_ClockInitStruct;
NVIC_InitTypeDef NVIC_InitStructure;
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB1PeriphClockCmd ( RCC_APB... |
/* Copyright (C) 2003 Red Hat, Inc.
Contributed by <NAME> <<EMAIL>>
This file is part of uClibc.
uClibc 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... |
#include "linemap.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
int linemap_read(struct linemap *linemap, const char *dir, const char *base_fn,
uint32_t primary_file, uint32_t first_additional_n_file) {
if (base_fn == NULL) {
return -1;
}
assert(pri... |
#include "idt.h"
// #include "rtc.h"
// #include "lib.h"
void init_idt();
void exception_handler(int vec_num);
void rtc_interrupt_handler();
extern void keyboard_interrupt_handler();
extern void syscall_handler();
char* exception_messages[32] = {
"Division by zero",
"Debug",
"NMI",
"Breakpoint",
"... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
#include "ecc.h"
#include "srv_inir.h"
const char* SQL_SEL_IDNT = "SELECT * FROM Persons WHERE Idn=%d;";
const char* SQL_UPD_IDNT = "UPDATE Persons SET Sec = '%s' WHERE Idn = %d;";
//sql read callback
int srv_idnt_cb(void* arg, int n, char** data ,char** name)
{
int i;
if(n<6) return 0;
i=rdata->n;
... |
/**
* PS Move API - An interface for the PS Move Motion Controller
* 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:
*
* 1. Redistributions of sour... |
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include "config.h"
#include "display_mgr/display_mgr.h"
#include "ui/components/button.h"
#include "ui/ui_mgr.h"
#include "utils/custom_defines.h"
#include "utils/modules.h"
#define X_GAP 5U
#define Y_GAP 5U
static s... |
/*s: linkers/5l/datagen.c */
#include "l.h"
/*s: constant [[Dbufslop]] */
#define Dbufslop 100
/*e: constant [[Dbufslop]] */
/*s: global [[inuxi1]] */
char inuxi1[1];
/*e: global [[inuxi1]] */
/*s: global [[inuxi2]] */
char inuxi2[2];
/*e: global [[inuxi2]] */
/*s: global [[inuxi4]] */
char inuxi4[4];
/*e: global [[i... |
/*
* 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
*... |
#define _CRT_SECURE_NO_WARNINGS
#include "food.h"
#include "frontend.h"
#include "backend.h"
#include "types.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define MAX_FOOD_1 5
#define MAX_FOOD_2 10
#define MAX_FOOD_3 15
#define CONSOLE_SIZE 80*25
#define DELAY_MIN_STD 1
#define DELAY_MA... |
/* SPDX-License-Identifier: MIT */
/*
* Based on description from <NAME> - this demonstrates a leak of the
* io_uring instance, by sending the io_uring fd over a UNIX socket.
*
* See:
*
* https://lore.kernel.org/linux-block/20190129192702.3605-1-axboe@kernel.dk/T/#m6c87fc64e4d063786af6ec6fadce3ac1e95d3184
*
*/
... |
/*
* upb - a minimalist implementation of protocol buffers.
*
* Copyright (c) 2012 Google Inc. See LICENSE for details.
* Author: <NAME> <<EMAIL>>
*/
#include "upb/stdc/io.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "upb/stdc/error.h"
// We can make this configurable if necessary.
#d... |
//==============================================================================
// GPIO Driver
// <NAME> <<EMAIL>>
//==============================================================================
//------------------------------------------------------------------------------
// Includes
//--------------------... |
/*
* WPA Supplicant / main() function for UNIX like OSes and MinGW
* Copyright (c) 2003-2013, <NAME> <<EMAIL>>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "fst/fst.h"
#include "wpa_supplicant_i.h"
#... |
/*
* Copyright (C) 2008 The Android Open Source Project
* 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, t... |
/*******************************************************************************
* This routine polls all of the known AIM modules for arrached ICB modules
* and prints out information about each module it finds.
*******************************************************************************/
/* Modifications
* 23-Ma... |
/*
* cmd.c - Command parsing routines for STM32F303 breakout SPI to ice5 FPGA
* 05-11-16 <NAME>
*/
#include "stm32f30x.h"
#include "arm_math.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "arm_math.h"
#include "usart.h"
#include "cyclesleep.h"
#include "ice5.h"
... |
#include "9pm.h"
#include "link.h"
#define SRV L"9pmsrv"
typedef struct Link Link;
struct Link {
Qlock lk;
Glink *g; /* global memory */
HANDLE eread;
HANDLE ewrite;
};
void linkwatch(void *);
static Gmem *gmem;
static HANDLE srv;
static Link rlink, wlink;
int
pm_linkenabled(void)
{
... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
*/
/****************************************************************
* u... |
// "rabbit-sine", by <NAME>
// Copyright 2011 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... |
/* The MIT License (MIT)
*
* Copyright (c) 2017 <NAME>
*
* Software repository: MoonVulkan, https://github.com/stetre/moonvulkan
*
* 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 with... |
/*
Projection.c:
Contains implementation of routines to create
output DDR and fetch line of DEM by projection coordinates.
*/
#include "asf.h"
#include "ddr.h"
#include "caplib.h"
#include "dem.h"
/*
Extract_proj:
Extracts relevant projection parameters from DDR.
This is only necessary since in some projections, th... |
/* $OpenBSD: cpu.c,v 1.23 2003/08/22 18:09:52 mickey Exp $ */
/*
* Copyright (c) 1998-2002 <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... |
/* stacks.c -*-C-*-
*
*************************************************************************
*
* Copyright (C) 2009-2011
* Intel Corporation
*
* This file is part of the Intel Cilk Plus Library. This library is free
* software; you can redistribute it and/or modify it under the
* terms o... |
// Copyright 2012-2015 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:
//
// - Redistributions of source code must retain the above copyright notice, this
// list of con... |
/*
* Copyright (c) 2015-2016, 2018, Cray 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 the above copyright notice,
* this list of ... |
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
/... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
/*
* Created on: Dec 30, 2020
* Author: <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "../../octospi_flash_module/zephyr/octospi_flash_driver.h"
#include <zephyr/types.h>
#include <syscall_handler.h>
#include "mx25r6435f_driver.h"
/**
* This is a minimal example of an out-of-tree driver
... |
/*
** EPITECH PROJECT, 2019
** error_launch_2
** File description:
** main
*/
#include "include/my.h"
void tab_4(all_t *all)
{
all->tab[80] = "life_tree_1.png";
all->tab[81] = "little_girl.png";
all->tab[82] = "flee_popup.png";
all->tab[83] = "priest_potion.png";
all->tab[84] = "10.png";
all->... |
/*******************************************************************************
* Copyright (C) 2015, <NAME>, contact [at] jean-yves [dot] vet *
* *
* This software is licensed as described in the file LICENCE, which you should *
* h... |
#include <stdio.h>
#include <string.h>
#include "../utils.h"
#include "../settings.h"
#include "../ff.h"
#include "iso.h"
// BOOT
char bootsysiden[33];
char bootiden[33];
char bootable;
// PRIMARY_VOL_DESC
char label[31];
char _system[32];
char voliden[128];
char copyright[37];
char publisher[128];
char app[128];
char... |
#include <stdint.h>
#include <assert.h>
#include "buffer.h"
const uint8_t TEST_DATA[] = {
0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
};
buffer_t g_buffer;
int calculator_eval(buffer_t *buffer, const char *input, int64_t *result);
void
calculator_assert(const char *input, int64_t expected)
{
int64_t re... |
/*
* $Id$
*
* This file contains the routines to handle receiving a message
*
* Despite the apparent symmetry, receives are fundamentally different from
* sends. All receives happen by processing an incoming item of information
* and checking it against known receives.
*
* Eventually, we may want to make Recv... |
#include <math.h>
#include <stdio.h>
#include <stdbool.h>
void textbook_msd(unsigned int first, unsigned int second, unsigned short* in_data, double* mean, double* sd){
double sum = 0.0;
double temp_sd = 0.0;
for(unsigned int i = 0; i < first; i++){
sum = 0.0;
temp_sd = 0.0;
for(unsigned int j = 0; j < secon... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <getdns_libevent.h>
#define UNUSED_PARAM(x) ((void)(x))
/* Set up the callback function, which will also do the processing of the results */
void this_callbackfn(getdns_context *this_context,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.