text stringlengths 3.12k 18.7k |
|---|
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
/*****************************************************************************
* Copyright (C) Queen's University Belfast, ECIT, 2018 *
* *
* This file is part of libsafecrypto. *
* ... |
/**
******************************************************************************
* File Name : I2C.c
* Description : This file provides code for the configuration
* of the I2C instances.
******************************************************************************
... |
#include "cnet-interface.h"
//TODO This probably needs tweaking
#define ROUTETIME 1000000
QUEUE new_messages;
QUEUE unrouted;
QUEUE routed;
FILE* in_pipe;
FILE* out_pipe;
int inFD;
int outFD;
typedef struct
{
MSGHEADER h;
char msg[MAX_MESSAGE_SIZE];
} MSG;
char** str_split(char* a_str, const char a_delim)
... |
// Liao, 7/9/2014, add collapse() inside jacobi()
// Liao, 1/22/2015, test nested map() clauses supported by device data environment reuse.
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <stdlib.h>
#ifdef _OPENMP
#include <omp.h>
#endif
// Add timing support
#include <sys/time.h>
double time_st... |
/*
[单链队列 - 维基百科](https://zh.wikipedia.org/wiki/%E9%98%9F%E5%88%97#%E5%8D%95%E9%93%BE%E9%98%9F%E5%88%97)
队列(queue)又称为伫列,具有一定操作约束的线性表,只允许在前端(队头,front)进行删除(delete),而在后端(队尾:rear)进行插入(insert)的运算。
数据项满足先进先出(FIFO, First In First Out)的原理运作。
队列的链式存储结构可使用一个单链表实现,插入和删除分别在链表的两端进行操作。
当队列为空时,有front == NULL 或者 front == rear。
计算长度公... |
/*-
* Copyright (c) 2005,2008 <NAME>
* Copyright (c) 2007 The FreeBSD Foundation
* All rights reserved.
*
* Portions of this software were developed by <NAME> under
* sponsorship from the FreeBSD Foundation and Google, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... |
/** \file
* \brief Example code for Simple Open EtherCAT master
*
* Usage : red_test [ifname1] [ifname2] [cycletime]
* ifname is NIC interface, f.e. eth0
* cycletime in us, f.e. 500
*
* This is a redundancy test.
*
* (c)<NAME> 2008
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <uni... |
/*
* Copyright (C) 1995-1997 <NAME>
* This file may be distributed under the terms of the GNU General Public License.
*
* This file contains the inode_operations and file_operations
* structures for HFS directories under the CAP scheme.
*
* Based on the minix file system code, (C) 1991, 1992 by <NAME>
*
* The... |
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <signal.h>
#include <string.h>
#include <error.h>
#include <errno.h>
#include <fcntl.h> // para el mkfifo
#include <sys/stat.h> // para el mkfifo
#include <semaphore.h>
#include <sys/types.h>// para el mkfifo
#include "constantes.... |
/* vi: set sw=4 ts=4: */
/* mips/mipsel ELF shared library loader suppport
*
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. Redistribution... |
/*####COPYRIGHTBEGIN####
-------------------------------------------
Copyright (C) 2005 <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 (at your optio... |
/*! \file
Copyright (c) 2003, The Regents of the University of California, through
Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from U.S. Dept. of Energy)
All rights reserved.
The source code is distributed under BSD license, see the file License.txt
at the top-level ... |
/*
* Copyright (C) 2004-2007, 2009-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001-2003 Internet Software Consortium.
*
* 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 t... |
/* amcsshe.c: POOL CLASS AMC STRESS TEST WITH HEADER
*
* $Id$
* Copyright (c) 2001-2020 Ravenbrook Limited. See end of file for license.
* Portions copyright (c) 2002 Global Graphics Software.
*/
#include "fmthe.h"
#include "fmtdytst.h"
#include "testlib.h"
#include "mpslib.h"
#include "mpscamc.h"
#include "mpsa... |
#include <u.h>
#include <libc.h>
#include "vga.h"
/*
* ATI Mach32. Some hope.
* No support for accelerator so can only do up to 1024x768.
*
* All ATI Extended Registers are addressed using the modified index
* index = (0x02<<6)|(index & 0x3F);
* so registers 0x00->0x3F map to 0x80->0xBF, but we will only ever
... |
/*
static char help[] =
"Compile and run:\n"
"mpicc main.c -I/usr/lib/petsc/include -o main -lpetsc -lm && /usr/bin/time -v mpiexec -n 1 ./main -ksp_converged_reason -ksp_final_residual";
*/
// https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCType.html
// reasonable pc_types:
// -pc_type icc/hy... |
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... |
#include "first.h"
#include <dbi/dbi.h>
#include <string.h>
#include <stdlib.h>
#include "base.h"
#include "http_vhostdb.h"
#include "fdevent.h"
#include "log.h"
#include "plugin.h"
/*
* virtual host plugin using DBI for domain to directory lookups
*
* e.g.
* vhostdb.dbi = ( "sql" => "SELECT docroot FROM v... |
/**
* main.c
*
* Author: <NAME>
* License: 3-Clause BSD License
* License URL: https://opensource.org/licenses/BSD-3-Clause
*
*/
#define F_CPU 9600000UL // Default 9.6Mhz to ATtiny13
#include <stdlib.h>
#include <avr/io.h>
#include <avr/cpufunc.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <uti... |
/* $FreeBSD: soc2013/dpl/head/sys/dev/usb/net/if_mosreg.h 232540 2012-02-28 15:45:42Z kevlo $ */
/*-
* Copyright (c) 2010, 2011 <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 ... |
/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
* (Software) available for public use and benefit with the expectation
* that others will use, modify and enhance the Software and contribute
* those enh... |
/* Rijndael Block Cipher - rijndael.c
Written by <NAME> 21st April 1999
<EMAIL>
Permission for free direct or derivative use is granted subject
to compliance with any conditions that the originators of the
algorithm place on its exploitation.
*/
#include "rijndael.h"
/* Fixed Data */
static u8... |
#include <assert.h>
#include <sys/time.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include "profile.h"
#define MAX_SAMPLES 128
struct samples {
char *s_desc;
union {
struct timeval s_tv;
uint64_t s_tsc;
} u;
};
static struct state {
struct samples ... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2012 Red Hat
* based in parts on udlfb.c:
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2009 <NAME> <<EMAIL>>
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <asm/unaligne... |
/* based on PNG 1.2 specification, July 1999 (see also rfc2083) */
/* Alpha is not supported yet because of lack of industry acceptance and */
/* because Plan9 Image uses premultiplied alpha, so png can't be lossless. */
/* Only 24bit color supported, because 8bit may as well use GIF. */
#include <u.h>
#include <libc... |
/*
*
*
* Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the h... |
//
// ctl.c
// Tcpcrypt
//
// Created by <NAME>.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "ctl.h"
#define CTL_MAGIC 0xDDCCBBAA
struct ctl *ctl;
boolean_t connected = FALSE;
OSMallocTag malloc_tag;
int ctl_send_to_client(struct tcpcrypt_info *ti, enum ctl_action action)
{
int result = 0;
... |
/*-
* Copyright (c) 1980, 1992, 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 abov... |
/* Copyright (c) 2018 The Johns Hopkins University/Applied Physics Laboratory
* All Rights Reserved.
*
* This file is dual licensed under the terms of the Apache 2.0 License and
* the BSD 3-Clause License. See the LICENSE file in the root of this
* repository for more information.
*/
#include <openssl/err.h>
#in... |
/*
* Support functions. Exported functions are prototyped in sundries.h.
* sundries.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
*/
#include "sundries.h"
/* File pointer for /etc/mtab. */
FILE *F_mtab = NULL;
/* File pointer for temp mtab. */
FILE *F_temp = NULL;
/* File descriptor for lock. Value tested in unloc... |
/*
* 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) 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... |
/*
* sherlock.c - written by Loki from <NAME>'s sig and comp programs.
*
* This program takes filenames given on the command line,
* and reads those files into memory, then compares them
* all pairwise to find those which are most similar.
*
* It uses a digital signature generation scheme to randomly
* di... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2017 The University of Tennessee and The University
* ... |
/* ************************************************************************** */
/** Descriptive File Name
@Company
Company Name
@File Name
filename.c
@Summary
Brief description of the file.
@Description
Describe the purpose of this file.
*/
/* **********************************************... |
/*
* tpm_sealkey - binds an AES key using an existing TPM key
*
* Copyright (C) 2015 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
#include <ctype.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <str... |
/* Copyright (C) 2009-2013 by <NAME>
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright
* notice and this permission notice appe... |
/*$Header: /data/petsun4/data1/src_solaris/sum_pet_4dfp/RCS/sum_pet_4dfp.c,v 1.3 2013/06/25 13:52:04 jon Exp $*/
/*$Log: sum_pet_4dfp.c,v $
*Revision 1.3 2013/06/25 13:52:04 jon
*changed fopen to rb
*
* Revision 1.2 2011/09/15 14:30:19 jon
* More documentation added. Improved usage statement.
* Will now cal... |
#include <string.h>
#include <time.h>
#include <enet/enet.h>
#include <stdio.h>
#include <emscripten/emscripten.h>
#include <sys/socket.h>
void jsapi_init(int (ENET_CALLBACK * packet_filter) (ENetHost* host)){
if(packet_filter){
ENetCallbacks callbacks = { NULL, NULL, NULL, packet_filter };
enet_initialize_with_c... |
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <signal.h>
#include "ants.h"
#include <stdio.h>
#include <string.h>
int ants_count = ANTS_COUNT;
int food_count = FOOD_COUNT;
int field_count_x = FIELD_WIDTH;
int field_count_y = FIELD_HEIGHT;
ant_t *ants = NULL;
food_t *food = NULL;
#define FIELD... |
/**********************************************************
* Copyright 2010 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 without
* restriction, ... |
/* $NetBSD: wskbdmap_lk201.c,v 1.3 1999/01/06 12:04:09 drochner Exp $ */
#include <sys/types.h>
#include <dev/wscons/wsksymdef.h>
#include <dev/wscons/wsksymvar.h>
#include <dev/dec/wskbdmap_lk201.h>
#define KC(n) KS_KEYCODE((n) - MIN_LK201_KEY)
static const keysym_t zskbd_keydesc_us[] = {
/* pos command norm... |
#include <sched/process.h>
#include <stdbool.h>
#include <mm/memset.h>
#include <mm/heap.h>
#include <mm/paging.h>
#include <mm/physpaging.h>
#include <mm/pagemap.h>
#include <arch/tlb.h>
#include <errno.h>
#include <print.h>
#include <userspace.h>
#include <arch/map.h>
static bool mmapSame(struct MemoryEntry *a, str... |
/*-
* Copyright (c) 2009 <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 a... |
#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... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SIZE 80
#define TRUE 1
#define FALSE 0
typedef struct
{
int day;
int month;
int year;
}Date;
typedef struct
{
int numTrip;
char destination[SIZE];
Date dateTrip;
}Trip;
//***Q1***
//The sturct Node has 2 options ... |
// This simple example just creates random buffer <= 100 filled with 'A'
// needs -I /path/to/AFLplusplus/include
//#include "custom_mutator_helpers.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "afl-fuzz.h"
#define MUTATORS 4 // Specify the total number of mutators
type... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Ge... |
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "fcntl.h"
char*
fmtname(char *path)
{
static char buf[DIRSIZ+1];
char *p;
// Find first character after last slash.
for(p=path+strlen(path); p >= path && *p != '/'; p--)
;
p++;
// Return blank-padded name.
if(strlen(p) ... |
/* OpenCL runtime library: pocl_image_util image utility functions
Copyright (c) 2012 <NAME> / Tampere University of Technology
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... |
/* packet-isis.c
* Routines for ISO/OSI network and transport protocol packet disassembly, core
* bits.
*
* <NAME> <<EMAIL>>
*
* 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 ... |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2001-2020. 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
*... |
/*-------------------------------------------------------------------------
*
* config.c
* a routines for loading, saving configuration
*
* Portions Copyright (c) 2017-2021 <NAME>
*
* IDENTIFICATION
* src/config.c
*
*-------------------------------------------------------------------------
*/
#include "p... |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
/*
* ansi display driver backend
*
* This file emulates the termcap/terminfo/ncurses backend with simple
* ANSI escape sequences. Since terminfo is the de facto default in
* all other Mg clones, this file hooks into that and emulates that
* interfaces to the best of its abilities.
*/
/* This file is in the pu... |
/*****************************************************************************\
** **
** FILE: download.c **
** AUTHORS: Alexios **
**... |
#include "types.h"
#include "stat.h"
#include "user.h"
#include "pstat.h"
#define check(exp, msg) if(exp) {} else {\
printf(1, "%s:%d check (" #exp ") failed: %s\n", __FILE__, __LINE__, msg);\
exit();}
#define numprocs 2
#define numtickets 200
#define starttickets 1000000000
void spin(int dur)
{
int i = 0;
in... |
/**
* Copyright (C) 2014 <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 applicable law or agreed to... |
/*****************************************************************************
* @file test.c
* @brief Start the BLE discovery and subscribe the BLE event
*******************************************************************************
Copyright 2020 GL-iNet. https://www.gl-inet.com/
Licensed under the Apache Lic... |
/*
* Copyright (c) 2007-2012, 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-8092 Zurich. Attn: Systems Group.
*/
#include <stdlib.h>
#inclu... |
/*
* Laser 200/300 VZ to CAS file converter
* and WAV generator (dumb mode is not necessary)
*
* $Id: vz.c,v 1.7 2016/06/26 00:46:55 aralbrec Exp $
*/
#include "appmake.h"
static char *binname = NULL;
static char *crtfile = NULL;
static char *ou... |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2015, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and... |
#include "game_logic.h"
extern double deltaTime;
Pixel CarColors[] = {
{100, 255, 30, 255},
{0, 50, 255, 255},
{96, 255, 42, 255},
{0, 255, 100, 255},
{255, 0, 169, 255},
{0, 55, 255, 255},
{0, 0, 255, 255},
{255, 0, 0, 255},
{0, 255, 0, 255},
{0, 0, 0, 255}};
... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* (C) 2014 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include "mpitest.h"
#define ITER 100
#define BUF_CNT 4
double local_buf[BUF_CNT], check_buf[BUF... |
/*
Name: <NAME>
Asignment Name/Number: Program 8 Stop light in C
EECE 237 Fall 2021
*/
#include "tm4c123gh6pm.h"
#include <stdint.h>
#include <stdio.h>
//FUNCTION PROTOTYPES GO UNDER HERE
//Not the whole function, just the return type, name, and types of any parameters
void PORT_F_INIT(void);
void setLED(u... |
#include "slimage.h"
#include "slshader.h"
#include "glad/glad.h"
#include "GLFW/glfw3.h"
INT32 ImageFormat(const DWORD *formatID)
{
INT32 sign;
const BYTE *type;
type = (const BYTE *)formatID;
sign = 0x0;
switch (*type)
{
case SLIMAGE_ID_BMP_BEG:
ASSER... |
/******************************************************************************
* @file main.c
* @version V1.00
* $Revision: 1 $
* $Date: 20/07/07
* @brief Bank Remap sample code(Bank0 App).
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2020 Nuvoton Technology Corp. All r... |
/* hstore_pllua.c */
/* note, we do not support out-of-pllua-tree building */
#include "pllua.h"
#include "hstore/hstore.h"
#include "mb/pg_wchar.h"
PG_MODULE_MAGIC;
#ifndef PG_GETARG_HSTORE_P
#define PG_GETARG_HSTORE_P(h_) PG_GETARG_HS(h_)
#endif
extern void _PG_init(void);
/* Linkage to functions in hstore mod... |
/*
* server.c
*/
/*-
* Copyright (c) 2006 <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
* not... |
/*** getstr.c - text argument handler
*
* Copyright <C> 1988, Microsoft Corporation
*
* Revision History:
* 26-Nov-1991 mz Strip off near/far
*
*************************************************************************/
#include "mep.h"
#include "cmds.h"
#define ISWORD(c) (isalnum(c) || isxdigit(c) |... |
/*
rdesktop: A Remote Desktop Protocol client.
Smart Card support
Copyright (C) <NAME> <<EMAIL>> 2006
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... |
/*******************************************************************************
* scanner.c : Main scanner function to be used single- or multi-threaded
******************************************************************************/
#include "file_type.h"
#include "forensics.h"
#include "globals.h"
#include "inode... |
#include "filetypes.h"
#pragma pack (push, 1)
typedef struct {
unsigned char i;
unsigned char _l,_h,_e,_d,_c,_b,_f,_a;
unsigned char l,h,e,d,c,b,ly,hy,lx,hx;
unsigned char flag19;
unsigned char r;
unsigned char f,a,lsp,hsp;
unsigned char imod,border;
} snaHead;
#pragma pack (pop)
int loadSNA_... |
#include <string.h>
#include <arm_acle.h>
#include "spdif.h"
#define TAG "SPDIF"
// Inverted if preceding bit state was 1
// Which shouldn't happen due to even parity
#define SPDIF_PREAMBLE_M 0xE2 // Sub-frame 1
#define SPDIF_PREAMBLE_W 0xE4 // Sub-frame 2
#define SPDIF_PREAMBLE_B 0xE8 // Sub-frame 1, start of block... |
/*
veml6075.c
Copyright (c) 2020 by <NAME>
Vishay VEML6075 User Space reader
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/i2c-... |
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "audio_element.h"
#include "audio_pipeline.h"
#include "audio_event_iface.h"
#include "audio_common.h"
#include "board.h"
#include "fatfs_stream.h"
#include "i2s_stream.h"
#include "wav_encoder.h"
#include "esp_p... |
/*
* pg_bulkload: util/pg_timestamp.c
*
* Copyright (c) 2007-2011, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
*/
#include "postgres.h"
#include "utils/datetime.h"
PG_MODULE_MAGIC;
/* prototype of static function */
static void AdjustTimestampForTypmod(Timestamp *time, int32 typmod);
extern Datum pg_timestamp_i... |
#include <termlike/graphics/viewport.h> // viewport
#ifdef TERM_INCLUDE_PROFILER
#include <termlike/platform/profiler.h> // profiler_*
#endif
#include "spritebatch.h" // glyph_renderer, glyphs_*
#include <stdbool.h> // bool
#include <stdlib.h> // malloc, free
#include <stddef.h> // NULL
#include "renderable.h" // ... |
/*
* Rectangular matrix multiplication, started from MIT Cilk matmul.cilk example
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include "omp.h"
#include <pthread.h>
#include <string.h>
#define REAL double
/* in second */
#define read_timer() omp_get_wtime()
/* in ms */
#define ... |
/*
* menu.c
*
* Created on: 24 mag 2016
* Author: <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
#include "playlist.h"
#define DIM 2
void stampa_menu(void);
void scrivi_file(FILE *f, track_t *lista, int dim_lista);
int main(void)
{
int dim_ar... |
/* FileSystem.c - This sets up file system structs, and fle system funcs.
* vim:ts=4 noexpandtab
*/
#include "FileSystem.h"
#include "lib.h"
#include "sys_calls.h"
/*
NAME: read_dentry_by_name
DESCRIPTION: Scans through the directory entries in the boot block to find
the file name, and then update t... |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <<EMAIL>> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a be... |
/*
* configuration.h
*
* Created on: Apr 24, 2020
* Author: <NAME>
* miguel.joao.goncalves at gmail
*/
#include "configuration.h"
#include "w25qxx.h"
osMessageQId actuationTaskQueueHandle;
osThreadId actuationTaskHandle;
osThreadId spiEspComTaskHandle;
osSemaphoreId spiEspSemphHandle;
void configI... |
#pragma ident "$Id: string.c,v 1.2 2014/04/18 18:27:46 dechavez Exp $"
/*======================================================================
*
* String conversions
*
*====================================================================*/
#include "cssio.h"
typedef struct {
char *text;
int code;
} CSSIO_... |
/* mxm.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__9 = 9;
/* $Procedure MXM ( Matrix times matrix, 3x3 ) */
/* Subroutine */ int mxm_(doublereal *m1, ... |
/*
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Copyright 2020, UT-Battelle, LLC.
*
* LLNL-CODE-741539
* All rights reserved.
*
* This is the license for UnifyFS.
* For details, see https://github.com/LLNL/UnifyFS.
* Please rea... |
/*!
*****************************************************************************
* @file: ADN8810.c
* @brief: ADN8810 handling
* @version: $Revision$
* @date: $Date$
*-----------------------------------------------------------------------------
*
Copyright (c) 2017 Analog Devices, Inc.
All rights reser... |
/*++
Copyright (c) 1992-1999 Microsoft Corporation
Module Name:
VDDSVC.H
Abstract:
Include file contains VDM services provided for installable VDDs.
--*/
/**
* This file contains VDM services prototype defintions only; their
* related structures and macros are defined in NT_VDD.H.
* If we have not i... |
/*
============================================================================
Name : prepare.c
Author : <NAME>
Version :
Copyright :
Description :
============================================================================
*/
// Standard Libraries
#include <stdio.h>
#include <stdlib.h>
#... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define BUFFERSIZE 32
#define INFINITY 4294967295
typedef struct {
unsigned int costo;
//unsigned int da; //nodo precedente che è necessario percorrere
int finish; //vale 1 se ho già analizzato le frecce uscenti del nodo
}pq; //priority queue
struct nodo... |
/*-
* Copyright (c) 2016 <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 co... |
#include "sysv_semaphores.h"
#include <time.h>
static key_t
generate_key(const char *name);
static void *
acquire_semaphore(void *p);
static int
wait_for_new_semaphore_set(key_t key, long permissions);
static void
initialize_new_semaphore_values(int sem_id, long permissions);
static long
diff_timespec_ms(struct ti... |
#pragma once
const int cMaxNumAssocFiles = 20; // alllow for at most this many feature association files
const int cChromSeqReAlloc = 5000000; // realloc chrom sequence size
const UINT32 cMaxAccumCnt= 0x07ffffff; // truncate accumulated counts to be at most this value
const UINT32 cRetainCnt = 0x08000000; ... |
/*
* saml21_xplained_pro.c
*
*
* Copyright (c) 2013-2017 Western Digital Corporation or its affiliates.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the abov... |
/* $XFree86: xc/programs/Xserver/mi/mizerline.c,v 3.9 2005/10/14 15:17:24 tsi Exp $ */
/***********************************************************
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without f... |
#include <omp.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/time.h>
#define DATA_FILE_NAME "nqmq.dat"
#define DATA_LINE_MAX_LEN 80
char **cities;
int **distances;
int **through;
int num_cities = 0;
// By default use one thread of execution
int num_threads = 1;
vo... |
//
// Created by zhangrongxiang on 2018/2/23 17:02
// File sqlite
//
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
typedef struct InputBuffer_t InputBuffer;
enum ExecuteResult_t {
EXECUTE_SUCCESS, EXECUTE_TABLE_FULL
};
typedef enum ExecuteResult_t ExecuteResu... |
/* -*- C -*- */
/*
* Copyright (c) 2013-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... |
/*****************************************************************************
* Copyright (c) 2019 FrontISTR Commons
* This software is released under the MIT License, see LICENSE.txt
*****************************************************************************/
#include "hecmw_repart.h"
/*
extern void write_mesh_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.