text
stringlengths
5.8k
28.2k
/* * MUS2MIDI: MUS to MIDI Library * * Copyright (C) 2014 <NAME> * Copyright (C) WildMIDI Developers 2015-2016 * * 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 * versi...
/* * IIO driver for the Apex Embedded Systems STX104 * Copyright (C) 2016 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. * * This program is distributed in the hope...
/** * @file dtar.c - parallel tar main file * * @author - <NAME> * * */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #define _LARGEFILE64_SOURCE #include <errno.h> #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <mpi.h> #in...
/* * Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <errno.h> #include <fcntl.h> #include <inttypes.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #i...
#include "nvfx_context.h" #include "nvfx_resource.h" #include "util/u_format.h" static inline boolean nvfx_surface_linear_renderable(struct pipe_surface* surf) { /* TODO: precompute this in nvfx_surface creation */ return (surf->texture->flags & NVFX_RESOURCE_FLAG_LINEAR) && !(surf->offset & 63) && !(((struct nv...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <string.h> void bitout_ui8(uint8_t a){ int i; for (i = 0; i < 8; i++){ printf("%d",(a>>(7-i))&0x1); } } void usage(char* binary_name){ printf("usage: %s [-pcwv] -i filename\n",binary_name); printf("switches:\n"); printf(" -i...
/*-*- linux-c -*- * linux/drivers/video/i810_main.h -- Intel 810 Non-discrete Video Timings * (VESA GTF) * * Copyright (C) 2001 <NAME><<EMAIL>> * All Rights Reserved * * * This file is subject to the terms and conditions of the GNU General Public * Licens...
// MIT License, Copyright (c) 2020 <NAME> #include <assert.h> #include <boot.h> #include <cpu.h> #include <errno.h> #include <fs.h> #include <load.h> #include <mem.h> #include <mm.h> #include <print.h> #include <proc.h> #include <stack.h> #include <str.h> #include <timer.h> u32 current_pid = 0; u32 quantum = 0; struc...
/* $OpenBSD: ipgphy.c,v 1.14 2011/04/07 15:30:16 miod Exp $ */ /*- * Copyright (c) 2006, <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 c...
/*****************************************************************************\ ** ** ** FILE: club_sync.c ** ** AUTHORS: Alexios ** **...
/** * ucvm2mesh_mpi.c - Query UCVM to produce a 3D mesh on a regular grid * * Created by <NAME> <<EMAIL>> * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <getopt.h> #include <mpi.h> #include <unistd.h> #include "um_dtypes.h" #include "um_mpi.h" #include "um_utils.h" ...
/*----------------------------------------------------------------- * Programmer(s): <NAME> @ LLNL *----------------------------------------------------------------- * Acknowledgement: This example is based on the PETSc TS ex7.c *----------------------------------------------------------------- * SUNDIALS Copyrigh...
/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ /*================================================================= * adiosreadc.c - ...
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright 2011-2021 SUSE LLC * * 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, thi...
/* * Copyright (c) 2014 Kaprica Security, 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, mer...
/* Copyright (C) 1996-2008 by <NAME> <www.kyprianidis.com> All rights reserved. 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, either version 2.1 of the License, or...
/** * \file * * \brief Unit tests for I2S driver. * * Copyright (c) 2013-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* * File: p3_ath_event_tables.c * CVS: $Id: p3_ath_event_tables.h,v 1.2 2009/09/10 20:19:43 terpstra Exp $ * Author: <NAME>; refactored from p3_events.c by <NAME> * <EMAIL> * Mods: <your name here> * <your email address> */ /* Note: AMD MOESI bits are programmatically defined for those ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <unistd.h> #include <fcntl.h> #include <ugpio/ugpio.h> typedef int bool; #define true 1 #define false 0 const float MAX_SPEED = 0.35; const double distance = 0.14; FILE *output; typedef struct { int numModes; fl...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include "gl.h" #include "glext.h" #include "glu.h" #include "glkos.h" extern uint8 romdisk[]; KOS_INIT_ROMDISK(romdisk); /* floats for x rotation, y rotation, z rotation */ float xrot, yrot, zrot; int textures[3]; t...
/* * imagetag.c * * Copyright (C) 2005 <NAME> * Copyright (C) 2008 <NAME> <<EMAIL>> * Copyrigth (C) 2010 <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 versio...
// A port of HDM's/Pusscat's implementation of Tavis Ormandy's code (vdmallowed.c). // http://archives.neohapsis.com/archives/fulldisclosure/2010-01/0346.html // Known Bugs: // * Windows NT4 fails to map the NULL page, (exit code 'NTAV'). // * Windows 2000 fails to find the VDM_TIB size (something else is wro...
/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ /* ...
/* drivers/net/tulip/interrupt.c Maintained by <NAME> <<EMAIL>> Copyright 2000 The Linux Kernel Team Written/copyright 1994-1999 by <NAME>. This software may be used and distributed according to the terms of the GNU Public License, incorporated herein by reference. Please refer to Documentation/networking/tu...
#include <stddef.h> // for NULL #include "mamedef.h" #include "math.h" void OPL_RegMapper(UINT16 Reg, UINT8 Data); typedef struct _sn76496_state_opl sn76496_state_opl; struct _sn76496_state_opl { int clock; //sound_stream * Channel; //INT32 VolTable[16]; /* volume table (for 4-bit to db conversion)*/ INT32 Regist...
#include "myBmpGris.h" // Constructeur et Destructeur /** Methode de creation d'une image Bmp "standard" (pas de LUT, pas d'alpha, codage sur 24 bits) * @param dimX nombre de lignes de l'image * @param dimY nombre de colonnes de l'image * @return une image prete a l'emploi (plans couleur a remplir) */ BmpImg c...
//Per compilare: gcc -ggdb -Wall -Wextra -o server server.c -lcrypto #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <netdb.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/uio.h> #include <string.h> #include <fcntl.h> #include <sys/types.h>...
/* dkrdem.f -- translated by f2c (version 20100827). */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "../solver/ddaskr_types.h" static integer global_neq; /* DKRDEM program: DDASKR demonstration program */ /* ----------------------------------------------------------------------- */ /* ***BEGIN...
/* GTK - The GIMP Toolkit * testcellrenderertext.c: Tests for the various properties of GtkCellRendererText * Copyright (C) 2005, Novell, Inc. * * Authors: * <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
/* * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.h...
#include "rings.h" #include "variabledensity.h" #include "mathops.h" #include "arrayops.h" #include "mrgradient.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef GMR #define GMR 4257.6388f #endif void ccr_calcGT(float gradientLimit, float slewRateLimit, float kR, float fieldOfV...
/* align.c * SRE, Tue Jun 29 14:05:48 1993 * 2.0: Thu Sep 30 14:43:05 1993 * * Code for producing a multiple sequence alignment from tracebacks. * * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "squid.h" #include "structs.h" #include "funcs.h" #ifdef MEMDEBUG #...
// // Copyright (c) 2006-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, this list of condi...
/* See LICENSE for license details. */ #include "includes.h" #include "arg.h" #include "st.h" #include "x.h" #include "fonts.h" #include "mem.h" #include "scroll.h" #include "selection.h" #include "xevent.h" #include "tty.h" #include "system.h" #include "compile.h" //#define ENABLE_DEBUG 5 #include "debug.h" #ifdef...
/* * Freescale i.MX28 RAM init * * Copyright (C) 2011 <NAME> <<EMAIL>> * on behalf of DENX Software Engineering GmbH * * 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 Publi...
/* Copyright (c) 2005 Agorics; see MIT_License in this directory or http://www.opensource.org/licenses/mit-license.html */ #include <string.h> #include "sysdefs.h" #include "primmeth.h" #include "keyh.h" #include "wsh.h" #include "timemdh.h" #include "prepkeyh.h" #include "domainh.h" #include "cpujumph.h" #include "ga...
/* This rule is now deleted. Done by hand, fast and dirty. * squid_ntlm_authentication buffer overflow exploit attempt * * Copyright (C) 2006 Sourcefire, Inc. All Rights Reserved * * Written by <NAME> <<EMAIL>> * * This file may contain proprietary rules that were created, tested and * certified by Source...
/* GELL 15.26: include file for the module: "physio" */ /* translation done: "Sat Oct 7 17 20:53:07 " */ /* impure LLM3 predefined */ extern Ptr GIdlink, GIllink, GIfcons, GIevalst; extern Ptr GMundef; extern Ptr GIfcons; extern Ptr GIbvar; extern Ptr GMt; extern Ptr GMitsoft; extern Ptr GIma...
#include "../error.h" #include "frontend.h" #include "frontend_opengl_linux.h" #include "../icoordinates.h" #include "../igraphics.h" #include "../iprimitives.h" #include "../iutils.h" #include "../iprettyconsole.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> /*void iassert(int val)...
#define VERSION "3.5.0" #define VERSION_JAHR "2017" #define FALSE 0 #define TRUE 1 #define NEWENTY -1 #define HCCAPX_SIGNATURE 0x58504348 #define HCCAPX_VERSION 4 #define MAC_SIZE_ACK (10) #define MAC_SIZE_RTS (16) #define MAC_SIZE_NORM (24) #define MAC_SIZE_QOS (26) #define MAC_SIZE_LONG (30) #define MAC_TYPE_MGM...
#include <3ds.h> #include "reslimit.h" #include "util.h" #include "manager.h" typedef s64 ReslimitValues[10]; static const ResourceLimitType g_reslimitInitOrder[10] = { RESLIMIT_COMMIT, RESLIMIT_PRIORITY, RESLIMIT_THREAD, RESLIMIT_EVENT, RESLIMIT_MUTEX, RESLIMIT_SEMAPHORE, RESLIMIT_TIMER, ...
#include "tweak.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <assert.h> #include "btree.h" #ifdef TEST_BUFFER #define BLKMIN 4 #else #define BLKMIN 512 #endif #define BLKMAX (2*BLKMIN) struct file { FILE *fp; int refcount; }; struct buffer { btree *bt; }; ...
#include "debugger.h" static void unlock_mutex(pthread_mutex_t *mutex) { pthread_mutex_unlock(mutex); } static void waitpid_thread(TinyDbg *handle) { bool first_time = true; pid_t my_pid = handle->pid; pthread_cleanup_push((void (*)(void *))unlock_mutex, &handle->process_continued); while (true)...
/* * linux/mm/memory_hotplug.c * * Copyright (C) */ #include <linux/stddef.h> #include <linux/mm.h> #include <linux/swap.h> #include <linux/interrupt.h> #include <linux/pagemap.h> #include <linux/bootmem.h> #include <linux/compiler.h> #include <linux/module.h> #include <linux/pagevec.h> #include <linux/writeback...
/* * The Yices SMT Solver. Copyright 2015 SRI International. * * This program may only be used subject to the noncommercial end user * license agreement which is downloadable along with this program. */ #if defined(CYGWIN) || defined(MINGW) #ifndef __YICES_DLLSPEC__ #define __YICES_DLLSPEC__ __declspec(dllexport)...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
/* Copyright (c) 2017 Garmin Ltd. or its subsidiaries. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
#include "pod_common.h" #include "pod3.h" const char pod3_audit_action_string[POD3_AUDIT_ACTION_SIZE][8] = { "Add", "Remove", "Change" }; bool pod_is_pod3(char* ident) { return (POD3 == pod_type(ident)); } uint32_t pod_crc_pod3(pod_file_pod3_t* file) { if(file == NULL || file->path_data == NULL) { fprintf(stde...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "../ast.h" #include "copy_ast.h" struct BoolConst* copy_bool_const(struct BoolConst* bc){ struct BoolConst* res = make(BoolConst); res->value = bc->value; return res; } struct CharConst* copy_char_const(struct CharConst* cc){ struct CharCons...
#include <SDL.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "video/video.h" #include "video/image.h" #include "video/tcache.h" #include "utils/allocator.h" #include "utils/log.h" #include "utils/list.h" #include "formats/palette.h" #include "video/video_state.h" #include "plugins/plugins.h" s...
/* Unix SMB/CIFS implementation. Password and authentication handling Copyright (C) <NAME> 1992-2000 Copyright (C) <NAME> 1996-2000 Copyright (C) <NAME> 2001-2003 Copyright (C) <NAME> 2003 This program is free software; you can redistribute it and/or mo...
/* Copyright © 2021 bvchirkov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2017 Pure Storage, 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: * * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
/* * Copyright (c) 2015, EURECOM (www.eurecom.fr) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * li...
/** ****************************************************************************** * File Name : freertos.c * Description : Code for freertos applications ****************************************************************************** * This notice applies to any and all portions of this file ...
#include <stdlib.h> #include "mex.h" #define RESET_WHEN_NAN 1 // no reset ( = 0 ), reset with previous traj ( = 1 ) #define KKT_MIN -1 #define KKT_MAX 1e15 #include "acado_common.h" // #include "acado_auxiliary_functions.h" ACADOvariables * acadoVariablesPtr = NULL; ACADOworkspace * acadoWorkspacePtr = NULL; ACAD...
#include "jnibwt.h" #include "bwa/bwase.h" static void gap_reset_stack(gap_stack_t *stack) { int i; for (i = 0; i != stack->n_stacks; ++i) stack->stacks[i].n_entries = 0; stack->best = stack->n_stacks;// stack->n_stacks=max_score=max_diff * s_mm + max_gapo * s_gapo + max_gape * s_gape stack->n_...
#include "i2c.h" #include "common.h" #include "freertos/task.h" #include "freertos/portmacro.h" #include "freertos/semphr.h" #include "sdkconfig.h" // generated by "make menuconfig" #include "bme280.h" #include "veml6075.h" #define TAG_BME280 "BME280" #define TAG_DPSP "DEEP SLEEP" #include <sys/time.h> #include "es...
#include <float.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <xtensa/sim.h> #include <xtensa/tie/xt_pdxn.h> #include <xtensa/tie/xt_timer.h> #include <xtensa/xt_profiling.h> /* Git revision: 939e0e4 Warning: dirty git status: qr-decomp-out/kernel.c | 1621 ++++++++++++++++...
#include <string.h> #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <mpi.h> #include "three_algebra.h" #include "object.h" #include "error.h" #include "system.h" #include "ddcMalloc.h" #include "units.h" #include "preduce.h" #include "external.h" typedef struct slice_st { double...
// // Created by sachetto on 01/10/17. // #include "domain_helpers.h" #include "../libraries_common/config_helpers.h" #include "../monodomain/config/domain_config.h" #include "../utils/logfile_utils.h" #include <assert.h> #include <time.h> #ifdef _MSC_VER #include <process.h> #define getpid _getpid #else ...
/***************************************************************************** * HW3_131044084_Mehmed_Mustafa * * System Programming - GrepFromDir using PIPEs and FIFOs * * Date: 19.03.2016 * *****************************************************************************/ #include <stdi...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include"trie.h" #include"trieInsertion.h" #include"trieOptions.h" #include"sort.h" //helpful struct to save informations for the search struct query_info{ char* word; node* last; }; //some part same with insertInTrie... int searchWordInTrie(...
/* $Date: 2016/03/31 $ $RCSfile: mv88e1xxx.c,v $ $Revision: #1 $ */ #include "common.h" #include "mv88e1xxx.h" #include "cphy.h" #include "elmer0.h" /* MV88E1XXX MDI crossover register values */ #define CROSSOVER_MDI 0 #define CROSSOVER_MDIX 1 #define CROSSOVER_AUTO 3 #define INTR_ENABLE_MASK 0x6CA0 /* * Set th...
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferab...
/* * Copyright (c) 2021, Moonflow <<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 ...
/* $NetBSD: if_nireg.h,v 1.3 2001/08/20 12:20:07 wiz Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without * modification,...
/*- * Copyright (c) 2014 Nahanni Systems 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: * 1. Redistributions of source code must retain the above copyright * notice, this list o...
#define PY_SSIZE_T_CLEAN #include <Python.h> /* encode speedup */ typedef struct { PyObject_HEAD; const char *encoding; const char *errors; } EncoderObject; static PyObject *Encoder_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { EncoderObject *self = (EncoderObject *)type->tp_alloc(type, ...
// // Binocle // Copyright(C)2015-2019 <NAME> // #include <stdio.h> #ifdef __EMSCRIPTEN__ #include "emscripten.h" #endif #include "binocle_sdl.h" #include "binocle_color.h" #include "binocle_window.h" #include "binocle_game.h" #include "binocle_viewport_adapter.h" #include "binocle_camera.h" #include <binocle_input....
/* Definitions of target machine for GNU compiler, for some generic XCOFF file format Copyright (C) 2001-2017 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
// Copyright 2020 ETH Zurich and University of Bologna. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "conv2d_layer.h" #include "gemm.h" #include "layer.h" #include "printf.h" #include "snrt.h" #include "utils.h" #define min(a, b) ((a) < (...
/* ../netlib/dlarrf.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the en...
#include <fcntl.h> #include <sys/ioctl.h> //#include <sys/mman.h> #include <sys/wait.h> #include <linux/kd.h> #include <linux/fb.h> #include <unistd.h> #include <signal.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <math.h> #include <pthread.h> #include <s...
/* * Copyright 2010, 2011 <NAME> * * This file is part of Project Ubertooth. * * 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, or (at your option) * any later version. ...
# include <stdio.h> # include <stdlib.h> # include <string.h> # include <math.h> # include "xtables.h" # include "stis.h" # include "calstis6.h" # include "stispht.h" # include "stisdq.h" # include "stissizes.h" # include "stistds.h" # include "hstcalerr.h" static int getHalo (StisInfo6 *, int, double [], float [], C...
#define _GNU_SOURCE #include <sched.h> #include <signal.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/mman.h> #include "mybmm.h" #include "uuid.h" #include "worker.h" #include "parson.h" #ifdef MQTT #include "mqtt.h" int pack_send_mqtt(mybmm_config_t *conf,mybmm_pack_t *pp) { register int i,j; char ...
/* main.c */ #include "main.h" volatile int interrupted_flag = 0; int debug_flg = 0; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; MIME_TYPE mime[] = { { ".html", "text/html" }, { ".htm", "text/htm" }, { ".js", "application/javascript" }, { ".css", "text/css" }, { ".jpg", "image/jpeg" }, ...
// putenv declaration #define _XOPEN_SOURCE #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include <math.h> // SDL library #include <SDL/SDL.h> #include <SDL/SDL_video.h> // Configuration #define worldSX 16 #define worldSY 16 #define worldSZ 16 #define skyColor RGB(158, 207, 255) #d...
#include "esp8266_ws154b.h" #include "stdint.h" #include "logging.h" #include "gpio.h" #include "osapi.h" #include "driver/spi.h" #include "driver/spi_interface.h" // Reference: https://www.waveshare.com/wiki/1.54inch_e-Paper_Module_(B) // LUT values are from GxEPD Arduino library static const uint8_t WS154B_LUT_VCO...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
#include <stdint.h> #include "../inc/Sprites.h" #include "../inc/tm4c123gh6pm.h" #include "../inc/ST7735.h" #include "../inc/Map.h" #include "../inc/Grid.h" #include "../inc/Timer0.h" #include "../inc/Sprite_Images.h" struct Sprite_t { const unsigned short * currentCharacter; const unsigned short * CharacterN; c...
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #include "ucp_mm.h" #include "ucp_context.h" #include <ucs/debug/log.h> #include <ucs/debug/memtrack.h> #include <ucs/sys/math.h> #include <ucs/sys/sys.h> #include <string.h> #include <inttypes.h> stat...
/* t8.c: write out one line of output table */ # include "t.h" # define realsplit ((ct=='a'||ct=='n') && table[nl][c].rcol) int watchout; int once; void putline(int i, int nl) /* i is line number for deciding format */ /* nl is line number for finding data usually identical */ { int c, s, lf, ct, form, lwid...
/* * Copyright (c) 2019, Arm Limited and affiliates. * 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 of the License at * * http://www.apache.org/licenses/LICENSE-2...
/* * Copyright 2020 Nokia * Licensed under the BSD 3-Clause License. * SPDX-License-Identifier: BSD-3-Clause */ #define _GNU_SOURCE #include "/usr/include/sys/io.h" #include <unistd.h> #include <stdio.h> #include <sched.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <errno.h> #include <intt...
/* * BlueALSA - a2dp-aac.c * Copyright (c) 2016-2021 <NAME> * * This file is a part of bluez-alsa. * * This project is licensed under the terms of the MIT license. * */ #include "a2dp-aac.h" #include <errno.h> #include <pthread.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <string.h...
#include <stdio.h> #include "infra_state.h" typedef struct code_desc_s { int code; char *desc; } code_desc_t; static code_desc_t user_input_desc[] = { {STATE_USER_INPUT_NULL_POINTER, "User input parameters contain unacceptable NULL pointer"}, {STATE_USER_INPUT_OUT_RANGE, "Some user inp...
/* ======================================================================== * Copyright 1988-2006 University of Washington * * 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:...
/*- * Copyright 2003-2005 <NAME> * Copyright 2012 <NAME> * All rights reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted providing that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */ /*- * Copyright (c) 2010 <NAME> <<EMAIL>> * Copyright (c) 2014 <NAME> <<EMAIL>> * Copyright (c) 2015-2016 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted,...
#include <ctype.h> #include <mist.h> #include <retro_timers.h> #include <stdio.h> #include <string.h> #include "../input/input_driver.h" #include "../menu/menu_driver.h" #include "../menu/menu_entries.h" #include "../retroarch.h" #include "../runloop.h" #include "paths.h" #include "verbosity.h" #include "steam.h" st...
#include <stasis/operations.h> #include <stasis/transactional.h> #include <stasis/bufferManager.h> #include <stasis/allocationPolicy.h> #include <stasis/page.h> #include <string.h> #include <assert.h> //try{ /** @file Implementation of Talloc() as an operation This is a bit strange compared to other operati...
/* cctkmodule.c * This file is a part of ccplot: a CloudSat and CALIPSO plotting tool. * * Copyright (c) 2009 <NAME> * * This software is provided under the terms of a 2-clause BSD licence: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fol...
/* * net.c -- network watcher definitions * * Copyright (c) 2015-2017, Afero, Inc. All rights reserved. * * <NAME> and <NAME> */ #include <sys/types.h> #include <arpa/inet.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> #include <pcap/pcap.h> #include <stdint.h> #include <errno.h> #inclu...
/* * Copyright 2017 Advanced Micro Devices, 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, m...
/*********************************************************** Copyright (c) 1993, Oracle and/or its affiliates. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrict...
/* * stdcc_util.c * utility functions used in implementing the ccache api for krb5 * not publicly exported * <NAME>, July 1998 */ #include <stdlib.h> #include <string.h> #if defined(_MSDOS) || defined(_WIN32) #include <malloc.h> #endif #include "stdcc_util.h" #include "krb5.h" #include "kv5m_err.h" #define fie...
/****************************************************************************** * fbtest - fbtest.c * test program for the tuxbox-framebuffer device * tests all GTX/eNX supported modes * * (c) 2003 <NAME> (<EMAIL>) * * This program is f...