text
stringlengths
3.12k
18.7k
// Copyright (C) 2010-2016 <NAME> // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 3 of the License, or (at your option) // any later version. // // This program is distribut...
/** @file ecc.c * Copyright 2015, Google 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...
/* tools/mkbootimg/dtbimg.c ** ** Copyright 2007, The Android Open Source Project ** Copyright 2013, Sony Mobile Communications ** ** 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 ** ** h...
/* File: t-ldapconv.c Authors: based on the code by <NAME> <<EMAIL>> Description: Interactive test program for LDAP convenience API. Copyright: Copyright (c) 2002, 2003 SFNT Finland Oy. Copyright: Copyright (c) 2002, 2003 SFNT Finland Oy. All rights reserved. */ ...
/* ******************************************************************************* * * Copyright (C) 1999-2010, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: gentest.c * encoding: ...
#include "OBJ_load.h" #include "cvector.h" #include <stdio.h> #include <stdlib.h> // free #include <string.h> // memcpy #include <math.h> // sqrt char lastError [128]; static void safe_free (void* ptr) { if (ptr) { free (ptr); ptr = 0; } } static void cross (vec3 a...
/* * Copyright (C) 2014 BlueKitchen GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the follo...
/* * General Purpose functions for the global management of the * Communication Processor Module. * Copyright (c) 1997 <NAME> (<EMAIL>) * * In addition to the individual control of the communication * channels, there are a few functions that globally affect the * communication processor. * * Buffer descriptor...
/**************************************************************************** * * Copyright 2019 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...
#include <hidef.h> /* common defines and macros */ #include "derivative.h" /* derivative-specific definitions */ #define C2 183502 #define C2S 173202 #define D2 163483 #define D2S 154318 #define E2 145648 #define F2 137474 #define F2S 123761 #define G2 122478 #define G2S 115601 #define A...
/* * mm-implicit.c * * code is based on CSAPP 3e textbook section 9.9 */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "memlib.h" #include "mm.h" /* do not change the following! */ #ifdef DRIVER /* create aliases for driver tests */ #define malloc mm...
/** * (C) Copyright 2020-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ /** * Enumerate all object IDs and store them as KVs in a special object */ #define D_LOGFAC DD_FAC(container) #include <daos_srv/pool.h> #include <daos/btree_class.h> #include <daos/pool_map.h> #include <daos/rp...
/*************************************************** * FILENAME : spectate.c * * DESCRIPTION : * Spectate mode entry point and logic. * * NOTES : * Each offset is determined per app id. * This is to ensure compatibility between versions of Deadlocked/Gladiator. * * AUTHOR : Connor "Badger41" Wil...
/* * QC3Control.c * * Modified: 5/28/2021 10:12:50 PM * Author: IR * Library: https://github.com/vdeconinck/QC3Control */ #include "../mod.h" uint8_t _continuousMode = 0; //!< Are we in continuous adjustment (QC3) mode? uint8_t _classB; //!< Do we have a class B QC source (up to 20V) ? uint16_...
/* te_file.c Text editor. File I/O. Copyright (c) 2015-2021 <NAME> / FloppySoftware 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; e...
/****************************************************************************** * @file main.c * @version V1.00 * $Revision: 4 $ * $Date: 18/07/16 1:22p $ * @brief * Configure USCI_SPI0 as Master mode and demonstrate how to communicate with an off-chip SPI slave device. * This sample code ...
#include<stdio.h> #include <stdio_ext.h>//unix only #include<math.h> #include<string.h> #include<stdlib.h> #include<time.h> #include<curses.h> //#include<conio.h> #include<unistd.h> #include "fort.h" #define MAX_TASK 10 #pragma pack(1) ft_table_t *table, *table1; FILE* fp; double avg_waiting_time=0.0; double avg_turn...
/* * Copyright (C) 2012 Citrix Ltd. * * This program 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; version 2.1 only. with the special * exception on linking described in file LICENSE. * *...
// // upgrade.c // #include "usb.h" #include "upgrade.h" #include "device.h" #include "helper.h" #include "pkg/package.h" #include "pkg/pkg_cnt.h" // #include <io.h> u8 buffer[CHUNK_SIZE]; char *upgrade_status[] = { "UPG_STATUS_RESET", "UPG_STATUS_READY", "UPG_STATUS_CHECK", "UPG_STATUS_ER_0"...
/* * Copyright (c) 2018 <NAME>. * 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 required by app...
/*************************************************************************** "Kabuki" Z80 encryption The "Kabuki" is a custom Z80 module which runs encrypted code. The encryption key is stored in some battery-backed RAM, therefore the chip has the annoying habit of stopping working every few years, when the battery ...
#include <string.h> #include <stdint.h> #include <stdlib.h> #include <inttypes.h> #include <stdio.h> #include "../common/string_util.h" #include "../common/url_parser.h" #include "image_source.h" void image_source_print_features (image_source_t *isrc); image_source_t * image_source_v4l2_open (url_parser_t *urlp); i...
/* * Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd. * 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, thi...
/* * Copyright (c) 2012-2013 Varnish Software AS * All rights reserved. * * Author: <NAME> <<EMAIL>> * * 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 c...
/* * TODO: * -generalise the cache data structure to 1 way (DM) to N way (set associative) * -generalise the cache for separated I/D caches * -implement the replacement strategy to associative caches (use FIFO strategy initially) * -multi-level, configurable caches * -(optional) implement write buffers. this is v...
#include <stdint.h> #include <stdio.h> #define MEM_SIZE 56 // Total memory size #define CALL_STACK_SIZE 16 // How many nested calls can the VM make // VM TYPES DEFINITIONS typedef enum { false, true } bool; typedef uint16_t instruction; typedef void (*operation)(instruction); typedef uint16_t operand; // 12 bits type...
#include "stm32h7xx.h" #include "stm32h743xx.h" #define __HAL_RCC_PLL_CONFIG(__RCC_PLLSOURCE__, __PLLM1__, __PLLN1__, __PLLP1__, __PLLQ1__,__PLLR1__ ) \ do{ MODIFY_REG(RCC->PLLCKSELR, (RCC_PLLCKSELR_PLLSRC | RCC_PLLCKSELR_DIVM1) , ((__RCC_PLLSOURCE__) | ( (__PLLM1__) <<4U))); \ ...
/*============================================================================== 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 w...
/* County Library System, by, <NAME>, Feb 2022, MIT License, C99 Compiler, */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> #define FILE_NAME "LibSystem.bin" struct Patron { int ID; char name[50]; char email[50]; ...
// =================================================================== // // Copyright (c) 2005, Intel Corp. // 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 ...
// server.c #include <enet/enet.h> #include <stdio.h> #include <string.h> #include "../shared/player.h" #include "../shared/message.h" #include "server.h" #include "../shared/deltatime.h" struct server { struct enet { ENetAddress address; ENetHost *host; } enet; struct status { ...
/* Implementation of the squaring algorithm with Toom-Cook 8.5-way. Contributed to the GNU project by <NAME>. THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT IT WILL CHANGE OR DISAPPEAR IN A ...
/*- * Copyright (c) 2005 <NAME>. All rights reserved. * Copyright (c) 2010 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the abov...
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ /* * A c unit test program for db_tuner [#18910]. * * There are total 8 * 3 * 4 * 2 = 192 test cases, * which are from: * 8 possible pagesize (8), * 3 ty...
/*************** * * todo : * * AND * ************/ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <crblib/inc.h> #include <crblib/strutil.h> #ifdef _MSC_VER #pragma warning(disable : 4244) // ulong -> uword #endif /**** Pattern Spec : A Pattern consists of alternating Tokens and Wild...
#include <pthread.h> #include <assert.h> #include <stdio.h> #include <sys/types.h> #include <unistd.h> /* for sleep */ #include <stdlib.h> /* for malloc */ #include <inttypes.h> /* uintptr_t, strtoul */ #include <string.h> /* strncpy */ #include <math.h> /* fl...
/******************************************************************************* * Copyright (c) 2017 Intel 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.apa...
/** * @brief Panel Weather Widget */ #include <toaru/yutani.h> #include <toaru/yutani-internal.h> #include <toaru/graphics.h> #include <toaru/hashmap.h> #include <toaru/menu.h> #include <toaru/text.h> #include <toaru/panel.h> struct MenuList * weather; static struct MenuEntry_Normal * weather_title_entry; static st...
/** Copyright © 2017 Odzhan. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
#include <stdio.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> struct buddy { size_t size; size_t longest[1]; }; static inline int left_child(int index) { /* index * 2 + 1 */ return ((index << 1) + 1); } static inline int right_child(int index) { /* index * 2...
/* * 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 app...
/*- * Copyright (c) 2014 <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 list of co...
/* Copyright (c) <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the follo...
/* * Copyright (C) 2014 BlueKitchen GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the follo...
/** * @file oscore.c * @author <NAME> * * OSCORE methods */ #include <netinet/in.h> #include <tinycbor/cbor.h> #include "oscore.h" #include "utils.h" #if defined(USE_CRYPTOAUTH) #include "cryptoauthlib.h" #include "basic/atca_basic_aes_gcm.h" #include "crypto/atca_crypto_sw.h" #elif defined(USE_WOLFS...
/* Copyright (c) 2012-2021 <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, distribute, sub...
/* Wordle Device for the ESP32C3 RGB development board Written in 2022 by <NAME> <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You...
/* GTK - The GIMP Toolkit * Copyright (C) 2010 <NAME> <<EMAIL>> * Copyright (C) 2011 Red Hat, Inc. * * Authors: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * 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 t...
/******************************************************************************* Project: CAN Bus Driver for EPICS File: devMbboDirectCan.c Description: CANBUS Multi-Bit Binary Output Direct device support Author: <NAME> <<EMAIL>> Created: 14 August 1995 Version: $Id: devMbboDirectCan.c 177 ...
/* Shell inspired by the SD Card and FAT32 development testbed sdcard.asm Direct interaction with the Monitor functions, the C library is not used for any file or directory related functionality. You can also use this as a reference implementation of how to use the Monitor functions. done by sy2002 ...
#include "freertos/FreeRTOS.h" #include "esp_wifi.h" #include "esp_system.h" #include "esp_event.h" #include "esp_event_loop.h" #include "nvs_flash.h" #include "driver/gpio.h" #include "string.h" #include "esp_netif.h" #include "esp_log.h" #include "soc/timer_group_struct.h" #include "soc/timer_group_reg.h" #include "...
/* The MIT License Copyright (c) 2008 <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, copy, modify, merge, pu...
#include <em_device.h> extern void _estack(); // Not really a function, just to be compatible with array later extern uint32_t _svect; // ISR Vectors extern uint32_t _evect; extern uint32_t _stext; // Main program extern uint32_t _etext; extern uint32_t _siiram0; // RAM code source extern uint32_t _siram0; // RAM c...
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) // Some code copied & modified based on // https://github.com/xdp-project/xdp-tutorial /* Copyright (c) 2020 <NAME> */ #include <argp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include <sys/resource.h> #...
#include <stdio.h> #include <stdbool.h> #include <zconf.h> #include <memory.h> #include <stdlib.h> #include <dirent.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <stdbool.h> #include <pthread.h> #include <semaphore.h> #include <fcntl.h> #include <sys/mman.h> #include <bits/signum.h>...
#include "shell.h" int maxInternals=100,maxWordLength=50,internalsSupported=0; char internals[100][50]; //-------main int main(int argc, char *args[]) { int i=0,n=0; char inp[256], condition[5]; char *argv[64]; strcpy(inp,""); printf(" ------------------------------------------------- \n"); printf("| Wel...
/* * This audio filter changes the sample rate. * * Copyright (C) 2002 <NAME> <EMAIL> * * This file is part of MPlayer. * * MPlayer 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 ...
/* ** Zabbix ** Copyright (C) 2001-2019 Zabbix SIA ** ** 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 pro...
/* $OpenBSD: queue.c,v 1.103 2011/05/01 12:57:11 eric Exp $ */ /* * Copyright (c) 2008 <NAME> <<EMAIL>> * Copyright (c) 2008 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and t...
/* * 文をパースする。 * statementのみを公開する。 */ #include "analyze.h" #include "container.h" #include "declaration.h" #include "declarationparse.h" #include "expressionparse.h" #include "node.h" #include "parseutil.h" #include "statement.h" #include "tokenize.h" #include "type.h" #include "typecheck.h" #include "util.h" #inclu...
/* ISC license. */ #include <stdint.h> #include <unistd.h> #include <signal.h> #include <fcntl.h> #include <limits.h> #include <sys/wait.h> #include <skalibs/types.h> #include <skalibs/allreadwrite.h> #include <skalibs/bytestr.h> #include <skalibs/sgetopt.h> #include <skalibs/strerr2.h> #include <skalibs/tai.h> #incl...
/* Standard libraries */ #include <time.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> /* System libraries */ #include <unistd.h> /* Libraries */ #include "thread.h" #include "speedway.h" /* Constraints */ #define MAX_STEPS 251 /* TODO: remove constraint */ #define MIN_CYCLISTS 3 #define MIN_DISTAN...
/* Universidade de Brasília Name: <NAME> Email: <EMAIL> Função do software: aplicar filtros em imagens */ #include <stdio.h> typedef struct _pixel { unsigned short int red; unsigned short int green; unsigned short int blue; } Pixel; typedef struct _image { // [width][height][rgb] ...
typedef int bool; typedef unsigned int size_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned long int uint64_t; typedef unsigned short int uint16; typedef unsigned int uint32; typedef unsigned long int uint64; void * __builtin_apply_args (); void * __builtin_apply (void (*function...
// ADCTestMain.c // Runs on TM4C123 // This program periodically samples ADC channel 0 and stores the // result to a global variable that can be accessed with the JTAG // debugger and viewed with the variable watch feature. // <NAME> // September 5, 2015 /* This example accompanies the book "Embedded Syste...
/* Author: <NAME> <<EMAIL>> I worked on this assignment alone. I consulted a man page for MPI for how to create a derived MPI type based on a C struct found at the following address: http://mpi.deino.net/mpi_functions/MPI_Type_create_struct.html */ #include <stdio.h> #include <stdlib.h> #include <time.h> #includ...
/* Copyright (c) 2014 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. */ /* Hardware initialization and common functions */ #include "adc.h" #include "adc_chip.h" #include "common.h" #include "cpu.h" #include "regist...
/*++ Copyright (c) 1989-1994 Microsoft Corporation Module Name: rtnetcfg.c Abstract: Helper routines to read PortUsage and other information from registry. Author: <NAME> (raos) 29-Mar-97 Revision History: --*/ #ifndef UNICODE #define UNICODE #endif #ifndef _UNICODE ...
#include "lucre.h" /* curr = [ cinfo onl_curr ... ] */ EC_M_Curr EC_M_new_curr(UInt32 numcurrs, EC_M_Cinfo *cinfo, EC_M_Onl_curr *onl_curr) { EC_M_Curr newcurr; if (numcurrs && (!cinfo || !onl_curr)) return NULL; newcurr = (EC_M_Curr) EC_G_malloc(sizeof(struct EC_M_...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/par...
/********************************************************** * ip routines * $Id: tcp.c,v 1.22 2004/05/27 18:50:03 sisoft Exp $ **********************************************************/ #include "headers.h" #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #end...
#include <stdio.h> #include <assert.h> #include "bfs.h" #include "../memory/memory.h" #include "../match/match.h" BFS_GRAPH *bfs_create_graph() { BFS_GRAPH *g; g = (BFS_GRAPH *)my_malloc(sizeof(BFS_GRAPH)); g->num_vertices = 0; g->vertex_ll = cdll_create(); g->vertex_h = bh_create(0); g->num_edges = 0; g->edg...
/* errint.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__3 = 3; static integer c__2 = 2; /* $Procedure ERRINT ( Insert Integer into Error Message Text ) *...
/* c8e.c This file written 2018 by <NAME> For copyright and licensing, see file COPYING */ #include "c8e.h" #include <stdlib.h> #include <string.h> /* Instruction elements */ #define ETYPE(op) ((op & 0xF000) >> 12) #define EREGX(op) ((op & 0x0F00) >> 8) #define EREGY(op) ((op & 0x00F0) >> 4) #define EADDR(op)...
/* * Copyright (c) 2018-2019 SignalWire, 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...
#include "fft.h" #include <math.h> #include <string.h> void fft_write(struct fmplayer_fft_data *data, const int16_t *buf, unsigned len) { if (len > FFTLEN) { unsigned discard = len - FFTLEN; buf += discard*2; len = FFTLEN; } unsigned towrite = FFTLEN - data->ind; if (towrite > len) towrite = len; ...
#include "eggs.h" #define LED_0 BIT0 #define LED_1 BIT6 #define LED_OUT P1OUT #define LED_DIR P1DIR #define RELAY BIT4 #define RELAY_OUT P1OUT #define RELAY_DIR P1DIR #ifdef VLOCLK12Khz /* * 12 Khz / 3 Khz to get even numbers * * */ #define TONE 12000/3/1000 #define DUTY 12000/3/2/1000 #endif #ifdef VLO...
/* * The MIT License (MIT) * * Copyright (c) [2015] [<NAME>] * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
/* * Copyright ProcessOne 2006-2009. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public License along with this softwa...
/* * Copyright (c) 2018, 2019, 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" AND THE AUTHOR ...
#include "wbc_hw_hook.h" #include <linux/string.h> #include <linux/netdevice.h> #include <linux/kernel.h> #include <linux/netlink.h> #include <uapi/linux/netlink.h> #include <net/sock.h> #include <linux/ipv6.h> #include <net/ipv6.h> #include <net/ndisc.h> #include <net/addrconf.h> #include <huawei_platform/log/hw_lo...
#include <stdint.h> static const char* watcher_magic = "a string that is used" " to mark a watcher"; /** * Add watcher specific methods to the table on the top of the lua * stack. * * [-0, +0, ?] */ static int add_watcher_mt(lua_State *L) { static luaL_Reg fns[] = { { "is_active", watcher_is...
/* $Id: code.c,v 1.5 2014/10/07 13:28:16 ragge Exp $ */ /* * Copyright (c) 2014 <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 ...
#include "controller/joystick.h" #include "utils/log.h" #include <stdlib.h> #define UP -32768 #define DOWN 32767 #define LEFT -32768 #define RIGHT 32767 #define CENTER 0 void joystick_free(controller *ctrl) { joystick *k = ctrl->data; if (k->haptic) { SDL_HapticClose(k->haptic); } SDL_GameCont...
#include <string.h> #include "ibm.h" #include "io.h" #include "keyboard_at.h" #include "mem.h" #include "pci.h" #include "x86.h" #include "i440fx.h" static uint8_t card_i440fx[256]; static void i440fx_map(uint32_t addr, uint32_t size, int state) { switch (state & 3) { case 0: ...
#include "sithExplosion.h" #include "AI/sithAIAwareness.h" #include "World/sithThing.h" #include "Engine/sithCollision.h" #include "World/sithSector.h" #include "Engine/sithTemplate.h" #include "Engine/sithSurface.h" #include "Engine/sithPhysics.h" #include "Primitives/rdMath.h" #include "jk.h" void sithExplosion_Cre...
// // USBDeviceHandler.c // USBMouse // // Sourced mostly from Apple samples // #include "USBDeviceHandler.h" #include <IOKit/usb/IOUSBLib.h> static IONotificationPortRef notificationPort; static CFRunLoopRef runLoop; static io_iterator_t iterator; USBDeviceHandlerStatusCallback cb_; void printInterpretedError(...
#include <stdio.h> #include <stdlib.h> #include <stdlib.h> #include "zdssKeys.h" #include "zdssMessages.h" #include "zdssVals.h" #include "zdssLocking.h" #include "zprogress.h" #include "hecdssInternal.h" #include "hecdssFort.h" #include "heclib.h" /** * Function: zcopyFile * * Use: Public * * Description: Cop...
/** * \file * * \brief NAND Flash Raw Operation Example * * Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip produc...
#include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <netinet/in.h> #include <string.h> #include <arpa/inet.h> #include <stddef.h> #include <pthread.h> #include <stdarg.h> // for infinite parameters #include <time.h> // for random functions #include "sema...
/** * @file arch/x86_64/page_alloc.c * * @author <NAME> */ /* * Memory Management: the page allocator * * Copyright (C) 2009-2010 <NAME> <<EMAIL>> * * The page allocator allocates and reclaims physical memory pages to the * rest of the kernel upon request. * * The algorithm implemented here is the one used ...
/***************************************************************************** * Made with beer and late nights in California. * * (C) Copyright 2017-2020 AND!XOR LLC (https://andnxor.com/). * * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 11th, 2020 then, * * Licensed under the Apache License, Version 2.0 (the "Li...
/** * @file tal_ed.c * * @brief This file implements ED scan * * Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip p...
// // Created by <NAME> on 28/12/2021. // #include <sys/param.h> #include "esp_log.h" #include "lwip/err.h" #include "lwip/sockets.h" #include "server.h" #define MAX_CLIENTS 1 #define TAG "app_server" #define PORT 5760 // Default for QGroundControl #define KEEPALIVE_IDLE 5 #define KEEPALIVE_INTERVAL ...
#include "selection.h" #include <assert.h> #include <ctype.h> #include <limits.h> #include <base/base.h> static struct result draw_window(struct selection *selection) { int result = wborder(selection->window, '|', '|', '-', '-', '+', '+', '+', '+'); if (OK != result) return result_ncurses_err(); ...
/****************************************************************//** * * @file tftp_server.c * * @author <NAME> <<EMAIL>> * * @brief Trivial File Transfer Protocol (RFC 1350) * * Copyright (c) Deltatee Enterprises Ltd. 2013 * All rights reserved. * ******************************************************...
// Copyright (C) 2016-2019 Semtech (International) AG. All rights reserved. // // This file is subject to the terms and conditions defined in file 'LICENSE', // which is part of this source code package. #include "fuota.h" #include "fuota_hal.h" #include <string.h> #include <stdlib.h> #include <stdio.h> #include <ass...
#include <stdio.h> #include <string.h> #include "bootpack.h" #include "console.h" #include "desctbl.h" #include "fifo.h" #include "fs.h" #include "graphic.h" #include "memory.h" #include "mouse.h" #include "io.h" #include "sheet.h" #include "task.h" #include "timer.h" void console_task(struct Sheet *sheet, unsigned i...
/* * Copyright (C) 2017 Marvell International Ltd. * * SPDX-License-Identifier: BSD-3-Clause * https://spdx.org/licenses */ #include <ap810_setup.h> #include <debug.h> #include <mmio.h> #include <mvebu_def.h> #define CCU_B_GIDACR(ap, stop) (MVEBU_A2_BANKED_STOP_BASE(ap, stop) + 0x34) #define CCU_B_LTC_CR(ap) ...
/* CPU Interrupt Handler Ref: https://github.com/phf/xv6/blob/master/trap.c */ #include <stdint.h> #include "kbd.h" #include "system.h" #include "timer.h" // Trap function #define T_IRQ0 32 #define PIC1 0x20 #define PIC_EOI 0x20 typedef struct { // registers pushed by pushal uint32_t edi, esi, ebp, oesp...