text
stringlengths
5.8k
28.2k
/* t40e.c * * Test sockets * * Select works on regular files, (pseudo) terminal devices, streams-based * files, FIFOs, pipes, and sockets. This test verifies selecting for sockets. * * This test is part of a bigger select test. It expects as argument which sub- * test it is. * * Specific rules for sockets: *...
/* * XDND handler code * * Copyright 2003 <NAME> * * 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 Foundation; either * version 2.1 of the License, or (at your option) any later version. * ...
/* Display information gleaned from a module's .modinfo section. Copyright 1996, 1997 Linux International. Contributed by <NAME> <<EMAIL>> This file is part of the Linux modutils. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
/* Copyright 2013 <NAME> Some of this code is based on Multiwii code by <NAME> (www.multiwii.com) 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 3 of the License, or any later versi...
#include "tm_stm32f4_rng.h" #include "stm32f4xx_conf.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_dac.h" #include "misc.h" #include "stm32f4xx_tim.h" #include <stdbool.h> #include "defines.h" #include "stm32f4xx.h" #include "stm32f4xx_syscfg.h" #include "tm_stm32f4_pcd8544.h" #include ...
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
#include <android/log.h> #include <android/native_window.h> #include <android/native_window_jni.h> #include <gst/gst.h> #include <gst/video/video.h> #include <gst/video/videooverlay.h> #include <jni.h> #include <pthread.h> #include <string.h> GST_DEBUG_CATEGORY_STATIC(debug_category); #define GST_CAT_DEFAUL...
#include <signal.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <stdio.h> #include <stdarg.h> #include <errno.h> // applibs_versions.h defines the API struct versions to use for applibs APIs. #include "applibs_versions.h" #include <applibs/log.h> #include <applibs/networking...
/** * kk_ps2.c: A PS/2 host library for AVR * * The PS/2 CLK pin must be connected to a hardware interrupt pin. The * default is PD2/INT0. * * Copyright (c) 2020 <NAME>, https://arkku.dev/ * Provided with absolutely no warranty, use at your own risk only. * Use and distribute freely, mark modified copies as suc...
#include <stdint.h> #include "aes128e.h" /* File: aes128e.c * Synopsis: AES encryption with 128 bit key * Author: <EMAIL> * Date: 24.11.2014 */ /* Multiplication by two in GF(2^8). Multiplication by three is xtime(a) ^ a */ #define xtime(a) ( ((a) & 0x80) ? (((a) << 1) ^ 0x1b) : ((a) << 1) ) /* The S-box table *...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * test/threads/gss-perf.c * * Copyright (C) 2009 by the Massachusetts Institute of Technology. * All rights reserved. * * Export of this software from the United States of America may * require a specific license from the United States Governme...
#include "ring_buf_priv.h" #include "FreeRTOS.h" #include "stream_buffer.h" #include "cmsis_os.h" #include "common_err.h" #include "stdint.h" #include "task.h" // 方式,将要接收和发送的数据存入环形队列中,然后调用串口进行接收与发送. // 队列中先预装入一些数据,然后慢慢调用取出数据. // 先用随机数产生一堆数据. // 再发送出去. // 用RTOS的流方式就可以了. static uint8_t rxBuff[128]; static RING_BUF...
/// @file /// MEGA65 Video Interface Chip (VIC IV) /// /// https://mega65.org/ /// https://github.com/MEGA65/mega65-core/blob/master/src/vhdl/viciv.vhdl struct MEGA65_VICIV { char SPRITE0_X; char SPRITE0_Y; char SPRITE1_X; char SPRITE1_Y; char SPRITE2_X; char SPRITE2_Y; char SPRITE3_X; char SPRITE3_Y; ...
#include "Matrix.h" float* Matrix_getOneDimensionalArray(Matrix* matrix) { float *a = NULL; a = malloc(16 * sizeof(float)); assert(a); assert(matrix); a[0] = matrix->m[0][0]; a[1] = matrix->m[0][1]; a[2] = matrix->m[0][2]; a[3] = matrix->m[0][3]; a[4] = matrix->m[1][0]; a[5] = m...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <clib.h> #include <shell.h> #include <utils.h> /* Valid command inputs */ static char * command_strings[] = {"help", "date", ...
/* * This file is part of project l3roamd. It's copyrighted by the contributors * recorded in the version control history of the file, available from * its original location https://github.com/freifunk-gluon/l3roamd. * * SPDX-License-Identifier: BSD-2-Clause */ #include "icmp6.h" #include "ipmgr.h" #include "l3ro...
#include "main.h" #include <stdio.h> #include <string.h> #include "MPRLS.h" #include "IIS2MDC.h" #include "BMI088.h" #include "TMP100.h" #include "UBLOX.h" #include "GPSNMEAParser.h" #include "KalmanQuatAtt.h" I2C_HandleTypeDef hi2c1; /* GPS */ I2C_HandleTypeDef hi2c2; I2C_HandleTypeDef hi2c3; UART_HandleTypeDef ...
/* alameda.c Linux kernel JIT spray for SMEP / KERNEXEC bypass by <NAME> http://mainisusuallyafunction.blogspot.com/ Modified for modern kernels by <NAME> <<EMAIL>> Main changes in modification: - Payload is srayed in a loop multiple times for each filer to get over 1 page in s...
/** * \copyright * MIT License * * Copyright (c) 2019 Infineon Technologies AG * * 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 *...
/* * SPDX-License-Identifier: ISC * * Copyright (c) 2022 Codethink */ #include <stdio.h> #include <assert.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include "cmd/cmd.h" #include "msg/msg.h" #include "cmd/private.h" #incl...
/* * Copyright (c) 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * * @(#)kern_exit.c 2.6 (2.11BSD) 2000/2/20 */ #include <sys/cdefs.h> #include <sys/param.h> #include <sys/systm.h> #include <...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
#include <stdint.h> #include <stdbool.h> #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/gpio.h" #include "driverlib/pin_map.h" #include "driverlib/rom.h" #include "driverlib/rom_map.h" #include "driverlib/sysctl.h" #include "FreeRTOS.h" #include "task.h" // Adições necessári...
/***************************************************************************/ /* */ /* mrubot.c - mruby testing */ /* Copyright (C) 2015 <NAME> */ /* paolo[dot]bo...
/* * Copyright © 2004 PillowElephantBadgerBankPond * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permissio...
// This file is Copyright (c) 2013-2014 <NAME> <<EMAIL>> // This file is Copyright (c) 2014-2019 <NAME> <<EMAIL>> // This file is Copyright (c) 2018 <NAME> <<EMAIL>> // This file is Copyright (c) 2018 <NAME> <<EMAIL>> // This file is Copyright (c) 2019 <NAME> <<EMAIL>> // This file is Copyright (c) 2017 Tim 'mithro' An...
#include <gtk/gtk.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netdb.h> #include <ifaddrs.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <linux/if_link.h> #include "main.c" #define _GNU_SOURCE /* To get defns of NI_MAXSERV and NI_MAXHOST */ // static GtkWidget * create_row (...
/* * Copyright 2004-2007, Haiku, Inc. All RightsReserved. * Copyright 2002/03, <NAME>. All rights reserved. * * Distributed under the terms of the MIT License. */ /* Part of Open IDE bus manager Converts SCSI commands to ATA commands. */ #include "ide_internal.h" #include "ide_sim.h" #include "ide_cmds.h" #...
/* * Copyright (c) 2016-2017 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) // provi...
//------------------------------------------------------------------------- /* Copyright (C) 1996, 2005 - 3D Realms Entertainment This file is NOT part of Shadow Warrior version 1.2 However, it is either an older version of a file that is, or is some test code written during the development of Shadow Warrior. This fil...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #include <inttypes.h> #include <getopt.h> #include <stdbool.h> #include <ctype.h> #include "decrypt_impl.h" #include "extract_fwimage.h" #include "extract_b...
#include "l.h" void span(void) { Prog *p; Sym *setext; Optab *o; int m; long c; if(debug['v']) Bprint(&bso, "%5.2f span\n", cputime()); Bflush(&bso); c = INITTEXT; for(p = firstp; p != P; p = p->link) { p->pc = c; o = oplook(p); m = o->size; if(m == 0) { if(p->as == ATEXT) { curtext = p; ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
/* This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2013. Authors: <NAME>, <NAME>, <NAME>, <NAME> */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <assert.h> #include "otf.h" #include "vtf3.h" #include "Treehash.h" #include "Handler.h" #ifdef __GNUC__ #else /* ...
/* * Copyright (c) 2018 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <shell/shell.h> #include "shell_utils.h" #include "shell_help.h" #include "shell_ops.h" #include "shell_vt100.h" #define SHELL_MSG_CMD_NOT_SUPPORTED "Command not supported.\n" #define SHELL_HELP_CLEAR "Clear scree...
#pragma once #include <stdbool.h> #include <stdint.h> #include "app.h" #include "stack/ble/ble.h" extern uint8_t ota_is_working; extern uint8_t ble_connected; // bit 0 - connected, bit 1 - conn_param_update, bit 2 - paring success, bit 7 - reset device on disconnect extern uint8_t adv_mi_count; extern bool show_temp_...
//============================================================================ // Author : <NAME>, Nov 17 2018, <EMAIL> // Copyright : You are free to do anything about it // Description : This is a pure C version of Dr. <NAME>'s C# imple- // mentation. His original C# code is at: // ...
/* Test Bench for Hthreads Bootup Modified from original file CoreTest.c */ #include <stdio.h> #include "xparameters.h" #define NUM_TRIALS 1 // ******************************************************* // Hard-coded Address Definitions // ******************************************************* #define M...
/* * Copyright (c) 2010 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributin...
/* * OpenBOR - http://www.LavaLit.com * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2011 OpenBOR Team */ #include <unistd.h> #include <SDL/SDL.h> #include "sdlport.h" #include "video.h...
/***************************************************************************/ /* */ /* afloader.c */ /* */ /* Au...
/* * Copyright (c) 2014, Ericsson AB. 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 a...
/* $FreeBSD: src/sys/ia64/ia64/ia64-gdbstub.c,v 1.4 2002/03/19 11:06:01 peter Exp $ */ /**************************************************************************** THIS SOFTWARE IS NOT COPYRIGHTED HP offers the following for use in the public domain. HP makes no warranty with regard to the software or its p...
#include <math.h> #include "inputFuncs.h" #include "inputKeys.h" #include "resourceBindings.h" #include "sage.h" #include "transformObjects.h" #define NUMOF(arr) (sizeof(arr) / sizeof((arr)[0])) int main() { // Testing SgFile contextConfigFile; const char* contextConfigFilePath = "cfg/contexts.json"; sgOpen...
/* * author : wangbojing * email : <EMAIL> * 测试操作系统的并发量 */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/epoll.h> #include <sys/poll.h> #include <errno.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <netdb.h> #include <fcn...
/* * rtp_decoder.c * * decoder structures and functions for SRTP pcap decoder * * Example: * $ wget --no-check-certificate https://raw.githubusercontent.com/gteissier/srtp-decrypt/master/marseillaise-srtp.pcap * $ ./test/rtp_decoder -a -t 0 -e 128 -b aSBrbm93IGFsbCB5b3VyIGxpdHRsZSBzZWNyZXRz \ * < ~/marseilla...
/* astrometry.c : misc astrometry/trigonometry utilities (<EMAIL>) */ /* for the Hungarian Automatic Telescope Project */ #include "astrometry.h" #include "mmath.h" #include "astromath.h" #include <math.h> #include <string.h> /* arc projection (input output in radians) */ void astr_arc(real ra, real dec, real rac,...
#include <memory.h> #include <string.h> #include <sys/socket.h> #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include "libp2p/net/stream.h" #include "libp2p/os/timespec.h" #include "libp2p/yamux/session.h" #include "libp2p/yamux/stream.h" #include "libp2p/yamux/yamux.h" #include "libp2p...
/*Copyright (C) 2008-2009 <NAME> (<EMAIL>) You can redistribute this library and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.*/ #include <stdio.h> #include <stdlib...
/* * bladenc.c * for Windows bladenc-style DLLs */ /* * Copyright (c) 2001 by <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/lic...
#include "l.h" void pagebug(Prog *p) { Prog *q; switch(p->as) { case ABGEZAL: case ABLTZAL: case AJAL: case ABEQ: case ABGEZ: case ABGTZ: case ABLEZ: case ABLTZ: case ABNE: case ABFPT: case ABFPF: case AJMP: q = prg(); *q = *p; p->link = q; p->as = ANOR; p->optab = 0; p->from = zprg.from; ...
/* $OpenBSD: frodo.c,v 1.13 2010/09/20 06:33:47 matthew Exp $ */ /* $NetBSD: frodo.c,v 1.5 1999/07/31 21:15:20 thorpej Exp $ */ /*- * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Red...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2017 The University of Tennessee and The University * of Tennessee Resea...
// SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later /* * Copyright (C) 2019 <NAME> <<EMAIL>> * Copyright (C) 2019 SUSE LLC * * This work is dual licensed under the following licenses. You may use, * redistribute, and/or modify the work under the conditions of either (or * both) licenses. * * === Apache-...
/* * Copyright (C) 2015 Broadcom Corporation * * 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. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any * kind, whether expre...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
#include <sys/types.h> #include <ubixos/sched.h> #include <ubixos/ubthread.h> #include <ubixos/kpanic.h> #include <lib/kprintf.h> #include <lib/kmalloc.h> #include <sys/sysproto_posix.h> #include <sys/descrip.h> #include "net/debug.h" #include "net/sys.h" #include "net/opt.h" #include "net/stats.h" #include <net/arch/...
/*************************************************************************** * * * LIBDSK: General floppy and diskimage access library * * Copyright (C) 2001,2017 <NAME> <<EMAIL>> * * ...
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #pragma once // clang-format off // This header contains the bytecode definition for Luau interpreter // Creating the bytecode is outside the scope of this file and is handled by bytecode builder (Byte...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* regClusterTreeCells - Create a binary tree of cell types based on hierarchical clustering (Eisen style) of expression data.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "localmem.h" #include "bedGraph.h" #include "hmmstats.h" #include "obscure.h" void usage() /* Exp...
/* * SCCn ethernet */ #include "u.h" #include "lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "etherif.h" enum { Nrdre = 32, /* receive descriptor ring entries */ Ntdre = 4, /* transmit descriptor ring entries */ Rbsize = ETHERMAXTU+4, /* ring buffer size (+4 for CRC) */...
/** * \file target.c * \brief Targetting code * * Copyright (c) 1997-2007 Angband contributors * * This work is free software; you can redistribute it and/or modify it * under the terms of either: * * a) the GNU General Public License as published by the Free Software * Foundation, version 2, or * * b) t...
#include "../include/siphon/uri.h" #include "../include/siphon/error.h" #include "../include/siphon/fmt.h" #include "../include/siphon/path.h" #include "../include/siphon/utf8.h" #include "pcmp/set16.h" #include <assert.h> #include <stdlib.h> ssize_t sp_uri_copy(SpUri *dst, char *dstbuf, size_t dstlen, const SpUri *...
/***************************************************************************** FILE: easytest.cpp AUTHOR: <NAME> REVISED: 5/13/2002 (PSH); 4/10/2003 (GBM) Recised by Qiao Li to processing MIMICII database called by mimic2_all.c (see mimic2_all.c for more information) Last revised: 02/20/2007 ________________...
/**************************************************************/ /* Modul: editiere eine beliebige Datei * /* */ /* Uebergabe: Toplevel Widget */ /* Bitmap File / Bitmap Buffer ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* * Copyright © 2012 <NAME> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that copyright * notice and this permission notice appear in sup...
/* * RFC 1321 compliant MD5 implementation * * Copyright (C) 2001-2003 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any...
#include "drm.h" #include <errno.h> #include <fcntl.h> #include <inttypes.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <drm.h> #include <drm_mode.h> #include <drm_fourcc.h> #include <gbm.h> #include <xf86drm.h> #include <xf86drmMode.h> #include "util.h"...
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. */ #include <linux/completion.h> #include <linux/circ_buf.h> #include <linux/list.h> #include "a6xx_gmu.h" #include "a6xx_gmu.xml.h" #define HFI_MSG_ID(val) [val] = #val static const char * const a6xx_hfi_msg_i...
/* Copyright 2019 NXP * * This software is owned or controlled by NXP and may only be used * strictly in accordance with the applicable license terms. By expressly * accepting such terms or by downloading, installing, activating and/or * otherwise using the software, you are agreeing that you have read, and * th...
/* Copyright (c) 2013 <NAME>. Small test & bench for PFFFT, comparing its performance with the scalar FFTPACK, FFTW, and Apple vDSP How to build: on linux, with fftw3: gcc -o test_pffft -DHAVE_FFTW -msse -mfpmath=sse -O3 -Wall -W pffft.c test_pffft.c fftpack.c -L/usr/local/lib -I/usr/local/include/ -lfftw...
/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hop...
/* $OpenBSD: bpf.c,v 1.20 2007/01/08 02:51:13 krw Exp $ */ /* $DragonFly: src/sbin/dhclient/bpf.c,v 1.2 2008/11/05 14:08:41 sephe Exp $ */ /* BPF socket interface code, originally contributed by <NAME>. */ /* * Copyright (c) 1995, 1996, 1998, 1999 * The Internet Software Consortium. All rights reserved. * * Re...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> #include "dhcp.h" #include "config.h" #ifndef DEFAULT_LEASETIME #define DEFAULT_LEASETIME 3600 /* 1 hour */ #endif #define REQUEST (1 << 0) #define UINT8 (1 << 1) #define UINT16 (1 << 2) #define SINT1...
/* * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application * Copyright (C) 2005-2014, <NAME> <<EMAIL>> * * Version: MPL 1.1 * * 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 Lic...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* * CDDL HEADER START * * This file and its contents are supplied under the terms of the * Common Development and Distribution License ("CDDL"), version 1.0. * You may only use this file in accordance with the terms of version * 1.0 of the CDDL. * * A full copy of the text of the CDDL should have accompanied t...
/** db_persist.c * * This file contains functions to load the databse catalogue if it exists **/ #include "db_persist.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unis...
/* * ***** BEGIN LICENSE BLOCK ***** Copyright (C) 2009-2016 <NAME> and <NAME> Copyright (C) 2017-2019 <NAME> Copyright (C) 2020 <NAME> and Rubicon Communications, LLC(Netgate) This file is part of CLIXON. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file excep...
#include <math.h> #include <stdio.h> #include "forge.h" #include "imagine.h" typedef unsigned long long uint64; typedef struct{ uint cluster; uint allocation; uint user; }KAddress; #define KEEP_CLUSTER_MAX_SIZE (1024 * 1024) #define KEEP_CLUSTER_MIN_SIZE (1024 * 512) #define KEEP_CLUSTER_ADD (1024 * 64) #define K...
/* * $Id: spm_voronoi.c 7532 2019-02-14 12:03:24Z guillaume $ * <NAME> */ #include <math.h> #include <string.h> #include "mex.h" /* 3D Point Structure */ typedef struct { int x; int y; int z; } point3d; /* Chamfer Mask Structure */ typedef struct { int x; int y; int z; double v; } mask...
/* * Printer status, Ink-level and paper status related functions for the * bjnp backend for the Common UNIX Printing System (CUPS). * Copyright 2014 by <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre...
/* * mm.c * * Name: <NAME> * userID: <EMAIL> * * Description: * * The strategy is best fit. * Use splay tree and lists to maintain the free blocks. * * Block addresses start at (8x - 4) * * || -> 8x (ALIGNED) * | -> 8x - 4 * * Free block size >= 88 (in splay tree): * | 4 || 4 | 4 || 4 ...
/******************************************************************************* * Copyright (c) 1991, 2018 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at https://w...
/* C O N S T A N T E X P R E S S I O N H A N D L I N G */ #include <stdlib.h> #include <string.h> #include "parameters.h" #include "debug.h" #include <ack_string.h> #include <alloc.h> #include <assert.h> #include <em_arith.h> #include <em_label.h> #include "LLlex.h" #include "Lpars.h" #include "const.h"...
#include <cstreamgeo/cstreamgeo.h> #include <cstreamgeo/stridedmask.h> #include <cstreamgeo/utilc.h> #include <limits.h> #include <float.h> #include <math.h> #include <stdio.h> #include <immintrin.h> #include <stdbool.h> #include <string.h> #include <cstreamgeo/io.h> #define PI 3.1415926535f typedef struct { floa...
// Copyright 2020 <NAME>. All rights reserved. // SPDX-License-Identifier: BSD-2-Clause // #define WIN32_MEMORY_LEAK_DETECTION #ifdef WIN32_MEMORY_LEAK_DETECTION #define _CRTDBG_MAP_ALLOC #include <crtdbg.h> #endif #include "avif/avif.h" #include "testcase.h" #include <inttypes.h> #include <stdio.h> #include <stdli...
// SPDX-License-Identifier: GPL-2.0 /* * Hardware monitoring driver for Maxim MAX16508 and MAX16601. * * Implementation notes: * * This chip series supports two rails, VCORE and VSA. Telemetry information * for the two rails is reported in two subsequent I2C addresses. The driver * instantiates a dummy I2C clien...
/* * Copyright (c) 1987 Fujitsu * * 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, di...
/* Copyright (c) 2006, 2007 <NAME> <<EMAIL>> License: GPL v2 or any later See COPYING for the status of this software. */ #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/socket.h> #include <poll.h> #include <netinet/icmp6.h> #include <netinet/ip_icmp.h> #include <netinet/i...
#include "fitz.h" #include "mupdf.h" struct info { fz_obj *resources; fz_obj *mediabox; fz_obj *cropbox; fz_obj *rotate; }; static void put_marker_bool(fz_context *ctx, fz_obj *rdb, char *marker, int val) { fz_obj *tmp; tmp = fz_new_bool(ctx, val); fz_try(ctx) { fz_dict_puts(rdb, marker, tmp); } fz_catch...
/* * APRS.c * * Created on: Jul 15, 2020 * Author: matthewtran */ #include "APRS.h" const uint16_t APRS_CCITT_LOOKUP[256] = { 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf, 0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7, 0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYIN...
/** * @file interface.c * @brief interface probe * @author "<NAME>" <<EMAIL>> * @author "<NAME>" <<EMAIL>> * * 2010/06/13 <EMAIL> * This probe is able to process an interface_object as defined in OVAL 5.4 and 5.5. * */ /* * Copyright 2009,2010 Red Hat Inc., Durham, North Carolina. * All Rights Reserved....
#include "main.h" #include "dev_gt911.h" //GT911配置参数表 //配置文件的版本号(新下发的配置版本号大于原版本,或等于原版本号但配置内容有变化时保存, //版本号版本正常范围:'A'~'Z',发送 0x00 则将版本号初始化为'A') const uint8_t GT911_CfgTab[] = { 0x41,0xE0,0x01,0x10,0x01,0x0A,0x0D,0x00, 0x01,0x08,0x28,0x05,0x50,0x32,0x03,0x05, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, ...
/* * Copyright (C) 2001 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * The nettle library is dis...
/****************************************************************************** * Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited * and/or its subsidiaries. * * This program is the proprietary software of Broadcom and/or its licensors, * and may only be used, duplicated, modified or...