text stringlengths 3.12k 18.7k |
|---|
/*
* xtotroff
*
* convert X font metrics into troff font metrics
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/Xlib.h>
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <limits.h>
#define __GETOPT_PREFIX groff_
#includ... |
#include "graphics.h"
#include "piuinput_twitch.h"
#include "KeyHandlerTwitch.h"
#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <sys/time.h>
#include <unistd.h>
Display *d;
Window w;
XEvent e;
int s;
GC gc;
Colormap screen_colormap;
XColor red, brown, bl... |
/*
* (C) Copyright 2016, Texas Instruments Incorporated - http://www.ti.com/
*-------------------------------------------------------------------------
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
... |
#include "test_mpi.h"
#include <assert.h>
xccl_team_h xccl_world_team;
static xccl_lib_h lib;
xccl_context_h team_ctx;
typedef struct xccl_test_oob_allgather_req {
xccl_ep_range_t range;
void *sbuf;
void *rbuf;
void *oob_coll_ctx;
int my_rank;
size_t msglen;
int iter;
MPI_Request r... |
#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... |
// util.c
// includes
#ifdef _WIN32
#include <windows.h>
#include <direct.h>
#else
#include <unistd.h>
#endif
#include <ctype.h>
#include <errno.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#ifndef _MSC_VER
#include <sys/time.h>
#endif
#inclu... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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... |
/*
* MD5 implementation based on RFC1321.
*
* Copyright (c) 2008 <NAME>, Skype Technologies OÜ
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies... |
/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <kernel_structs.h>
#include <toolchain.h>
#include <sys/__assert.h>
#include <sys/sys_io.h>
#include <xtensa/config/core-isa.h>
#include <logging/log.h>
LOG_MODU... |
/*
* Copyright 2016 <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 ... |
/*
* ARM Instrumentation Trace Macrocell emulation.
*
* Copyright (c) 2015 <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 option... |
/*
* 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.
*/
/* tnroesy.c - rotating frame NOE experiment with T-Roesy modification
... |
/* ISC license. */
#include <string.h>
#include <stdlib.h>
#include <skalibs/types.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/sgetopt.h>
#include <skalibs/buffer.h>
#include <skalibs/strerr2.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/env.h>
#include <skalibs/djbunix.h... |
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the term... |
/**************************** Module Header ********************************\
* Module Name: mnkey.c
*
* Copyright (c) 1985 - 1999, Microsoft Corporation
*
* Menu Keyboard Handling Routines
*
* History:
* 10-10-90 JimA Cleanup.
* 03-18-91 IanJa Window revalidation added
\***************************... |
/*
* Copyright (C) 2006-2019 SplinterGU (Fenix/BennuGD)
*
* This file is part of Bennu Game Development
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
#include "9cc.h"
// Compile AST to intermediate code that has infinite number of registers.
// Base pointer is always assigned to r0.
IRInfo irinfo[] = {
[IR_ADD] = {"ADD", IR_TY_REG_REG},
[IR_CALL] = {"CALL", IR_TY_CALL},
[IR_DIV] = {"DIV", IR_TY_REG_REG},
[IR_IMM] = {"MOV", IR_TY_REG_IMM},
... |
/* $OpenBSD: mod_userdir.c,v 1.12 2004/12/02 19:42:48 henning Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and bi... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "main.h"
#include "helpers.h"
#include "shared.h"
#include "cmd_parser.h"
#define ARG_PARSE_SUCCESS 0
#define ARG_PARSE_ERROR_INVALID_CMD 126
#define ARG_QUEUE_SIZE 16
#define SWITCH_PRO_CONTROLLER_BUTTON_COUNT 19
uint16_t gpio_pin_queue... |
#include "naiveConsole.h"
#include <stdbool.h>
#include <stdint.h>
#include <lib.h>
#include <loader.h>
#include <pid.h>
#include <scheduler.h>
#define LOOPBACK 0x1FE
#define ONE ((uint64_t)1)
//Bit field to map 1GB of RAM
static uint64_t physReservedPages[(ONE<<27) / PAGE_SIZE / 64];
static size_t firstFreePage;
sta... |
/*code1 is executed as
gcc -o code1 code1.c
./code1 > result.txt
variables stored in variables.txt*/
#include<stdio.h> //library for input output
#include<stdlib.h> //library for memory allocation, process control, conversions etc
#include<stdbool.h> //library for boolean functions
#include<string.h> //library ... |
#include <stdio.h>
#define SIN_2PI_16 0.38268343236508978
#define SIN_4PI_16 0.707106781186547460
#define SIN_6PI_16 0.923879532511286740
#define C_P_S_2PI_16 1.30656296487637660
#define C_M_S_2PI_16 0.54119610014619690
#define C_P_S_6PI_16 1.3065629648763766
#define C_M_S_6PI_16 -0.54119610014619690
/* INPUT: float i... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "AGR_BWE_main_FLP.h"
#include "AGR_BWE_tables_qmf.h"
#include "AGR_BWE_tables_highband_coeff.h"
#include "AGR_BWE_bits.h"
SKP_int32 AGR_Bwe_encode_frame_FLP(
AGR_Sate_HB_encoder_control_FLP *hbEncCtrl,
AGR_Sate_encoder_hb_state_F... |
/******************************************************************************
* Copyright (c) 2018 Texas Instruments Incorporated - http://www.ti.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... |
/*-
* Copyright (c) 1988 <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... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <signal.h>
#include <stdbool.h>
#include <errno.h>
#include <sys/wait.h>
/**
E1: Boat <--(SIGUSR1)--- Embark ~ suspend
E1': Boat <--(pipe)--- Embark ~ send the pid of the embark
E2: Embark ---(pipe+SIGUSR1)--> Entrepot
E3: Embark <... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define defVal 0
#define MAX 100
#define inf 1000000
FILE *fptr;
FILE *fp;
typedef struct EDGE
{
int y,f,c;
struct EDGE* next;
} EDGE;
typedef struct VERTEX
{
int x,n;
EDGE *p;
}VERTEX;
typedef struct GRAPH
{
int V, E;
VERTEX** H;
}GRAPH;
//... |
/* RC2014 classic
*
* - 8K of ROM in range 0x0000-0x2000
* - 32K of RAM in range 0x8000-0xffff
* - ACIA in ports 0x80 (ctl) and 0x81 (data)
*
* ACIA is hooked to stdin/stdout. CTRL+D exits when in TTY mode.
*/
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include <termios.h>
#define MAX_ROMSIZE 0x... |
#include <bme280.h>
struct compensation_t {
uint16_t t1;
int16_t t2;
int16_t t3;
uint16_t p1;
int16_t p2;
int16_t p3;
int16_t p4;
int16_t p5;
int16_t p6;
int16_t p7;
int16_t p8;
int16_t p9;
uint8_t h1;
int16_t h2;
uint8_t h3;
int16_t h4;
int16_t h5;
... |
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <limits.h>
#include <ctype.h>
typedef unsigned char uint8_t;
typedef short int16_t;
#define ARRAY(T) struct {\
int16_t size;\
int16_t capacity;\
T *data;\
} *
#define ARRAY_CREATE(array, init_capacity, init_size) {\
... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* massF3.c
*
* Code generation for function 'massF3'
*
*/
/* Include files */
#include <string.h>
#include "... |
/*
* Copyright (C) 1997 Massachusetts Institute of Technology
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this software,
* you agree that you have read, understood, and will comply with the
* following terms and conditions:
*
*... |
/* \file i2c master interrupt
Re-implementation of TI's I2C Master interrupt because we need to handle Arbitration lost
*/
/*
* Copyright (c) 2015-2017, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
/*
* Copyright (C) 2003 Sistina Software
*
* This file is released under the GPL.
*/
#include "dm-io.h"
#include <linux/bio.h>
#include <linux/mempool.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
static struct bio_set *_bios;
/* FIXME: can we shrink this ? */
struct io {
unsign... |
/*-
* Copyright 2013-2018 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPL... |
#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... |
/* Copyright (c) 2010, 2011 <NAME> <<EMAIL>>
* See the file COPYRIGHT for details.
*/
#include "cbasics.h"
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
#include <stddef.h>
#include "hashmap.h"
#include "objects.h"
#include... |
/**
* @file main.c
* @date 2021-10-01
* @author <NAME> 2201732
* @author <NAME> 2201785
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
... |
/* gtk+ version of minig (X11) subroutines
version 0.0 <NAME> July 2003 */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <gdk/gdkprivate.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include <X11/Xlib.h>
#include "minig.h"
extern GdkPixmap *pixmap;
extern GdkWindow... |
#include <string.h>
#include <stdio.h>
#include "ockam/error.h"
#include "ockam/error.h"
#include "key_agreement/key_impl.h"
#include "ockam/key_agreement.h"
#include "ockam/syslog.h"
#include "ockam/vault.h"
#include "vault/default/default.h"
#include "xx_local.h"
extern ockam_memory_t* gp_ockam_key_memory;
ockam_k... |
/* Copyright 2017-2018, <NAME>
* All rights reserved.
*
* This file is part of sAPI Library.
*
* 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 ... |
/**
* @file chklist.c ICE Checklist
*
* Copyright (C) 2010 Creytiv.com
*/
#include <re.h>
#include <string.h>
#include "ice.h"
#define DEBUG_MODULE "chklist"
#define DEBUG_LEVEL 5
#include <re_dbg.h>
/**
* Forming Candidate Pairs
*/
static int candpairs_form(struct icem *icem)
{
struct le *le;
int err = 0;... |
#define UNPAGED 1 /* for proper kmain() prototype */
#include "kernel/kernel.h"
#include <assert.h>
#include <stdlib.h>
#include <minix/minlib.h>
#include <minix/const.h>
#include <minix/type.h>
#include <minix/board.h>
#include <minix/com.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/reboot.h>
#incl... |
#include "disk.h"
#define DISK_BUFFER_SIZE SECTOR_SIZE
u8 disk_status;
u8 disk_buffer[DISK_BUFFER_SIZE];
void disk_server() {
MESSAGE message;
disk_init();
memset(&disk_buffer, 0, 1024);
while (1) {
sys_sendrec(RECEIVE, ANY, &message, PID_DISK_SERVER);
// 对收到的信息进行判断,排除中断信息(否则会出现试图向中断发... |
#include "cache.h"
#include "commit.h"
#include "tree-walk.h"
#include "attr.h"
#include "archive.h"
#include "parse-options.h"
#include "unpack-trees.h"
static char const * const archive_usage[] = {
"git archive [options] <tree-ish> [<path>...]",
"git archive --list",
"git archive --remote <repo> [--exec <cmd>] [o... |
//#include <types.h>
//#include <stat.h>
//#include <user.h>
//#include <param.h>
#include <stdlib.h>
#include <stdio.h>
/*
We allocate the array mem[] to our memory allocator when morecore is called.
morecore normally asks the OS for memory using sbrk, malloc, etc.
By allocating mem[], I can instrument the code to p... |
/* quirc -- QR-code recognition library
* Copyright (C) 2010-2012 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFT... |
/* Copyright (c) (2016,2017,2019) Apple Inc. All rights reserved.
*
* corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
* is contained in the License.txt file distributed with corecrypto) and only to
* people who accept that license. IMPORTANT: Any license rights granted to you by
... |
#include <tiny2313.h>
#include <delay.h>
#include <ds18b20.h>
// Данные
#define DS PORTD.1
// Защелка
#define ST_CP PORTA.0
// Тактовый импульс
#define SH_CP PORTD.2
// Сброс значений регистра
#define MR PORTD.3
// Модуль числа
#define ABS(x) ((x) < 0 ? -(x) : (x))
// Температура была запрошена.
unsigned char TE... |
/*
* Intrinsyc Cerfboard 250
*/
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "io.h"
#include "draw.h"
#include <memdraw.h>
#include "../port/netif.h"
#include "etherif.h"
#include "../port/flashif.h"
enum {
/* Cerf250 GPIO assignment... |
/* gpgv.c - The GnuPG signature verify utility
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2006,
* 2009, 2012 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... |
/* EGA Emulator
*
* Released under version 2 of the Gnu Public License.
* By <NAME>
*/
#include "screen_buffer.h"
#include "ega.h"
#include "lfbgeometry.h"
#include "font_sun12x22.h"
#define abs(x) ( (x>=0) ? x : -x)
#define bswap32(x) ( ((( x >> 24) & 0xff) << 0) | \
((( x >> 16) & 0xff) << 8) | \
... |
/***************************************************************/
/* SHARP-95 */
/* Advanced Interactive Sounding Analysis Program */
/* */
/* DOS Video Graphics Routines (Part #2) ... |
/*
Set up parameters for each ensemble component by parsing Algo name and storing component specs as int in par_array.
*/
void component_to_int(int *par_array, int par_count)
{
char algo_name[16];
strcpy(algo_name, Algo); //copy string because strtok would modify Algo identifier
string par_code = "DFTLH"; //... |
#include <windowsx.h>
#include <stdlib.h>
#include "box.h"
#include "button.h"
#include "titledrag.h"
#include "text.h"
#include "constants.h"
#include "button2.h"
#include "combobox.h"
#include "ctrl.h"
#include "edit2.h"
#include "i18n.h"
#include "stdbutton.h"
#include "titlebar.h"
#include "ut... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* intersections.c :+: :+: :+: ... |
#include <avr/io.h>
#include "i2cmaster.h"
#include "rtc_3231.h"
#include <util/atomic.h>
//////////////////////////////////////////////////////////////////////////
// set RTC device address here
#define DS3231_ADDR 0x68
//////////////////////////////////////////////////////////////////////////
#define RTC_... |
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#include "pubnub_sync.h"
#include "core/pubnub_advanced_history.c"
#include "core/pubnub_helper.h"
#include "core/pubnub_timers.h"
#include <stdio.h>
#include <time.h>
/* If you don't like these channel names you can change them,
but they have to rema... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include</usr/include/stdint.h>
#include<stdbool.h>
#include "db.h"
int listSize;
uint32_t maxValue;
double seq;
int output = 0;
uint32_t* list;
struct cgmResult{
int read[3]; // 16 bases in each int
uint32_t* matches; // pointer to list o... |
void glVertex2s(glshort v1, glshort v2);
void glVertex2sv(glshort * v);
void glVertex2i(glint v1, glint v2);
void glVertex2iv(glint * v);
void glVertex2f(glfloat v1, glfloat v2);
void glVertex2fv(glfloat * v);
void glVertex2d(gldouble v1, gldouble v2);
void glVertex2dv(gldouble * v);
void glVertex3s(glsh... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <string.h>
#include <endian.h>
#include <ctype.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/if_arp.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#define ETHERNE... |
#include "esp_log.h"
#include "driver/gpio.h"
#include "driver/ledc.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "hap.h"
static const char *TAG = "homekitLed";
/*H-S-I*/
extern int led_on;
extern uint16_t led_hue; //0~360
extern uint16_t led_saturation; //0~100
extern uint16_t led_... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> (tinyusb.org)
*
* 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
... |
/*
This is a template file for a single class plug-in. Plug-ins can contain
multiple classes.
The provided loadCount variable is not necessary, but demonstrates reference
counting by a plug-in.
The associated function comments are exported from javascriptcoregtk-4.0.
You should not expect this class to work '... |
/*
* PseudoNode
* Copyright (c) 2015 the copyright holders
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include "util.h"
#include "error_stuff.h"
// WWise funky RIFX
void handle_RIFX(uint32_t RIFX_size, FILE * infile, const char * outfile_prefix, int file_idx);
uint8_t *make_xma_header(uint32_t srate, uint32_t size, int channels);
const... |
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include "bitset.h"
#include "buzhash.h"
#include "hash.h"
#include "stringset.h"
#include "tld.h"
#include "urlblock.h"
#include "util.h"
void
url_init (struct url *url)
{
memset (url, 0, sizeof ... |
/*
* Copyright 2008 Search Solution Corporation
* Copyright 2016 CUBRID 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-... |
/* unweighted matching in a bipartite graph.
* author: <NAME>, Jan 16, 1999.
* <EMAIL>
*
* The bipartite graph G is split into two sets, U and V,
* of user-defined maximum size MAXU and MAXV.
* the input graph is in bipgraph[MAXU][MAXV].
* there is an edge between node u \in U and node v \in V
* iff bipgraph[u]... |
/*****************************************************************************
* A source file for the library "psrgeom", which includes structs and
* functions for treating pulsar geometry.
*
* Author: <NAME>
* Date : 2017
*
* Description:
* This source file implements the struct for geometric points define... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/lib/crypto/rsa_3072/rsa_3072_verify.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/silicon_creator/lib/error.h"
#in... |
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <drivers/vbe.h>
#include <lib/memmap.h>
#include <lib/libc.h>
#include <lib/blib.h>
#include <lib/real.h>
#include <lib/print.h>
#define VGA_FONT_WIDTH 8
#define VGA_FONT_HEIGHT 16
#define VGA_FONT_GLYPHS 256
#define VGA_FONT_MAX (VGA_FONT_HEIGH... |
/*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* Ethernet-type device handling.
*
* Version: @(#)eth.c 1.0.7 05/25/93
*
* Authors: <NAME>
* <NAME>, <<EMA... |
/*
* Copyright (C) 2018 Centricular Ltd.
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lic... |
/*
Copyright (c) 1991 - 1993 <NAME>. All rights reserved.
Distributed by Free Software Foundation, Inc.
This file is part of HP2xx.
HP2xx is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
to anyone for the consequences of using it or f... |
/***************************************************************************
* Nipper - The network infrastructure parser *
* Copyright (C) 2006 - 2008 by <NAME> *
* <EMAIL> *
* ... |
/*
!==========================================================================
pure function gsw_geo_strf_dyn_height (sa, ct, p, p_ref)
!==========================================================================
!
! Calculates dynamic height anomaly as the integral of specific volume
! anomaly from the pressure p of ... |
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 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.1 of the GNU Lesser General Public License
as publish... |
/*
*+
* Name:
* dat1Annul
* Purpose:
* Annul locator without freeing struct memory
* Language:
* Starlink ANSI C
* Type of Module:
* Library routine
* Invocation:
* dat1Annul( HDSLoc *locator, int * status );
* Arguments:
* locator = HDSLoc * (Given)
* Locator to free. File res... |
//
// SENAC BCC PI 2
// Projeto Betelgeuse
#include <stdio.h>
#include <stdlib.h>
#include "engine.h"
#include "colors.h"
#include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_image.h>
#include <allegro5/... |
#include "arch/amd64/hw/ps2.h"
#include "arch/amd64/hw/irq.h"
#include "arch/amd64/hw/io.h"
#include "sys/char/input.h"
#include "sys/char/line.h"
#include "sys/char/tty.h"
#include "sys/char/chr.h"
#include "sys/panic.h"
#include "sys/ctype.h"
#include "sys/debug.h"
#include "sys/dev.h"
// Keyboard stuff
#define PS2_... |
//
// Created by Ghost on 2019/9/11.
//
#include "drbg_hash.h"
static bool hash_df(DRBG_HASH_CONF *conf,
const uint8_t *input1, uint32_t input1_length,
const uint8_t *input2, uint32_t input2_length,
const uint8_t *input3, uint32_t input3_length,
uint8_t *output, uin... |
/* Copyright (c) 2020 UT Longhorn Racing Solar */
/** main.c
* Program for UTSVT BeVolt's Battery Protection System
*/
#include "common.h"
#include "config.h"
#include "LTC6811.h"
#include "Voltage.h"
#include "Current.h"
#include "Temperature.h"
#include "EEPROM.h"
#include "Charge.h"
#include "CLI.h"
#include "BS... |
/*
* buttons.c
*
* Created on: Aug 12, 2012, modified 9/8/2017
* Author: <NAME>
*
* ECE 3849 Lab button handling
*/
/* XDCtools Header files */
#include <xdc/std.h>
#include <xdc/runtime/System.h>
#include <xdc/cfg/global.h>
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_memmap.h... |
#include <stdlib.h>
#include <threads.h>
#include "intinc/stdlib.h"
#define HEADER_MAGIC (0b011001)
typedef struct aheader {
uintptr_t prev_chunk;
union {
struct {
uintptr_t magic : 6;
uintptr_t free : 1;
uintptr_t chunk : 1;
} flags;
uintptr_t _;
} flags;
size_t size;
uintptr_t next_chunk;
} ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <sys/stat.h>
#include "primitives.h"
#include "3... |
// Copyright 2017 Vidrio Technologies
// by <NAME> <<EMAIL>>
//
// 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
#pragma warn... |
/*
*
* $Id: urn.c,v 1.55.2.3 2000/02/09 23:30:04 wessels Exp $
*
* DEBUG: section 52 URN Parsing
* AUTHOR: <NAME>
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from the... |
#include "chromosome.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#ifndef NDEBUG
#include <stdio.h>
#endif
#define CHROM2BALD(CHROM_PTR) \
((struct bald_chrom *)CHROM_PTR)
static void perm_rand_swap(size_t *perm,
size_t perm_sz);
static size_t *perm_ox(const size_t... |
/*
* where-are-you.c/1.0
*
* Copyright 2004 by <NAME>. All rights reserved.
*
*
* Description
* -----------
*
* where-are-you port
*
* A client that broadcasts a "where are you" UDP message on the local
* subnet to the given port. If a server responds, writes to standard
* output the server's IP address.
... |
/***************************************************************************
* Copyright (C) 2007-2010 by <NAME> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the t... |
/*
* 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... |
/*
A library that allows a user to memory map the frame-buffer and render some basic shapes/strings
I made sure to comment my code throughout to ease in understanding.
By <NAME>
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sys/ioctl.h>
#inclu... |
/*****************************************************************************\
** **
** FILE: database.c **
** AUTHORS: Alexios **
**... |
/*
* 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... |
/* This file contains the table with device <-> driver mappings. It also
* contains some routines to dynamically add and/ or remove device drivers
* or change mappings.
*/
#include "fs.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#include <minix/callnr.h>
#in... |
/*****************************************************************************************
Copyright (c) 2002-2004 The UbixOS 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... |
/*! \file bcmecmp_limit_imm.c
*
* BCMECMP ECMP_LIMIT_CONTROLt IMM handler.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <sal/sal_libc.h>
#includ... |
#include "video-client.h"
#include <assert.h>
#include <string.h>
#include "main-app-sl.h"
VideoClient* video_client_make() {
VideoClient* this = g_malloc0(sizeof(VideoClient));
return this;
}
void video_client_add_options(VideoClient* this, GOptionGroup* group) {
GOptionEntry entries[] = {
{ "input", '... |
/*
*******************************************************************************
* Copyright (c) 2019-2021, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.