text
stringlengths
3.12k
18.7k
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2015-2017 Micron Technology, Inc. All rights reserved. */ /* * wscan - scan/write loop * * Search for MAIN to get to the interesting logic. */ #define USE_EVENT_TIMER #include <getopt.h> #include <libgen.h> #include <pthread.h> #include <stdbool.h> #...
/* drive.c * Designed to run on Create Command Module * * The basic architecture of this program can be re-used to easily * write a wide variety of Create control programs. All sensor values * are polled in the background (using the serial rx interrupt) and * stored in the sensors array as long as the fu...
/* SPDX-License-Identifier: BSD-3-Clause */ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <curl/curl.h> #include <openssl/buffer.h> #include <openssl/evp.h> #include <openssl/sha.h> #include "files.h" #include "log.h" #include "tpm2.h" #include "tpm2_alg_util.h" #include "t...
#include <gtk/gtk.h> #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> #include "genometools.h" #include "core/bioseq.h" GtDiagram *d = NULL; GtLayout *l = NULL; GtStyle *sty = NULL; GtError *err = NULL; GtkWidget *area; static gboolean on_expose_event(GtkWidget *widget, GdkEventExpose ...
/* ** 2013-06-10 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** **************************...
#include <stdio.h> #include <signal.h> #include <stdarg.h> #include <SDL2/SDL.h> #include <emu_de_midi.h> /* prototype for our audio callback */ /* see the implementation for more information */ static void my_audio_callback(void *midi_player, Uint8 *stream, int len); /* variable declarations */ static SDL_bool s_is...
/* * mon_registerz80.c - The VICE built-in monitor Z80 register functions. * * Written by * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of t...
/* * CVE-2013-2094 exploit x86_64 Linux < 3.8.9 * by sorbo (<EMAIL>) June 2013 * * Based on sd's exploit. Supports more targets. * */ #define _GNU_SOURCE #include <string.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <stdint.h> #include <sys/syscall.h> #include <sys/mman.h> #include <li...
// Options to control how MicroPython is built for this port, // overriding defaults in py/mpconfig.h. // Board-specific definitions #include "mpconfigboard.h" #include <stdint.h> #include <sys/types.h> #ifndef _ssize_t // Supply local unistd.h for missing POSIX definitions #include "unistd.h" #endif // object rep...
#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...
#include <msp430.h> #include <libTimer.h> #include "lcdutils.h" #include "lcddraw.h" #include "buzzer.h" #include "song.h" //All Bits that I'll be using for this lab (Switches and LED) #define LED BIT6 #define SW1 1 #define SW2 2 #define SW3 4 #define SW4 8 #define SWITCHES 15 //Here I have all the colors for the s...
/* ARM-specific clock functions. */ #include "kernel/kernel.h" #include "kernel/clock.h" #include "kernel/interrupt.h" #include <minix/u64.h> #include <minix/board.h> #include "kernel/glo.h" #include "kernel/profile.h" #include <sys/sched.h> /* for CP_*, CPUSTATES */ #if CPUSTATES != MINIX_CPUSTATES /* If this break...
/*======================================================================== Debug routines for nsp_cs By: <NAME> <<EMAIL>> This software may be used and distributed according to the terms of the GNU General Public License. =========================================================================*/ /*...
/*! \file gd32e10x_exmc.c \brief EXMC driver \version 2017-12-26, V1.0.0, firmware for GD32E10x \version 2020-09-30, V1.1.0, firmware for GD32E10x \version 2020-12-31, V1.2.0, firmware for GD32E10x */ /* Copyright (c) 2020, GigaDevice Semiconductor Inc. Redistribution...
/* * exo-test.c - EXO library test driver * * This file is a part of the SimpleScalar tool suite written by * <NAME> as a part of the Multiscalar Research Project. * * The tool suite is currently maintained by <NAME> and <NAME>. * * Copyright (C) 1997 by <NAME> * * This source file is distributed "as is" in t...
/* * The PCI Library -- ID to Name Translation * * Copyright (c) 1997--2008 <NAME> <<EMAIL>> * * Can be freely distributed and used under the terms of the GNU GPL. */ #include <stdio.h> #include <stdarg.h> #include <string.h> #include "internal.h" #include "names.h" static char *id_lookup(struct pci_access *a,...
/********************************************************** This is the base document for getting started with writing firmware for OEM. TODO delete before submitting **********************************************************/ /* Header: Explain what this project does as overview Author: @author */ /*----- In...
/* Copyright (c) 2012-2015, The Saffire Group 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 conditi...
/* Sony DSC-F55 & MSAC-SR1 - gPhoto2 camera library * Copyright 2001, 2002, 2004 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the Licens...
#include <SDL.h> #define USE_SDL_RENDERER 0 #if USE_SDL_RENDERER typedef float GLfloat; typedef Uint8 GLubyte; typedef Uint32 GLuint; #else # include <SDL_opengl.h> #endif #include <assert.h> #include "renderer.h" #include "atlas.inl" #define BUFFER_SIZE 16384 static GLfloat tex_buf[BUFFER_SIZE * 8]; static GLf...
// Self running Tron Game // Copyright (c) 2020, <NAME> // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" A...
/* zip_source_pkware_encode.c -- Traditional PKWARE encryption routines Copyright (C) 2009-2020 <NAME> and <NAME> This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <<EMAIL>> Redistribution and use in source and binary forms, with or without modification, ar...
/* ************************************************************************** */ /* Implements in-memory file system. */ /* Uses lazy loading when reading from Disk */ /* All changes are immediately committed to to disk. ...
/* * socks5.c * * Copyright (c) 2001, 2002 <NAME> <<EMAIL>> * * $Id: socks5.c,v 1.12 2003/06/08 07:40:00 marius Exp $ */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* * Copyright (©) 2015 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
#include "BoundryEnvironment.h" Vector3 top[4]; Vector3 bottom[4]; Vector3 ramp[4]; int needToUpdateGeometry = 0; void SetNeedToUpdateGeometry() { needToUpdateGeometry = 0; } int GetNeedToUpdateGeometry() { return needToUpdateGeometry; } void UpdateBoundaryEnvironment() { const int NUM_SUBDIVISIONS = 1...
#include <stdlib.h> #include "../config.h" #include "match.h" #include "greatest/greatest.h" #define SCORE_TOLERANCE 0.000001 #define ASSERT_SCORE_EQ(a,b) ASSERT_IN_RANGE((a), (b), SCORE_TOLERANCE) #define ASSERT_SIZE_T_EQ(a,b) ASSERT_EQ_FMT((size_t)(a), (b), "%zu") /* has_match(char *needle, char *haystack) */ TES...
/* * (C) Copyright 2001 * <NAME>, esd gmbh germany, <EMAIL> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; ...
// Copyright (c) 2019-present, iQIYI, Inc. 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, c...
/********************************************************** * Copyright 2008-2009 VMware, Inc. 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 * restrict...
#include <linux/types.h> #include <linux/xattr.h> #include <linux/binfmts.h> #include <linux/lsm_hooks.h> #include <linux/cred.h> #include <linux/fs.h> #include <linux/uidgid.h> #include <linux/kobject.h> #include <linux/crypto.h> #include <linux/mutex.h> #include <linux/dcache.h> #include <net/sock.h> #include "../.....
/* * File: avrnacl_small/crypto_sign/sc25519.c * Author: <NAME>, <NAME> * Version: Tue Aug 5 08:32:01 2014 +0200 * Public Domain */ #include "bigint.h" #include "sc25519.h" /*Arithmetic modulo the group order m = 2^252 + 27742317777372353535851937790883648493 = 7237005577332262213973186563042994240857116...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/stat.h> #include "shell.h" #include "pcb.h" #include "ram.h" #include "cpu.h" #include "memorymanager.h" struct PCB *head, *tail; struct CPU *cpu; int pcount = 0; //number of pcb's in the ready queue...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <string.h> #include <stdio.h> #include "smartbt.h" #include "smartbt_cfg.h" #include "smartbt_smart_interface.h" #include "smartbt_smartbridge.h" #include "smartbt_smartbridge_gatt.h" #include "StringUtils.h" #include "LinkListUtils.h" static...
/** * @file * * @author <EMAIL> * * Copyright (c) 2015 Battelle Memorial Institute. */ #include "config.h" #include <stdint.h> #include <stdlib.h> #include "parasail.h" #include "parasail/memory.h" #define NEG_INF_32 (INT32_MIN/2) #define MAX(a,b) ((a)>(b)?(a):(b)) #ifdef PARASAIL_TABLE #define ENAME parasail...
/* ** Copyright 2003-2010, VisualOn, 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...
/* * fs/sdcardfs/derived_perm.c * * Copyright (c) 2013 Samsung Electronics Co. Ltd * Authors: <NAME>, <NAME>, <NAME>, * <NAME>, <NAME> * * This program has been developed as a stackable file system based on * the WrapFS which written by * * Copyright (c) 1998-2011 <NAME...
/* * $Id: EdgesType.c 3177 2008-04-01 14:47:24Z karstenm $ * * This file contains methods for the edge set (VEdges) type. */ /* * Copyright 1993, 1994 University of British Columbia * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby gr...
/* PipeWire * * Copyright © 2020 <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, pu...
/* * ***** BEGIN LICENSE BLOCK ***** Copyright (C) 2009-2016 <NAME> and <NAME> Copyright (C) 2017-2019 <NAME> Copyright (C) 2020-2021 <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 ...
#include "gl.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include "SDL2/SDL.h" #include "glproc.h" typedef GLuint GLShader; typedef GLShader GLVertexShader; typedef GLShader GLFragmentShader; typedef GLuint GLProgram; typedef GLint GLLocation; typedef GLuint GLVertexBuffer; typedef GLuint ...
/* * Copyright 2017 GoPro Inc. * * 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, Vers...
/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ // parallel file hashing #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <sys/mman.h> #include <openssl/err.h> #include <openssl/sha.h> #include <signal.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #inclu...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* $XFree86: xc/programs/Xserver/xkb/ddxBeep.c,v 3.11 2005/10/14 15:17:28 tsi Exp $ */ /************************************************************ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and with...
#include <stdio.h> #include <stdlib.h> #include <string.h> /******************************************************************************* Program: fmt57.c Purpose: Reads text files resulting from optical character recognition of ISS bulletins for the period 1957-1963 (output format of card-controlled typewriter...
/***************************************************************************//** * @file * @brief Routines to initiate key establishment, handle key establishment callbacks, * and print info about the security keys on the device. ******************************************************************************* * # L...
/* * Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates * * 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 * * Unles...
#include "simpleRayTracer.h" // grid search bool gridRayIntersectionSearch(const ray_t r, const int Nshapes, const shape_t *shapes, const grid_t grid, dfloat *t, int *currentShape){ int *boxContents = grid.boxContents; bbox_t *bboxes = grid.bboxes; int *boxStarts = grid.boxStarts; //...
/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)globals.c 8.2 (Berkeley) 04/28/95"; #endif /* not lint */ #include "extern.h" int WEIGHT = MAXWEIGHT; int CUMBER = MAXCUMBER; char *objdes[N...
// SPDX-License-Identifier: GPL-2.0 /* * LG.Philips LB035Q02 LCD Panel Driver * * Copyright (C) 2019 Texas Instruments Incorporated * * Based on the omapdrm-specific panel-lgphilips-lb035q02 driver * * Copyright (C) 2013 Texas Instruments Incorporated * Author: <NAME> <<EMAIL>> * * Based on a driver by: <NAME...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef char* String; struct node{ String s; struct node* next; }; typedef struct node* List; List insert(List l, String s){ List n = malloc(sizeof(List)); n->s = malloc(sizeof(String)*16); n->s = strcat(n->s,s); n->ne...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Institution: Technical University of Munich, Germany * Department: Electrical and Computer Engineering * Chair: Embedded Systems and Internet of Things * * Project: Hash-based Signature * Authors: <NAME> (<EMAIL>) * * D...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
/* * Just a test program to see how long it would take to * deduplicate verts in C rather than Python (in which it's excruciatingly slow). * * To make it (un)fair, we take in mesh data that is potentially already deduplicated, * then unpack the vertices and then merge them again. */ #include <stdio.h> #include ...
/* * proto_diameter.c * * Created on: Dec 7, 2020 * Author: nhnghia */ #include "mmt_mobile_internal.h" /////////////// PROTOCOL INTERNAL CODE GOES HERE /////////////////// /** * Extract attribute */ static int _extraction_att(const ipacket_t * ipacket, unsigned proto_index, attribute_t * extracted_data...
/* * This file is part of the coreboot project. * * Copyright 2014 Google Inc. * * 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 2010 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include "native_client/src/include/por...
/* * Copyright (c) 2018 <NAME> * https://github.com/iotaledger/entangled * * MAM is based on an original implementation & specification by apmi.bsu.by * [ITSec Lab] * * Refer to the LICENSE file for licensing information */ #include <stdlib.h> #include <string.h> #include "mam/pb3/pb3.h" #include "mam/sponge/...
/** * Copyright 2017 Comcast Cable Communications Management, LLC * * 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 requir...
/* * $Id: mech.tech.c 1.5 03/09/14 16:51:33+02:00 thomas@debian.(none) $ * * Author: <NAME> <<EMAIL>> * * Copyright (c) 1996 <NAME> * Copyright (c) 1998-2002 <NAME> * Copyright (c) 2000-2002 <NAME> * All rights reserved * * Created: Fri Aug 30 15:27:33 1996 fingon * Last modified: Sat Jun 6 19:33:...
#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...
/* * Unit test suite for Enum Background Copy Jobs Interface * * Copyright 2007 Google (<NAME>, <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 t...
#include <stdmansos.h> // // This is the network for CarMote publication // #define MAIN_LOOP_LENGTH 1000 #define FALSE 0 #define TRUE 1 #define NOT_SET -1 enum State_e { NONE = -1, WAS_MOVING, PAST_ACCEL, PAST_BRAKE, ACCEL, MOVING, LSD, MSD, SSD, DIFF, TOTAL_ST...
#include "config.h" #include <ctype.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "parasail.h" #include "parasail/memory.h" #if defined(_MSC_VER) #define snprintf _snprintf #endif /* 0123456789 */ #define BAM_CIGAR_STR "MIDNSHP=XB"...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2015 Marvell International Ltd. * * Copyright (C) 2016 <NAME> <<EMAIL>> */ #include <common.h> #include <dm.h> #include <malloc.h> #include <spi.h> #include <clk.h> #include <wait_bit.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; #define MVEBU_SPI_A3700_X...
#include "common.h" #include <ctype.h> #include <plumb.h> #include <libsec.h> #include "dat.h" enum { Buffersize = 64*1024 }; typedef struct Inbuf Inbuf; struct Inbuf { int fd; uchar *lim; uchar *rptr; uchar *wptr; uchar data[Buffersize+7]; }; static void addtomessage(Message *m, uchar *p, int n, int done) { ...
/* * Multi2Sim * Copyright (C) 2012 <NAME> (<EMAIL>) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ...
/* pbmtomrf - convert pbm to mrf * public domain by RJM * * Adapted to Netpbm by <NAME> 2003.08.09. Bryan got his copy from * ftp://ibiblio.org/pub/linux/apps/convert, dated 1998.03.03. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <limits.h> #include "pbm.h" static int bitbox; static ...
/* * SDL - Simple DirectMedia Layer * CELL BE Support for PS3 Framebuffer * Copyright (C) 2008, 2009 International Business Machines Corporation * * 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 Softwa...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
/* * 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 ...
/* mbed Microcontroller Library * * Copyright (C) 2019, Toshiba Electronic Device Solutions Corporation * * SPDX-License-Identifier: Apache-2.0 * * 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 o...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* rsChkObjPermAndStat.c */ #include "chkObjPermAndStat.h" #include "apiHeaderAll.h" #include "icatHighLevelRoutines.h" #include "icatHighLevelRoutines.h" int ...
/* nbdkit * Copyright (C) 2018 Red Hat Inc. * * 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 follow...
/* COMPILE_MU0.C * * Compiles code for the ficticious "MU0" processor. * To be executed on the EXECUTE_MU0 emulator program. * * Version 1, 10 October 1994 * Version 1.01, 3 March 1995 - Tidied up for Project * Version 2.00, 14 November 2014 - Modifications by * <NAME> <<EMAIL>> * Version 2.01, 19 ...
/******************************************************************************/ /* */ /* Copyright (c) 1990-2016, KAIST */ /* All rights reserved. ...
// Copyright 2003-2022 <NAME> <<EMAIL> at g<EMAIL> dot <EMAIL>> // SPDX-License-Identifier: MIT #include <sys/types.h> #include <stdbool.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <limits.h> #include <pwd.h> #include "nk/stb_sprintf.h" #include "nk/exec...
/* Copyright 2020-2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <ctype.h> #include <errno.h> #include <stdarg.h> #include <unistd.h> #include <libgen.h> #include "rpc_types.h" #include "rpcgen.h" struct files _files = {0}; void __panic(const char* file, int line, const char* function, ...
/************************************************************/ /* LCD & Teclado */ /* */ /************************************************************/ /************************ INCLUDES **************************/ #include <TM4C129.h> #include <string.h> #inclu...
/* PROJECT TITLE: A Multithreaded Terminal Emulator COURSE: Introduction to Operating Systems SECTION: S12 AUTHORS: <NAME> & <NAME> */ #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <string.h> #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #i...
// Written By @BillChen // 2019.5.20 #include "cachelab.h" #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #define MACHINE_BITS 64 #define NEED_EVICT -1 #define NO_MATCH -2 #define CACHED 1 #define ADD_HIT 1 #define ADD_MISS 2 #define ADD_EVICT 3 int totalMissCount = 0...
/*** fltmgr.c - filter list management routines Copyright (c) <NAME> 1998 This software is open source; 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. T...
/* This file is provided under a dual BSD/GPLv2 license. When using or redistributing this file, you may do so under either license. GPL LICENSE SUMMARY Copyright(c) 2015 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU G...
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2018-2019, Intel Corporation */ /* * vmemcache_index.c -- abstraction layer for vmemcache indexing API */ #include <alloca.h> #include <stdlib.h> #include <errno.h> #include <malloc.h> #include "vmemcache.h" #include "vmemcache_index.h" #include "critnib.h" #in...
// Copyright (C) 2018 <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 permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
// Copyright 2014-2015 <NAME>. All Rights Reserved. #pragma once // Generic project-wide macros //#define KUI_LOG_DEBUG #define KUI_LOG_NIX "/Source/KeshUI/" #define KUI_LOG_WIN "\\Source\\KeshUI\\" #define KUI_LOG_FILE ( strstr( __FILE__, KUI_LOG_NIX ) ? ( strstr( __FILE__, KUI_LOG_NIX ) + strlen( KUI_LOG_NIX ) - 1...
// Copyright 2016 Silicon Laboratories, Inc. *80* #include PLATFORM_HEADER #include CONFIGURATION_HEADER #include "stack/include/ember-types.h" #include "stack/include/event.h" #include "hal/hal.h" #include EMBER_AF_API_BULB_PWM_DRIVER // EFR headers #include "em_cmu.h" #include "em_gp...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" uint64_t t0 = 19827683439454LLU; int32_t x202 = INT32_MIN; uint8_t x315 = 7U; int8_t x613 = INT8_MAX; uint64_t...
#include "config.h" #include "id.h" #include "util.h" #include <errno.h> #include <fcntl.h> #include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <unistd.h> #define RNDADDENTROPY _IOW( 'R', 0x03, int [2] ) /* random pool is always the same size, so use a fi...
#include <linux/types.h> /* -------------------------------------------------------------------------- */ /* Command Status and Connector Change Indication (CCI) data structure */ struct ucsi_cci { unsigned int RESERVED1:1; unsigned int connector_change:7; u8 data_length; unsigned int RESERVED9:9; unsigned int ...
/** Copyright (c) 2012-2013 codingow.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 restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
/***************************************************************************//** * @file main_xg21.c * @version 1.0.1 ******************************************************************************* * # License * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b> ***************************************...
/* * Copyright 2015 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...
// Copyright (c) 2019 Intel Corporation. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, pub...
/* * jpegtran.c * * Copyright (C) 1995-2013, <NAME>, <NAME>. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains a command-line user interface for JPEG transcoding. * It is very similar to cjpeg.c, and p...
/*------------------------------------------------------------------------------ | DCM_HKP | |------------------------------------------------------------------------------| | | | PURPOSE | | ------- | | This module contains functions for loading WIND housek...