text
stringlengths
3.12k
18.7k
/* Copyright (C) <2009-2011> <<NAME> and <NAME>> Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the d...
/*------------------------------------------------------------------------------ Copyright (c) 2008 The Khronos Group Inc. All Rights Reserved. This code is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. This is UNPUBLISHED PROPRIETARY SOURCE CODE that may not be disclosed i...
/* MIT License * * Copyright (c) 2017 CowboyCoderAAS * * 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, mo...
#include "slab_pool.h" #include <stdio.h> #include "internal_assert.h" //#define POOL_CONFIG_PARANOID_ASSERTS //#define POOL_CONFIG_DEBUG #ifdef POOL_CONFIG_DEBUG #define debug(...) fprintf(stderr, __VA_ARGS__); fflush(stderr) #else #define debug(...) #endif /* * Returns the pointer to the start of the p...
void moveorplace(const Arg *arg) { if (!selws || !selws->sel) return; if (!selws->layout->arrange || ISFLOATING(selws->sel)) movemouse(arg); else placemouse(arg); } void movemouse(const Arg *arg) { int i, g, x, y, w, h, nx, ny, sx, sy, vsnap, hsnap, xoff, yoff, group_after; Client *c, *s; Workspace *ws; ...
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <errno.h> #include "edflib.h" #include "epoc.h" #include "nervdump.h" int edf_hdl; void exit_usage(char *exec) { printf("usage: %s <path to data stream> <file to write>\n", exec); exit(1); } void exit_err(char *err) { printf("%s\n", err); exit(1...
/* * Copyright (c) 2020, 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, CAB F.78, Universitaetstr 6, CH-8092 Zurich. */ #include <stdio.h> #include <stdlib.h> #i...
/* * utf8.c * * Copyright (c) <NAME> 2004-2020 * * Source code released under the GPL version 2 * */ #include <stdio.h> #include <string.h> #include "utf8.h" /* UTF-8 encoding U-00000000 - U-0000007F: 0xxxxxxx U-00000080 - U-000007FF: 110xxxxx 10xxxxxx U-00000800 - U-0000FFFF: 1110xxxx 10xxxxxx 10xxxxxx ...
#define XP_UNIX #include <jsapi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "shovel.h" int main (int argc, const char *argv[]) { Sandbox *this = NULL; const char *utils_filepath; if (argc < 2) { sandbox_throw_error (this, "Required argument for utilities file."); } else { utils_fi...
// ADC14.c // Runs on MSP432, TI-RSLK MAX 1.1 // ADC input, software trigger, 14-bit conversion, // student version // <NAME> // July 11, 2019 /* This example accompanies the book "Embedded Systems: Introduction to Robotics, <NAME>, ISBN: 9781074544300, copyright (c) 2019 For more information about my classes, ...
/***************************************************************************** * va_surface.c: libavcodec Generic Video Acceleration helpers ***************************************************************************** * Copyright (C) 2009 <NAME> * Copyright (C) 2009 <NAME> * Copyright (C) 2015 <NAME> * * Author...
/****************************************************************************** ** Copyright (c) 2013-2018, <NAME> ** ** All rights reserved. ** ** ** ** Redistrib...
/** * TI Wordle - src/main.c * * Copyright (C) 2022 <NAME> * * This file is made available under a modified BSD license. See the provided * LICENSE file for more information. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ #include <graphx.h> #include <string.h> #include <tice.h> #include "palette.h" #in...
/*! * @file noizu_trie_s.c * @brief struct encoded static trie implementation. * * @author <NAME> * @copyright Noizu Labs, Inc. 2019. */ #include "..\noizu_trie.h" #include "noizu_trie_s.h" TRIE_S_UNIT noizu_trie_s_advance(char k, TRIE_S_UNIT current_node, noizu_trie_s* source) { if (current_node == TRIE...
// Easy-Shooter: a 2D shooter game made with Easy-Console // Copyright (C) 2019 <NAME> // For details see: README.md // For LICENSE see: LICENSE.md #include <stdio.h> #include <stdlib.h> #include <time.h> #include "easy_console.h" #define CONSOLE_WIDTH 120 #define CONSOLE_HEIGHT 40 #define PLAYER_BOX_W 15 #defin...
/* * Copyright (c) 2020 Nutanix Inc. All rights reserved. * * Authors: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistr...
/* defines, enums ------------------------------------------------------------- */ #define INSIDE 2048 #define CURE_WAIT 30 #define LOAD_MAX 100 enum { VILLAIN_TROLL, VILLAIN_THIEF, VILLAIN_CYCLOPS, NUM_VILLAINS }; /*object bit flags*/ #define PROP_OPENABLE 1 #define PROP_OPEN...
#include "NetStorageClient.h" #include <sp/Bytes.h> #include <sp/ScopeLock.h> #include <stdio.h> #include <wchar.h> enum kNetPacket { kNetPacket_Open, // kNetPacket_OpenResponse, kNetPacket_Read, // kNetPacket_ReadResponse, kNetPacket_FileRename, kNetPacket_FileRemove, kNetPacket_DirRead,...
/* Main program for SysmoBTS management daemon */ /* (C) 2012 by <NAME> <<EMAIL>> * (C) 2014 by <NAME> * * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation; ei...
/* * Copyright (c) 2012,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...
/* * 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, publis...
/* SPDX-License-Identifier: MIT * Copyright (c) 2014-2021 <NAME> */ #include "../inc/kos_constants.h" #include "../inc/kos_error.h" #include "../inc/kos_instance.h" #include "../inc/kos_memory.h" #include "../inc/kos_object.h" #include "../inc/kos_string.h" #include "../inc/kos_system.h" #include "../inc/kos_threads...
/***************************************************************************** * A source file for the library "psrgeom", which includes structs and * functions for treating pulsar geometry. * * Author: <NAME> * Date : 2017 * * Description: * This source file implements the struct for a pulsar, which include...
/**************************************************************** Copyright(c) 2005 <NAME> Optical Disc Co., Ltd. Developed by Storage Product Department, Beijing, China ***************************************************************** Filename: zmodem.h Description: *********************************************...
/* This file is part of Alpertron Calculators. Copyright 2015 <NAME> Alpertron Calculators 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 ...
/* * graph5.c - a graph as an incidence list * Copyright (C) 2010 <NAME> * www.martinbroadhurst.com */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include "edge.h" #include "grafo.h" typedef struct { MBset *edges; } vertex_body; static vertex_body * vertex_body_create(...
#include <string.h> #include <assert.h> #include <gmp.h> #include "field.h" #include "crypto_dh.h" #include "randombytes.h" #define SECRETKEY_BYTES crypto_dh_SECRETKEYBYTES #define PUBLICKEY_BYTES crypto_dh_PUBLICKEYBYTES #define SHAREDSECRET_BYTES crypto_dh_BYTES #define LIMB_PER_ELT (128/GMP_LIMB_BITS) typedef uns...
/** * Username: lusen * Description: distlock.c * CreateTime @2017-08-30 14:04:55 */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include <string.h> #include "distlock.h" enum mutex_status_s { MUTEX_STATUS_FREE, MUTEX_STATUS_LOCKED, MUTEX_STATUS_UNKNOWN, }; struct ...
/* ==== pthread_cancel.c ==================================================== * Copyright (c) 1996 by <NAME>, Jr. * 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 s...
#include "passgen/passgen2.h" #include <assert.h> #include <getopt.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "passgen/data/parser.h" #include "passgen/data/token.h" #include "passgen/generate.h" #include "passgen/parser.h" #include "passgen/pronounce...
/* * Name: insert * Input: root node of index, root * new index entry to place, entry * fan or order of index, fan * Output: updated node, node * Return: INSERT_SUCCESS, or * INSERT_INSERT_ENTRY_FAILURE_FATAL, * ...
#include <stdlib.h> #include <mad.h> #include <stdio.h> #include <string.h> #include <lame/lame.h> #include <limits.h> #include "sample.h" #include "mp3file.h" MP3InputFile mp3_read_file(char *filename) { MP3InputFile af = (MP3InputFile) malloc(sizeof(MP3File_Input_Data)); af->filename = filename; af->s...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * Editor Settings: expandtabs and use 4 spaces for indentation */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, ...
/* * fileutils.c * * Functions specific to accessing the file system * * <NAME> <<EMAIL>> * * This code is released under the PostgreSQL license. * * Copyright 2020-2021 Crunchy Data Solutions, Inc. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, w...
/* * main.c * * Created on: 27 dic 2019 * Author: <NAME> <<EMAIL>> * * Copyright 2019 <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/licens...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <ncurses.h> #define WIDTH 10 #define HEIGHT 7 #define N 4 #define RED_COUNTER 1 #define YELLOW_COUNTER 2 #define EMPTY 0 #define RED_COLOUR_PAIR RED_COUNTER #define YELLOW_COLOUR_PAIR YELLOW_COUNTER int getIndexForGrid(int x, int y) { if (x < 0 |...
#include "osd.h" #include <cairo.h> #include <pango/pangocairo.h> #include <stdio.h> #include "config.h" #include <gdk/gdk.h> #include <math.h> struct OSDEntry { guint32 id; gchar *text; OSDTextAlignFlags align; GTimer *timer; guint timeout; guint added_in_transaction : 1; }; struct _OSD { ...
/* * Copyright (c) 2012 by <NAME> * * This file is part of MulticoreBSP in C -- * a port of the original Java-based MulticoreBSP. * * MulticoreBSP for C is distributed as part of the original * MulticoreBSP and is free software: you can redistribute * it and/or modify it under the terms of the GNU Lesser...
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE 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 app...
/* * Copyright (C) SplinterGU (Fenix/BennuGD) (Since 2006) * Copyright (C) 2002-2006 Fenix Team (Fenix) * Copyright (C) 1999-2002 <NAME> (Fenix) * * This file is part of Bennu Game Development * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be...
#include "engine_log.h" #include "hash_table.h" #include "image.h" #include "image_storage.h" #include <stdlib.h> #include <string.h> #include "platform_adapter.h" #include "hash_table_private.h" #include "string_builder.h" static HashTableEntry *image_data_table_entry[HASHSIZE]; static HashTable image_data_table = { ...
/* pwait - wait for processes to terminate * * Requires CONFIG_CONNECTOR=y and CONFIG_PROC_EVENTS=y. * Requires root or "setcap cap_net_admin+ep pwait". * * Usage: pwait [-v] [-c] PID... * -v Print the exit status when each process terminates. * -c Check for PIDs to exit successfully, else return 111. * * Co...
#include <stdlib.h> #include <unistd.h> #include <assert.h> #include <stdio.h> #include <string.h> #include <syslog.h> #include "xmalloc.h" #include "dataset_opt.h" #include "md_array.h" #include "dns_message.h" #include "pcap.h" #include "syslog_debug.h" static void md_array_grow(md_array * a, int i1, int i2); sta...
/* rootloader.c: * * 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 published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ ...
#include "main.h" #include "one_wire.h" struct OneWireDeviceTree { struct OneWireDevice device; uint32_t valid_bits; struct OneWireDeviceTree* zero, *one; }; static struct OneWireDeviceTree device_tree[MAX_DEVICE_TREE_SIZE]; static uint32_t device_tree_alloc_idx; static void tmr_us_init() { __HAL_RCC_TIM2_CLK...
/* Copyright (C) 2018-2019 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted for any purpose (including commercial purposes) * provided that the following conditions are met: * * 1. Redistributions of source code must ret...
/** ****************************************************************************** * @file stm32f3xx_hal_msp.c * @author MCD Application Team * @version V1.7.0 * @date 16-December-2016 * @brief HAL MSP module. ****************************************************************************** * @attention ...
/* * The purpose of this program is twofold: * o. provide a way to test and stress test libljmm.{a|so} * o. provide a way to measure the performance impact of these libs * using widely available applications. * * The key to achieve above goals is to intercept function calls to * mmap/munmap/mremap(), ...
/*+ * United States Geological Survey * * PROJECT : Modular Modeling System (MMS) * FUNCTION : save_params * COMMENT : saves the param data base to a file. File name is passed in. * * $Id$ * -*/ /**1************************ INCLUDE FILES ****************************/ #define SAVE_PARAMS_C #include <string.h>...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
#define MOBILENODE #define CHANNEL 0X15 #define PANID 0xABCD #define NODEID 0X1235 #define TEMP 0x01 #define LIGHT 0x02 #define DATE 0x03 #define TIME 0x04 #define ROOMLIST 0x05 #define TIMECHG 0x06 #define SWHLIST 0x07 #define DATECHG 0x08 #define PRINT1 0xFF #define A2...
/* * The Flash Memory Controller v100 Device Driver for hisilicon * * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. * * 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 Foundati...
/* version 0.1 (PM, 12/5/19) : Le client de conversation - crée deux tubes (fifo) d'E/S, nommés par le nom du client, suffixés par _C2S/_S2C - demande sa connexion via le tube d'écoute du serveur (nom supposé connu), en fournissant le pseudo choisi (max TAILLE_NOM caractères) - attend la réponse du serve...
/* Copyright (c) 2009-2019, <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 copyright notice, this list of conditions and the follo...
#include "sheet.h" #include "funcs.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <ctype.h> // these help handle back-references needed to clean up outdated items unsigned thisX, thisY; RefNode *backRefs[SIZE][SIZE] = {{ NULL }}; bool manualUpdate = FALSE; Value ...
//***************************************************************************** // Filename : 'nerd.c' // Title : Animation code for MONOCHRON nerd clock //***************************************************************************** #include "../global.h" #include "../glcd.h" #include "../anim.h" #include "nerd.h"...
/* * Copyright (c) 2003 <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 from * the use of this software. * * Permission is granted to anyone to use this software, alter it and re- * distribute it freely...
/** @file vbox_XPCOMCGlue.c * Glue code for dynamically linking to VBoxXPCOMC. */ /* * Copyright (C) 2008-2009 Sun Microsystems, Inc. * * This file is part of a free software library; you can redistribute * it and/or modify it under the terms of the GNU Lesser General * Public License version 2.1 as published b...
/* vi: set sw=4 ts=4: */ /* * Utility routines. * * Copyright 1998 by <NAME>; all rights reserved. * Copyright (C) 2002 by <NAME> <<EMAIL>> * * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ #include "libbb.h" typedef struct unsigned_to_name_map_t { unsigned id; char name[US...
/* * 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 ...
#include <coremap.h> #include <types.h> #include <lib.h> #include <vm.h> #include <spinlock.h> #include <kern/fcntl.h> // the borders of the ram after ram_bootstrap paddr_t firstpaddr; // first address paddr_t lastpaddr; // last address struct cm_entry* coremap; unsigned int number_of_pages_avail = -1; // allocate...
/** * Copyright (c) 2016 - 2017, Nordic Semiconductor ASA * * 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,...
/* Copyright (c) 2013 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 firmware NV storage library. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "test_com...
/* mimeTester - test program for mime parser */ #include "common.h" #include "options.h" #include "pipeline.h" #include "linefile.h" #include "dystring.h" #include "mime.h" extern char **environ; char *altHeader = NULL; void usage(char *msg) /* Explain usage and exit. */ { errAbort( "%s\n\n" "mimeTester - te...
/****************************************************************************** Copyright (c) 2017-2019 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agree...
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /* * CoreType Utilities Library */ #include <string.h> #include...
/* * Copyright (c) 2017 <NAME> <<EMAIL>> * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT st_stm32_rng #include <kernel.h> #include <device.h> #include <drivers/entropy.h> #include <random/rand32.h> #include <init.h> #include <sys/__assert.h> #include <sys/util.h> #include <errno.h> #include <soc....
#include <math.h> #include <stdio.h> #include "forge.h" #include "imagine.h" typedef unsigned long long uint64; #include "keep.h" typedef enum{ K_I_ADDRESS, K_I_TEXT, K_I_TIME, K_I_LOCATION, K_I_COUNT }KIntex; typedef struct{ uint64 address[256]; uint64 list; }KIndexAdress; uint64 keep_index_text_allocate(KSe...
/* * Copyright (c) 2018 SiFive Inc. * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT sifive_spi0 #define LOG_LEVEL CONFIG_SPI_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(spi_sifive); #include "spi_sifive.h" #include <stdbool.h> /* Helper Functions */ static inline void sys_set_mask(...
/* Netlink plugin for IFUP/IFDN and GW events * * Copyright (C) 2009-2011 <NAME> <<EMAIL>> * Copyright (C) 2009-2021 <NAME> <<EMAIL>> * * 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...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "bench.h" static double median(Histogram*); static double percentile(Histogram*, double); sta...
/* JEWEL, Java Environment With Enhanced Linkage * Copyright (c) 1998-2004, <NAME> */ #include "hstructs.h" #ifndef __i386__ #error i386! #endif /* __i386__ */ void beforeJava() { #ifdef __i386__ struct { unsigned char lo; unsigned char hi; } cw; void *p = &cw; asm("fnstcw (%0)" : : "r" (p) : "memo...
/* * Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is * located at * * http://aws.amazon.com/apache2.0/ * * or in the "licen...
/* * FreeRTOS Kernel V10.4.4 * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * SPDX-License-Identifier: MIT * * 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 *...
// SPDX-License-Identifier: GPL-2.0+ /* * Board functions for IGEP COM AQUILA and SMARC AM335x based boards * * Copyright (C) 2013-2017, ISEE 2007 SL - http://www.isee.biz/ */ #include <common.h> #include <errno.h> #include <spl.h> #include <asm/arch/cpu.h> #include <asm/arch/hardware.h> #include <asm/arch/omap.h>...
/* * Amazon FreeRTOS V1.4.8 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includi...
/* LaCrosse TX 433 Mhz Temperature and Humidity Sensors * Tested: TX-7U and TX-6U (Temperature only) * * Not Tested but should work: TX-3, TX-4 * * Copyright (C) 2015 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publish...
/* Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. Portions Copyright 2002-2010 Sun Microsystems, Inc. All rights reserved. Portions Copyright 2008-2011 <NAME>, Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2...
/****************************************************************************** * Copyright (c) 2016 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www....
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "rrutil.h" #define MAX_FDS 2048 extern int capset(cap_user_header_t header, const cap_user_data_t data); static char tmp_name[] = "temp"; static uid_t uid; static uid_t gid; static void* start_thread(__attribute__((unused)) voi...
/** ****************************************************************************** * File Name : freertos.c * Description : Code for freertos applications ****************************************************************************** * * COPYRIGHT(c) 2015 STMicroelectronics * * Redistrib...
/*! \file main.c \brief master transmitter slave receiver interrupt \version 2020-03-10, V1.0.0, firmware for GD32E50x \version 2020-08-26, V1.1.0, firmware for GD32E50x \version 2021-03-23, V1.2.0, firmware for GD32E50x */ /* Copyright (c) 2021, GigaDevice Semiconductor Inc. Redistr...
#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...
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
/* Copyright 2004,2007-2011,2013,2014 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distributio...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
#ifndef _MSC_VER #include <unistd.h> #else #include <Windows.h> #define sleep Sleep #endif #if defined(__MINGW32__) || defined(_MSC_VER) #include <fcntl.h> #include <io.h> #include <sys/stat.h> #endif #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <curl/curl.h> #include "curl....
//------------------------------------------------------------------------------ // LAGraph/Test2/TriangeCount/test_ct.c: test for LAGraph_TriangleCount_Methods //------------------------------------------------------------------------------ // LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved. // SPD...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "signtool.h" static int jar_cb(int status, JAR *jar, const char *metafile, char *pathname, char *error...
/* * Copyright 2021 <NAME> * * Use of this source code is governed by MIT license that can be * found in the LICENSE.txt file. */ #include <dlfcn.h> #include <link.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #inc...
/* * Arm SCP/MCP Software * Copyright (c) 2015-2018, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <fwk_element.h> #include <fwk_module.h> #include <fwk_module_idx.h> #include <mod_dmc620.h> #include <scp_system_mmap.h> #include <config_clock.h> #define ...
/* * txiki.js * * Copyright (c) 2022-present <NAME> <<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 Software without restriction, including without limitation the rights * to use, ...
/***************************************************************************** * * File: parbpamain.c * Author: <NAME> * Created: April 2009 * * $Id: parbpamain.c 2584 2009-06-25 07:54:41Z astivala $ * * This is the main() for a threaded dp implementation of * base pair probability alignment. Pairwise RNA ...
/* * Copyright © 2020 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * ifile.c - NILFS inode file * * Copyright (C) 2006-2008 Nippon Telegraph and Telephone 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; either version 2 of the License, ...
/************************************************************************** * Copyright (C) 2018-2019 Junlon2006 * * 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 L...
// The Timber compiler <timber-lang.org> // // Copyright 2008-2009 <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 th...
/* * * Copyright 2017 Samsung Electronics 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 require...
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" #define FLA_ALG_REFERENC...
#include "simple_pwm.h" #include "ti_pwm_userspace_defs.h" #include <stdio.h> #include <dirent.h> #include <fcntl.h> #include <unistd.h> //#define DEBUG #define MAXBUF 64 #define DEFAULT_FREQ 20000 // 40khz pwm freq // variables int duty_fd[6]; // pointers to duty cycle file descriptor int period_ns[3]; //one peri...