text
stringlengths
5.8k
28.2k
// SPDX-License-Identifier: BSD-2-Clause /** * @copyright 2018 NXP * * @file caam_mp.c * * @brief CAAM Manufacturing Protection. */ /* Standard includes */ #include <string.h> /* Global includes */ #include <mm/core_memprot.h> #include <tee/cache.h> /* Library i.MX includes */ #include <libimxcrypt.h> #in...
#define _XOPEN_SOURCE #include "zmq.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <stdbool.h> #include <math.h> #include <unistd.h> #include <ctype.h> // Standard length of strings #define STRLEN 16 // Standard length of lines #define LINELEN 128 // Time format in RBN data fi...
/* wm - X11 Window Manager */ /* Based on tinywm-xcb. */ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <xcb/xcb.h> #include <xcb/xproto.h> /* Begin configuration. */ #define WM_TERMINAL_COMMAND "xterm" #define WM_LOCK_COMMAND "slock" /* Use Ctrl + Alt as the hot key. */ #define WM_MOD_MASK (XCB...
/* Copyright (C) 2013-2016, The Regents of The University of Michigan. All rights reserved. This software was developed in the APRIL Robotics Lab under the direction of <NAME>, <EMAIL>. This software may be available under alternative licensing terms; contact the address above. Redistribution and use in source and bina...
//monteCarloEngine.c //<NAME> //May 10, 2012 //Function for running Monte Carlo on the GPU using OpenCL #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <math.h> #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include "CL/cl.h" #endif #include "mt19937.c" #include "monteCar...
/******************************************************************************* * * * mcf_NTuBldFiles.c -- Utilities to manipulate file within ntuBuild stuff * * * * <NAME>, September 1995. * * * **************************************************************...
/* Om Shanti. Om Sai Ram. November 12+1, 2014. 7:30 p.m. Madison, WI. Om Shanti. Om Sai Ram. November 12+1, 2014. 5:40 p.m. Madison, WI. Om Shanti. Om Sai Ram. November 12+1, 2014. 4:35 p.m. Madison, WI. Om Shanti. Om Sai Ram. November 12+1, 2014. ~1:14 p.m. Madison, WI. Om Shanti. Om Sai Ram. November 12+1...
/** * Copyright 1993 Network Computing Devices, Inc. * * Permission to use, copy, modify, distribute, and sell this software 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 this permiss...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> struct MatrixGraph { int EdgeNum; int VertexNum; int **Matrix; }; struct Quack { int Length; struct QuackNode *Head; struct QuackNode *Tail; }; struct QuackNode { int Data;...
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2011 The University of Tennessee and The University * of Tennessee Resea...
/* * 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 ...
/*********************************************************************** * This software is part of the atrshmlog package * * Copyright (c) 2016 ATRSoft GmbH * * and is licensed under the * * Apache...
/* s3_cd.c: IBM 1442 card reader/punch Copyright (c) 2001-2012, <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 ...
/******************************************************************************/ /******************************************************************************/ #include "sys_types.h" #include "sys_define.h" #include "sys_cfg.h" #include "stdlib.h" #include "stdio.h" #include "string.h" #include "lib_util.h" #inclu...
/* * Copyright (c) 2007-2014 <NAME> <<EMAIL>> * * 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, merg...
#include <stdlib.h> #include <math.h> #include <cab202_graphics.h> #include <cab202_sprites.h> #include <cab202_timers.h> #define DELAY 10 /* milliseconds */ #define PADDLE_LENGTH 6 // Structs struct Rail{ int x; int y; bool on_screen; }; // Game states typedef struct GameStates{ int level; int s...
/* * tpr optimization for qemu/kvm * * Copyright (C) 2007-2008 Qumranet Technologies * * Licensed under the terms of the GNU GPL version 2 or higher. */ #include "config.h" #include "config-host.h" #include <string.h> #include "hw/hw.h" #include "hw/isa.h" #include "sysemu.h" #include "kvm.h" #include "cpu.h" ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.opensolar...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "config.h" #include "coord_move_tables.h" #include "cubie_cube.h" #include "facelets.h" #include "pruning.h" #include "solve.h" #include "stats.h" #include "utils.h" solve_list_t *new_solve_list_node() { solve_list_t *node = (solve_list_t *)mallo...
/* SPDX-License-Identifier: MIT * * Copyright (c) 2016 <NAME>, University of Cambridge * * 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 limitatio...
#include "ps_3d.h" #include "ps_array.h" #include <logger.h> #include <ds_imap.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define MAX_PARTICLE_SZ 10000 #define MAX_EMITTER_SZ 2000 #define PI 3.1415926f //#define EMITTER_LOG static struct p3d_particle* PARTICLE_ARRAY = NULL; ...
/* Copyright 2010-2013 SourceGear, LLC 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...
/* Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC. LLNL-CODE-425250. All rights reserved. This file is part of Silo. For details, see silo.llnl.gov. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * R...
#include <sys/socket.h> #include <sys/types.h> #include <ctype.h> #include <errno.h> #include <netdb.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <tls.h> #include "youtube.h" #include "xml.h" #undef strlcat size_t strlcat(char *, const char *, size_t...
/* (C) Copyright 2001, 2002, 2003, 2004, 2005 <NAME> * (C) Copyright 2006, 2007, 2008, 2009, 2010 <NAME> * (C) Copyright 2011, 2012, 2013 <NAME> * * This file is part of MCL. You can redistribute and/or modify MCL under the * terms of the GNU General Public License; either version 3 of the License or * (a...
/** @file dh.c * @brief This file contains function for Diffie-Hellman Key * * Copyright (C) 2003-2008, Marvell International Ltd. * All Rights Reserved */ #include "includes.h" #include "common.h" #include "dh.h" #include "tx_api.h" /******************************************************** Local...
/**************************************************************************** File : hex.c Description : Code for dealing with Intel hex files. History : 2009-02-19 <NAME> * Initial implementation 2009-12-26 <NAME>, <NAME> (www.FundF.net) * Ported mmap f...
/** * Parts of this software are based on chacha20-simple: * http://chacha20.insanecoding.org/ * * Copyright (C) 2014 insane coder * * 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 thi...
/* $NetBSD: process_machdep.c,v 1.15 2004/03/17 20:22:11 scw Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. * All rights reserved. * * Written by <NAME> for Wasabi Systems, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co...
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME>ung (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following condition...
/* * OpenBSD divert(4) packet mangler. Supports (pseudo)random drops, * delay (and if so possibly also duplication), and data payload * corruption. See README for compiling and usage notes and * diversion.8 for additional documentation. */ #include "diversion.h" #define FATED_TO(x) ((arc4random() / (double) UINT...
/* Implementation helper: a struct that looks like a tuple. See timemodule and posixmodule for example uses. The structseq helper is considered an internal CPython implementation detail. Docs for modules using structseqs should call them "named tuples" (be sure to include a space between the two words ...
/* * Copyright (c) 2000-2006 Silicon Graphics, Inc. * 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 as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be ...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the...
/* * Minimal SSL client, used for memory measurements. * (meant to be used with config-suite-b.h or config-ccm-psk-tls1_2.h) * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * * SPDX-License-Identifier: Apache-2.0 * * This file is part of mbed TLS (https://tls.mbed.org) */ #include <zephyr.h...
/** * The MIT License (MIT) * * Copyright (c) 2016 Smartex.io Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
/**************************************************************************** * @file main.c * @version V3.00 * @brief Transmit and receive data in UART RS485 mode. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. ***********...
/********************************************************************* Small benchmark for testing basic capabilities of Blosc. You can select different degrees of 'randomness' in input buffer, as well as external datafiles (uncomment the lines after "For data coming from a file" comment). For usage instruc...
//----------------------------------------------------------------------------- // runoff.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (Build 5.1.001) // 09/15/14 (Build 5.1.007) // 03/19/15 (Build 5.1.008) // 08/01/16 (Build 5.1.011) // ...
#include "../private_api.h" #ifdef FLECS_SYSTEM #include "../addons/system/system.h" #endif #ifdef FLECS_PIPELINE #include "../addons/pipeline/pipeline.h" #endif #ifdef FLECS_STATS #include <stdio.h> static int32_t t_next( int32_t t) { return (t + 1) % ECS_STAT_WINDOW; } static int32_t t_prev( int32_...
#define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <getopt.h> #include <stdint.h> #include <sys/un.h> #include <sys/socket.h> #include <ctype.h> #include <unistd.h> #include <json.h> #include "stringop.h" #include "ipc-client.h" #include "log.h" voi...
/***********************license start*************** * Author: <NAME> * * Contact: <EMAIL> * This file is part of the OCTEON SDK * * Copyright (c) 2003-2008 <NAME> * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, Version 2, as * publ...
/** \file test_policy_generic.c * \brief Test utility for MAM with generic policy * * \copyright Copyright 2013-2015 <NAME>, <NAME>, and <NAME>. * All rights reserved. This project is released under the New BSD License. * * This test utility opens a connection with the given parameters using the muacc socket ...
/* * Wapiti - A linear-chain CRF tool * * Copyright (c) 2009-2013 CNRS * 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 co...
/* aprscmdtcp v1.0 by <EMAIL> 2015.12.19 aprscmdtcp [ -d ] local_ip local_port remote_ip remote_port 功能: 从 14590 tcp端口接收数据 使用TCP转发给asia.aprs2.net 使用UDP转发给以下端口 127.0.0.1 14582 127.0.0.1 14583 192.168.127.12 14580 (aprs.helloce.net) ...
/* $Xorg: sptobdf.c,v 1.4 2001/02/09 02:04:00 xorgcvs Exp $ */ /* * Copyright 1990, 1991 Network Computing Devices; * Portions Copyright 1987 by Digital Equipment Corporation * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fe...
#include "./common.h" time_t get_now_microseconds() { time_t result; time_t now_seconds; #ifdef _WIN32 now_seconds = time(NULL); result = now_seconds * 1000000 + GetTickCount64(); #else struct timeval tv; gettimeofday(&tv, NULL); result = 1000000 * tv.tv_sec + tv.tv_usec; #endif ret...
#include <stdio.h> #include <stdbool.h> #include <stdint.h> #include <assert.h> #include <math.h> #include <ft2build.h> #include <freetype/ftlcdfil.h> #include <freetype/ftoutln.h> #include FT_FREETYPE_H #include "renderer.h" #include "renwindow.h" #define MAX_GLYPHSET 256 #define MAX_LOADABLE_GLYPHSETS 1024 #define ...
/* * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file. * * 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 lis...
/** * (C) Copyright 2017-2019 Intel Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
/*********************************************************************** Interfacing to a classic piece of geodetic software ************************************************************************ gen_pol is a highly efficient, classic implementation of a generic 2D Horner's Scheme polynomial evaluation...
/* * HEVC Supplementary Enhancement Information messages * * Copyright (C) 2012 - 2013 <NAME> * Copyright (C) 2012 - 2013 <NAME> * Copyright (C) 2013 <NAME> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
#pragma region preprocessing #define LINUX_BUILD #ifdef LINUX_BUILD #include<SDL2/SDL.h> #include<SDL2/SDL_image.h> #include<SDL2/SDL_mixer.h> #define asset_path "assets/" #endif #ifdef WINDOWS_BUILD #include<SDL2/SDL.h> #include<SDL2/SDL_image.h> #include<SDL2/SDL_mixer.h> #define asset...
#include <assert.h> #include <stdbool.h> #include <pit.h> #include <console.h> #include <gdt.h> #include <pmm.h> #include <process.h> #include <string.h> #include <task.h> #include <vmm.h> /* kstack helpers */ void task_kstack_alloc(task_t *task) { assert(task != NULL); uintptr_t kstack = find_vspace(kernel_direct...
#include <pic32mx.h> #include <stdint.h> #define DISPLAY_VDD PORTFbits.RF6 #define DISPLAY_VBATT PORTFbits.RF5 #define DISPLAY_COMMAND_DATA PORTFbits.RF4 #define DISPLAY_RESET PORTGbits.RG9 #define DISPLAY_VDD_PORT PORTF #define DISPLAY_VDD_MASK 0x40 #define DISPLAY_VBATT_PORT PORTF #define DISPLAY_VBATT_MASK 0x20 #...
/******************************************************************************* ################################################################################ # Copyright (c) [2017-2019] [Radisys] # # ...
/* P I X M O R P H . C * BRL-CAD * * Copyright (c) 1996-2019 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 a...
/* * * Copyright (c) 2020 Project CHIP Authors * 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...
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b...
/* * omap-usb2.c - USB PHY, talking to musb controller in OMAP. * * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com * 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; ei...
/* ykaes.c --- Implementation of AES-128. * * Copyright (c) 2006-2012 Yubico AB * 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 a...
/*************************************************************************** Hitachi FD1089A/FD1089B encryption emulation Decryption tables provided by <NAME> Decryption algorithm by <NAME> LCG algorithm by <NAME> The FD1089 is a 68000 with built-in encryption. It contains some battery-backed RAM, when the ...
/** * IPC.c - System Starter IPC routines * <NAME> | <EMAIL> * <NAME> | <EMAIL> * $Apple$ ** * Copyright (c) 1999-2002 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights * Reserved. This file contains Original Code and...
/* * CMUCS AFStools * dumpscan - routines for scanning and manipulating AFS volume dumps * * Copyright (c) 1998 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "lib/SMSlib.h" #include "lib/PSGlib.h" #include "actor.h" #include "data.h" #define PLAYER_SPEED (2) #define PLAYER_SHOT_SPEED (4) #define PLAYER_TOP (16) #define PLAYER_LEFT (8) #define PLAYER_RIGHT (256 - 16) #define PLAYER_BOTTOM (SCREEN_H - 24) #d...
/* vim: tabstop=4 shiftwidth=4 noexpandtab * This file is part of ToaruOS and is released under the terms * of the NCSA / University of Illinois License - see LICENSE.md * Copyright (C) 2013-2015 <NAME> */ /* * glogin * * Graphical Login screen */ #include <stdlib.h> #include <assert.h> #include <unistd.h> #inc...
/* joinMixer - implement multiple joins by sql joins and/or hashJoins, depending on which * should work best for each joined table. */ /* Copyright (C) 2015 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "joinMixer.h" #include "hdb.h" st...
/* getfnm_1.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__2 = 2; static integer c__1 = 1; static integer c__6 = 6; /* $Procedure GETFNM_1 ( Get a filename fro...
/* SPDX-License-Identifier: GPL-2.0 */ #define _GNU_SOURCE #include <errno.h> #include <fcntl.h> #include <linux/types.h> #include <pthread.h> #include <sched.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <syscall.h> #include <sys/epoll.h> #include <sys/mman.h> #include <sy...
/* * Wireless Tools * * Je<NAME> - HPL 99->01 * * Main code for "iwevent". This listent for wireless events on rtnetlink. * You need to link this code against "iwcommon.c" and "-lm". * * Part of this code is from <NAME>, part is from <NAME>, * I've just put the pieces together... * By the way, if you know a ...
/********************************************************************** * Author: <NAME> * * Contact: <EMAIL> * This file is part of the OCTEON SDK * * Copyright (c) 2003-2007 <NAME> * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, Ve...
#ifdef HAVE_CONFIG_H # include "config.h" #endif #include <limits.h> /* for INT_MAX, per C89 */ #include <qthread/qthread.h> #include <qthread/qlfqueue.h> #include <qthread/qdqueue.h> #include "qt_alloc.h" #include "qt_asserts.h" #ifdef HAVE_SYS_LGRP_USER_H # include <sys/lgrp_user.h> #endif #ifdef Q...
#include "bcftools.pysam.h" /* The MIT License Copyright (c) 2018 Genome Research Ltd. Author: <NAME> <<EMAIL>> 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 restric...
// ------------------------------------------------------------------------ // // _ _ // // ___ _ __ ___ ___ (_|_)_ ___ _ _ __ // // / _ \ '_ ` _ \ / _ \| | \ \ / / | | | '__| ...
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <net/if.h> #include <linux/if_tun.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/se...
#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...
// 0x07005110 - 0x07005200 static const Vtx castle_courtyard_seg7_vertex_07005110[] = { {{{ -921, 20, -3526}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -716, 20, -3526}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -716, 20, -3731}, 0, { 0, 990}, {0xff, 0xff, 0xff...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <unistd.h> #include <assert.h> #include <string.h> #include <stdbool.h> #include <GL/glew.h> #include <GLUT/glut.h> #include "shader.h" #include "occlusion.h" #include "util.h" #include "world.h" // Globals bool paused = false; int ticks = 0; int *h...
/******************************************************************************/ /* */ /* src/kernel/Memmng/MemmngHeap.c */ /* 2021/05/05...
/* * The software for the x0xb0x is available for use in accordance with the * following open source license (MIT License). For more information about * OS licensing, please visit -> http://www.opensource.org/ * * For more information about the x0xb0x project, please visit * -> http://www.ladyada.net/make/x0xb0...
// Copyright(c) 2017, Intel Corporation // // 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 * @brief * * @date 05.03.13 * @author <NAME> */ #include <drivers/tty.h> #include <drivers/tty/termios_ops.h> #include <ctype.h> #include <errno.h> #include <limits.h> #include <stdint.h> #include <string.h> #include <fcntl.h> #include <fs/idesc_event.h> #include <kernel/thread/thread_sched_wait.h...
/* $OpenBSD: wdc.c,v 1.4 2011/03/13 00:13:52 deraadt Exp $ */ /* $NetBSD: wdc.c,v 1.7 2005/12/11 12:17:06 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and ...
/* * drv-mps803.c - MPS803 printer driver. * * Written by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
/******************************************************************************/ /* */ /* Copyright (c) 1990-2016, KAIST */ /* All rights reserved. ...
// ------------------------------------------------------------------------ // Crypt16.c // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved // // ------------------------------------------------------------------------ #include "crypt16.h" static int check_parity(); int des_check_key=0; ...
/*! \file daq.c * \brief Data acquisition source code * * \details This file implements the init_daq() and get_daq() functions for the UAV. * \ingroup daq_fcns * * \author University of Minnesota * \author Aerospace Engineering and Mechanics * \copyright Copyright 2011 Regents of the University of Minnesota. Al...
/******** layout_hyper_sl32.c *********/ /* MIMD version 7 */ /* ROUTINES WHICH DETERMINE THE DISTRIBUTION OF SITES ON NODES */ /* Version for 32 sublattices, for extended actions */ /* Sites are distributed in the same way as the hypercubic layout but on each node the site order is based on 32 colors instead of ju...
/** @file eloop.c * @brief Class for */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ #include <stdlib.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #inclu...
/* * Copyright 2013-2017 Guardtime, Inc. * * This file is part of the Guardtime client SDK. * * 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/LICENS...
#include <stdio.h> #include <stdint.h> #include <string.h> #include "hardware.h" #include "diskstore.h" #include "applegcr.h" #include "pll.h" // GCR for Apple II // // Apple DOS 3 (29 Jun '78) / 3.1 (20 Jul '78) / 3.2 (16 Feb '79) / 3.2.1 (31 Jul '79) // Single side, soft sectored // 35 tracks, numbered 0 to 34,...
// anafilt.c #include <stdlib.h> #include <string.h> #include <math.h> #include "sigpro.h" #define dcopy(x,y,n) memcpy(x,y,(n)*sizeof(double)) #define dzero(x,n) memset(x,0,(n)*sizeof(double)) /***********************************************************/ // bilinear_pole - transform analog pole ...
/** * \file * * \brief TWIS driver for SAM. * * This file defines a useful set of functions for the TWIS on SAM4L devices. * * Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microc...
/* * Copyright (C) 2018-2019 Eagle Eye Networks * * SPDX-License-Identifier: Apache-2.0 */ #define _GNU_SOURCE #include "pnp_cmd.h" #include "pnp_connection.h" #include "pnp_io.h" #include "pnp_thread_helper.h" #include <unistd.h> #include <sys/types.h> #include <netdb.h> #include <arpa/inet.h> #include <string...
/* Taken from Maxim example: * http://www.maximintegrated.com/app-notes/index.mvp/id/126 */ #include "ds18s20.h" uint64_t read_temp(int* error){ static uint64_t count; static uint64_t scratchpad; static uint64_t temp; static int i; if(!OWReadByte()){ // Still converting temperature. ...
/* Generate a symbol table encapsulated in a .o file. Supports reading global symbols from elfs (.o, .elf), ranlibs (.a) and text files (.l) The text files should have one symbol per line, terminated with \n (not \r\n) NOTES; Doesn't support big-endian systems (sorry powerMac users) Requires a system elf.h and...
#include <X11/Xlib.h> #include "drawing.h" #include "errors.h" #include "window.h" #include "display.h" #include "util.h" #include "gc.h" /* * Flip all screen children and cause them to draw their content to the screen. */ void flipScreen() { Window* children = GET_CHILDREN(SCREEN_WINDOW); int i; for (i = 0; i < ...
/* rkdebug.c */ // MIT License // // Copyright (c) 2017 softwaredev // // 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 u...
/*****************************************************************************/ /* */ /* Automated Timed Asynchronous Circuit Synthesis (ATACS) */ /* */ ...
/* Copyright (C) <2010-2011> <NAME> <<EMAIL>> 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, dis...