text
stringlengths
3.08k
10.5k
/* * * BRIEF MODULE DESCRIPTION * Galileo EV96100 board specific pci support. * * Copyright 2000 MontaVista Software Inc. * Author: MontaVista Software, Inc. * <EMAIL> or <EMAIL> * * This file was derived from <NAME>'s * arch/mips/mips-boards/generic/pci.c * * <NAME>, <EMAIL> * Copyright (C) 1999,...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
/* 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...
/* * 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 ma...
#include "../mouse.h" #include "../microsleep.h" #include <math.h> /* For floor() */ #include <ApplicationServices/ApplicationServices.h> #if !defined(M_SQRT2) #define M_SQRT2 1.4142135623730950488016887 /* Fix for MSVC. */ #endif #define MMMouseToCGEventType(down, button) \ (down ? MMMouseDownToCGEventType(butt...
/* * Common library for ADIS16XXX devices * * Copyright 2012 Analog Devices Inc. * Author: <NAME> <<EMAIL>> * * Licensed under the GPL-2 or later. */ #include <linux/export.h> #include <linux/interrupt.h> #include <linux/mutex.h> #include <linux/kernel.h> #include <linux/spi/spi.h> #include <linux/slab.h> #i...
/* FINDXT- FIND EXIT FROM ROOM */ /*COPYRIGHT 1980, INFOCOM COMPUTERS AND COMMUNICATIONS, CAMBRIDGE MA. 02142*/ /* ALL RIGHTS RESERVED, COMMERCIAL USAGE STRICTLY PROHIBITED */ /* WRITTEN BY <NAME> */ #include <stdio.h> #include "funcs.h" #include "vars.h" logical findxt_(dir, rm) integer dir; integer rm; { /* S...
#include <sys/types.h> #include <sys/stat.h> #include <sys/statvfs.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <strings.h> #include <string.h> #include <time.h> #include <limits.h> #include <errno.h> #include <fcntl.h> #ifndef FALLOC_FL_COLLAPSE_RANGE #define FALLOC_FL_COLLAPSE_RANGE 0x08 ...
/* * Allegro A8293 SEC driver * * Copyright (C) 2011 <NAME> <<EMAIL>> * * 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)...
/** @file master - demonstrates object subscription, registration and notification, use with 'servant' <NAME> - <EMAIL> @ingroup examples */ #include "ext.h" #include "ext_obex.h" #include "jpatcher_api.h" ////////////////////////// object struct typedef struct _master { t_object ob; // the object itself ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * * (C) 2007 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpi.h" #include <stdio.h> #include <stdlib.h> #include "mpitest.h" /* * This program tests that MPI_Comm_split applies to intercommunicators; ...
/* 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 <string.h> #i...
//<NAME>COM 2016 Ejercicio 3 #include <stdlib.h> #include <stdio.h> #include <math.h> #define NDATOS_MAX 256 //Cantidad máxima de datos a leer //estrucutra para almacenar datos del ajuste lineal typedef struct { double a, b, siga, sigb, chi2,sigdat; }FitPARAMS; //Función para fitear una recta y=a+b*x a los N...
/* Copyright 2012 The Regents of the University of California */ /* See COPYING for information about copying and redistribution. */ /** * \file disk_bench.c * Use nl calipers to measure local disk performance. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "nl_calipers.h...
/*****************************************************************************/ /* */ /* Telize 2.0.0 */ /* Copyright (c) 2013-2018, <NAME> */ /* https:...
/* gdb-io.c: FR403 GDB stub I/O * * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved. * Written by <NAME> (<EMAIL>) * * 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 *...
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <survive.h> #include "assert.h" #ifdef _WIN32 #include "survive_plugins.windows.h" #else #include "survive_plugins.unix.h" #endif static const char *get_so_filename(); static void*...
/* * Copyright (c) 2015 <NAME> (<EMAIL>) * * This is free software: you can redistribute it and/or modify * it under the terms of the Artistic License 2.0 as published by * The Perl Foundation. * * This source is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implie...
// The MIT License // // Copyright (c) 2017-2018 by the author(s) // // 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,...
/* * mon_assembleR65C02.c - The VICE built-in monitor, R65C02 assembler module. * * Written by * <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...
/* * Copyright (c) 2001-2004 Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above cop...
/* 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, softwar...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* editor_drawing.c :+: :+: :+: ...
/* * name-hash.c * * Hashing names in the index state * * Copyright (C) 2008 <NAME> */ #define NO_THE_INDEX_COMPATIBILITY_MACROS #include "index.h" /* * This removes bit 5 if bit 6 is set. * * That will make US-ASCII characters hash to their upper-case * equivalent. We could easily do this one whole word at ...
/* --- 100 characters ----------------------------------------------------------------------------- Created by: Laurie 2019/03/19 Sudoku puzzle solver. Compile: gcc solver.c -o bin/solver -lm -m64 -O3 Usage: bin/solver */ #include <stdbool.h> #include <stdio.h> bool contains(unsigned char val, unsigned char list[9...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/** ****************************************************************************** * @file stm32f0xx_ip_dbg.c * @author MCD Application Team * @version V1.4.0 * @date 24-July-2014 * @brief This file provides all STM32F0xx peripherals pointers initialization. *************************************...
#include <stdio.h> #include <unistd.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <yaml.h> #include "yaml-path.h" int parse_and_emit (yaml_parser_t *parser, yaml_emitter_t *emitter, yaml_path_t *path, yaml_path_filter_mode_t mode, int use_flow_style) { yaml_event_t event; yaml_event_type_...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "dask.h" #include "conio.h" #include "cpgplot.h" #define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg) //prototypes int acquire_data(void); void show_channel_data( U16 *buf, int num_chan ); int plot_channel_data(void); void transfer_and_scale(U...
// # condition variables ###################################################### // - rlyeh, public domain #ifndef CONDV_H #define CONDV_H typedef union condv { char opaque_cpp_x64_vs2013[16]; char opaque_cpp_x64_vs2015[88]; char opaque_cpp_x64_vs2017[88]; char opaque_cpp_x86_vs2013[8]; char opaque...
// Copyright 2017 The Australian National 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 appli...
#include <stdint.h> #include <stddef.h> #include <lib/readline.h> #include <lib/libc.h> #include <lib/blib.h> #include <lib/term.h> #if defined (bios) # include <lib/real.h> #elif defined (uefi) # include <efi.h> #endif int getchar_internal(uint8_t scancode, uint8_t ascii) { switch (scancode) { #if defined (bios...
//============================================================================== // Includes //============================================================================== #include <celib/memory/allocator.h> #include <celib/api.h> #include <celib/containers/hash.h> #include <celib/id.h> #include <stdatomic.h> #inclu...
#include <getopt.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <wayland-client-protocol.h> #include <wayland-client.h> #include <wlr/util/log.h> #include "idle-client-protocol.h" static struct org_kde_kwin_idle *idle_manager = NULL; static struct wl_sea...
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 o...
#include <stdint.h> #include "malloc.h" #include "log.h" #include "chunk.h" #define dl_assert(x)\ {\ if(!(x))\ abort();\ } void inspector(void *start, void *end, size_t used_bytes, void *callback_arg) { (void) callback_arg; // unused dl_printf( "start=0x%016lX end=0x%016lX size=%6lu...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <malloc.h> int maxdepth=10; int mode=0; // 0 .. count, 1 .. output int skip_last=0; long *counter; char **lookup; const char * pattern[] = { "HB", "KO", "KK", "PF", "VB", "KC", "BP", "SS", "BS", "PB", "VH", "BK", "BO", "HN", "...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
/* * server.c - Utilities for fake servers used by the nmh test suite * * This code is Copyright (c) 2014, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <u...
// JPG Loading. #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <setjmp.h> #include <Windows.h> #include "jpeglib.h" struct my_error_mgr { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct my_error_mgr...
/* * Make sure to consult: * http://elinux.org/BCM2835_datasheet_errata * * This is for the full UART (uart0), but has good clean code: * http://wiki.osdev.org/Raspberry_Pi_Bare_Bones * * Also, for this project's console purposes, ignore hardware driven * flow control (RTS/CTS) signaling capabilities. That reqi...
/******************************************************************************* * * Copyright (c) 2013-2021, Lawrence Livermore National Security, LLC * and other libROM project developers. See the top-level COPYRIGHT file for * details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) * **********************...
// // rpc_service.c // xdag // // Created by <NAME> on 3/29/18. // Copyright © 2018 xrdavies. All rights reserved. // #include "rpc_service.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #if !defined(_WIN32) && !defined(_WIN64) #include <sys/types.h> #include <sys/un.h> #include <unistd.h> #include...
/****************************************************************************** * e-paper.h * * @bref EPD(E-paer Driver) COG drive for Gen2 EPD EM027BS013 * @note Modify cog for different EPD size of display (must using Gen2 COG) * *****************************************************************************/ ...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2020 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
// Copyright (c) Microsoft Corporation // SPDX-License-Identifier: MIT #pragma once //! @file linux/bpf.h //! This file should be thought of as platform/bpf.h not Linux-specific per se. //! It is needed under this path though since the Libbpf bpf.h includes it as such. #include <stdint.h> #include "ebpf_structs.h" #...
/* * Copyright (C) <NAME> (agentzh) */ #ifndef DDEBUG #define DDEBUG 0 #endif #include "ddebug.h" #include "ngx_stream_lua_contentby.h" #include "ngx_stream_lua_util.h" #include "ngx_stream_lua_cache.h" ngx_int_t ngx_stream_lua_content_handler_file(ngx_stream_session_t *s) { lua_State ...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2015-2018, Renesas Electronics Corporation */ #include <string.h> #include <io.h> #include <tee_api_types.h> #include <trace.h> #include <initcall.h> #include "platform_config.h" #include "rcar_common.h" #include "rcar_maskrom.h" /* Definitions */ #ifdef ...
#include <3ds.h> #include <stdio.h> #include <string.h> #include "waithax.h" #include "utils.h" static Handle g_backdoor_semaphore; static KSemaphore* g_backdoor_ksemaphore; static KSemaphore* g_hax_ksemaphore; static KSemaphore g_backup_data; static void* g_fake_ksemaphore_vtable[KSEMAPHORE_VTABLESIZE / sizeof(void...
struct sample_t torque_meas; // last 3 motor torques produced by the eps // global torque limit const int MAX_TORQUE = 1500; // max torque cmd allowed ever // rate based torque limit + stay within actually applied // packet is sent at 100hz, so this limit is 1000/sec const int MAX_RATE_UP = 10; ...
/* * Copyright (c) 2017-2018, NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in th...
/* * texto.c * Funções para implementação de editor de texto. * * The MIT License (MIT) * * Copyright (c) 2014, 2015 <NAME>, UFSM * * 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...
/***************************************************************************** * Copyrig;ht(C)2009-2019 by GorgonMeducer<<EMAIL>> * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this...
// example I-Frame y-plane extraction to image (pgm) on yuv420p via libav // process notes based on decoding_demux.c from ffmpeg #include <libavformat/avformat.h> #include <sys/stat.h> /* void copyYPlane(AVFrame *frame) { uint8_t yPlane = malloc(frame->width * frame->height); memcpy(yPlane, *frame->data, siz...
/* ripng.c - RIPng (version 1) code for sendip * Created by hacking rip code * ChangeLog since 2.2 release: * 15/10/2002 Read the spec * 24/11/2002 Made it compile on archs needing alignment */ #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #inclu...
/* * * University of Luxembourg * Laboratory of Algorithmics, Cryptology and Security (LACS) * * FELICS - Fair Evaluation of Lightweight Cryptographic Systems * * Copyright (C) 2015 University of Luxembourg * * Written in 2015 by <NAME> <<EMAIL>> * * This file is part of FELICS. * * FELICS is free software...
/* * Copyright (C) 2014 Invensense, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but ...
/** \file * \brief Motif Driver TIPS Control * * See Copyright Notice in "iup.h" */ #include <Xm/Xm.h> #include <Xm/Label.h> #include <stdio.h> #include "iup.h" #include "iupcbs.h" #include "iup_attrib.h" #include "iup_str.h" #include "iup_drv.h" #include "iup_drvfont.h" #include "iup_drvinfo.h" #include "iupm...
#include<mpi.h> #include<stdio.h> #include<stdlib.h> #include <sys/time.h> #define TAM 2048 /* compile $ mpicc -Wall MPI_multiplicacao.c -o mult $ mpirun -machinefile maquinas_f306.txt -np 10 mult $ for i in `seq 1 10`; do mpirun -machinefile maquinas_f306.txt -np 16 mult; done */ typedef struct matrizes{ double ...
/* S P L I T D I T . C * BRL-CAD * * Copyright (c) 2004-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This library 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...
#include "geminc.h" #include "gemprm.h" #include "cpgcmn.h" extern ConvertRec crec[MAX_CUTS]; /* instantiate a conversion record */ void cpg_sixrd ( char *pfname, char *psubset, char *pdesc, int *ixlen, int *iylen, int *bpp, int *iret ) /************************************************************************...
/* * FreeRTOS V1.0.3 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includin...
#include <arch/x86/pci/registry.h> // ------------------------------------------------------------------------------------------------ const char *PciDeviceName(unsigned vendorId, unsigned deviceId) { return "Unknown Device"; } // ----------------------------------------------------------------------------------...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <mpi.h> #include <math.h> #define EPSILON 0.0000000000001 // Comparison function used by qsort int compare_floats(const void* arg1, const void* arg2) { float a1 = *(float *) arg1; float a2 = *(float *) arg2; if (a1 < a2) return -1; else...
#pragma once #include <arm_math.h> #define ATTENUATION_CURVE_SIZE 9 //Single axis kalman filter typedef struct { float i[4]; //identity matrix arm_matrix_instance_f32 armMatI; //process noise covariance float q[4]; //process noise covariance arm_matrix_instance_f32 armMatQ; //process noise covariance float r[4]...
/* (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>>, <...
/* 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...
#define _XOPEN_SOURCE 500 /* for usleep() */ #include <stdio.h> #include <unistd.h> #include <err.h> #include <limits.h> #include <time.h> #include <sys/time.h> #include "ems.h" #include "progress.h" #include "flash.h" #define PROGRESS_NBSTEPS 8 struct { ems_size_t remain, total; long steps[PROGRESS_NBST...
/* * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd. * Copyright (c) 2017 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...
/* Copyright 2018 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* DragonEgg board-specific configuration */ #include "adc.h" #include "adc_chip.h" #include "button.h" #include "common.h" #include "charger.h" #i...
/* Extended Module Player * Copyright (C) 1996-2018 <NAME> and <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...
/* * Copyright (c) 2018 Qualcomm Technologies, Inc. * All Rights Reserved. */ // Copyright (c) 2018 Qualcomm Technologies, Inc. // All rights reserved. // Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) // provided t...
/* * Copyright (C) 2017 - 2020 Xilinx, 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 of source code must retain the above copyright notice, * this list of ...
#include <stdio.h> #include <stdlib.h> #include <time.h> int is_digit(char c); int read_int(char c, FILE * fp); double time_diff(clock_t start, clock_t end); void three_way_merge_sort(int * a, int i, int j); void merge(int * a, int i, int first, int second, int j); int merge_count; int main() { char * input_file...
#include "property.h" #include <stdlib.h> #include <string.h> #include <limits.h> #define ERR (-1) #define OK (0) struct property { size_t max; char data[]; }; //////////////////////////////////////////////////////////////////////// static size_t parse_length(const char *s, size_t lim) { const char *p, *e; size...
#include "vulkan_buffer.h" #include "vulkan_device.h" #include "vulkan_command_buffer.h" #include "vulkan_utils.h" #include "core/logger.h" #include "core/kmemory.h" b8 vulkan_buffer_create( vulkan_context* context, u64 size, VkBufferUsageFlagBits usage, u32 memory_property_flags, b8 bind_on_crea...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2013, ARM Ltd * Copyright (c) 2014, Allwinner Technology Co., Ltd. * Copyright (c) 2018, Linaro Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followi...
#include <include/assetlib/wav_utils.h> #include <stdlib.h> #include <stdio.h> #include <string.h> struct RIFF_HEADER { unsigned char riff_id[4]; long file_size; }; struct RIFF_CHUNK_INFO { char chunk_id[4]; long chunk_size; }; struct WAV_FMT_CHUNK { unsigned char riff_chunk_id[4]; long chunk_size; int audio...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <time.h> #include <poll.h> #include <xcb/xcb.h> #include <xcb/xcb_event.h> #include <string.h> #ifdef __NetBSD__ #define ppoll pollts #endif /* used as return values for functions */ enum status { SUCCESS, FAILURE }; struct ti...
/* ** Copyright (C) 2014-2019 Cisco and/or its affiliates. All rights reserved. ** Copyright (C) 2005-2013 Sourcefire, Inc. ** ** 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 Free Software Foundation. You m...
/* prints "status" message once per second to the commandline The status message indicates: - the rate in packets-per-second - %done - estimated time remaining of the scan - number of 'tcbs' (TCP control blocks) of active TCP connections */ #include "main-status.h" #include "pixie-timer.h" #in...
/* * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * 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 requir...
/** ****************************************************************************** * @file DMA2D/DMA2D_RegToMemWithLCD/main.c * @author MCD Application Team * @version V1.8.0 * @date 04-November-2016 * @brief Main program body **************************************************************...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "mpi.h" #define MAX(a,b) (a>b? a:b) extern void Cblacs_pinfo(int *my_pnum, int *nprocs); extern void Cblacs_get(int context, int what, int* val); extern void Cblacs_gridinit(int* context, char* order, int np_row, int np_col); extern void Cblacs_gridinf...
#include "exprast.h" #include <ctype.h> #define arglist_sizeof(l) (sizeof(RSArgList) + ((l) * sizeof(RSExpr *))) RSArgList *RS_NewArgList(RSExpr *e) { RSArgList *ret = rm_malloc(arglist_sizeof(e ? 1 : 0)); ret->len = e ? 1 : 0; if (e) ret->args[0] = e; return ret; } RSArgList *RSArgList_Append(RSArgList *l, ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
// RETROBSD double floating point example // Integrals test // Based on http://rosettacode.org/wiki/Numerical_integration // Pito 4/2014 #include <stdio.h> #include <stdlib.h> #include <math.h> // Integration methods // double int_leftrect(double from, double to, int n, double (*func)()) { double h = (to-from)/n;...
/* ** hubness map ** this program expects as input a list of edges produced by "vted" ** ** Ref: Lohmann et al (2016) PLoS One, 11(6):e0158185 ** ** G.Lohmann, May 2015 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> /* From the Vista library: */ #include <viaio/VImage.h> #include <v...
/* rikenBest.c was originally generated by the autoSql program, which also * generated rikenBest.h and rikenBest.sql. This module links the database and * the RAM representation of objects. */ #include "common.h" #include "linefile.h" #include "dystring.h" #include "jksql.h" #include "rikenBest.h" void rikenBest...
/* TyTools - public domain <NAME> <<EMAIL>> https://neodd.com/tytools This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, distribute, and modify this file as you see fit. See the LICENSE file for more details. */ ...
/**@file main.c * @author <EMAIL> * @date 2019 * Soltuion to progtest n. 6. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #define INIT_MEM_LEN 64 #define MAX_NUM_OF_RESULTS 50 /** * @struct Phrase struct handling the count and text. */ typedef struct S_PHRASE{ double count; ...
/********** Copyright 1990 Regents of the University of California. All rights reserved. **********/ /* * Manage graph data structure. */ #include "spice.h" #include "ftegraph.h" #include "ftedebug.h" #include "fteext.h" #ifndef NULL #define NULL ((char*)0) #endif /* invariant: currentgraph contains the current...
#ifdef _CIVL #include <civlc.cvh> #endif /********************************************************************* C-DAC Tech Workshop : HeGaPa-2012 July 16-20,2012 Example 4 : Mpi-Omp_MatVect_Mult_blkstp.c Objective : Write an MPI-OpenMP Program to perform Ma...
#include <crc32.h> #include <packet.h> enum packet_state_t { PACKET_STATE_HEADER0, PACKET_STATE_HEADER1, PACKET_STATE_LENGTH0, PACKET_STATE_LENGTH1, PACKET_STATE_COMMAND, PACKET_STATE_DATA, PACKET_STATE_CRC0, PACKET_STATE_CRC1, PACKET_STATE_CRC2, PACKET_STATE_CRC3, }; struct packet_get_ctx_t { struct packe...
/* * Copyright (c) 2002 - 2006, Netherlands Forensic Institute * * 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 * ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <pthread.h> #include <libwebsockets.h> #define SCREEN_WIDTH 1080 #define NANOSECOND 1000000000 #define MILLISECOND 1000 #define FPS 12 #define SPEED 1 #define KGRN "\033[0;32;32m" #define KCYN "\033[0;36m" ...
#include "Configuration.h" struct XYZ_DATA accel_data; struct XYZ_DATA gyro_data; struct XYZ_DATA magnet_data; U16 mpu_temp_value = 0; U8 accel_buffer[14] = {0}; U8 xyz_buffer[6] = {0}; // struct LowPassFilter2p gyro_filter_z; struct XYZ_DATA gyro_data_filtered; // Initialize MPU9250 void MPU9250_Ini...
#include"pch.h" #include"slp.h" #include"prog.h" #include"interp.h" int maxargs(A_stm stm); int maxargsExp(A_exp exp) { int max = 0; if (exp->kind == A_opExp) { if (max < maxargsExp(exp->u.op.left)) max = maxargsExp(exp->u.op.left); if (max < maxargsExp(exp->u.op.right)) max = maxargsExp(exp-...
/* -*- mode: c; c-file-style: "elvin" -*- */ /*********************************************************************** Copyright (C) 1999-2006 by Mantara Software (ABN 17 105 665 594). All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided...
/* ** Copyright 1994, Silicon Graphics, Inc. ** All Rights Reserved. ** ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; ** the contents of this file may not be disclosed to third parties, copied or ** duplicated in any form, in whole or in part, without the prior written ** permission ...