text
stringlengths
3.12k
18.7k
/* polyn.c * polyr.c * Arithmetic operations on polynomials * * In the following descriptions a, b, c are polynomials of degree * na, nb, nc respectively. The degree of a polynomial cannot * exceed a run-time ...
/* $NetBSD: interp.c,v 1.6 2014/03/25 18:35:32 christos Exp $ */ /*- * Copyright (c) 1998 <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 ...
/* fat12.c: FAT12 interface * * 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 appli...
/*----------------------------------------------------------------------------*/ /* Hobbit RRD handler module. */ /* */ /* This module handles any message with data in the form ...
/** * \brief Multi-precision integer library, ESP-IDF hardware accelerated parts * * based on mbedTLS implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * Additions Copyright (C) 2016-2020, Espressif Systems (Shanghai) PTE Ltd * SPDX-License-Identifier: Apache-2.0 * * Licensed u...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
/**************************************************************************** * Ralink Tech Inc. * Taiwan, R.O.C. * * (c) Copyright 2010, Ralink Technology, Inc. * * All rights reserved. Ralink's source code is an unpublished work and the * use of a copyright notice does not imply otherwise. This source code * ...
/*************************************************************************** * Humanistic Robotics VSC Interface Library * * Version 1.1 * * Copyright 2013, Humanistic Robotics, Inc * ***********...
#include <string.h> #include "display_driver.h" #include "display_registers.h" /*----------------------------lcd pin macros----------------------------------*/ #define DB10_PIN LCD_DB10_PIN #define DB10_PORT LCD_DB10_PORT #define DB11_PIN LCD_DB11_PIN #define DB11_PORT LCD_DB11_PORT #define DB12_PIN LCD_DB12_P...
/*====================================================================* - Copyright (C) 2001 Leptonica. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of so...
#ifdef _WIN32 #include <windows.h> #include <winternl.h> #endif #ifdef linux #include <limits.h> #include <fcntl.h> #endif #include <stdio.h> #include <stdint.h> #include <sys/mman.h> #include <sys/stat.h> #include "os.h" #include "logger.h" #define DEBUG 1 #define __logger_emit(X) logger_emit("memory.log", X) ext...
/* objs */ #include "objs.h" #include <stdio.h> #include <string.h> #include <stdlib.h> const int PLAYER_NUM_LOC = -128; const int LIMBO = -129; Obj objs[NumObjs]; void init_objs() { int i = 0; for(; i < NumObjs; ++i) { objs[ i ].id = NULL; objs[ i ].num_loc = 0; ...
/* * Copyright 2006,2009-2010 Freescale Semiconductor, Inc. * <NAME> * <NAME> (<EMAIL>) * * See file CREDITS for list of people who contributed to this * project. * * 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 t...
#include <stdio.h> #include "network.h" #include "detection_layer.h" #include "cost_layer.h" #include "utils.h" #include "parser.h" #include "box.h" void train_compare(char *cfgfile, char *weightfile) { srand(time(0)); float avg_loss = -1; char *base = basecfg(cfgfile); char *backup_directory = "/home...
/* * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2000-2003 Internet Software Consortium. * * 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 this permissio...
/* * Copyright (c) 2014, 2018 by Farsight Security, Inc. * * 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, m...
/** * @file * @brief * * @author <NAME> * @date 07.02.2021 */ #include <stdint.h> #include <string.h> #include <hal/reg.h> #include <drivers/serial/diag_serial.h> #include <drivers/serial/uart_dev.h> #include <drivers/gpio/gpio.h> #include "stm32_usart_conf_f0.h" extern const uint32_t HSE_VALUE; #define ...
/* test.c: command line program for running test routines Copyright (C) 2007, 2008, <NAME> This file is part of the zn_poly library (version 0.9). 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 ...
/***************************************************************************** * * 8000dasm.c * Portable Z8000(2) emulator * Z8000 disassembler; requires the z8000_exec table to be initialized * * Copyright (c) 1998 <NAME>, all rights reserved. * Bug fixes and MSB_FIRST compliance Ernesto Corvi. * * - Th...
/* -*- c -*- *******************************************************/ /* * Copyright (C) 2003 Sandia Corporation * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the U.S. Government. * Redistribution and use in source and binary forms, with ...
/* * The Shadow Simulator * See LICENSE for licensing information */ #include <stdarg.h> #include "shadow.h" /* this stores thread-specific data for each "worker" thread (the threads that * are running the virtual nodes) */ typedef struct _LoggerThreadData LoggerThreadData; struct _LoggerThreadData { /* keep ...
/* I2C 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) 2016, NXP Semiconductors * 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. Redistributio...
/* * SPDX-FileCopyrightText: 2020 Efabless 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 appl...
#include "asf_import.h" #include "dateUtil.h" #include "decoder.h" #include "lzFetch.h" #include "get_stf_names.h" #include "frame_calc.h" /* Prototypes */ void createSubset(char *inN, float lowerLat, float upperLat, long *imgStart, long *imgEnd, char *imgTimeStr, int *nVec, float *...
/*************************************************************************/ /* */ /* Copyright 2010 Rulequest Research Pty Ltd. */ /* */ /* This file is part of C5.0 GPL Edition, a single-threaded version */ /* of C5.0 release 2.07. */ /* */ /* C5.0 GPL Edition is free software...
/* * video.c - run splash screen on lcd * * Copyright (c) 2007-2008 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #include <stdarg.h> #include <common.h> #include <config.h> #include <malloc.h> #include <asm/blackfin.h> #include <asm/mach-common/bits/dma.h> #include <i2c.h> #include <linux/types....
/* Hi, everybody! * ===================================================================================== * * Filename: MMmultiple.c * * Description: Do Matrix Multiplication C = A x B with A and B blocks generated by * mkmatrices.c. * * Version: 1.0 * Created: 09/21/2016 22:53:...
#include "mj_player_tsumogiri.h" #include "mj_utility.h" #include <stdlib.h> #include <assert.h> /* メモリアラインメント */ #define MJPLAYER_TSUMOGIRI_ALIGNMENT 16 /* ツモ切りくん構造体 */ struct MJPlayerTsumogiri { MJWind wind; /* 家 */ struct MJHand hand; /* 手牌 */ int32_t rel_score; /* 相対スコア */ int32...
/******************************************************************************* * - FILE: pipeline_mmseqs.c * - DESC: MMORE-SEQS core pipeline. * Post-MMSEQS phase, it takes in the results of that pipeline. *******************************************************************************/ /* imports...
/* cursesio.c: User interface functions for the ncurses library. * * Copyright (C) 2000 by <NAME>, under the GNU General Public * License. No warranty. See COPYING for details. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> #include <ncurses.h> #include <unistd....
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech Description: Target board general functions implementation License: Revised B...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * * Copyright (C) 1997 University of Chicago. * See COPYRIGHT notice in top-level directory. */ #include "ad_piofs.h" #include "adio_extern.h" void ADIOI_PIOFS_WriteContig(ADIO_File fd, void *buf, int count, MPI_Dataty...
// Byteswap: A program for swapping endian order of a flat binary file #include <asf.h> #include <cla.h> #include <asf_endian.h> #include <asf_contact.h> // Includes for the stat() function #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> // Define strings for usage and help info #define ASF_NAME_ST...
/* * 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...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2014 Google, Inc * (C) Copyright 2008 * <NAME>, <EMAIL>. * * Some portions from coreboot src/mainboard/google/link/romstage.c * and src/cpu/intel/model_206ax/bootblock.c * Copyright (C) 2007-2010 coresystems GmbH * Copyright (C) 2011 Google Inc. */ #inclu...
/* ============== PROJETO 2 DE ESTRTURUAS DE DADOS 2 ============== <NAME> 11800910 <NAME> 11876933 Explicacao projeto: https://ae4.tidia-ae.usp.br/access/content/attachment/61c65473-dfd7-45e0-9c5b-f83baa36b63d/Atividades/31604d0b-fae8-42b8-b950-2f625d6f8035/projeto_2.pdf */ #include <stdio.h> #include <stdlib.h> ...
/* * Author: <NAME> <<EMAIL>> * * Copyright (c) 2008-2013 Plausible Labs Cooperative, 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 * restrict...
/* R T R E G I S . C * BRL-CAD * * Copyright (c) 1991-2016 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 as...
// Copyright 2011 The Native Client SDK Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can // be found in the LICENSE file. // This file provides wrappers to open(2), read(2), etc. that read bytes from // an mmap()'ed buffer. There are three steps required: // 1. U...
/****************************************************************************** * Name : hwsabrend.c * Title : * Author : <NAME> * Created : 24/06/1995 ported from version started OCT 94 * * Copyright : 1995-2022 Imagination Technologies (c) * License : MIT * * Description : an implementation in software of ...
#include "utility.h" void gen_rand_no_entropy(void *output, size_t output_len) { FILE *f; size_t rnd_sz, left; if (!(f=fopen("/dev/urandom", "r"))) return; rnd_sz=0; left=output_len; while ((rnd_sz+=fread(output+rnd_sz, 1, left, f))<output_len) left-=rnd_sz; fclose(f); return; ...
/** ****************************************************************************** * @file TIM/TIM_OCInactive/main.c * @author MCD Application Team * @version V1.1.0 * @date 18-January-2013 * @brief Main program body ************************************************************************...
/* fmthe.c: DYLAN-LIKE OBJECT FORMAT WITH HEADERS * * $Id: //info.ravenbrook.com/project/mps/version/1.113/code/fmthe.c#1 $ * Copyright (c) 2001 Ravenbrook Limited. See end of file for license. * Portions copyright (c) 2002 Global Graphics Software. * * Uses <code/fmtdy.c> for the actual Dylan format, and just a...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-08-11 Rick the first version */ #include <rtthread.h> #include <rtdevice.h> #include <stm32l4xx.h> #include "low.h" #include "12864.h" #include "...
/* $OpenBSD: emit2.c,v 1.6 2010/07/24 22:17:03 guenther Exp $ */ /* $NetBSD: emit2.c,v 1.2 1995/07/03 21:24:44 cgd Exp $ */ /* * Copyright (c) 1994, 1995 <NAME> * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
#pragma once #include <glad/glad.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <SDL2/SDL_mixer.h> #include <glm/glm.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <freetype2/ft2build.h> #include FT_FREETYPE_H #include "game_ma...
/* ../netlib/sgeqrt2.f -- translated by f2c (version 20160102). 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 e...
#include <sys/cdefs.h> __FBSDID("$FreeBSD: head/sys/dev/usb/controller/atmegadci_atmelarm.c 276717 2015-01-05 20:22:18Z hselasky $"); /*- * Copyright (c) 2009 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
/*************************************************************************//** * @file main.c * @version V1.00 * @brief Show a Slave how to receive data from Master. * This sample code needs to work with USCI_I2C_Slave. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static complex c_b1 = {0.f,0.f}; static complex c_b2 = {1.f,0.f}; /* Subroutine */ int cstt22_(integer *n, integer *m, integer *kband, real *ad, real *ae, real *sd, real *se, complex *u, integer *ldu, complex * work, integer *ldwork, real *rwo...
#define pr_fmt(fmt) "simplefs: " fmt #include <linux/buffer_head.h> #include <linux/fs.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/mpage.h> #include "bitmap.h" #include "simplefs.h" /* * Map the buffer_head passed in argument with the iblock-th block of the file * represented by inode. I...
/* rsagen.c - C source code for RSA public-key key generation routines. First version 17 Mar 87 (c) Copyright 1987 by <NAME>. All rights reserved. The author assumes no liability for damages resulting from the use of this software, even if the damage results from defects in this softw...
/* * ISC License * * Copyright (C) 1990-2018 by * <NAME> * <NAME> * <NAME> * Delft University of Technology * * 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 appea...
#include "inc/odt.h" int gettemps( float [maxd][maxd],float [maxd][maxd],float [maxd][maxd],int,int,struct odtdata * ); float calceyetemp( float ); float calccloudtemp( int * ); void readcirc( int,int,int,int,float [maxd][maxd],float [maxd][maxd],float [maxd][maxd] ); void distance( float,float,float,float,int,float...
/******************************************************************************* * * brcm_patchram_plus_usb.c * Copyright (C) 2009-2011 Broadcom 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...
#ifndef WIN32 /* Unix */ #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <fcntl.h> #include <limits.h> #include <stdio.h> #include <unistd.h> #include <stdarg.h> #include <string.h> #else /* Win32 */ #include <sys/types.h> #include <sys/stat.h> #include ...
/***********************************************************************************************//** * \file uart_posix.c * \brief UART implementation for POSIX environment *************************************************************************************************** * <b> (C) Copyright 2016 Silicon Labs, h...
/* prefix_string.c --- implement strings based on a prefix tree * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional i...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright 2003-2005 <NAME> * All rights reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted providing that the following conditions * are met: * 1. Redistributions of source code must retain the a...
/** * Generates a graph from a .mat file containing a correlation matrix. The * matrix file is assumed to be symmetric. * * Author: <NAME> <<EMAIL>> */ #include <math.h> #include <argp.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include "io/mat.h" #include "io/ngdb_graph.h" ...
/* * Copyright (C) 2019 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <types.h> #include <rtl.h> #include <errno.h> #include <asm/per_cpu.h> #include <asm/irq.h> #include <boot.h> #include <asm/pgtable.h> #include <asm/zeropage.h> #include <asm/seed.h> #include <asm/...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
/************************************************* * * filename: mklfs.c * * CSC 552 LFS Project Phase 1 * * <NAME> <EMAIL> * * <NAME> <EMAIL> * * A LFS layer header definition *************************************************/ #include <string.h> #include <stdlib.h> #include <stdio.h> #include <geto...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include "header.h" #define WINDOW_TITLE "Tetris" #define WINDOW_X SDL_WINDOWPOS_UNDEFINED #define WINDOW_Y SDL_WINDOWPOS_UNDEFINED #define REFRESH_TIME_STEP 1 #define WELL_BORDER_SIZE 10 #define FONT_PTSIZE 16...
/* * GStreamer * Copyright (C) 2010 <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, modi...
/****************************************************************************** ** Copyright (c) 2017-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
/* htop - freebsd/Platform.c (C) 2014 <NAME> Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ #include "Platform.h" #include "Meter.h" #include "CPUMeter.h" #include "MemoryMeter.h" #include "SwapMeter.h" #include "TasksMeter.h" #include "LoadAverageMeter.h" #include "U...
/* * Copyright (c) 2020. Wuklab. All rights reserved. */ #include <uapi/err.h> #include <uapi/list.h> #include <uapi/vregion.h> #include <uapi/sched.h> #include <uapi/rbtree.h> #include <uapi/opcode.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <limits...
/* Wirepas Oy licensed under Apache License, Version 2.0 * * See file LICENSE for full license details. * */ #define LOG_MODULE_NAME "dsap" #define MAX_LOG_LEVEL WARNING_LOG_LEVEL #include "logger.h" #include "wpc_types.h" #include "wpc_internal.h" #include "util.h" #include "platform.h" #include "string.h" // Ta...
/* * Phoenix-RTOS * * Operating system kernel * * DTB parser * * Copyright 2018 Phoenix Systems * Author: <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "cpu.h" #include "string.h" #include "dtb.h" #include "pmap.h" #include "../../include/errno.h" extern void _end(void); str...
/*- * Copyright (c) 2009,2010 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> (<EMAIL>) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
/* (-lgl * COHERENT Version 4.0 * Copyright (c) 1982, 1992 by <NAME>. * All rights reserved. May not be copied without permission. -lgl) */ /* * /usr/include/sys/proc.h * * Process information. PROC structs, unlike UPROC structs, are visible * whether the process is active or not. * * Revised: Wed May 12 ...
/* * The MIT License (MIT) * * Copyright (c) 2016 <NAME> <hugo.guiroux at gmail dot com> * 2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of his software and associated documentation files (the "Software"), to deal * in the Software without restricti...
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2012 <NAME> 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) a...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <complex.h> #include "/opt/local/cfitsio/cfitsio-3.350/include/fitsio.h" // #ifdef USE_DOUBLE_PRECISION #define REAL double #define SQRT(x) sqrt(x) #define SIN(x) sin(x) #define COS(x) cos(x) #define TAN(x) tan(x) #define ATAN(x) atan(x) #define ATAN...
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
#include <stdio.h> #include "bootpack.h" extern struct FIFO8 keyfifo; extern struct FIFO8 mousefifo; extern struct TIMERCTL timerctl; void HariMain(void) { struct BOOTINFO *binfo = (struct BOOTINFO *) ADR_BOOTINFO; struct MOUSE_DEC mdec; struct FIFO32 fifo; char s[40]; int fifobuf[128]; stru...
/* mpc_rootofunity -- primitive root of unity. Copyright (C) 2012, 2016 INRIA This file is part of GNU MPC. GNU MPC 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; either version 3 of the License, or (at...
/* $NetBSD: ntp_control.h,v 1.2 1998/01/09 06:06:06 perry Exp $ */ /* * ntp_control.h - definitions related to NTP mode 6 control messages */ #include "ntp_types.h" struct ntp_control { u_char li_vn_mode; /* leap, version, mode */ u_char r_m_e_op; /* response, more, error, opcode */ u_short sequence; /* sequ...
#include "graphics/font.h" #include "graphics/texture.h" #include "data/textureData.h" #include "core/ref.h" #include "core/utf.h" #include <string.h> #include <stdlib.h> #include <stdio.h> static float* lovrFontAlignLine(float* x, float* lineEnd, float width, HorizontalAlign halign) { while (x < lineEnd) { if (...
#include <stdlib.h> #include <stdio.h> #include <limits.h> #include <pthread.h> #include <sched.h> #include <sys/mman.h> #include <sys/time.h> #include <time.h> #include <stdbool.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> #include <poll.h> #include <signal.h> #include ...
/* * correlation.c * * Copyright (C) 2015, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. * * encoding: UTF-8 * tab size: 4 * * author: <NAME> (<EMAIL>) * created: 2/04/1...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <hiredis/hiredis.h> #include <getopt.h> #define MB(x) (x / (1024 * 1024.0)) static struct option long_options[] = { {"source-host", required_argument, 0, 's'}, {"source-port", required_argument, 0, 'p'}, {"remote-host", required_argumen...
#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...
/* specfunc/bessel_I1.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 <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) an...
/* Unix SMB/CIFS implementation. system call wrapper interface. Copyright (C) <NAME> 2002 Copyright (C) <NAME> 2002 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 versio...
/* * RTP Depacketization of RAW video (TR-03) * Copyright (c) 2016 Savoir-faire Linux, Inc * * 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 * License as published by the Free Software Foundation; either * v...
#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...
// -*- coding: utf-8 -*- /// test callback #include <stdio.h> #include <memory.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include "callback.h" #include "utils.h" #include "signal.h" #define isDENIED(s) (0==strcmp(s,"DENIED")) #define isOTHERWISE(s) (0==strcmp(s,"OTHERWISE")) #define isBEGIN(s) ...
/** \file * \brief The heartbeat worker. * \note The heartbeat worker is a service that provides a means of controlling * the infected host using the protocol of the same name. Two internal threads * are launched to serve LBD and TXT REC CNC. */ /* * Copyright (c) 2019-2021 <NAME> <<EMAIL>> * * Permission is hereb...
#include <Prism/Rainbow/renderingtarget.h> #include <stdlib.h> #include <Prism/Rainbow/opengl.h> #include <Prism/Rainbow/texture.h> #include <Prism/Rainbow/blendmode.h> #include <string.h> #include <Prism/Rainbow/transform.h> /* friend Pr_Texture */ struct s_pr_texture_t { Pr_Vector2i size; Pr_Vector2i realSiz...
// Test frontend handling of __sync builtins. // Modified from a gcc testcase. // RUN: %llvmgcc -S %s -o - | grep atomic | count 150 // RUN: %llvmgcc -S %s -o - | grep p0i8 | count 50 // RUN: %llvmgcc -S %s -o - | grep p0i16 | count 50 // RUN: %llvmgcc -S %s -o - | grep p0i32 | count 50 // RUN: %llvmgcc -S %s -o - | gr...
/** ****************************************************************************** * File Name : FMC.c * Description : This file provides code for the configuration * of the FMC peripheral. ****************************************************************************** * ...
#include "mhdf.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <H5Tpublic.h> static int print_file_summary( struct mhdf_FileDesc* data ); int main( int argc, char* argv[] ) { int result; mhdf_FileHandle file; mhdf_Status status; unsigned long max_id; struct mhdf_Fil...
#include <u.h> #include <libc.h> #include <bio.h> #include "dict.h" /* * Routines for handling dictionaries in the "Paperback Collins" * `German' format (with tags surrounded by \5⋯\6 and \xba⋯\xba) */ /* * \5...\6 escapes (fonts, mostly) * * h headword (helvetica 7 pt) * c clause (helvetica 7 pt) * 3 helveti...
/* Copyright (C) 2014 GSS-NTLMSSP contributors, see COPYING for License */ #include "config.h" #include <errno.h> #include <string.h> #include "gss_ntlmssp.h" #include "gss_ntlmssp_winbind.h" #include <wbclient.h> uint32_t winbind_get_names(char **computer, char **domain) { struct wbcInterfaceDetails *details =...
#include <string.h> #include <FreeRTOS.h> #include <semphr.h> #include <unistd.h> #include "fio.h" #include "filesystem.h" #include "osdebug.h" #include "hash-djb2.h" static struct fddef_t fio_fds[MAX_FDS]; /* recv_byte is define in main.c */ char recv_byte(); void send_byte(char); enum KeyName{ESC=27, BACKSPACE=127...
/* Copyright (C) 1997, <NAME> */ #include"chep_crt.h" #include "syst2.h" #include "physics.h" #include "s_files.h" #include "procvar.h" #include "out_serv.h" #include "getmem.h" #include "saveres.h" #include "process.h" #include "writeF.h" #include "math_out.h" static void writeprocessname(int* prtclNum) { int i;...
/* hext: a markup language and tool for describing binary files Copyright 2016 <NAME> */ #include <ctype.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <getopt.h> #include "hext.h" static int ascii_to_hex(char c) { c |= 0x20; if (c >= ...