text
stringlengths
3.12k
18.7k
/* * Central Regulatory Domain Agent for Linux * * Userspace helper which sends regulatory domains to Linux via nl80211 */ #include <errno.h> #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <arpa/inet.h> #include <netlink/genl/genl.h> #include <netlink/genl/family.h> #in...
#include "contribox.h" void clearThenFree(void *p, size_t len) { if (p) { memset(p, '\0', len); free(p); p = NULL; } } void freeTxInfo(struct txInfo **initialInput) { struct txInfo *temp; struct txInfo *to_clear; if (!initialInput || !*initialInput) { return;...
/* C preprocessor macro expansion commands for GDB. Copyright (C) 2002, 2007, 2008 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published...
/** * VampirTrace * http://www.tu-dresden.de/zih/vampirtrace * * Copyright (c) 2005-2013, ZIH, TU Dresden, Federal Republic of Germany * * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing * Centre, Federal Republic of Germany * * See the file COPYING in the pa...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <sys/stat.h> #include <err.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <gdk/gdk.h> #include <gtk/gtk.h> #include <gio/gio.h> #include "compat.h" #include "drop.h" #include "state.h" #include "store.h" #include "extern.h" static cha...
/** ****************************************************************************** * @file animation_app.c * @author MCD Application Team * @brief This file provides main GUI application program functions ****************************************************************************** * @attention * ...
/* * Copyright 1995-2017 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...
//Game of Life //<NAME> //use this line to compile me: //gcc main.c threadlife.c graphics.c lifegraphics.c loadfile.c dirtyregion.c stack.c vector3.c binary.c input.c -o gameoflife -std=c99 -Wall -Wextra -pedantic -g -D_GNU_SOURCE -I/usr/local/include/SDL2 -lSDL2 -I/usr/include/GL -lGL -lGLEW -lm #include <ctype.h> #in...
/** * Copyright (c) 2017 <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, di...
/* * * Copyright (C) 2011, 2015 Cisco Systems, Inc. * Copyright (C) 2015 CBA research group, Technical University of Catalonia. * * 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: * * ...
#define SMBUS_IO_BASE 0xf00 #define SMBHSTSTAT 0x0 #define SMBSLVSTAT 0x1 #define SMBHSTCTL 0x2 #define SMBHSTCMD 0x3 #define SMBXMITADD 0x4 #define SMBHSTDAT0 0x5 #define SMBHSTDAT1 0x6 #define SMBBLKDAT 0x7 #define SMBSLVCTL 0x8 #define SMBTRNSADD 0x9 #define SMBSLVDATA 0xa #define SMLINK_PIN_CTL 0xe #define SMB...
/* * @Author: kingofwolf * @Date: 2019-03-05 15:23:34 * @Last Modified by: kingofwolf * @Last Modified time: 2019-03-09 15:52:00 */ #include <stdlib.h> #include <string.h> #include <strings.h> #include <stdint.h> #include <stdio.h> #include "tm_MALLOC.h" #include "UTHash.h" #define N 624 #define M 397 #define MATR...
/* * Copyright (c) 2014, Texas Instruments Incorporated - http://www.ti.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: * 1. Redistributions of source code must retain the above copy...
/* $NetBSD: le_poll.c,v 1.1.1.1 1995/07/25 23:12:31 chuck Exp $ */ /* * Copyright (c) 1993 <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...
/** ******************************************************************************* * @file rtc.c * @brief Implementation of a Rtc driver * @internal * @author ON Semiconductor * $Rev: 3525 $ * $Date: 2015-07-20 15:24:25 +0530 (Mon, 20 Jul 2015) $ ************************************************************...
// SPDX-License-Identifier: GPL-2.0+ /* * ipmi_si_hotmod.c * * Handling for dynamically adding/removing IPMI devices through * a module parameter (and thus sysfs). */ #include <linux/moduleparam.h> #include <linux/ipmi.h> #include "ipmi_si.h" #define PFX "ipmi_hotmod: " static int hotmod_handler(const char *val,...
/* * Copyright (c) 2013, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/ * All rights reserved. */ /* * This file is licensed according to the BSD 3-clause license as follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
#include "satisfaction75.h" #include "micro_oled.h" __attribute__ ((weak)) void draw_ui() { #ifdef QWIIC_MICRO_OLED_ENABLE clear_buffer(); last_flush = timer_read(); send_command(DISPLAYON); if(clock_set_mode){ draw_clock(); return; } switch (oled_mode){ default: case OLED_DEFAULT: dr...
/* * Copyright (c) 2013-2015 Intel Corporation. All rights reserved. * * This software is available to you under the BSD license * below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * ...
#include <allegro5/allegro_image.h> #include <math.h> #include "main.h" #include "spaceship.h" #include "blast.h" #include "debug.h" static inline void _AccelerateSpaceship(Spaceship*); static inline void _DecelerateSpaceship(Spaceship*); static inline void _DriftSpaceship(Spaceship*); static inline void _RotateSpaces...
// // File: %reb-gob.h // Summary: "Graphical compositing objects" // Project: "Rebol 3 Interpreter and Run-time (Ren-C branch)" // Homepage: https://github.com/metaeducation/ren-c/ // //=////////////////////////////////////////////////////////////////////////=// // // Copyright 2012 REBOL Technologies // Copyright...
// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2013 * <NAME>, DENX Software Engineering, <EMAIL>. * * Based on: * Copyright (c) 2011 IDS GmbH, Germany * ids8313.c - ids8313 board support. * * <NAME> <<EMAIL>> * Based on board/freescale/mpc8313erdb/mpc8313erdb.c */ #include <common.h> #include <fdt_s...
// // Created by root on 12/26/17. // #include <sys/socket.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <netinet/in.h> #include <unistd.h> #include <fcntl.h> #define HEAD_LEN 8 //消息头长度固定为8个字节 #define BUFLEN 4096 #define FCGI_VERSION_1 ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2019 ST...
/* * Copyright (c) 2005 Topspin Communications. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this s...
#include <hthread.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <util/rops.h> #define HWTI_ZERO_BASEADDR (void*)(0x63000000) #define HWTI_ONE_BASEADDR (void*)(0x63010000) typedef struct { int opcode; int result; int args[ 5 ]; } rpc_t; struct argument { hthread_attr_t * attribute; void ...
/* cknr01.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__6 = 6; /* $Procedure CKNR01 ( C-kernel, number of records, type 01 ) */ ...
/* Modified (July 2010) by <NAME> and <NAME> (applying the SHAvite-3 tweak) from: */ /* Modified (June 2009) from: */ /*********************************************************************/ /* */ /* ...
/* Microsoft Reference Implementation for TPM 2.0 * * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and * contributor rights, including patent rights, and no such rights are granted * under this license. ...
/* * File: gws.h * * Client-side library for Gramado Window Server. * * History: * 2020 - Created by <NAME>. */ // ======================================= // Protocol request constants // // #todo: // Create a consistent interface. // See: xxxHandleNextClientRequest() and gwsProcedure on aurora/se...
/* -*- mode:C; c-file-style: "bsd" -*- */ /* * Copyright (c) 2013 Yubico 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: * * * Redistributions of source code must retain the above...
/* * Copyright (c) 2019, Hasso-Plattner-Institut. * 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 li...
#ifndef lint static const char RCSid[] = "$Id: pmapdump.c,v 2.18 2021/02/18 17:08:50 rschregle Exp $"; #endif /* ====================================================================== Dump photon maps as RADIANCE scene description or ASCII point list to stdout <NAME> (<EMAIL>, gmail.com}) (c) Fraunhof...
/* * Copyright © 2011-2021 Inria. All rights reserved. * See COPYING in top-level directory. */ #include "hwloc.h" #include "hwloc/shmem.h" #include "private/misc.h" /* for hwloc_getpagesize() */ #include <stdlib.h> #include <fcntl.h> #include <stdio.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include <sy...
#include "unit.h" #include "uri/uri.h" #include <string.h> int test(const char *s, const char *scheme, const char *login, const char *password, const char *host, const char *service, const char *path, const char *query, const char *fragment, int host_hint) { plan(19); struct uri uri; is(uri_parse(&uri, s...
// // Copyright (c) 2017 The Khronos Group Inc. // // 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 la...
/* * Copyright (C) 2008 The Android Open Source Project * * 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 ap...
/* Miscellaneous summary statistics calculated for HMMs and profiles. */ #include "p7_config.h" #include "easel.h" #include "esl_random.h" #include "esl_vectorops.h" #include "base/p7_bg.h" #include "base/p7_hmm.h" #include "base/p7_hmmwindow.h" #include "build/modelstats.h" /* Function: p7_MeanMatchInfo() * I...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* draw_inclined_wall_floor_ceil.c :+: :+: :+: ...
/** * || ____ _ __ * +------+ / __ )(_) /_______________ _____ ___ * | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ * +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ * || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ * * Crazyflie control firmwa...
/* * Mainly by <NAME>, somewhat modified by <NAME> * * Copyright © 2006-2007 Red Hat, Inc. * Copyright © 2006-2007 Advanced Micro Devices, Inc. * Copyright © 2009 VIA Technology, Inc. * Copyright (c) 2010 <NAME> <<EMAIL>> * * This program is free software. You can redistribute it and/or * modify it u...
// Copyright 2017 The Australian National University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
#include <stdio.h> #include <stdlib.h> #include "assert.h" #include "rtcli/base-types.h" #include "rtcli/cil/opcode.h" #include "rtcli/metadata/class.h" #include "rtcli/vm/object.h" #include "rtcli/metadata/method.h" #include "rtcli/metadata/module.h" #include "rtcli/vm/gc.h" #include "rtcli/vm/interpreter/interpreter....
/* * hostapd / Client taxonomy * Copyright (c) 2015 Google, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. * * Parse a series of IEs, as in Probe Request or (Re)Association Request frames, * and render them to a descriptive string. The tag number of ...
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - <NAME> * Copyright (C) 2011-2017 - <NAME> * Copyright (C) 2019-2020 - <NAME> * * RetroArch 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 Foun...
/* * history.c * * Created on: 09.10.2017 * Author: kurt */ #include <main.h> void hist_drawcoord(); void hist_hilfslinien(); char *hist_Ylabel(int v); void hist_drawvalues(uint16_t *arr, uint16_t rgb); // die Screen Koordinaten den Datenfläche // die Beschriftungen gehen darüber hinaus #define hist_left ...
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
/* * SocialLedge.com - Copyright (C) 2013 * * This file is part of free software framework for embedded processors. * You can use it and/or distribute it as long as this copyright header * remains unmodified. The code is free for personal use and requires * permission to use in a commercial p...
/** * Make a switch statement on strings. * * Usage example: * cswitch strvbl -x fnlist.txt -case-pfx 'fn = testfn_' -o switch.c * * Then you can #include "switch.c" from within a function to effectvely * have a switch statement like: * switch (strvbl) { * case "line1txt": fn = testfn_line1txt; break; ...
/* Copyright (c) 2003-2015, <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 code must retain the above copyright notice, this lis...
// Copyright 2018 Minim Inc // // 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 wr...
/* * Cryo Interactive Entertainment HNM4 demuxer * * Copyright (c) 2012 <NAME> * * This file is part of FFmpeg . * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2....
/* $OpenBSD: cgtwelvereg.h,v 1.2 2006/07/20 11:23:49 martin Exp $ */ /* * Copyright (c) 2002 <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 mus...
/**************************************************************************** * arch/arm/src/stm32/stm32_timerisr.c * * Copyright (c) 2014-2015 Google, Inc. * Copyright (C) 2009 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without *...
/* The MIT License (MIT) Copyright (c) 2016-2017 <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, p...
/** * Copyright 2012 Rackspace * * 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 w...
/* * Xpost - a Level-2 Postscript interpreter * Copyright (C) 2013, <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: * * - Redistributions of source code must retain the above copyri...
/* Copyright (c) 2021 <NAME>. See the COPYRIGHT file at the top-level directory of this distribution. Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. T...
/* hash.c April 2012 * Groestl ANSI C code optimized for size on 32-bit architectures * Authors: <NAME> * */ #include "hash.h" #include "tables.h" #define COLWORDS (STATEWORDS/8) #define BYTESLICE(i) (((i)%8)*STATECOLS+(i)/8) #if CRYPTO_BYTES<=32 static const u32 columnconstant[2] = { 0x302010...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "database.h" #include "errorChecking.h" int bloomSize; // contains the size of every bloom filter that the user gave int main(int argc, char *argv[]){ if(argc<5){ printf("Wrong input\n"); return -1; } char *fileName; //sto...
#include <jni.h> #include <android/log.h> #include <stdint.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <GLES2/gl2.h> #include "debug.h" #include "native_main.h" #include "engine.h" #include "matrix.h" #include "shaders.h" #include "gamearea.h" #include "player.h" #include "object.h" #incl...
/* * 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...
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kthread.h> #include <linux/sched/signal.h> #include <linux/tcp.h> #include "http_parser.h" #include "http_server.h" #include "bignum.h" #define CRLF "\r\n" #define HTTP_RESPONSE_200_DUMMY \ "" ...
/* * Copyright (c) 2003, 2007-14 <NAME> * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology * * 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 Licens...
/* hgJaxQtl - generate the bed file for jaxQTL3 table using the mySQL table jaxQtlRaw as input. */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "hCommon.h" #include "hdb.h" void usage() /* Explai...
#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...
/* confdefs.h */ #define GAI_STRERROR_CONST 1 #define HAVE_TYPE_STRUCT_ADDRINFO 1 #define HAVE_CONST_AF_INET 1 #define HAVE_CONST_PF_INET6 1 #define HAVE_CONST_TCP_MAXSEG 1 #define HAVE_CONST_SOCK_STREAM 1 #define HAVE_CONST_AI_PASSIVE 1 #define HAVE_CONST_IPPROTO_TCP 1 #define HAVE_CONST_IPPROTO_EGP 1 #define HAVE_C...
/* pairs.c is part of the NUPACK software suite Copyright (c) 2007 Caltech. All rights reserved. Coded by: <NAME>, 6/2006 and <NAME> 1/2007 This program will print out the pair probabilities for every pair of bases in a nucleic acid ordered complex. In addition, for a sequence of length ...
/**************************************************************************** Copyright (c) 2015-2017 dpull.com http://www.dpull.com 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 res...
/** * @file src/include/GFraMe_int/gfmInput.h * * Generic input interface; Acts as frontend for the gfmEvent backend; It's used * by creating virtual keys, which can be bind to multiple physical keys/buttons * at once. If a key bound to a virtual key is pressed, this virtual key is * guaranteed to keep a "just ...
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.0.0 * svn version: exported * Options: --check-global -s 219 * Seed: 219 */ #include "random_runtime.h" long __undefined; /* --- Struct/Union Declarations --- */ /* --- GLOBAL VARIABLES --- */ volatile uint8_t g_5 = 0x8AL;/* VOLATILE ...
/* Common header files ********************************************************/ #include "scrubber~common.h" /* The common 'new instance' routine ******************************************/ void *scrubber_common_new(t_scrubber *x, short argc, t_atom *argv) { #ifdef TARGET_IS_MAX /* Create inlets */ dsp_setup(...
#include "module.h" #include "lauxlib.h" #include "lextra.h" #include "lmem.h" #include "driver/i2c.h" #include "i2c_common.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "esp_task.h" #include "task/task.h" #include <string.h> #define DEFAULT_BUF_LEN 128 #define...
#pragma once #define SET_FIELD_CONFIGURATIONS_GRID_METHODS(pyFieldType) \ .def("set", &pyFieldType::setFieldConfiguration<NullField>, \ py::arg("field_configuration")) \ .def("set", &pyFieldType::setFieldConfiguration<TightFocusingField>, \ ...
/* ******************************************************************************** ** ** (C) 2020 <NAME> <<EMAIL>> ** ** This code is licensed under the MIT. ** ******************************************************************************** */ #include "cli.h" #include "stm32f10x_conf.h" #include "FreeRTOS.h" #inc...
/* * Copyright (c) 2012 <NAME> <sasha at aftercode.net> * * 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. * * Th...
#include <pcg_basic.h> #include <daryheap.h> // calculates distance between nodes (of any dimension) float dist(Node* node1, Node* node2) { float dim1 = pow(node1->x1 - node2->x1, 2); float dim2 = pow(node1->x2 - node2->x2, 2); float dim3 = pow(node1->x3 - node2->x3, 2); float dim4 = pow(node1->x4 - ...
/* * "Copyright (c) 2010-2012 The Regents of the University of Michigan. * 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 ab...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <curl/curl.h> //#include <json-c/json.h> //#include <json-c/json_object.h> //#include <json-c/json_tokener.h> //#include <json-c/json_util.h> // json_object_from_file() ... #include "jsmn.h" // gcc weather.c -lcurl -ljson-c -o weather size_t write_dat...
#include "gdb_stub.h" #include "keypad.h" #include "led.h" #include "lib.h" #include "serial.h" #include "syscon.h" #include "drawing.h" uint32_t gdb_regs[16]; void gdb_read_hex(void *addr, char *buffer, int len) { uint8_t *ptr = addr; for (int i = 0; i < len; i++) { uint8_t data = *ptr++; byte2hex(data, buf...
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define import_spp #define import_knames #include <iraf.h> #include "../bootProto.h" #define MAXEXTN 128 char *only[MAXEXTN]; /* delete files with these extensions */ cha...
/****************************************************************************** * util.h * * Is included in the .test.c drivers. * Search for "default" to find where the default values for command-line options * are set. * * Also includes the various max, min, and floord definitions we need for iscc-generated co...
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 1995 <NAME> <<EMAIL>>, Espoo, Finland * All rights reserved * Password authentication. This file contains the functions to check whether * the password is valid for the user. * * As far as I am concerned, the code I have written for this software ...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) Wipro Technologies Ltd, 2002. All Rights Reserved. * * 1) prctl() fails with EINVAL when an invalid value is given for option * 2) prctl() fails with EINVAL when option is PR_SET_PDEATHSIG & arg2 is * not zero or a valid signal number. * 3) prctl() ...
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
#ifndef lint static const char RCSid[] = "$Id: ra_pict.c,v 2.12 2019/07/19 17:37:56 greg Exp $"; #endif /* Convert an Radiance image to APPLE pict format. * * Orginally Iris to PICT by <NAME> - 1990 * Hacked into Rad to PICT by Russell Street 1990 * * History: * V 1 -- Does basic conversion * V 1....
/* * Example of setting up a peripheral I2C device * * I use this to talk to a Wemos D1 (ESP8266 board), more like it talks to * me and then I tell it I have something to say and it asks me to pass * that info along. * * BSD 2-Clause License * * Copyright (C) 2013-2020 <NAME> <<EMAIL>> * All rights reserved....
/* * FB driver for the ILI9320 LCD Controller * * Copyright (C) 2013 <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 l...
#include "lib4.h" #include "sensing.h" #include "driving.h" #include "oi.h" #include "fixedqueue.h" #include "irobserial.h" #include "irchar.h" #include "irobled.h" #define PID_DT (IROB_PERIOD_MS) #define PRED (irPrevRegion() & IR_MASK_RED_BUOY) #define PGREEN (irPrevRegion() & IR_MASK_GREEN_BUOY) #define PFIELD...
/* Copyright (c) 2001, Stanford University * All rights reserved * * See the file LICENSE.txt for information on redistributing this software. */ #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <sys/stat.h> #ifdef WINDOWS #include <io.h> #else #include <unistd.h> #endif #include "cr_error.h" #...
/* * 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 "external-agent.h" #include "logging.h" #include "lock-tracking.h" #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <ccan/err/err.h> #include <fcntl.h> #include <stdlib.h> #include <limits.h> #include <string.h> #include <errno.h> #include "tap-interface.h" #include <stdio.h> #include ...
/* * Copyright (c) 2013 <NAME> * Licensed under the MIT License. See the LICENSE file for the full text. */ #include <stdint.h> /* * Included for memcpy & memset */ #include <string.h> #include "sha256.h" #define GET_UINT32(b) ( \ ((uint32_t)(b)[0] << 24) | \ ((uint32_t)(b)[1] << 16) | \ ((uint32_t)(b)[2] <...
/******************************************************************************************* * * raylib [text] example - Draw text inside a rectangle * * This example has been created using raylib 2.3 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) * * E...
/* ** ECM - eigenvector centrality mapping, I/O interface ** ** G.Lohmann, MPI-KYB, updated Oct 2018 */ #include <viaio/Vlib.h> #include <viaio/VImage.h> #include <viaio/mu.h> #include <viaio/option.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_blas.h> #includ...
/* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ztest.h> #include <kernel.h> #include <pthread.h> #include <semaphore.h> #define N_THR 3 #define BOUNCES 64 #define STACKSZ 1024 K_THREAD_STACK_ARRAY_DEFINE(stacks, N_THR, STACKSZ); void *thread_top(void *p1); PTHR...
/* ndyndns.c * * Copyright (c) 2005-2014 <NAME> <njkain at gmail dot 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 copyrig...
/* Copyright (C) 1996-1997 Id Software, 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; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
#include "nccf_mosaic.h" #include <stdio.h> #include <stdlib.h> #include "cflistitem.h" #include <libcf_src.h> #include "nccf_varObj.h" #include "nccf_errors.h" /** * $Id: nccf_print_mosaic_as_polytopes.c 737 2011-05-06 17:48:14Z edhartnett $ */ struct polytope{ int id; int n_supers; int supers[2]; }; in...
/* * Copyright 2021 Cisco Systems, Inc. * * 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 ...