text
stringlengths
5.8k
28.2k
/* * Phantom Slayer * * @version 1.0.2 * @author smittytone * @copyright 2021, <NAME> * @licence MIT * */ #include "main.h" /* * Basic Level Data */ const uint8_t level_data[84] = { 1,1,1,0, // 1 1,2,1,0, // 2 1,3,1,0, // 3 1,4,0,0, // 4 1,5,0,0...
/** * \file ps2.c * Generic PS/2 driver, used for the keyboard and maybe more in the future. * * About PS/2 * - It is a point-to-point protocol with only two parties. * - The device (keyboard, mouse etc) is considered the master and is responsible * for driving the clock. * - The host computer is the slave. * - The ma...
/* * 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. * * rjtipF.c * * Code generation for function 'rjtipF' * */ /* Include files */ #include "rjtipF.h...
/* libunwind - a platform-independent unwind library Copyright (C) 2001-2002 Hewlett-Packard Co Contributed by <NAME> <<EMAIL>> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
/* * 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 w...
/* frame_data.c * Routines for packet disassembly * * 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 the GNU General Public License * as published by the Free Software Foundat...
/* * ps.c - show process status * * Copyright (c) 1992 <NAME> * * Snarfed and HEAVILY modified for procps * by <NAME>, <EMAIL>. What is used is what * is required to have a common interface. * * Modified 1994/05/25 <NAME> <<EMAIL>> * Added support for multiple, comma-delimited pids on command line. * * Ch...
/* * $Id: mech.ammodump.c,v 1.1.1.1 2005/01/11 21:18:10 kstevens Exp $ * * Author: <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * Copyright (c) 2000-2002 <NAME> * All rights reserved * * Based on work that was: * Copyright (c) 1997 <NAME> * Copyright (c) 1998-2000 <NAME> */ #include "mech.h" #inclu...
#include "algorithm.h" #include "binary.h" #include <stdint.h> static const uint8_t PC1[56] = { 0x39, 0x31, 0x29, 0x21, 0x19, 0x11, 0x09, 0x01, 0x3A, 0x32, 0x2A, 0x22, 0x1A, 0x12, 0x0A, 0x02, 0x3B, 0x33, 0x2B, 0x23, 0x1B, 0x13, 0x0B, 0x03, 0x3C, 0x34, 0x2C, 0x24, 0x3F, 0x37, 0x2F, 0x27, 0x1F, 0x17, 0x0F, 0x07, 0...
/* * Helper to submit via JSON-RPC and get back response. */ #include <ccan/err/err.h> #include <ccan/opt/opt.h> #include <ccan/read_write_all/read_write_all.h> #include <ccan/str/str.h> #include <ccan/tal/str/str.h> #include <common/configdir.h> #include <common/json.h> #include <common/version.h> #include <stdio.h>...
/* plugins.c -- simple plugin library * * Copyright (C) 2017 SINTEF * * Distributed under terms of the MIT license. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <assert.h> #include <string.h> #include "err.h" #include "fileutils.h" #include "dsl.h" #include "uuid4.h" #include "plugin.h" /** Conv...
/* * kmp_abt_environment.c -- Handle environment variables OS-independently. */ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Lic...
/* * Copyright 2018- The Pixie Authors. * * 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, pub...
/* * folder(s).c -- set/list the current message and/or folder * -- push/pop a folder onto/from the folder stack * -- list the folder stack * * This code is Copyright (c) 2002, 2008, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * comp...
/** ****************************************************************************** * @file JPEG/JPEG_EncodingUsingFs_DMA/Src/main.c * @author MCD Application Team * @brief This sample code shows how to use the HW JPEG to Encode a JPEG file with DMA method. ***********************************************...
/* * Copyright (c) 2010, Texas Instruments Incorporated * 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...
//ahci.h // The last PCI base address register (BAR[5], header offset 0x24) points // to the AHCI base memory, it’s called ABAR (AHCI Base Memory Register). // The other PCI base address registers act same as a traditional IDE controller. //HBA memory registers can be divided into two parts: //Gene...
/* * Copyright (c) 2007 - 2015 <NAME> * Copyright (c) 2018 HAW Hamburg * * 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 rig...
typedef struct { float m11; float m12; float m13; float m14; float m21; float m22; float m23; float m24; float m31; float m32; float m33; float m34; float m41; float m42; float m43; float m44; } MatrixStruct; static inline MatrixStruct MatrixMake(float m11, ...
/* * AMD Cryptographic Coprocessor (CCP) AES CMAC crypto API support * * Copyright (C) 2013 Advanced Micro Devices, Inc. * * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the F...
/** * \file * * \brief XMEGA-A1 Xplained demo application * * Copyright (c) 2010-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions a...
#include <stdlib.h> #include <stdbool.h> #include <math.h> #include <string.h> #include "image_coder.h" #include "coding_methods.h" #include "latools.h" typedef double (*reduce_function)(double,double); static double _max_no_sign( double current, double new_value) { double fnew_value; fnew_value ...
/* Copyright 2015 <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...
/** * @file trilateration.c * @author <NAME> * @date 2014.12.04 * @brief Trilateration algorithm * @ref Efficient solution and performance analysis of 3D position * estimation by trilateration by <NAME> * * MIT License * * Copyright (c) 2022 <NAME> * * Permission is hereby granted, fre...
/******************************************************************************* * arg_date: Implements the date command-line option * * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 <NAME> * <<EMAIL>> * All rights reserved. * * Redistribution and use in source and bina...
/* * 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 wr...
/* Copyright (c) 2012, The Linux Foundation. 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 ...
// Start of cuda.h. #define CUDA_SUCCEED(x) cuda_api_succeed(x, #x, __FILE__, __LINE__) #define NVRTC_SUCCEED(x) nvrtc_api_succeed(x, #x, __FILE__, __LINE__) static inline void cuda_api_succeed(CUresult res, const char *call, const char *file, int line) { if (res != CUDA_SUCCESS) { const char *err_str; ...
/*------------------------------------------------------------------------------ * gw10.c : furuno GW-10 receiver functions * * Copyright (C) 2011-2012 by T.TAKASU, All rights reserved. * * reference : * [1] Furuno, SBAS/GPS receiver type GW-10 III manual, July 2004 * * version : $Revision:$ $Date:...
#include <sha256-generic.h> // // Copyright 2021 <NAME> <<EMAIL>>, Copyright 2013 <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 // wit...
#include "config.h" #include <fcntl.h> #include <string.h> #include <assert.h> #ifdef HAVE_MALLOC_H #include <malloc.h> #endif #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include "ffs.h" #include "cod.h" char *usage = "\ Usage: FFSsort [<option>] <in filename> <out filename>\n\ FFSsort sortsFFS f...
#include "i2c1.h" /** I2C Driver Queue Status Type @Summary Defines the type used for the transaction queue status. @Description This defines type used to keep track of the queue status. */ typedef union { struct { uint8_t full : 1; uint8_t empty : 1; uin...
/* * Copyright (c) 2013 - 2015, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_device_registers.h" #include "fsl_debug_console.h" #include "fsl_lpspi.h" #include "pin_mux.h" #include "board.h" #include "fsl_common.h" #if ...
/* Multi-process/thread control for GDB, the GNU debugger. Copyright 1986, 1987, 1988, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. Contributed by Lynx Real-Time Systems, Inc. Los Gatos, CA. This file is part of GDB. This program is free softw...
/* ADMesh -- process triangulated solid meshes * Copyright (C) 1995, 1996 <NAME> <<EMAIL>> * Copyright (C) 2013, 2014 several contributors, see AUTHORS * * 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...
/* * Program for connecting to an Arduino running the i2c_read_eeprom.ino * * Reads the requested number of bytes from the eeprom and saves * them in a file with the given name * * Execute with --help to see instructions. * * ============================================================================= * * Or...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
# include <stdio.h> # include <stdlib.h> # include <math.h> # include "stis.h" # include "calstis4.h" # include "hstcalerr.h" # define ARCSEC_PER_DEGREE 3600. # define MIN_BARWEIGHT 0.5 /* fraction of expected peak */ # define MAX_BARWEIGHT 1.5 /* fraction of expected peak */ # define CENTROID_CUTOFF 0...
// **************************************************************************** /// \file bus_uart_tcp.c /// /// \brief TCP IP stack entry Module /// /// \details Module for the handling of the freertos tcp ip stack /// /// \author <NAME> /// /// \version 1.0.0.0 /// /// \date 14012021 /// /// \co...
#include <ngx_http.h> #include <ngx_md5.h> #include <gd.h> #define M_PI 3.14159265358979323846 #define MD5_BHASH_LEN 16 #define MD5_HASH_LEN (MD5_BHASH_LEN * 2) typedef struct { ngx_flag_t icase; ngx_int_t level; ngx_str_t charset; ngx_str_t csrf; ngx_str_t font; ngx_str_t name; ngx_str_t ...
/* (c) Copyright 2012-2013 DirectFB integrated media GmbH (c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org) (c) Copyright 2000-2004 Convergence (integrated media) GmbH All rights reserved. Written by <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <...
/**************************************************************************** * @file main.c * @version V1.00 * @brief Transmit and receive data in UART RS485 mode. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved. ********************************...
//**************************************************************************# // # // libvision.c - mruby testing # // Copyright (C) 2016 <NAME>, # // amedeo[dot]...
/* -*- linux-c -*- * * Copyright (c) 2005 by Intel Corp. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This * file and program are licensed under a BSD style license...
/* * Copyright 2018 <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, distribute...
/* Id: order.c,v 1.22 2014/06/01 11:35:02 ragge Exp */ /* $NetBSD: order.c,v 1.1.1.4 2014/07/24 19:17:52 plunky Exp $ */ /* * Copyright (c) 2003 <NAME> (<EMAIL>). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
// these two for strdup #define _GNU_SOURCE #define __USE_GNU #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include "ipfs/importer/importer.h" #include "ipfs/merkledag/merkledag.h" #include "libp2p/os/utils.h" #include "ipfs/cmd/cli.h" #include "ipfs/core/ipfs_node.h" #include "ipfs/...
/**************************************************************************** ** *A Extend_Auts.c ANUPQ source <NAME> ** *Y Copyright 1995-2001, <NAME> fuer Mathematik, RWTH Aachen, Germany *Y Copyright 1995-2001, School of Mathematical Sciences, ANU, Australia ** */ #include...
/****************************************************************************** * * THIS SOURCE CODE IS HEREBY PLACED INTO THE PUBLIC DOMAIN FOR THE GOOD OF ALL * * This is a simple and straightforward implementation of AES-GCM authenticated * encryption. The focus of this work was correctness & accuracy. It is written...
/* * Frommel 2.0 - File Server Console * * (c) 2001 <NAME> * */ #include <ctype.h> #include <dirent.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/stat.h> #include "bindery.h" #include "config.h" #include "conn.h" #include "fs.h" #include "ncp.h...
/* * MIT/X Consortium License * * © 2017 <NAME> <<EMAIL>> * * Based on vis-menu: * Author: <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * * Based on slmenu: * © 2011 <NAME> <<EMAIL>> * * Based on dmenu: * © 2010-2011 <NAME> <<EMAIL>> * © 2006-2011 <NAME> <<EMAIL>> * © 2009 Gott...
/* voigt.c: computes exact Voigt profiles in terms of the complex error function (requires libcerf) */ #include "mex.h" #include <cerf.h> #include <math.h> #define LAMBDAS_ARG prhs[0] #define Z_ARG prhs[1] #define N_ARG prhs[2] #define NUM_LINES_ARG prhs[3] #define PROFILE_ARG plhs[0] /*...
/* * Copyright (c) 2012 the MansOS team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditio...
#include <errno.h> #include <fcntl.h> #include <libelf.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <unistd.h> #include "libelf_check_macros.h" #define GDB_PACKET_SIZE 256 #define TRY_AGAIN do { \ usleep(1000000 / baud_rate * 16); \ tcflush(fd_tty, TCIFLUSH); \ goto ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> // Some fucking legency compilers don't support NAN and INFINITY, // create it ourselves. #ifndef NAN #define NAN (0.0 / 0.0) #endif #ifndef INFINITY #define INFINITY (1.0 / 0.0) #endif #include <ctype.h> #include <errno.h> #include <limit...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" static uint64_t t2 = 328870811670096LLU; int64_t x455 = INT64_MIN; static uint64_t x562 = 6348227965156043LLU;...
#include <kernel/types.h> #include <kernel/string.h> #include <kernel/printf.h> #include <kernel/vfs.h> #include <kernel/version.h> #include <kernel/process.h> #include <kernel/signal.h> #include <kernel/misc.h> #include <kernel/time.h> #include <kernel/ptrace.h> #include <kernel/hashmap.h> #include <kernel/module.h> #...
/** * @file ili9488.c * */ /********************* * INCLUDES *********************/ #include "ili9488.h" #include "disp_spi.h" #include "driver/gpio.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" /********************* * DEFINES *********************/ /********************** * TY...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h> #include<time.h> double Tempo_gasto(clock_t tempo[2]){ //recebe o tempo inicial e o final da execulção // e calcula e retorna o tempo gasto double Tempo_ex; Tempo_ex = (tempo[1] - tempo[0]) * 1000...
/* packet-btle_rf.c * http://www.whiterocker.com/bt/LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR.html * * Copyright 2014, <NAME>, techie at whiterocker dot com * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #i...
/**************************************************************************/ /* */ /* OCaml */ /* */ /* ...
/* This file is part of the HWA project. * Copyright (c) 2021 <NAME>. * All rights reserved. Read LICENSE.TXT for details. */ /** * @file * @brief General-purpose 32-bit counter-timer */ /* The channels rely on their counter's registers, so we can use the cca * interface definitions with ctb counters. */ #...
/* Test bed for Mortin ordering */ #include <stdio.h> #include <stdlib.h> static int squaresize[4]; /* dimensions of sublattice for each MPI rank */ static int nsquares[4]; /* number of hypercubes in each direction */ static int *m2hc; /* hash converting hypercube index to morton index ...
/***************************************************************************** Copyright (c) 2002 Zope Foundation and Contributors. All Rights Reserved. This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTW...
/* Goom Project * Copyright (C) <2003> iOS-Software * * 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 License, or (at your option) any later version. * ...
// Copyright 2017 <NAME> <<EMAIL>>. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <fcntl.h> #include <linux/input.h> #include <linux/uinput.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include ...
/* * 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 <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include "core_allvars.h" #include "core_proto.h" double infall_recipe(int centralgal, int ngal, double Zcurr, int halonr) { int i; double tot_stellarMass, tot_BHMass, tot_coldMass, tot_hotMass, tot_ejected, tot_ICS; d...
/* +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2008 The PHP Group | +---------...
/* * This file is part of the libpayload project. * * Copyright (C) 2013 secunet Security Networks AG * * 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...
#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...
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015-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 copyrig...
/* * This file is part of the µOS++ distribution. * (https://github.com/micro-os-plus) * Copyright (c) 2015 <NAME>. * * µOS++ is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, version 3. * * µO...
/***************************************************************************** * Copyright (c) 2016-2017, Cisco Systems, Inc. * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions ...
/* * Copyright (c) 2008 - 2012, <NAME>, All Rights Reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specifi...
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. Author: <NAME> */ #include <R.h> #include <Rmath.h> #include <R_ext/Lapack.h> #include <R_ext/Applic.h> #include "util.h" void sym_eigen(const doub...
#include "cell.h" static const char HEX[] = "0123456789abcdef"; static const char TBL[] = "" "------------------------------------------------" "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09" "-------" "\x0A\x0B\x0C\x0D\x0E\x0F" "--------------------------" "\x0A\x0B\x0C\x0D\x0E\x0F" "--------...
#include "athenosum/beatmap.h" /** * Parses a raw beatmap line into a beatmap_meta struct pointed to by *meta. * Returns the number of tokens read. */ static int parse_meta_line(char *line, struct osu_beatmap_meta *meta); /** * Parses a key:value set into *meta. */ static void parse_meta_token(char *key, char *v...
#include "..\Inc\Standard.h" #include "..\Inc\Memory.h" #include "..\Inc\Fonts.h" #include "..\Inc\TextWindow.h" int TextWindow_GetDrawPos(lpTextWindow window, ULONG chrPos, ULONG line, ULONG xpos, BOOL check); //int TextWindow_GetDrawPos(lpTextWindow window, ULONG chrPos, ULONG line); int TextWindow_GetNearestFromXp...
/* * 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 <stdio.h> #include <math.h> #include <stddef.h> #include "mex.h" void get_legendre_normal (int n_max, double t, double *all_P); size_t sub2ind (size_t l, size_t m, size_t i, size_t j); /* mexFunction is the gateway routine for the MEX-file. */ void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const m...
/* * app-unlock.c * * the unlock screen that allows people to unlock features in * the badge * */ #include <string.h> #include "orchard-app.h" #include "orchard-ui.h" #include "userconfig.h" #include "ides_gfx.h" #include "badge.h" #include "images.h" #include "led.h" #include "unlocks.h" #include "nrf52i2s_lld....
// // Created by Ruibin on 2020/2/28. // /* * Example code to run and test the process pool. To compile use something like mpicc -o test test.c pool.c */ #include <stdio.h> #include <math.h> #include <mpi.h> #include "../include/pool.h" #include "../include/main.h" #include "../include/squirrel-functions.h" static ...
/** * @file boot.c * * Routines to support the boot process */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "boot.h" #include "constants.h" #include "errors.h" #include "gabe_reg.h" #include "log.h" #include "simpleio.h" #include "syscalls.h" #include "sys_general.h" #include "vicky_general....
/* * 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 <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> #include <time.h> #include <pcap.h> #include <sys/timeb.h> #include <ctype.h> #include "thc-ipv6.h" struct timespec ts, ts2; int dlen = 8, port = 0...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "ureg.h" #include "io.h" #include "../port/error.h" enum { Maxhandler= 32+16, /* max number of interrupt handlers */ }; typedef struct Handler Handler; struct Handler { void (*r)(Ureg*, void*); void *arg; Handle...
// Copyright 2018 <EMAIL> // Licensed under the MIT license (http://opensource.org/licenses/MIT) #pragma once #include <stdint.h> #include "core/util.h" #include "core/debug.h" /********************************************************************* * ring buffer (byte stream ring buffer) ...
/* * ckwtmpx.c * * Copyright 2010 <NAME>, <EMAIL>. * * Checks a Solaris wtmpx file for errors and (optionally) writes out a corrected version. * * ckwtmpx -h * ckwtmpx -v * ckwtmpx [ -d ] [ -e error_file ] [ -o output_file ] [ -e error_file ] [ -t time_travel ] < /var/adm/wtmpx * */ #include <stdi...
/************************************************************************ File name: SM3.c Version: SM3_V1.1 Date: Sep 18,2016 Description: to calculate a hash message from a given message Function List: 1.SM3_256 //calls SM3_init, SM3_process and SM3_done to calculate hash value 2.SM3_init //init the SM3 state...
/* ### # # # # ## ### ## ## # # # # # # # # # # # # # # # #### # # # # # # ### # # # # # # # # # # # # # # # # # # # # # # ## ### ## ## */ #if defined(__APPLE__) || defi...
/* idz_house.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end...
// Monochrome Display Utilities // <NAME>, 2013 #ifdef _WIN32 #define _USE_MATH_DEFINES // For M_PI #endif #ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "azimuth/azimuth.h" #include "azimuth/display.h" int DisplayInit(display_t *disp...
/* sha1sum.c - print SHA-1 Message-Digest Algorithm * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. * Copyright (C) 2004 g10 Code GmbH * * 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...
/* * 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...
#include <stdio.h> #include <stdlib.h> #include<conio.h> #include<stdio.h> #include<string.h> #include<dos.h> /*Structure for storing criteria of marks*/ struct marks_criteria { int sc_min,com_min,arts_min, seat_sc, seat_com, seat_arts; }crit; /*Function-Reads criteria from administrator*/ void read_cri...
/* Copyright 2016 <NAME>. All rights reserved. Use of this * source code is governed by a Apache 2.0 license that can be found * in the LICENSE file. * * --- Sensirion SHT7x/SHT11 sensor reading. * * The sensor is driven with its default 14-bit (temp) and 12-bit * (humidity) readout mode. All temperature values ...
/*********************************************************************** * * * This software is part of the ast package * * Copyright (c) 1982-2010 AT&T Intellectual Property * * and i...
// TODO(#1): get rid of _GNU_SOURCE for more portable code #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <dirent.h> #include <sys/ioctl.h> #include <linux/input.h> #include <errno.h> #include <SDL2/SDL.h> #include "...
/* Copyright 2016 Vanderbilt University 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...