text
stringlengths
5.8k
28.2k
/* runtime.c -- Running around in circles, forever and ever (or until done). * * These routines operate on the structures of <perpetuum/model.h> to make * them process events. To that end, you may inject_tokens() and have the * new additions passed around until the Petri net returns to rest. * * It is up to an e...
/** * The MIT License * * Copyright (c) 2019 <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...
#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...
/* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it wi...
/* Copyright 2012, 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 conditi...
/* GDK - The GIMP Drawing Kit * Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME> * Copyright (C) 1998-2002 <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 * versio...
/* * MIT License * * Copyright (c) 2018-2021 Wudi <<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...
/* Serval Low-bandwidth asychronous Rhizome Demonstrator. Copyright (C) 2015 Serval Project Inc. This program monitors a local Rhizome database and attempts to synchronise it over low-bandwidth declarative transports, such as bluetooth name or wifi-direct service information messages. It is intended to give a high p...
#include "sys_calls.h" #include "types.h" #include "lib.h" #include "filesys.h" #include "assembly_linkage.h" #include "constants.h" #include "paging.h" #include "x86_desc.h" #include "scheduler.h" //basic file tables static ftable file_table = {&file_read, &file_write, &file_open, &file_close}; static ftable dir_tabl...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/*- * Copyright (c) 2004 <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 a...
/***************************************************************************** FILE: create_landsat_angle_bands PURPOSE: Creates the Landsat 4-7 solar and view/satellite per-pixel angles for the specified Landsat bands (4 - representative band). Both the zenith and azimuth angles are created for each angle type for e...
/************************************************* * Perl-Compatible Regular Expressions * *************************************************/ /* PCRE is a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language. ...
#include <sys/socket.h> #include <sys/epoll.h> #include <signal.h> #include <assert.h> #include <string.h> #include <stdlib.h> #include <sys/un.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <fcntl.h> #include <syslog.h> #include <sys/mman.h> #include <netinet/in.h> #include <netinet/tcp.h> #inc...
/************************************************************************* * Copyright (c) 2004 Altera Corporation, San Jose, California, USA. * * All rights reserved. All use of this software and documentation is * * subject to the License Agreement located at the end of this file below.* ****************...
#include <stdint.h> #include <stdarg.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "parser.h" #include "lex.h" #include "debug.h" static size_t current_line = 1; State parse_value(Token* token); static inline bool is_keyword(Token* token, char* keyword) { return strcmp(token->value, keyw...
//Day14b.c // //Question 2: Instead of producing just one MD5 hash of the salted index, we now //have to use key stretching. This means we have to feed the MD5 has back into //the MD5 algorithm a total of 2016 times. Using this method for producing the //final hashes (but keeping everything else the same), what is the ...
/* Copyright 2008-2010 <NAME> Copyright 2008-2010 <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 or agreed t...
/* * fs2ged.c * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define MAX_LINE_LEN (1860) #define MAX_PID_SIZE (10) typedef char pId_t[MAX_PID_SIZE+2]; typedef char *date_t; typedef char *place_t; typedef struct { unsigned int num; pId_t id; //pId_t father; //...
#include "pati.h" #include <util/null.h> #include <util/string.h> #include <util/caste.h> #include <stdlib.h> Transition patransition_new(char c, State to){ if(!to) return null; new(Transition, t); *t = (struct patransition){c, to, null}; return t; } Transition patransition_destroy(Transition t){ if(!t) return ...
#include "eff/eff_n64.h" #include "drv/arcdrv.h" #include "mgr/dvdmgr.h" #include "memory.h" #include "system.h" #include <string.h> //.data eff_set eff_set_n64[] = { {0, "expbom_n64"}, {1, "kemuri1_n64"}, {2, "kemuri2_n64"}, {3, "kemuri3_n64"}, {4, "kemuri4_n64"}, {5, "kemuri5_n64"}, {6, "kemuri6_n64"}, {7, "...
//<NAME> /******** Para compilar o programa: > gcc main.c estruturas_de_dados.c -Wall -o main ou > make ********* Para executar o programa: > ./main nome_do_fich_com_listagem_de_socios.txt nome_do_fich_com_listagem_de_pagamentos.txt nome_do_fich_pra_escrita_de_quotas_pagas.txt nome_do_fich_pra_escrita_de_quotas_atrasad...
/* ** 2014-12-11 ** ** 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. ** **************************...
/* * Copyright (c) 2014, Linaro Limited * 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 conditi...
/* * Copyright 2008-2022 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more contributor * license agreements. * * 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 Licen...
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
/* * %CopyrightBegin% * * Copyright Ericsson AB 2014-2018. 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 * ...
/* Copyright (c) 2007 <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, distr...
/* * Copyright © 2009 <NAME> <<EMAIL>> * Copyright © 2012 Intel Corporation * Copyright © 2012 <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, i...
/* * s2mu004-irq.c - Interrupt controller support for s2mu004 * * Copyright (C) 2016 Samsung Electronics Co.Ltd * * 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 th...
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "u...
#include <gtk/gtk.h> #include <stdlib.h> #include "sqlite3.h" //登录窗口组件 GtkBuilder *builder; GtkWidget *window; GtkWidget *label_error; GtkWidget *btn_login; GtkWidget *btn_cancle; GtkWidget *txt_userName; GtkWidget *txt_password; //主页窗口组件 GtkWidget *window_home;//主窗体 GtkWidget *lb_user_name;//显示用户名 //新增页面 GtkWidget ...
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2011 The University of Tennessee and The University * of Tennessee Resea...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2012 The University of Tennessee and The University * of Tennessee Resea...
/* * Copyright (C) 2017-2020 <NAME> * * Licensed under the MIT License. * See either the LICENSE file, or: * * https://opensource.org/licenses/MIT * */ #include <errno.h> #include <png.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_TILES 1024...
// SPDX-License-Identifier: BSD-3-Clause // // Copyright 2019 NXP // // Author: <NAME> <<EMAIL>> // Author: <NAME> <<EMAIL>> #include <sof/audio/component.h> #include <sof/drivers/edma.h> #include <sof/drivers/timer.h> #include <sof/lib/alloc.h> #include <sof/lib/dma.h> #include <sof/lib/io.h> #include <sof/lib/notifi...
/* This file is part of the HWA project. * Copyright (c) 2012,2015 <NAME>. * All rights reserved. Read LICENSE.TXT for details. */ /** * @file * @brief HWA definitions that do not produce C code */ #include "hwa_macros.h" #include "hwa_x.h" #if DOXYGEN /** * @ingroup public_def * @brief The name of the de...
/* * Copyright (c) 2022, <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 conditio...
/* * This file is part of RGBDS. * * Copyright (c) 2019, <NAME> and RGBDS contributors. * * SPDX-License-Identifier: MIT */ #include <inttypes.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include "link/assign.h" #include "link/section.h" #include "link/symbol.h" #include "link/object.h" #inc...
/* * linux/mm/swap_state.c * * Copyright (C) 1991, 1992, 1993, 1994 <NAME> * Swap reorganised 29.12.95, <NAME> * * Rewritten to use page cache, (C) 1998 <NAME> */ #include <linux/mm.h> #include <linux/gfp.h> #include <linux/kernel_stat.h> #include <linux/swap.h> #include <linux/swapops.h> #include <linux/in...
//#define DEBUG_VIRT #include "runtime.h" #include "virt.h" #include "alloc.h" #include "debug.h" static bool fsl_virt_load_cache(struct fsl_rt_mapping* rtm, bool no_verify); static void fsl_virt_cache_update( struct fsl_rt_mapping* rtm, int idx, uint64_t v); static diskoff_t fsl_virt_cache_find(const struct fsl_rt_m...
/*- * Copyright (c) <NAME>, 1997, 1998. * Copyright (c) 2008 The DragonFly Project. * * All rights reserved. Unpublished rights reserved under the copyright * laws of Japan. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* Copyright 2004,2007,2009-2012,2016,2017 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 distri...
#include "pack.h" #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <errno.h> #include <assert.h> #include <sys/stat.h> #include <sys/mman.h> #include <arpa/inet.h> static struct packed_git packroot; static bool loaded_pack = false; /* ---- Pack Lookup ---- ...
#include<stdio.h> #include<winsock2.h> #include<time.h> #include <string.h> #include<stdlib.h> #include <string.h> #include <process.h> #pragma comment(lib,"ws2_32.lib") unsigned short _send_pingreq(); unsigned short _recieve_pingreq(); unsigned short _packet_queue(command, packet, mid, qos); unsigned short _send_sim...
/* $Id$ */ /*--------------------------------------------------------------------*/ /*; Copyright (C) 2009-2015 */ /*; Associated Universities, Inc. Washington DC, USA. */ /*; */ /*; This pro...
/************************************************************************************ * * Copyright (C) 2016-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: * * 1. Redistrib...
/**************************************************************** Copyright (C) 1997, 1999, 2000 Lucent Technologies All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear...
/** * @file linux-mx.c * @brief A component for Myricom MX (Myrinet Express) */ #include "papi.h" #include "papi_internal.h" #include "papi_vector.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <ctype.h> #define MX_MAX_COUNTERS 100 #define MX_MAX_COUNTER_TERMS MX_M...
/* * FontExtract - A utility for extracting fonts from PalmOS PRC files. * Copyright (C) 2002-2003 <NAME> * Based on sources of pilfont utility, by <NAME>. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free So...
#include <str.h> #include <value.h> #include <basic.h> #include <crypto.h> #include <stdio.h> #include <string.h> /* strcmp */ #include <type_bn.h> #include <type_buf.h> #include <type_cmp.h> #include <type_crypto.h> #include <type_file.h> #include <type_hex.h> #include <type_istr.h> #include <type_limit.h> #include <...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
/* * linux/include/asm-arm/arch-sa1100/irq.h * * Copyright (C) 1996-1999 <NAME> * Copyright (C) 1999 <NAME> * * Changelog: * 22-08-1998 RMK Restructured IRQ routines * 06-01-1999 HBF SA1100 twiddles * 12-02-1999 NP added ICCR * 17-02-1999 NP empeg henry ugly hacks now in a separate file ;) * 11-08-...
// Copyright 2012 Google Inc. All Rights Reserved. // // This code is licensed under the same terms as WebM: // Software License Agreement: http://www.webmproject.org/license/software/ // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ // --------------------------------------------------...
/* * 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 ...
/* * Copyright 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 "license" file ...
/******************************************************************** * BenchIT - Performance Measurement for Scientific Applications * Contact: <EMAIL> * * $Id: kernel_main.c 1 2009-09-11 12:26:19Z william $ * $URL: svn+ssh://<EMAIL>@<EMAIL>-dres<EMAIL>.de/svn-base/benchit-root/BenchITv6/kernel/memory/bandwidth/C...
/* * S/390 helpers * * Copyright (c) 2009 <NAME> * Copyright (c) 2011 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your...
#include <stdio.h> #include <string.h> #include <stdint.h> //#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdlib.h> #include <unistd.h> //static int num_queue = 4; /*-------------------------------------------------------------*/ static void BuildKeyCache(uint32_t *cache, int cac...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_blas.h> #include "mathfunctions.h" #include "globals.h" #include "constitutive_equations.h" /*******************************************************************...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "jszl.h" /* ** The size of the atom table array stored in the json object ** The atom table is an array of pointers to atom structures ** This value should be a prime number to reduce collisions and its best to ** use...
/* * Developed by <NAME> <<EMAIL>> * * tiny-json.c 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. * * tiny-json.c is distribu...
/***********************************************/ /* Spectral analyses and correlation functions */ /* */ /* Jun. 16, 2000 <NAME> <<EMAIL>>. */ /***********************************************/ /********************************************************/ /* http://fftw....
#include "translate.h" #include <stdio.h> #include <stdlib.h> #include "printtree.h" struct Tr_level_ { Tr_level parent; Temp_label name; F_frame frame; Tr_accessList formals; }; struct Tr_access_ { Tr_level level; F_access access; }; typedef struct patchList_ *patchList; struct patchList_ { Temp_...
/********************************************************************** * Asyn device support using TCP stream or UDP datagram server port * **********************************************************************/ /*********************************************************************** * Copyright (c) 2...
/* shamir.c -- Shamir's Secret Sharing Inspired by: http://en.wikipedia.org/wiki/Shamir's_Secret_Sharing#Javascript_example Compatible with: http://www.christophedavid.org/w/c/w.php/Calculators/ShamirSecretSharing Notes: * The secrets start with 'AABBCC' * 'AA' is the hex encoded share # (1 - 255) ...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
/* * aoe sd driver, copyright © 2007 coraid */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "../port/error.h" #include "../port/sd.h" #include "../port/netif.h" #include "../port/aoe.h" #define uprint(...) snprint(up->genbuf, sizeof up->genbuf, ...
/* \file config_buffer.c * \brief Variable type and file reader for config-file lines. * Handles: * - backslash escape for non-unicode cases in printf(1): * \" \\ \a \b \c \f \n \r \t \v * \NNN 1..3 digit octal character * \xHH 1..2...
/* * filter.c * * Code generation for function 'filter' * * C source code generated on: Fri Aug 31 09:24:08 2012 * */ /* Include files */ #include "rt_nonfinite.h" #include "epu_compute_trajectory_onset.h" #include "filter.h" #include "epu_compute_trajectory_onset_emxutil.h" #include "median.h" #include "epu_co...
/* File: ws2812_stm32.c Author: <NAME> License: MIT MIT License Copyright (c) 2017, 2018, 2019, 2020 <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 restric...
/* * This file is part of the GTK+ DMD 5620 Emultor. * * Copyright 2018, <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 li...
/* XPM */ static const char *const xpm_icon_0[] = { /* columns rows colors chars-per-pixel */ "16 16 159 2", " c #0707FB", ". c #0000FE", "X c blue", "o c #0101FF", "O c #0202FE", "+ c #0505FD", "@ c #1D1DF7", "# c #1414FA", "$ c #1110FC", "% c #1A1AF8", "& c #1B1BF8", "* c #1F1EF9", "= c #2323F6", "- c ...
/* * Copyright (c) 1997-8,2007-8,2019 <NAME> <<EMAIL>> * Copyright (c) 1997 <NAME> <<EMAIL>> * * This file deals with exchanging internal and textual * representations of capability sets. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdio.h> #define LIBCAP_PLEASE_INCLUDE_ARRAY #include "libcap.h...
/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
/***************************************************************************** INXlib v0.3 A simple skeleton framework for building X11 windowed applications with XLib. It includes an OpenGL context for 3D graphics. Copyright 2016-2018 <NAME> ************************************************************************...
// SPDX-License-Identifier: BSD-2-Clause /* Copyright 2001 <NAME> 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 ...
/* $Id$ * Performance counter event descriptions for the Intel P6 family. * * Copyright (C) 2003 <NAME> * * References * ---------- * [IA32, Volume 3] "Intel Architecture Software Developer's Manual, * Volume 3: System Programming Guide". Intel document number 245472-011. * (at http://developer.intel.com/) *...
#include <ctype.h> #include <dirent.h> #include <fcntl.h> #include <errno.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/param.h> #include "libNUMA.h" static int read_sysfs (size_t destsize, cpu_set_t *dest) { DIR *dir = opendir ("/sys/devices/s...
/* * $Id: errorpage.c,v 1.151.2.5 2000/11/04 23:04:51 hno Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: <NAME> * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals fro...
/* * 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 <unity/unity.h> #include "mam/v2/mss/mss.h" #include "mam/v2/test_utils/test_...
/* * Copyright (C) 2011 <NAME>, <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 conditi...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Show how to set pixel on and off on RHE6616TP01(8-COM, 40-SEG, 1/4 Bias) LCD. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved....
////////////////////////// // RP2040-Decoder // // <NAME> // // core0.c // ////////////////////////// #include "core0.h" bool target_direction = true; //Forward = true - Reverse = false uint target_speed_step = 128; //128 = Stop (Forward Direction) const uint8_t *CV_ARRAY_FLASH = (const uint8...
// (c) 2018 minim.co // ping flood tester code #include "unum.h" /* Temporary, log to console from here */ //#undef LOG_DST //#undef LOG_DBG_DST //#define LOG_DST LOG_DST_CONSOLE //#define LOG_DBG_DST LOG_DST_CONSOLE // TX ring socket, address and length static int tx_ss = -1; static void *tx_ring = MAP_FAILED; st...
// Copyright 2017 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 applicab...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2011 The University of Tennessee and The University * of Tennessee Resea...
#include "renderers.h" static int mouse_x; static int mouse_y; static int mouse_down; static int mouse_right_down; static int object_id = 1; static bool use_deferred = true; static void swap_renderer() { camera* cam = entity_get("camera"); light* sun = entity_get("sun"); light* backlight = ent...
#include <ctype.h> #include <errno.h> #include <libnotify/notify.h> #include <linux/limits.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #ifdef WANT_SD_NOTIFY #include <systemd/sd-daemon.h> #else /* !WANT_SD_NOTIFY */ #define sd_notify(reset_env, state) ...
/* * nginx kafka module * * using librdkafka: https://github.com/edenhill/librdkafka */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <sys/time.h> #include <librdkafka/rdkafka.h> #define KAFKA_TOPIC_MAXLEN 256 #define KAFKA_BROKER_MAXLEN 512 #define KAFKA_ERR_NO_DATA "no_message\...
/** * <NAME> Turma 4422 Nº 11 * Exercício 3 da Lista de DMA */ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ******************************************************************...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c)...
// This file is free software, distributed under the BSD license. #include "hack.h" #include "extern.h" enum { PREFIX = 15 }; char *strprepend(char *s, char *pref) { int i = strlen(pref); if (i > PREFIX) { pline("WARNING: prefix too short."); return s; } s -= i; strncpy(s, pref, i); // do not c...
#include<stdlib.h> #include<stdio.h> #include<string.h> struct node{ struct node *dir, *esq; int altd, alte, idLivro, idPessoa, retirado; char nome[51], autor[51]; }; typedef struct node arvore; struct Pessoa{ int id; char usuario[21], senha[9]; // Dados de login struct Pessoa *prox; arvore *retirados[3...
#define _GNU_SOURCE #include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> typedef struct file_list flist; typedef struct entry entry_type; typedef struct modification_list mdlist; typedef struct modifiers mods; void files_encrypted_by_ransom(...
/* $Id$ */ /* * Copyright (c) 2005-2009 <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, t...
#include "EventsLoop.h" bool inLoop(eventsLoop* e){ return pthread_self() == e->thread->tid; } void startLoop_e(eventsLoop* e){ atomic_store(&e->open,1); } bool isOpen_e(eventsLoop* e){ return atomic_load(&e->open)==1; } void _shutdown_e(eventsLoop* e){ atomic_store(&e->open,0); } void shutdown_e(e...
#include <assert.h> #include <string.h> #include <stdint.h> #include <math.h> #include "float80.h" typedef unsigned __int128 uint128_t; // If you don't understand why something is the way it is, change it and run // the test suite and all will become clear. // exponent is stored with a constant added to it, because ...
/******************************************************************************* * Copyright (C) Marvell International Ltd. and its affiliates * * This software file (the "File") is owned and distributed by Marvell * International Ltd. and/or its affiliates ("Marvell") under the following * alternative licensing t...