text stringlengths 3.08k 10.5k |
|---|
#pragma ident "$Id: rwfdrec.c,v 1.3 2014/04/14 18:41:42 dechavez Exp $"
/*======================================================================
*
* Read a single wfdisc record. 2.8 format wfdiscs are detected and
* converted to 3.0 format silently and automatically.
*
* Records with incorrect length are silen... |
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <archive.h>
#include <archive_entry.h>
#include <stdnoreturn.h>
#include "common.h"
static int
filetype(const char *type)
{
if (strcmp(t... |
// DISTRIBUTION STATEMENT A. Approved for public release. Distribution
// is unlimited.
//
// This material is based upon work supported by the Department of the Air Force under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the au... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
/**
**********************************************************************
* External memory (SRAM + eeprom)
**********************************************************************
*/
#include <stdint.h>
#include <stdbool.h>
#include "sglib.h"
#include "sgstring.h"
#include "cpu_mcs51.h"
#include "exmem_at89c51.h"... |
/**
* Copyright (c) 2009, Sun Microsystems 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 o... |
/**
* Copyright (c) 2016-2019, ETH Zurich, Computer Engineering Group
* 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 no... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
/**
* \addtogroup rimemesh
* @{
*/
/*
* Copyright (c) 2007, Swedish Institute of Computer Science.
* 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 ... |
/*
* svn-populate-node-origins-index.c : Populate the repository's node
* origins index.
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See th... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <string.h>
#include <argp.h>
#include <sys/syslog.h>
#include "async_socket.h"
#include "fail.h"
static char doc[] =... |
/* gdbmseq.c - Routines to visit all keys. Not in sorted order. */
/* This file is part of GDBM, the GNU data base manager.
Copyright (C) 1990-1991, 1993, 2007, 2011, 2013, 2016-2017 Free
Software Foundation, Inc.
GDBM is free software; you can redistribute it and/or modify
it under the terms of the GNU ... |
/*
MIT License
Copyright (c) 2021 <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,... |
/******************************************************************************
* Copyright (c) 2021 <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 abov... |
/*
* Copyright (c) 2013-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,
* this list of conditions... |
/***********************************************************************/ /**
* @file strutils.c
*
* Generic routines for string manipulation
*
* This file is part of the DataLink Library.
*
* Copyright (c) 2020 <NAME>, IRIS Data Management Center
*
* Licensed under the Apache License, Version 2.0 (the "Licens... |
/*
* Warning - this relies heavily on the TLI implementation in PTX 2.X and will
* probably not work under PTX 4.
*
* Author: <NAME>, Sequent Computer Systems Ltd., UK.
*
* Modified slightly to conform to the new internal interfaces - Wietse
*/
#ifndef lint
static char sccsid[] = "@(#) tli-sequent.c 1... |
#include "journal.h"
#include "entry.h"
#include "zettelkasten.h"
#include "string_helpers.h"
#include <string.h>
#include <menu.h>
#include <stdio.h>
#include <stdlib.h>
enum win_focus {
FOCUS_TITLE,
FOCUS_CONTENT,
FOCUS_TAG,
FOCUS_OK,
FOCUS_CANCEL
};
void home_cursor_in_window( WINDOW * win )... |
/* Kore Shared Data Server
* Copyright (C) 2005 <NAME> <hongli AT navi DOT cx>
*
* 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... |
#include <dirent.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <envz.h>
#include "quotes.h"
static void qset_load_lines(struct qset* q){
struct stat st;
if(fstat(q->fd, &st) == -1){
exit_error(501);
}
q->mem = malloc(st.st_size+1);
q->mem[st... |
/*
* Copyright 2019-2020 GreenWaves Technologies, SAS
*
* 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 applic... |
/*
* Copyright (c) 2000 <NAME>
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "queue.c"
struct Tile {
int16_t owner;
uint16_t distance;
};
#define PLANE_SIZE 2000L
#define PLANE_MEMSIZE (PLANE_SIZE * PLANE_SIZE * sizeof(struct Tile))
struct Tile *plane;
#define OFFSET(x, y) ((x) + ((y) * PLANE_SIZE))
... |
/*
* Copyright (c) 2012-2013 Varnish Software AS
* All rights reserved.
*
* Author: <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 c... |
/*
* [ ctwm ]
*
* Copyright 1992 <NAME>.
*
* Permission to use, copy, modify and distribute this software [ctwm] and
* its documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and thi... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
// SPDX-License-Identifier: MIT
// clN22-worker / main.c
// v0.931-020620 (c)2019-2020 ~EM <EMAIL>
#include "main.h"
int main(int argc, char* argv[]) {
printf(introTxt, VerInfo);
testRun = false;
logToFile = false;
idval = 0;
if (argc == 2 && !strcmp(argv[1], "testrun")) {
strcpy(logFile, "testrun.log");
log... |
/*Copyright 2015, <NAME>
* All rights reserved.
*
* This file is part of lpc1769_template.
*
* 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 n... |
/*
* Phoenix-RTOS
*
* Operating system loader
*
* Load application
*
* Copyright 2020-2021 Phoenix Systems
* Author: <NAME>, <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include "cmd.h"
#include "elf.h"
#include <hal/hal.h>
#include <phfs/phfs.h>
#include <syspage.h>
static void cmd_... |
/**
******************************************************************************
* @file main.c
* @author MCU Software Team
* @Version V1.2.0
* @Date 2021-01-11
* @brief main function
******************************************************************************
*/
/* Includes ---------------... |
/*
* 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 Apache Licens... |
/*
* if with pthread
*/
#include "ystring.h"
#include "log.h"
#include "sysconf.h"
#if defined(__cplusplus) && !defined(DG_WITH_PTHREAD) && !defined(__CYGWIN__)
#else
#include <pthread.h>
#endif
const char *WithMutex = "pthread";
typedef struct {
int xcs_ok;
int xcs_pid;
int xcs_count;
unsigned char xcs_flags;
... |
/**
* Copyright 2020 <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 agree... |
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "lib6lowpan-includes.h"
#include "lib6lowpan.h"
#include "ip.h"
#define TO_CHAR(X) (((X) < 10) ? ('0' + (X)) : ('a' + ((X) - 10)))
#define CHAR_VAL(X) (((X) >= '0' && (X) <= '9') ? ((X) - '0') : \
(((X) >=... |
/* TA-LIB Copyright (c) 1999-2007, <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 co... |
/*
* exception.c
*
* Copyright(c) 2007-2019 <NAME> <<EMAIL>>
* Official site: http://xboot.org
* Mobile phone: +86-18665388956
* QQ: 8192542
*
* 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... |
#pragma once
#define STATEMANAGER_INTRO 0
#define STATEMANAGER_INFO1 1
#define STATEMANAGER_EXIT 2
#define STATEMANAGER_FORMATQ 3
#define STATEMANAGER_INFO2 4
#define STATEMANAGER_EXTRACT 5
#define STATEMANAGER_DECODE 6
#define STATEMANAGER_ASFCLEANUP 7
//#define STATEMANAGER_INFO3 8
#define STATEMANAGER_OG... |
// C Source File
// Created 22/Oct/03; 15:23:52
/*
Nibbles 68k v. 4.1 -- Nibbles Snake Game Clone
Copyright (C) 2000-2002 <NAME>
Based on Stilgar's Nibbles for Fargo
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as publ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
static void* lib_handle = NULL;
static int (*_diskmodel_init)(double M, double a, char* params) = NULL;
static void (*_diskmodel_done)() = NULL;
static char* (*_diskmodel_name)() = NULL;
static void (*_diskmodel_help)() = NULL;
st... |
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include "ringbuf.h"
#include "libbacklight.h"
struct libbacklight_ctrl {
struct libbacklight_conf conf;
struct timespec last_trigger; // Last time trigger received
struct ringbuf *sensor_ring; // Ringbuffer for sensor readings
uint64_t ... |
/* Feature : Input priority to PG mapping
*
* Usage : BCM.0> cint mmu_cos_pri_to_pg.c
*
* config : mmu_cos_pri_to_pg_config.bcm
*
* Log file : mmu_cos_pri_to_pg_log.txt
*
* Test Topology : None
*
* Summary:
* ========
* This cint example demonstrates Input priorities to PG mapping for UC and M... |
#include "dictionary_learning.h"
dictionary_t* dictionary_alloc(dictionary_t* dictionary, unsigned int sample_size, unsigned int k) {
memset(dictionary, 0, sizeof(dictionary_t));
dictionary->data = (double*)malloc(sizeof(double) * (sample_size * k));
dictionary->sample_size = sample_size;
dictionary->k = k;... |
/*-------------------------------------------------------------------------
*
* be-secure-common.c
*
* common implementation-independent SSL support code
*
* While be-secure.c contains the interfaces that the rest of the
* communications code calls, this file contains support routines that are
* used by the lib... |
/* TAGS: min c */
/* LIFT_OPTS: explicit +--explicit_args +--explicit_args_count 8 */
/* LIFT_OPTS: default */
/* TEST: */
/* STDIN: Finputs/calc_input1.txt */
/* TEST: */
/* STDIN: Finputs/calc_input2.txt */
/* TEST: */
/* STDIN: Finputs/calc_input3.txt */
/* TEST: */
/* STDIN: Finputs/calc_input4.txt */
/*
* Copyrig... |
/**
* @file arp/dump.c
* @brief dump function for arp
* @author simpart
*/
/*** include ***/
#include <stdio.h>
#include "pia/com.h"
#include "pia/arp.h"
/*** function ***/
/**
* dump arp header by a line
*
* @param[in] arp_hdr : head pointer to arp header
* @return PIA_NG : dumping failed
* @return PIA_OK :... |
/*
(c) 2009 by <NAME>
(c) 2009-2012 by <NAME>
(c) 2009-2010 by <NAME>
(c) 2010-2011 by <NAME>
(c) 2010-2011 by <NAME>
see LICENSE file
*/
/* macros */
#define LENGTH(x) (sizeof(x)/sizeof(x[0]))
/* enums */
enum { ModeNormal, ModePassThrough, ModeSendKey, ModeInsert, ModeHints... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#define INITSIZE (25U)
#define PAD (50U)
#define CLEAN (0)
#define WEAKENED (1)
#define INFECTED (2)
#define FLAGGED (3)
#define MASK (3)
static bool addrow_below(char **g, unsigned int *r, const unsigned int c)
{
... |
#include "bloomfilter/murmur3.h"
#define ROTL32(x, r) (((x) << (r)) | ((x) >> (32 - (r))))
#define ROTL64(x, r) (((x) << (r)) | ((x) >> (64 - (r))))
#define BIG_CONSTANT(x) (x##LLU)
uint32_t fmix32(uint32_t h) {
return h;
}
//uint64_t getblock64(const uint64_t * p, int i) {
// return p[i];
//}
uint64_t fmix64(u... |
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ShBrowserCtls.rc
//
#include "../CompilerFlags.h"
#define VERSION_MAJOR 1
#define VERSION_MINOR 5
#define VERSION_REVISION1 8
#define VERSION_REVISION2 0
#defin... |
#include <fudge.h>
#include <kernel.h>
#include <kernel/x86/cpu.h>
#include <kernel/x86/gdt.h>
#include <kernel/x86/idt.h>
#include <kernel/x86/tss.h>
#include <kernel/x86/mmu.h>
#include <kernel/x86/arch.h>
#include <modules/system/system.h>
#include <modules/arch/x86/acpi/acpi.h>
#include <modules/arch/x86/cpuid/cpui... |
#include "Trie.h"
void destroyTrieRec(Node ** n) {
if ((*n) != NULL) {
destroyTrieRec(&(*n)->down);
destroyTrieRec(&(*n)->right);
if ((*n)->headPL != NULL) { // if there is posting lists to the current node,
destroyPL(&((*n)->headPL)); // then only it will have to be destroyed
... |
#include "idt.h"
uint64_t countdown = 0;
extern void timer_handler() {
if (countdown > 0) {
countdown--;
}
PIC_sendEOI(0x20);
}
void sleep(uint64_t ms) {
countdown = ms;
while (countdown > 0) {
asm volatile("hlt");
}
}
void num_to_error_name(uint8_t interrupt_number, uint8_t* error_name) {
switch (interru... |
# include <stdio.h>
# include <stdlib.h>
# include <xtables.h>
# include "../../stis.h"
# include "../../stiserr.h"
# include "../calstis6.h"
# include "idtalg.h"
static int FindIndex (double *, int, double);
/*
splice -- Merges echelle orders.
The input data lives in an array of RowContents elements. The ... |
/*
Copyright 2011-2017 <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 in writing, software
di... |
//
// rm_threadpool.c
// rm_threadpool
//
// Created by Kevin on 2017/3/29.
// Copyright © 2017年 Kevin. All rights reserved.
//
#include "rm_threadpool.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
static RMTask PopTask(RMTaskQueue);
static void* thread_template(void *arg);
s... |
// Copyright (c) 2011, <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 conditions and the... |
/**
* @file splash.c
* @author <NAME> - PDRE31
* @date 2017. 11. 01.
*
* @image html splash.png "Kezdőképernyő" width=100%
*
*/
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "input.h"
#include "utils.h"
#include "splash.h"
#include "game.h"
voi... |
/*++
/* NAME
/* trace 3
/* SUMMARY
/* user requested delivery tracing
/* SYNOPSIS
/* #include <trace.h>
/*
/* int trace_append(flags, queue_id, orig_rcpt, recipient, relay,
/* entry, dsn_code, dsn_action, format, ...)
/* int flags;
/* const char *queue_id;
/* const char *orig_rcpt;
/* const char *recipient;
/* const... |
/*
(C) 2012, 2013 Percona LLC and/or its affiliates
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; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITH... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2021 Ricerca Security, Inc. All rights reserved. */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <limits.h>
#include <fcntl.h>
#incl... |
/*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... |
#include <VP_Os/vp_os_malloc.h>
#include <VP_Os/vp_os_assert.h>
#include <VLIB/video_controller.h>
#include <VLIB/video_codec.h>
#include <VLIB/video_picture.h>
#include <VP_Os/vp_os_print.h>
#include <VLIB/Platform/video_config.h>
extern C_RESULT video_utils_set_format( uint32_t width, uint32_t height );
C_RESULT v... |
/*
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_str_t name;
ngx_http_complex_value_t value;
} ngx_http_set_header_entry_t;
/* location configuration */
typedef struct {
ngx_array_t *entries;
} ... |
#include "imm/codon_marg.h"
#include "error.h"
#include "imm/abc.h"
#include "imm/codon_lprob.h"
#include "imm/generics.h"
#include "imm/nuclt.h"
#include "io.h"
#include <assert.h>
static_assert(IMM_NUCLT_SIZE == 4, "nuclt size expected to be four");
struct codon_iter
{
struct imm_nuclt const *nuclt;
unsigne... |
/*
* main.c
* AB2StarTAC
*
* Created by <NAME> on Sun Aug 24 2003.
* Copyright (c) 2003 <NAME>. All rights reserved.
*
*/
#include <CoreFoundation/CoreFoundation.h>
#include <AddressBook/ABAddressBookC.h>
#include <stdio.h>
#include <time.h>
#define RELEASE(x) if (x != NULL) CFRelease(x); x = NULL;
int ma... |
/*********************************
LEADIY-M3测试程序示例V2.2
作者: Colin
版权所有: 深圳市软芯微电子科技有限公司
芯片型号: stm32f103CB
*************************************/
#include "string.h"
// #include "stm32f10x.h"
// #include "sys.h"
// #include "usart.h"
// #include "delay.h"
// #include "drv_Uart.h"
#include <stdio.h>
typedef short int16... |
#include "rtc.h"
#include "../assembly_linkage.h"
#define STATUS_PORT 0x64
#define DATA_PORT 0x60
#define SLAVE_IRQ 2
#define INIT_FREQ 2
#define MASTER_8259_DATA 0x21
volatile int int_flag = 0;
volatile int ticks;
int32_t frequency = INIT_FREQ; //used for virt... |
/* ULP Example
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
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include ... |
/*
* Copyright (C) 2015-2020 ETH Zurich and University of Bologna
*
* 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 requi... |
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2019-2021, <NAME> <<EMAIL>>
*/
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "parse.h"
#include "utils.h"
static const struct option opts[] = {
{"show", ... |
// SPDX-License-Identifier: GPL-2.0
/*
* This code is used on x86_64 to create page table identity mappings on
* demand by building up a new set of page tables (or appending to the
* existing ones), and then switching over to them when ready.
*
* Copyright (C) 2015-2016 <NAME>
* Copyright (C) 2016 <NAME>
... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or its l... |
#include <stdint.h>
#include "gles2N64.h"
#include "Debug.h"
#include "F3D.h"
#include "F3DDKR.h"
#include "N64.h"
#include "RSP.h"
#include "RDP.h"
#include "gSP.h"
#include "gDP.h"
#include "GBI.h"
#include "OpenGL.h"
void F3DDKR_DMA_Mtx( uint32_t w0, uint32_t w1 )
{
uint32_t multiply = 0;
uint32_t index ... |
/*s: core/arm/fns.h */
/*s: fns.h includes(arm) */
#include "../port/portfns_core.h"
#include "../port/portfns_concurrency.h"
#include "../port/portfns_memory.h"
#include "../port/portfns_processes.h"
#include "../port/portfns_files.h"
#include "../port/portfns_time.h"
#include "../port/portfns_interrupts.h"
#include ... |
/*
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in ... |
/*
* Copyright (C) 2015 Red Hat, 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, including
* without limitation the rights to use, co... |
#include <string.h>
#include "dump.h"
#include "cmp.h"
msgpack_data make_msgpack_data(buffer buffer)
{
msgpack_data data;
data.buffer = buffer;
data.position = 0;
return data;
}
bool msgpack_data_reached_eof(msgpack_data *data)
{
return data->position == data->buffer.length;
}
void msgpack_data_r... |
#define _POSIX_C_SOURCE 200809L
#include <mrsh/builtin.h>
#include <mrsh/getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "builtin.h"
static const char umask_usage[] = "usage: umask [-S] [mode]\n";
enum umask_symbolic_state {
UMASK_WHO,
UMASK_PERM,
};
static mo... |
/*
* Copyright (C) 2021 <NAME>
*
* This file is subject to the terms and conditions of the MIT License.
* See the file LICENSE in the top level directory for more details.
*/
/**
* @{
*
* @file
* @brief Display messages received from MQTT channel to TFT display.
*
* @author <NAME> <<EMAIL>>
*
*... |
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#define VK_NO_PROTOTYPES
#include <vulkan/vulkan.h>
#include "allocator.h"
typedef struct VmaAllocator_T *VmaAllocator;
typedef struct VmaAllocation_T *VmaAllocation;
typedef struct VmaPool_T *VmaPool;
typedef struct VmaAllocationCreateInfo ... |
//
// Created by tefx on 9/8/15.
//
#define _POSIX_SOURCE
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <gc/gc.h>
#include <stdio.h>
#include <time.h>
#include "schedule.h"
static task_record *TR;
time_t timer = 0;
void set_signals() {
signal(SIGCHLD, sighandler_SIGCHLD);
signal(S... |
#include <arch/arch.h>
#include <parlib.h>
#include <rassert.h>
#include <stdlib.h>
#include <vcore.h>
#include <ros/mman.h>
#include <ros/resource.h>
#include <stdio.h>
#include <timing.h>
#include <uthread.h>
#define TEST_MMAP 1
#define TEST_ONE_CORE 2
#define TEST_ASK_FOR_TOO_MANY_CORES 3
#define TEST_INC... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <ctype.h>
#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
typedef uint8_t uint8, byte;
typedef uint16_t uint16, word;
typedef uint32_t uint32;
#define WD(hi, lo) ((word)((hi)<<8 | (lo)))
#define W(w) (... |
/*-
* Copyright (c) 2007 <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... |
/*
** Copyright 2014-2016 The Earlham Institute
**
** 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... |
/*
* Copyright (c) 2008,2009 by <NAME>
* Copyright (c) 2010,2016 by Solar Designer
* See LICENSE
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "passwdqc.h"
static void clean(char *dst, size_t size)
{
if (!dst)
return;
_passwdqc_memzero(dst, size);
free(dst);
}
static char *read_lin... |
// twi_master.c
// <NAME>
// 11.07.2011
// twi_master code
// (https://github.com/rltraylor/twi_master)
//
// <NAME> 08.2016
// Patched to now also have repeated starts
#include "twi_master.h"
#include <avr/io.h>
#include <util/twi.h>
#include <util/delay.h>
#include <avr/interrupt.h>
/* These macros calculate the I... |
/*
tls_kt_RServerKeyExchance.c
Copyright:
Copyright 2002-2007, SafeNet Inc. All rights reserved.
All rights reserved.
*/
#include "sshtlskextrans.h"
#include "sshmp.h"
static void
tls_kt_ske_verify_done(SshCryptoStatus status,
void *context)
{
SshTlsProtocolState s = context;... |
/*
* file_log.c
*
* Created on: Jul 8, 2015
* Author: zhoulp
*/
#include <string.h>
#include <stdarg.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdio.h>
#include "file_log.h"
FILE *__log_out_file = NULL;
int __log_out_priority = 0... |
/* code by <NAME> 2009 */
#include "m_pd.h"
#include <math.h>
#include <stdlib.h>
#ifdef NT
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
#endif
/* ----------------------------- tinkerbell----------------------------- */
static t_class *tinkerbell_class;
typedef struct _tinkerbell
{
t_obj... |
/**
* core.c
* <NAME>
* May 26, 2020
*/
#include "core.h"
#include "gps.h"
#include "thp.h"
#ifndef TRUE
#define TRUE UINT8_C(1)
#endif
#ifndef FALSE
#define FALSE UINT8_C(0)
#endif
#define CORE_LOOP_DELAY 250
#define CORE_TRANSMIT_INTERVAL 10000
#define CORE_RADIO_TX_PACKET_LENGTH 24
thp_data_type core_thp_da... |
typedef struct Cursor Cursor;
typedef struct Cursorinfo Cursorinfo;
struct Cursorinfo {
Cursor;
Lock;
};
/* devmouse.c */
extern void mousetrack(int, int, int, uint32_t);
extern void absmousetrack(int, int, int, uint32_t);
extern Point mousexy(void);
extern void mouseaccelerate(int);
extern int m3mouseputc(Queue*, ... |
/* This project is based on the MIPS Assembler of CS61C in UC Berkeley.
The framework of this project is been modified to be suitable for RISC-V
in CS110 course in ShanghaiTech University by <NAME> in March 2019.
Updated by <NAME> and <NAME> in March 2021.
*/
#include <stdio.h>
#include <string.h>
#include <s... |
/*++
/* NAME
/* resolve_local 3
/* SUMMARY
/* determine if domain resolves to local mail system
/* SYNOPSIS
/* #include <resolve_local.h>
/*
/* void resolve_local_init()
/*
/* int resolve_local(domain)
/* const char *domain;
/* DESCRIPTION
/* resolve_local() determines if the named domain resolves to the
/* local mail ... |
/* *************************************************/
/* Terminal vty screenshot application: */
/* - Only real vty terminal (no xterm, st, ..) */
/* - No colors or anything, just plain screen text */
/* */
/* By: prenex ... |
#include "server.h"
#include <stdlib.h>
#include <stdio.h>
#include <locale.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <libgen.h>
#include <stdbool.h>
#include <ctype.h>
#include <getopt.h>
#include <dirent.h>
#include <signal.h>
#include "tchatche.h"
#include "req... |
#include <stdio.h>
#include <stdlib.h>
#include "meh.h"
struct rgb_t{
unsigned char r, g, b;
};
struct bmp_t{
struct image img;
FILE *f;
unsigned long bitmapoffset;
int compression;
int bpp;
int ncolors;
struct rgb_t *colours;
unsigned int rowwidth;
};
static unsigned short getshort(FILE *f){
unsigned sh... |
/*
* Copyright (c) 1988, The Regents of the University of California.
* <NAME>, Workstation Software Support Group, Workstation Support Serices,
* Information Systems and Technology.
*
* Permission is granted to any individual or institution to use, copy,
* or redistribute this software so long as it is not sold ... |
/*!
*****************************************************************************
@file: AD5940Main.c
@author: <NAME>
@brief: Used to control specific application and further process data.
-----------------------------------------------------------------------------
Copyright (c) 2017-2019 Analog Devices, I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.