text
stringlengths
3.12k
18.7k
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <xbook/kmalloc.h> /// 程序本地头文件 #include <gui/console.h> #include <gui/cursor.h> #include <gui/rect.h> #include <gui/text.h> #include <gui/screen.h> /* 控制台全局变量 */ con_screen_t gui_con_screen; void con_set_chars(char ch, int counts, int x, int y) { ...
#include <stdlib.h> #include <stdint.h> #include <string.h> #include <math.h> #include "nb/math_bot.h" #include "nb/memory_bot.h" #include "nb/geometric_bot/mesh/mesh2D.h" #include "mesh2D_struct.h" #include "mesh2D_private.h" #define POW2(a) ((a)*(a)) static void assemble_system(const nb_mesh2D_t *mesh, con...
#include "graph_search.h" #include <stdlib.h> #include "../utils/test_helpers.h" #include "CUnit/Basic.h" #include "CUnit/CUnit.h" /******************************************************************************* * small.txt * 0 * | * 1 * / | \ * 2 3 4 * / \ | * 5 6...
/* * Copyright (C) 2004-2012 Free Software Foundation, Inc. * * Author: <NAME>, <NAME> * * This file is part of GnuTLS. * * GnuTLS 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 3 of t...
/* * linux/fs/hfsplus/unicode.c * * Copyright (C) 2001 * <NAME> (<EMAIL>) * (C) 2003 Ardis Technologies <<EMAIL>> * * Handler routines for unicode strings */ #include <linux/types.h> #include <linux/nls.h> #include "hfsplus_fs.h" #include "hfsplus_raw.h" /* Fold the case of a unicode char, given the 16 bit v...
/* This file is part of AutoQuad ESC32. AutoQuad ESC32 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 3 of the License, or (at your option) any later version. AutoQuad ESC...
/*------------------------------------------------------------------------- * * spginsert.c * Externally visible index creation/insertion routines * * All the actual insertion logic is in spgdoinsert.c. * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Re...
/** ****************************************************************************** * @file USART/HalfDuplex/main.c * @author MCD Application Team * @version V3.5.0 * @date 08-April-2011 * @brief Main program body ****************************************************************************...
/* * ./ssh2_exec 127.0.0.1 22222 user password "<PASSWORD>" return 0 if success 1 * if no connection 2 if no file */ #include <libssh2.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/select.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/time.h> #include <sys/types.h> #include <stdlib.h>...
/* * other */ FILE* popen(char*, char*); int pclose(FILE*); long filesize(int fd); int open(char *, int); int read(int, char *, int); int lseek(int, long, int); int close(int); int getpid(void); /* * c1.c */ void init0(void); void init2(void); void cvtime(void); void errprint(void); int control(int a, int b); int ...
/* plnsns.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__2 = 2; static integer c__1 = 1; /* $Procedure PLNSNS ( Planetographic Longitude Sense ) */ integer pln...
/*----------------------------------------------------------------------------* Copyright (C) 2010 <NAME>. ----------------------------------------------------------------------------*/ /** @file NwEgtPingMain.c @brief This is a program demostrating usage of nw-gtpv2c library for eGTP ...
/** * @file flow.c * @author NikLeberg (<EMAIL>) * @brief Mateksys Optical Flow Sensor basierend auf PMW3901. * @version 0.1 * @date 2020-12-16 * * @copyright Copyright (c) 2020 <NAME> * * Kommuniziert über Multiwii Serial Protokoll Version 2 (MSPv2 -> https://github.com/iNavFlight/inav/wiki/MSP-V2) * - Sen...
/* **************************************************************************** Copyright (c) 2014, Integrated Device Technology Inc. Copyright (c) 2014, RapidIO Trade Association All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
/* Copyright (c) 2007 <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, distr...
/* Copyright (c) 2008-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** \file memarea.c * \brief Implementation for memarea_t, an allocator for allocating lots of * small objects that will be freed all at once. */ #include "orconfig.h" #include <stdlib.h> #include "memarea.h" #include ...
/** ****************************************************************************** * File Name : gpio.c * Description : This file provides code for the configuration * of all used GPIO pins. ****************************************************************************** *...
/* * Copyright (c) 1995 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and...
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <types.h> #include <bits.h> #include <msr.h> #include <cpu.h> #include <per_cpu.h> #include <cpu_caps.h> #include <lapic.h> union lapic_base_msr { uint64_t value; struct { uint32_t rsvd_1:8; ...
/* 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...
/** * syrk.c: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Updated by <NAME> (http://cTuning.org/lab/people/gfursin) * to work with Collective Mind, OpenME plugin interf...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * massF3.c * * Code generation for function 'massF3' * */ /* Include files */ #include "massF3.h...
/* PCI driver. */ #include <pci/pci.h> #include <trace/trace.h> #include <cpu/port.h> #include <util/list.h> #include <util/container.h> #include <stdlib/stdlib.h> #include <panic/panic.h> #include <intr/route.h> #include <cpu/state.h> #include <net/net.h> #include <intr/common.h> #include <pci/msi.h> // Represents o...
/* * A threaded server based on the work of * <NAME> (www.martinbroadhurst.com) * Compile with -pthread * * From <NAME>'s web site: * * "This is a collection of example network server implementations for * Linux and Windows. You can use these as a starting point for your own * server implementation." * *...
#define BTLZA_BITARITH_LOWER 0x00000000 #define BTLZA_BITARITH_UPPER 0xFFFFFFFF // #define BTLZA_BITARITH_WBITS 10 #define BTLZA_BITARITH_WBITS 8 #define BTLZA_BITARITH_WMASK ((1<<BTLZA_BITARITH_WBITS)-1) #define BTLZA_BITARITH_WASHR 5 // #define BTLZA_BITARITH_WASHR 4 // #define BTLZA_BITARITH_WASHR 6 #define...
/* * Maintainer : * <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <netdev.h> #include <twl4030.h> #include <asm/io.h> #include <asm/arch/mmc_host_def.h> #include <asm/arch/mem.h> #include <asm/arch/mux.h> #include <asm/arch/sys_proto.h> #include <asm/arch/gpio.h> #incl...
/** * @file dht.c * * ESP-IDF driver for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321), Itead Si7021 * * Ported from esp-open-rtos * * Copyright (C) 2016 <NAME> <https://github.com/jsuiker>\n * Copyright (C) 2018 <NAME> <https://github.com/UncleRus>\n * * BSD Licensed as described in the file LICENSE */ #incl...
/* normalscan.c ============ Author: R.J.Barnes */ /* LICENSE AND DISCLAIMER Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory This file is part of the Radar Software Toolkit (RST). RST is free software: you can redistribute it and/or modify it under the terms of the GNU Lesse...
/************************************************************************ ** ** ** The YapTab/YapOr/OPTYap systems ** ** ** ** YapTab extends the Ya...
// for finding memory leaks in debug mode with Visual Studio #if defined _DEBUG && defined _MSC_VER #include <crtdbg.h> #endif #include "ft2_header.h" #include "ft2_gui.h" #include "ft2_config.h" #include "ft2_sample_ed.h" #include "ft2_nibbles.h" #include "ft2_inst_ed.h" #include "ft2_pattern_ed.h" #include "ft2_trim...
/* ==================================================================== * Copyright (c) 2011 The OpenSSL Project. 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 ...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <string.h> #include <errno.h> #include "aos/kernel.h" #include <network/network.h> #include "lwip/apps/telnetserver.h" #define MAX_COMMANDLINE_LENGTH 512U #define AOS_TELNETD_PRI (AOS_D...
/*- * Copyright (c) 1997 Berkeley Software Design, 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...
/* * Copyright (c) 2007 - 2015 <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, publi...
#include "mex.h" #include "api.h" #include "utils.h" #include <string.h> const char* INFO_FIELDS[] = { "setup_time", "solve_time", "iter", "soft_slack"}; const char* SETTINGS_FIELDS[] = { "primal_tol", "dual_tol", "zero_tol", "pivot_to...
/* * petmodel.c - PET model detection and setting. * * Written by * groepaz <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Genera...
/* * Copyright © 2006-2007 Intel Corporation * * 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...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <stdbool.h> #include "makedir.h" typedef enum SDTtype_e{ SDT_TYPE_1 = 0x0000, SDT_TYPE_2 = 0x3039 }SDTtype_t; /*********** SDT archive types *********** ** There are 2 types of SDT archives identified by the SDT_type field...
/* * 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 OAI Public Lic...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2009 <NAME> <<EMAIL>> */ #include <common.h> #include <usb.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <linux/delay.h> #include <usb/ehci-ci.h> #include <errno.h> #include "ehci.h" #define USBCTRL_OTGBASE_OFFSET 0x600 #define MX25_OTG_SIC...
/* * * Copyright 2015, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
#define BITSLICE(x, a, b) ((x) >> (b)) & ((1 << ((a)-(b)+1)) - 1) #include<stdio.h> #include<stdint.h> #include<stdlib.h> int assert_forward = 1; int action_run; int traverse_color_check = 0; int standard_metadata_ingress_port_eq_1_137028; int hdr_ipv4_dstAddr_eq_167772162_137028; void color_check_137023(); void set...
/* GStreamer * Copyright (C) <1999> <NAME> <<EMAIL>> * Copyright (C) <2003> <NAME> <<EMAIL>> * Copyright (C) <2009> <NAME> <<EMAIL>> * * EffecTV - Realtime Digital Video Effector * Copyright (C) 2001-2002 FUKUCHI Kentarou * * AgingTV - film-aging effect. * * This library is free software; you can redistribute...
/* * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). * motd.c: Message of the day functions. * * Copyright (C) 2002 by the past and present ircd coders, and others. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as p...
// Copyright 2015 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// MotorSimple.c /* This example accompanies the books "Embedded Systems: Introduction to the MSP432 Microcontroller", ISBN: 978-1512185676, <NAME>, copyright (c) 2017 "Embedded Systems: Real-Time Interfacing to the MSP432 Microcontroller", ISBN: 978-1514676585, <NAME>, copyright (c) 2017 "Embed...
#include <stdlib.h> #include <strings.h> #include <png.h> #include "slib.h" // http://wiki.nesdev.com/w/index.php/PPU_palettes static const png_color NES_PALETTE[] = { { 84, 84, 84}, { 0, 30, 116}, { 8, 16, 144}, { 48, 0, 136}, { 68, 0, 100}, { 92, 0, 48}, { 84, 4, 0}, { 60, 24, 0}, { 32, 42, ...
#include "postgres.h" #include <math.h> #include "fmgr.h" #include "plperl.h" #include "plperl_helpers.h" #include "utils/jsonb.h" #include "utils/fmgrprotos.h" PG_MODULE_MAGIC; static SV *Jsonb_to_SV(JsonbContainer *jsonb); static JsonbValue *SV_to_JsonbValue(SV *obj, JsonbParseState **ps, bool is_elem); static...
#include "game.h" #include "images.h" #include "fonts.h" struct game Game = { Menu, { SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_NAME, NULL, NULL }, { NULL, NULL, NULL, }, // Cursor { CENTER_X, CENTER_Y, BALL...
/* * Copyright (c) 2000-2012 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file exc...
/* * libbacklight - userspace interface to Linux backlight control * * Copyright © 2012 Intel Corporation * Copyright 2010 Red Hat <<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 S...
/* Copyright (c) 2005-2008, <NAME> 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 AUTHOR DISCLAIMS ALL WARRANTIES...
/* * Copyright 1996-2020 Cyberbotics 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 or ...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2017-2018, ARM Limited */ #include <string.h> #include <tee_api.h> #include <tee_internal_api_extensions.h> #include <tee_internal_api.h> #include <tee_ta_api.h> #include <trace.h> #include <sdp_pta.h> #include "sedget_video_ta.h" #include "mve_fw_mmu.h" ...
/** * \author <NAME>, University of Maryland - NASA GSFC * * \brief C code for example generation of waveforms with the EOBNRv2HM reduced order model, * processing through the Fourier-domain LISA response and SNR calculation. * */ #define _XOPEN_SOURCE 500 #ifdef __GNUC__ #define UNUSED __attribute...
/* * OpenSplice DDS * * This software and documentation are Copyright 2006 to TO_YEAR PrismTech * Limited, its affiliated companies and licensors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
/* * Copyright 2014-2018, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and ...
/* * 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 <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> //XXX TODO: Write a more fully featured version that handles more data from previous state to help deglitch byte-edge cases. //Run this function against every byte coming in. //Goal: Keep this at 512x16b (1kB entries) uint16_t clockerfn( ...
/* sslclient.c Example SSL-secure client. SSL-enabled services use the gSOAP SSL interface. See sslclient.c and sslserver.c for example code with instructions and the gSOAP documentation more details. -------------------------------------------------------------------------------- gSOAP XML Web services tools C...
/* * Copyright (C) 2019 Inria * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup tests * @{ * * @file * @brief Sample application for ARM CMSIS-NN packag...
/***************************************************************************** * subtitles.c : subtitles detection ***************************************************************************** * Copyright (C) 2003-2009 VLC authors and VideoLAN * $Id: 8b0952c1a022d2df434734ba9048b3914086b471 $ * * Authors: <NAME> ...
/****************************************************************************** * rc_battery_monitor.c * <NAME> - 2016 * * see README.txt for details *******************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <error.h> #include <unistd.h> #include <...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> #include "Dictionary.h" #include "Processor.h" #include "Number_operations.h" /******************* Function: readfile Input: char* filename, Dictionary* data Operation: converts 'filename' into a Dictionary *****...
#include "../common/pch.h" const unsigned char* print_name(const unsigned char* msg, const unsigned char* p, const unsigned char* end); void print_dns_message(const char* message, int msg_length); int main(int argc, char* argv[]) { if (argc < 3) { printf("Usage:\n\tdns_query hostname type\n"); printf("Example...
#include <u.h> #include <libc.h> #include "map.h" /* * conformal map of earth onto tetrahedron * the stages of mapping are * (a) stereo projection of tetrahedral face onto * isosceles curvilinear triangle with 3 120-degree * angles and one straight side * (b) map of this triangle onto half plane cut alon...
/* * Copyright (c) 2015,2016,2017,2018 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this Apple soft...
/* this code is licensed as public domain */ #include <stdio.h> #include "draw.h" static Mstack *msfree = (Mstack *)NULL; /******************************************************************************/ #ident "@(#)M_DRAW:copyvector - Copy the 4 vector b to a." void draw_copyvector(register Vector a, register Vector...
/* * Copyright (c) 2013-2014 Apple Inc. All Rights Reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * c...
/* * This file is part of the coreboot project. * * Copyright (C) 2008 Advanced Micro Devices, Inc. * * 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; version 2 of the License. * * This ...
#include <SDL.h> #include "gf2d_graphics.h" #include "gf2d_sprite.h" #include "simple_logger.h" #include "entity.h" #include "gf2d_vector.h" #include "player.h" #include "level_build.h" #include "gf2d_draw.h" #include "collision.h" #include "enemy.h" #include "gf2d_gui.h" #include "projectiles.h" #include ...
/* * Phoenix-RTOS * * plo loader * * MPCore exception and interrupt handling * * Copyright 2021 Phoenix Systems * Author: <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "interrupts.h" #include "cpu.h" #include "../hal.h" #include "../types.h" #include "../errors.h" #define MPCOR...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2011, 2010, 2009 University of Chicago Copyright (C) 2008, 2007, 2006, 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it...
/* * 14.9.c -- Colossus Airlines (from exercise 8) acquires a second plane (same * capacity) and expands its service to four flights daily (Flights 102, 311, * 444, and 519). Expand the program to handle four flights. Have a top-level * menu that offers a choice of flights and the option to quit. Selecting a * par...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2015-2016 Freescale Semiconductor, Inc. * Copyright 2017 NXP */ #include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> #include <dm/platform_data/pfe_dm_eth.h> #include <net.h> #include <linux/delay.h> #include <net/pfe_eth/pfe_eth.h> #include <n...
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <arpa/inet.h> #include <sys/select.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <string.h> #include <syslog.h> #include <pthread.h> #include <wiringPi.h>...
#include <Python.h> #include <numpy/arrayobject.h> #include <numpy/npy_math.h> #include <math.h> /* Define docstrings */ static char module_docstring[] = "Helpers for discretizing SPH particles"; static char discretize_sph_docstring[] = "Discretize SPH particles onto given cells"; static char get_positions_widths_docs...
/** * Marvell NFC-over-UART driver * * Copyright (C) 2015, Marvell International Ltd. * * This software file (the "File") is distributed by Marvell International * Ltd. under the terms of the GNU General Public License Version 2, June 1991 * (the "License"). You may use, redistribute and/or modify this File in ...
#include <netinet/tcp.h> #include <string.h> #include "packet_tcp.h" #include "packet_ip.h" #include "tcp_analyzer.h" static struct packet_flags tcp_flags[] = { { "Reserved", 3, NULL }, { "NS: ECN nonce concealment protection", 1, NULL }, { "CWR: Congestion Window Reduced", 1, NULL }, { "ECE: ECN echo"...
/*Copyright (c) 2015, EmbeddedCentric.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
/****************************************************************************** * Copyright 2020 The Firmament Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
// // Binary Star server proof-of-concept implementation. This server does no // real work; it just demonstrates the Binary Star failover model. #include "czmq.h" // States we can be in at any point in time typedef enum { STATE_PRIMARY = 1, // Primary, waiting for peer to connect STATE_BACKUP = 2...
/** * \file mam_netlink.c * */ #include <netlink/netlink.h> #include <netlink/types.h> #include <netlink/genl/genl.h> #include <netlink/genl/ctrl.h> #include "mam.h" #include "mam_util.h" #include "mam_netlink.h" #include "mptcp_netlink_types.h" #include "mptcp_netlink_parser.h" #ifndef MAM_NETLINK_NOISY_DEBUG0 ...
#include "coord_functions.h" void setup_environment() { /* create our directory */ if((mkdir(path, S_IRWXU)) != 0) { perror("coordinator: mkdir problem\n"); exit(EXIT_FAILURE); } } void make_coord_console_pipes() { /* MAKE FIFOS FOR COMMUNICATION WITH JMS-CONSOLE */ /* make jms_in fifo, to read the consol...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <dirent.h> #include <device.h> #include <dio.h> unsigned char info_signature[3] = {3, 21, 63 | 0x80}; dhandle_t dhandle; struct dir_entry_t { struct { unsigned name_length :4; unsigned storage_type :4; } ...
/* ISC license. */ #include <stdint.h> #include <string.h> #include <bearssl.h> #include <skalibs/bytestr.h> #include <skalibs/stralloc.h> #include <skalibs/genalloc.h> #include <skalibs/avltree.h> #include <s6-networking/sbearssl.h> #include "sbearssl-internal.h" #define INSTANCE(c) ((sbearssl_sni_policy_context ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - assemble.c * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2007 <NAME> (Richard42) * * Copyright (C) 200...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include "gr3.h" #include "gr3_internals.h" int gr3_getpovray_(char *pixels, int width, int height, int use_alpha, int ssaa_factor) { int i; #ifdef GR3_USE_WIN char *povfile = malloc(40); char *pngfile = malloc(40); sprintf(povfile,"....
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
#include "dplasma_arena_datatype.h" #include <string.h> static parsec_key_fn_t arena_key_fns = { .key_equal = parsec_hash_table_generic_64bits_key_equal, .key_print = parsec_hash_table_generic_64bits_key_print, .key_hash = parsec_hash_table_generic_64bits_key_hash }; static int dtt_key_equal(parsec_key_t...
/* ----------------------------------------------------------------------------- * * (c) The GHC Team 1998-2000 * * Error Handling implementations for windows * * ---------------------------------------------------------------------------*/ #define UNICODE 1 #include "Rts.h" #include "ghcconfig.h" #include "veh_excn.h"...
/* * usbswitch_fsa9685.c * * usbswitch with fsa9685 driver * * Copyright (c) 2012-2018 Huawei Technologies Co., Ltd. * * 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 th...
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.0.0 * svn version: exported * Options: --check-global -s 1883 * Seed: 1883 */ #include "random_runtime.h" long __undefined; /* --- Struct/Union Declarations --- */ /* --- GLOBAL VARIABLES --- */ int32_t g_3 = 5L; int32_t *g_9[2] = {&g_...
/* Here are all warnings that are send with SP_S_WARNING */ /* HW 93 */ /* ab handleTractorReq socket.c */ #define TEXTE 0 #define PHASER_HIT_TEXT 1 #define BOMB_INEFFECTIVE 2 #define BOMB_TEXT 3 #define BEAMUP_TEXT 4 #define BEAMUP2_TEXT 5 #define BEAMUPSTARBASE_TEXT 6 #define BEAMDOWNSTARBASE_TEXT 7 #define BEAMD...
/* Wrapper around FreeType (http://www.freetype.org/) to allow rendering of freetype-supported fonts on Bitmaps from my bitmap module (as defined in bmp.h) http://www.freetype.org/freetype2/docs/tutorial/step1.html */ #include <stdio.h> #include <ft2build.h> #include FT_FREETYPE_H #include FT_GLYPH_H #if defined(USE...
/* Includes ------------------------------------------------------------------*/ #include "main.h" #include "stdint.h" #include "stdlib.h" #include "string.h" /* Private function prototypes -----------------------------------------------*/ void SystemClock_Config(void); /* USART related functions */ void usart_init(v...
/*D*********************************************************** * Modul: DBI - database action * Kunden * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ #include <mpmain.h> #include <mpprodbi.h> /* Prototypes f�r ANSI-C */ static char rcsi...
#include <ctype.h> #include <intrin.h> #include <math.h> #include <stdbool.h> #include <stdint.h> #include <wincrypt.h> #include <windows.h> static const char base64digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; #define BAD -1 static const char base64val[] = { BAD, BAD, BAD, B...
#include <stddef.h> #include <stdint.h> #include <string.h> #include <arm_neon.h> // Based on // https://mischasan.wordpress.com/2012/02/04/sse2-and-bndm-string-search, but // with code you can actually read. static inline ptrdiff_t bndm (uint8_t const * const needle, size_t const needle_...
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2018 Facebook */ #include <ctype.h> #include <stdio.h> /* for (FILE *) used by json_writer */ #include <string.h> #include <asm/byteorder.h> #include <linux/bitops.h> #include <linux/btf.h> #include <linux/err.h> #include "btf.h" #include "json_writer.h" #include "...