text
stringlengths
3.12k
18.7k
/* wspy.h - header definitions for wspy program */ #include <sys/types.h> #include <inttypes.h> #include <pthread.h> #include <sched.h> /* wspy.c */ extern FILE *outfile; extern int num_procs; extern pthread_mutex_t event_lock; /* procinfo.c */ #define NUM_COUNTERS_PER_PROCESS 6 // for now just instructions & cycles ...
// project 4E03 #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <avr/io.h> #include <avr/eeprom.h> #include <avr/interrupt.h> #include <avr/boot.h> #include <avr/power.h> #include <avr/sleep.h> #include <avr/pgmspace.h> #include <util/delay.h> #include <u8g2.h> //#include <u8x8.h> #include <u8x8_a...
/* intersection of a Segment and Triangle */ /* Copyright 2007 United States Government as represented by the * Administrator of the National Aeronautics and Space * Administration. No copyright is claimed in the United States under * Title 17, U.S. Code. All Other Rights Reserved. * * The knife platform is lic...
/** * Written by <NAME> (<EMAIL>) */ #include <stdio.h> #include <malloc.h> int LEN = 9; int size = 5*5*5*5*5*5*5*5*5; char last; char* fFile = "pos.fasta"; char* outfile = "counts.json"; int strict = 0; int stars = 4; int results = 10; int hFilterCutoff = 1; int sFilterCutoff = 1; // position sequence pair repres...
/* * Copyright (c) 2021, suncloudsmoon and the Bootstrapped Freeze Interpreter contributors. * * 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 limi...
/* 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" uint32_t x126 = UINT32_MAX; static uint64_t x161 = 4LLU; int16_t x194 = -1; int8_t x196 = 8; volatile int8_t x...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2019-2020 Broadcom * All rights reserved. */ #include <string.h> #include <rte_common.h> #include <rte_errno.h> #include <rte_log.h> #include "tf_core.h" #include "tf_util.h" #include "tf_common.h" #include "tf_em.h" #include "tf_msg.h" #include "tfp.h" #incl...
/* * Copyright (c) 2010 Broadcom Corporation * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO...
#define _DEFAULT_SOURCE #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <strings.h> #include <math.h> #include <time.h> #include <ctype.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/sysinfo.h> #include <X11/Xlib.h> #incl...
/** * @ingroup smartuni * @{ * * @file * @brief Implements coap backend * * @author smlng <<EMAIL>> * * @} */ // standard #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // network #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #include ...
/* Based on example from: https://tpm2-software.github.io/tpm2-tss/getting-started/2019/02/05/Getting-Started.html https://github.com/tpm2-software/tpm2-tools/blob/master/tools/tpm2_getcap.c Get capability */ #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <tss2/tss2_esy...
/*************************************** port-runner: exercise and validate your serial port traffic! ***************************************/ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <stdbool.h> #include <errno.h> #include <string.h> #include <sys/stat.h> #include <fcntl.h> #include <te...
// // Continuous wavelet transform using Morlet wavelet for NArray // // Time-stamp: <2013-02-12 18:28:18 zophos> // // Copyright (c) 2013 <NAME> <<EMAIL>> AIST // All rights reserved. // // This is free software with ABSOLUTELY NO WARRANTY. // // You can redistribute it and/or modify it // under the terms of GPLv2 or ...
#include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _WIN32 # include <io.h> # include <fcntl.h> #endif #include "fast_tlv.h" #include "grep_tlv.h" #include "file_io.h" static int grepFile(GT_GrepTlvConf *conf, FILE *f) { int res = GT_OK; GT_FTLV t; GT_ElementCounter *idx = NULL; ...
/****************************************************************************** * Copyright (c) 2014-2015, <NAME>, <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: * * Redistributi...
/* * f_flow.c Flow filter * * 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. * * Authors: <NAME> <<EMAIL...
/************************************************************************** * * Copyright (c) 2013 Alcatel-Lucent * * Alcatel Lucent licenses this file to You under the Apache License, * Version 2.0 (the "License"); you may not use this file except in * compliance with the License. A copy of the License is conta...
#define _GNU_SOURCE #include "log.h" #include "parameters.h" #include "rdma.h" #include "rperf.h" #include "tcpsocket.h" int cmpdouble(const void *a, const void *b) { return (*(double *)a > *(double *)b) ? 1 : (*(double *)a < *(double *)b) ? -1 : 0; } int set_priority_max(long thread...
/* Copyright (c) 2015 by <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, subli...
# include <c_iraf.h> # define IS_UNKNOWN 0 # define IS_IMAGE 1 # define IS_TABLE 2 void c_rdselect(char *file, char *root, char *rowselect, char *colselect, int maxch); /* char file[ARB] # i: filename */ /* char root[ARB] # o: filename minus any selectors */ /* char rowselect[ARB] # o: row selector */ /* char colsele...
/* -------------------------------------------------------------------------- * Name: trfm.c * Purpose: Routines for dealing with transforms * ----------------------------------------------------------------------- */ #include <math.h> #include <stdio.h> #include <float.h> #include "fortify/fortify.h" #include...
/*! \file bcm56880_a0_i2c_drv.c * * Chip stub for BCMA i2c device driver attach. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <shr/shr_debug.h> #...
/* $NetBSD: pool-fast.c,v 1.1.1.2 2009/12/02 00:26:09 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This file is part of the device-mapper userspace tools. * * This copyrighted material is made available ...
/** * @file callscript.c Interactive menu * * Copyright (C) 2010 Creytiv.com * Copyright (C) 2014 Edvina AB, Sollentuna, Sweden * * Based on the menu module */ #define DEBUG 1 /*** Call Scripts * * Directory * Configuration parameter: callscript_dir * sets the default script directory. If not set * t...
#include <inttypes.h> #include <string.h> #include "mount.h" #include "sector.h" #include "error.h" #include "bmblock.h" #include "inode.h" /** * Fill ibm and fbm of a unix_filesystem struct * @param OUT u */ void fill_ibm(struct unix_filesystem * u) { // Test if u is NULL if (!u) { return;; } // create a ...
#include <strings.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> #include "pfx_tree.h" static void itercnt(pfx_ipaddr_t net, unsigned char mask, void *calldata) { *((unsigned long *)calldata) += 1; } static void itercnt2(pfx_ipaddr_t net, unsigned char mask, unsigned char upto...
/** ****************************************************************************** * @file CN0397.c * @brief Project main source file * @version V0.1 * @author ADI * ******************************************************************************* * Copyright 2016(c) Analog Devices, Inc. * * All rights ...
/* Shaded Triangle for GD Implementation based on the 3DICA3 tutorial http://tfpsly.free.fr/Docs/3dIca/3dica3.htm License New BSD (See gd CVS for a copy of the license) (c) 2007 <NAME> */ #include <gd.h> #include <stdio.h> #include <string.h> /* That will end in fast ops anyway (at least vc and gcc :) */ #de...
#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...
// To understand how this works, look at vector.c first. // At least, the C <-> Lua parts of it. The math is still a mystery to everyone. // :-P #include "common.h" #include <math.h> #include <string.h> #define MT_NAME "quaternion" typedef struct { double w; double x; double y; double z; } quaternion; s...
/* buffer_test.c - unit tests for buffer.c * * REQUIRES: buffer_1 * TESTS: buffer_1.0 * * This file is released into the public domain, and permission is granted * to use, modify, and / or redistribute at will. This software is provided * 'as-is', without any express or implied warranty. In no event will the *...
/** ****************************************************************************** * @file stm32f1xx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * * COPYRIGHT(c) 2020 STMicroelectronics * * Redistribution and use i...
#include <Python.h> #include <numpy/arrayobject.h> #include <stdio.h> #include <math.h> #include <lbfgs.h> typedef int bool; #define true 1 #define false 0 static char module_docstring[] = "This module provides an interface to the Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) algorithm written in C."; ...
/* source.c - source files, include paths and dependencies */ /* (c) in 2020 by <NAME> and <NAME> */ #include "vasm.h" #include "osdep.h" #include "dwarf.h" #define SRCREADINC (64*1024) /* extend buffer in these steps when reading */ char *compile_dir; int ignore_multinc,depend,depend_all; static struct include_pa...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "iot_import.h" #include "iot_export.h" #include "iot_export_mqtt.h" #include "aos/log.h" #include "aos/yloop.h" #include "aos/network.h" #include <netmgr.h> #include <aos/kernel.h> #incl...
/* * SPI Master library for nRF5x. * Copyright (c) 2015 Arduino LLC * Copyright (c) 2016 <NAME> All right reserved. * Copyright (c) 2017 hathach * * This library 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 Softw...
/* * Include ./configure's header file */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* -*-Mode: C;-*- * Module: LATS netCDF functions * * Copyright: 1996, Regents of the University of California * This software may not be distributed to others without * permission of the author. * * Author: ...
/**************************************************************************** * @file main.c * @version V1.00 * @brief Transmit and receive UART data in UART IrDA mode. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. ****************************...
#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...
/***************************************************************************** * sdi.c: SDI helpers ***************************************************************************** * Copyright (C) 2014 <NAME> * Copyright (C) 2009 <NAME> <<EMAIL>> * Copyright (c) 2009 <NAME> <baptiste dot coudurier at gmail dot com> ...
/** @file math.c Math routines. @authors Copyright (c) 2017 <NAME> <<EMAIL>> @par License 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 ...
/* specifically built for 5-byte key */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <inttypes.h> #include <time.h> #define CBC 0 #define ECB 1 #include "aes.h" void str_to_hex(uint8_t *str, uint8_t *hex, int n) { int by = 0; for (int i = 0; i < n; ...
/******************************************************************************************************** * @file HIDReportData.h * * @brief This is the header file for BLE SDK * * @author BLE GROUP * @date 2020.06 * * @par Copyright (c) 2020, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") * * ...
#include <string.h> #include <curses.h> #include "textgfx.h" #include "curs.h" #include "../input/termin.h" #ifndef NCURSES_VERSION const short colors1_6[6] = { COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN }; #endif unsigned textgfx_flags = 0; int margin_x = 0; WINDOW *window; WI...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright 2018-2020 NXP * * Brief Scatter-Gatter Table management utilities. */ #include <caam_common.h> #include <caam_io.h> #include <caam_utils_mem.h> #include <caam_utils_sgt.h> #include <caam_trace.h> #include <mm/core_memprot.h> #include <mm/core_mmu.h> #include...
#include <sys/types.h> #include <sys/socket.h> #include <sys/wait.h> #include <netinet/in.h> #include <err.h> #include <errno.h> #include <limits.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <tls.h> #include <openssl/sha.h> static void usage() { exte...
/****************************************************************************** ******************************************************************************* Easy GL2D scrolling example Shows how easy it is to code a scrolling engine in Easy GL2D DS Relminator (<NAME> BSN RN) Http://Rel.Phatcode.Net Tiles ...
#include <config.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include "cert.h" #include "cert_p.h" #include "crypto_sign.h" #include "dnscrypt_proxy.h" #include "logger.h" #include "probes.h" static int cert_parse_version(Proxy...
#include <stdint.h> // Variables defined by the linker script extern uint32_t _sdata[]; extern uint32_t _sidata[]; extern uint32_t _edata[]; extern uint32_t _sbss[]; extern uint32_t _ebss[]; extern uint32_t _estack[]; // External functions void SystemInit(void); void __libc_init_array(void); int main(); void Reset_H...
/* * ProPacker_v1.0 1997 (c) Asle / ReDoX * * Converts back to ptk ProPacker v1 MODs * */ #include <string.h> #include <stdlib.h> void Depack_PP10 (FILE * in, FILE * out) { uint8 c1 = 0x00, c2 = 0x00, c3 = 0x00, c4 = 0x00; uint8 Tracks_Numbers[4][128]; uint8 pat_pos; uint8 *tmp; uint8 Pat...
/* * Multi2Sim * Copyright (C) 2012 <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) any later version. * ...
/* * OpenGL example with C and Tcl/Tk * https://codeplea.com/opengl-with-c-and-tcl-tk * * Copyright (c) 2015-2017 <NAME> * Linux x11 code provided by <NAME> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising fr...
#include <stdlib.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <time.h> typedef struct LE{ int v; struct LE* next; } ListElement; typedef struct List{ ListElement* head; ListElement* tail; } List; List* makeList(void){ List* l = malloc(sizeof(List)); l->head = l->tail...
/* * NanoBreaker, a Nano-X Breakout clone by <NAME>. * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * Software distr...
#include "quantum.h" #include "md_rgb_matrix.h" extern issi3733_led_t *led_cur; extern uint8_t led_per_run; extern issi3733_led_t *lede; extern issi3733_led_t led_map[]; static uint16_t last_boost_update; static uint8_t led_boosts[ISSI3733_LED_COUNT]; static uint8_t led_boost_index; static uint8_t led_cur_index; #de...
/* Copyright (c) 2011 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. * * Tests for vboot_api_firmware */ #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "crc32.h" #include ...
/***************************************************************************** * atsc_a65.c : ATSC A65 decoding helpers ***************************************************************************** * Copyright (C) 2016 - VideoLAN Authors * * This program is free software; you can redistribute it and/or modify it ...
/***************************************************************************** * RRDtool 1.4.9 Copyright by <NAME>, 1997-2014 ***************************************************************************** * rrd_error.c Common Header File ************************************************************************...
/* comedi/drivers/dt2814.c Hardware driver for Data Translation DT2814 COMEDI - Linux Control and Measurement Device Interface Copyright (C) 1998 <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 publis...
/* ---------------------------------------------------------------------- * Copyright (C) 2020-2021 Maxim Integrated Products, Inc., All Rights Reserved. * * NOTICE OF MODIFICATIONS * * The following modifications have been made to the original source files provided by ARM Limited : * - main function return paths * - ...
/* -*- Mode:C; c-basic-offset:4; tab-width:4 -*- **************************************************************************** * (C) 2003 - <NAME> - Intel Research Cambridge * (C) 2005 - <NAME> - Intel Research Cambridge **************************************************************************** * * File:...
#define _USE_MATH_DEFINES #include <assert.h> #include <math.h> #include <survive_reproject.h> #include <survive_reproject_gen2.h> #include "force_O3.h" #include "generated/survive_reproject.generated.h" /*** Using plane equation: A*x + B*y + C*z + D = 0; If you are looking at the lighthouse, you have this: ...
/* settings.c - eeprom configuration handling Part of Grbl The MIT License (MIT) GRBL(tm) - Embedded CNC g-code interpreter and motion-controller Copyright (c) 2009-2011 <NAME> Copyright (c) 2011-2012 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this softwar...
/* * Copyright (c) 2012 ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. */ #include <barrelfish/barrelfish....
/*- * Copyright (c) 1980, 1993 * The Regents of the University of California. 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 copy...
// Copyright 2013 Google Inc. 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-2.0 // // Unless required by appl...
/* * Copyright (C) 2020-2021 The opuntiaOS Project Authors. * + Contributed by <NAME> <<EMAIL>> * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <drivers/aarch32/pl181.h> #include <libkern/log.h> #include <mem/vmm/vmm.h> #include <mem/vmm/zoner....
/* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
/* * Copyright 2018-2019 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "op_expand_into.h" #include "../../ast/ast.h" #include "../../util/arr.h" #include "../../util/rmalloc.h" #include "../../query_ctx.h" #include "../../GraphBLASExt/Gx...
/* * testcode/streamtcp.c - debug program perform multiple DNS queries on tcp. * * Copyright (c) 2008, NLnet Labs. All rights reserved. * * This software is open source. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
// // Created by <NAME> on 2/19/21. // #include <assert.h> #include <globals.h> #include "taskP.h" #include "termP.h" #include "engineP.h" #include "heapP.h" #include "buddy.h" logical traceTasks = False; // stack operation tracing integer minStackSize = 256; /* What is the smallest stack size */ i...
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * ****/ // tristrip - convert triangle list into tristrips and fans #pragma warning( ...
/** * || ____ _ __ * +------+ / __ )(_) /_______________ _____ ___ * | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ * +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ * || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ * * Crazyflie control firmware * * Copyright (C) 2011-2012 Bi...
/* * <NAME> (C) 1983 TAITO Corp. * simulate 68705 MCU */ #include "driver.h" #include "cpu/z80/z80.h" #include "includes/chaknpop.h" #define MCU_INITIAL_SEED 0x81 UINT8 *chaknpop_ram; static UINT8 mcu_seed; static UINT8 mcu_select; static UINT8 mcu_result; /* mcu data that is extracted from the real board! *...
/* * Copyright (C) 2004, 2005, 2007-2009, 2012, 2015 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2000, 2001 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyrigh...
#include <errno.h> #include <stdio.h> #include <string.h> #include <stdlib.h> struct einfo { char const * string; int errno_value; char const * text; } error[] = { { "_PDCLIB_E2BIG", E2BIG, "Argument list too long" }, { "_PDCLIB_EACCES", EACCES, "Permission denied" }, { "_PDCLIB_EADDRINUSE", E...
/* * Olimex MX23 Olinuxino Boot setup * * Copyright (C) 2013 <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 the Free So...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the terms found in...
/* multipl.c This file written 2019-12-01 by <NAME> Last edited by <NAME> 2019-12-09 For copyright and licensing, see file LICENSE */ #include <stdint.h> /* Declarations of uint_32 and the like */ #include <math.h> #include "marslander.h" #define P1_XPOS -SHIP_SIZE*SCALE #define P1_YPOS P1_XPOS #define P...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 <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...
#include "gdbus.h" #define HAS_SUFFIX(name) \ (g_str_has_suffix(name, ".svg") || g_str_has_suffix(name, ".png") || \ g_str_has_suffix(name, ".xpm")) /* Icon Lookup Algorithm * (see * https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html ...
/* * varnishkafka * * Copyright (c) 2013 Wikimedia Foundation * Copyright (c) 2013 <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...
/* * 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...
#include <lcm/udpm_util.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <assert.h> #include <lcm/dbg.h> #define LCM_MAX_UNFRAGMENTED_PACKET_SIZE 65536 /******************** fragment buffer **********************/ lcm_frag_buf_t * lcm_frag_buf_new (struct sockaddr_in from, const char *channel,...
#include "gff/gff.h" #include "error.h" #include "fsm.h" #include "region.h" #include "tok.h" #include "unused.h" #include <errno.h> #include <string.h> void gff_init(struct gff *gff, FILE *restrict fd, enum gff_mode mode) { gff->fd = fd; gff->mode = mode; gff_elem_init(&gff->elem); fsm_init(&gff->stat...
/* * Copyright 2020-2021 Hewlett Packard Enterprise Development LP * Copyright 2004-2019 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance wit...
// configfile.c - handles loading and saving the configuration options #include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <ctype.h> #include "configfile.h" #define ARRAY_LEN(arr) (sizeof(arr) / sizeof(arr[0])) enum ConfigOptionType { CONFIG_TYPE_BOOL, ...
/********************************************************************* * Copyright 2018, UCAR/Unidata * See netcdf/COPYRIGHT file for copying and redistribution conditions. * $Id $ *********************************************************************/ #include <stdlib.h> #include <string.h> #include <stdio.h...
/* * fy-docstate.c - YAML document state methods * * Copyright (c) 2019 <NAME> <<EMAIL>> * * SPDX-License-Identifier: MIT */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <string.h> #include <assert.h> #include <stdlib.h> #include <ctype.h> #include <errno.h> #include <libfyaml.h> ...
/* This file is part of CanFestival, a library implementing CanOpen Stack. Copyright (C): <NAME> and <NAME> See COPYING file for copyrights details. This library 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 Foun...
/* S O L I D S _ O N _ R A Y . C * BRL-CAD * * Copyright (c) 2008-2019 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 * ...
#include <stdio.h> #include <git2.h> #include <stdlib.h> #include <string.h> static void check(int error, const char *message) { if (error) { fprintf(stderr, "%s (%d)\n", message, error); exit(1); } } static int resolve_to_tree( git_repository *repo, const char *identifier, git_tree **tree) { int err = 0; gi...
/* V I E W C E L L . C * BRL-CAD * * Copyright (c) 1989-2014 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...
/* htop - solaris/Platform.c (C) 2014 <NAME> (C) 2015 <NAME> (C) 2017,2018 <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" #inc...
/* * bytcr_rt5651.c - ASoc Machine driver for Intel Byt CR platform * (derived from bytcr_rt5640.c) * * Copyright (C) 2015 Intel Corp * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This program is free software; you can redistribute it and/or modify * it under the terms o...
/* This is dvipdfmx, an eXtended version of dvipdfm by <NAME>. Copyright (C) 2002-2018 by <NAME> and <NAME>, the dvipdfmx project team. 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 Founda...
/** ****************************************************************************** * @file ProjectWinterSoldier * @author <NAME>-<NAME> * @date * @brief This is Project Winter Soldier * ****************************************************************************** * */ /* Includes -...
/* * worth.c: Rog-O-Matic XIV (CMU) Sun Feb 10 23:16:40 1985 - mlm * Copyright (C) 1985 by <NAME>, <NAME>, <NAME>, and <NAME> * * This file contains the function worth (obj) which does the impossible * job of deciding how much eath item in the pack is worth. * * The worth of an item is a number from 0 to 5000, w...
#include <stdio.h> #include <stdlib.h> #include "CuTest.h" /* We need to directly insert the .c file in order to test the */ /* static functions as well */ #include "dictionary.c" void Test_xstrdup(CuTest *tc) { size_t i; char *dup_str; const char *strings[] = { "", "test", ...
/****************************************************************************** * * sys_init.c * * Modul zaduzen za inicijalizaciju sistema * - POWER CONTROL BITS * - PLL frekvencija i preskaler * - GPIO smjer i stanje izlaznih pinova * - MAM : setuje se Memory Accelerator Modul * - VPBUS : setuje se brzina pe...