text
stringlengths
3.08k
10.5k
/*** promisc.c - handles the promiscuous mode flag for the Ethernet/FDDI interfaces Written by <NAME> Copyright (c) <NAME> 1997, 1998 This module contains functions that manage the promiscuous states of the interfaces. This software is open source; you can redistribute it and/or modify it under the terms of...
#include "xmodem.h" #include <string.h> /* memset() */ #define CRC16 0x1021 /* Generator polynomial (X^16 + X^12 + X^5 + 1) */ static int blknum; /* XMODEM block number */ static int crcflag; /* Sez we are using CRC's instead of cksums */ static uint8_t xmd_packet[XMODEM_PACKETSIZE] = {0}; #define CRC_TABLE_SIZ...
// SPDX-License-Identifier: GPL-2.0 /* * Functions corresponding to password object type attributes under BIOS Password Object GUID for * use with dell-wmi-sysman * * Copyright (c) 2020 Dell Inc. */ #include "dell-wmi-sysman.h" enum po_properties {IS_PASS_SET = 1, MIN_PASS_LEN, MAX_PASS_LEN}; get_instance_id(p...
#pragma once #include <micro/types.h> #include <micro/fs.h> struct inode; struct vm_area; struct dentry; struct file; struct file_ops { int (*open)(struct inode*, struct file*); int (*release)(struct file*); ssize_t (*read)(struct file*, void*, off_t, size_t); ssize_t (*write)(struct file*, c...
#include <pthread.h> #include "thread_pool.h" typedef struct { void (*task)(void *); void *args; } thread_pool_work_t; typedef struct { thread_pool_work_t *works; size_t size; size_t wcount; size_t head; size_t tail; } thread_pool_queue_t; struct thread_pool_t { pthread_t *workers...
#import "pim.h" #import "cJSON.h" #include <pthread.h> #include <time.h> #include <sys/time.h> #include <stdarg.h> static pim_client* client = NULL; void on_disconnected(int reason) { printf("已断开连接,错误码: %d\n", reason); do_connect(); //pim_free_client(client); } void on_packet(pim_packet* p) { ch...
/* * Copyright (C) 2013, 2014 Linaro Ltd; <<EMAIL>> * * This file implements the EFI boot stub for the arm64 kernel. * Adapted from ARM version by <NAME> <<EMAIL>> * * 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 * publ...
/*------------------------------------------------------------------------- * * keywords.c-- * lexical token lookup for reserved words in postgres SQL * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /usr/local/cvsroot/postgres95/src/backend/parser/keywords....
/* * The MIT License (MIT) * * Copyright (c) 2014 <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,...
/* * Copyright (c) 2017 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
#include <stdlib.h> #include "db.h" #include "sqlite3.h" static int db_enabled = 1; static sqlite3 *db; static sqlite3_stmt *insert_block_stmt; static sqlite3_stmt *select_block_stmt; static sqlite3_stmt *update_chunk_stmt; void db_enable() { db_enabled = 1; } void db_disable() { db_enabled = 0; } int get_d...
/************************************************************************** * * Copyright 2003 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software w...
#include "list.h" struct Program { struct Function_list *functions; struct Value *body; }; struct Function_list { struct Function *function_head; char *fun_names_head; struct Function_list *next; }; struct Function { List *arg_list; struct Value *body; }; /* The fact I have to declare 3 ...
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2013,2018 Intel Corporation #include <linux/bitops.h> #include <linux/dmaengine.h> #include <linux/errno.h> #include <linux/slab.h> #include <linux/types.h> #include "internal.h" static void idma32_initialize_chan(struct dw_dma_chan *dwc) { u32 cfghi = 0; u32 cf...
// Copyright 2018 The Fuchsia 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 <ddk/binding.h> #include <ddk/debug.h> #include <ddk/device.h> #include <ddk/platform-defs.h> #include <ddk/protocol/platform/bus.h> #include <ddk...
/* * Copyright © 2010 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
#include <assert.h> #include <ctype.h> #include <fingera_libc/base58.h> #include <fingera_libc/cleanse.h> #include <fingera_libc/sl/buffer.h> #include <stdint.h> #include <stdlib.h> #include <string.h> static const char *BASE58_ENCODE = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; static const int...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include "CMS.h" #include "H2Pack_typedef.h" #include "H2ERI_typedef.h" #include "H2ERI_build_exchange.h" // Initialize a H2ERI structure void H2ERI_init(H2ERI_p *h2eri_, const double scr_tol, const double ext_tol, const double ...
#pragma once #include <stdint.h> #include <string.h> #include <strings.h> typedef enum dt_image_label_t { s_image_label_none = 0, s_image_label_red = 1<<0, s_image_label_green = 1<<1, s_image_label_blue = 1<<2, s_image_label_yellow = 1<<3, s_image_label_purple = 1<<4, s_image_label_selected = 1<...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32f1xx_hal_msp.c * @brief This file provides code for the MSP Initialization * and de-Initialization codes. **************************************************...
/* ZZZZZZZZZZZZZZZZZZZZ 8888888888888 00000000000 ZZZZZZZZZZZZZZZZZZZZ 88888888888888888 0000000000000 ZZZZZ 888 888 0000 0000 ZZZZZ 88888888888888888 0000 0000 ZZZZZ 8888888888888 0000 0000 ...
// SPDX-License-Identifier: GPL-2.0-only /* * This test is intended to reproduce a crash that happens when * kvm_arch_hardware_disable is called and it attempts to unregister the user * return notifiers. */ #define _GNU_SOURCE #include <fcntl.h> #include <pthread.h> #include <semaphore.h> #include <stdint.h> #inc...
/***************************************************************************** * | File : wsepd-image.c * | Author : SvOlli * | Function : main program for e-paper displays based on IT8951 *****************************************************************************/ #include <stdio.h> #include <s...
/* * Copyright (C) 2005 <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 2, or (at your option) * any later version. * * This program is distributed in the hope th...
/* BSD 3-Clause License * * Copyright (c) 2008 Google Inc. * Protocol Buffers - Google's data interchange format * https://developers.google.com/protocol-buffers/ * Copyright (c) 2016 <NAME> * https://github.com/amdn/itoa_ljust/ * Copyright (c) 2018 <NAME> * ...
// 0x0701ED88 - 0x0701EE08 static const Vtx bbh_seg7_vertex_0701ED88[] = { {{{ 1331, 563, 2161}, 0, { 990, 0}, {0xff, 0x00, 0x00, 0x9a}}}, {{{ 922, 154, 2161}, 0, { 0, 990}, {0xff, 0x00, 0x00, 0x9a}}}, {{{ 1331, 154, 2161}, 0, { 990, 990}, {0xff, 0x00, 0x00, 0x9a}}}, ...
#include <stdio.h> #include "include/mvrlu.h" // Original function void gemm_bin(int M, int N, int K, float ALPHA, char *A, int lda, float *B, int ldb, float *C, int ldc) { int i,j,k; for(i = 0; i < M; ++i) { for(k = 0; k < K; ++k) { char A_PART = A[i*lda+k]; if(A_PART){ for(j = 0; j < N; ++j){ ...
#include <string.h> #include <ctype.h> #include "Error.h" #include "Lexer.h" Lexer* Lexer_create(char* source) { Lexer* lexer = (Lexer*)malloc(sizeof(Lexer)); lexer->source = source; lexer->position = 0; lexer->length = strlen(lexer->source); lexer->first = NULL; lexer->last = NULL; return ...
#include <stdio.h> #include <stdlib.h> //Funções do programa void secantes(int n, double X0, double X1, int e, int MAXITER,int ind); void print(double* Xk,double* Fx, double X0, double X1, int max,int ind); //Inicio int main() { int n, max, e, ind; double x0, x1; while (1) { ind++; ...
/* * Copyright 2015 MongoDB, 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 agreed to ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define NAME_LENGTH_LIMIT 128 #define OPERATOR_LENGTH_LIMIT 8 typedef struct MemBlock { size_t lo, hi; char *name; struct MemBlock *prev, *next; } MemBlock; size_t mem_size = 0; MemBlock *mem; MemBlock *make_block(size_t lo, size_t hi, const ch...
/* * * (c) 2005-2009 <NAME> <<EMAIL>> * * This file has been copied from EMILE, http://emile.sf.net * * some parts from mkisofs (c) <NAME> * */ #include "libiso9660.h" #include "libopenbios/bindings.h" #include "libc/diskio.h" void iso9660_name(iso9660_VOLUME *volume, struct iso_directory_record *idr, char *b...
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope tha...
#include "geminc.h" #include "gemprm.h" #include "uscore.h" struct int_info { float x; float y; int d; int i; int l; }; struct int_info *_I_Info; /* * Private function */ void ggsort ( int *nint, float *x, float *y, int *d, int *i, int *l, int *iret ); int ggsort_ints ( struct...
#include "image.h" #include <string.h> #include <malloc.h> #include <math.h> #include <limits.h> #include <stdlib.h> #define M_PI 3.14159265358979323846264338327950288 typedef void (pixel_fn)(struct pixel* const, const struct pixel* const); static void pixel_max(struct pixel* const target, const struct pixel* cons...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.2.0 * Git version: dcef523 * Options: (none) * Seed: 3456491848 */ #include "csmith.h" static long __undefined; /* --- Struct/Union Declarations --- */ union U5 { uint8_t f0; int16_t f1; const volatile signed f2 : 8; }; /* ...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Sysfs entries for PCI Error Recovery for PAPR-compliant platform. * Copyright IBM Corporation 2007 * Copyright <NAME> <<EMAIL>> 2007 * * Send comments and feedback to <NAME> <<EMAIL>> */ #include <linux/pci.h> #include <linux/stat.h> #include <asm/ppc-pci.h> #incl...
/******************************************************************************/ /* */ /* src/kernel/InitCtrl/InitCtrl.c */ /* 2021/05/22...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) International Business Machines Corp., 2004 * Copyright (c) Linux Test Project, 2004-2017 * * Test Name: hugemmap02 * * Test Description: There is both a low hugepage region (at 2-3G for use by * 32-bit processes) and a high hugepage region (at 1-1...
#include "compiler.h" #include "dosio.h" #include "textout.h" enum { _NOERROR = 0, ERROR_INPUT, ERROR_OUTPUT, ERROR_MEMORY, ERROR_SYSTEM }; typedef struct { BYTE *ptr; int size; } _PACK, *PACK; static int lzpacking(const BYTE *data, int datasize, PACK lz, int level) { int maxlen; int...
#include <fcntl.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <time.h> #include <unistd.h> #define FIB_DEV "/dev/fibonacci" #define sample_num 10000 static inline long long absll(long long value) { return value < 0 ? -value : value; } long long fi...
#include "repo.h" #include "log.h" #include "util.h" #include "options.h" #include "capture.h" #include <string.h> #include <stdlib.h> #include <ctype.h> // Constants static const char *AHEAD_GLYPH = "↑"; static const char *BEHIND_GLYPH = "↓"; static const char *DIRTY_GLYPH = "*"; static const char *UNTRACKED_GLYPH = ...
/********************************************************* * Copyright (C) 1998-2017 VMware, Inc. 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 version 2.1 an...
/* SPDX-License-Identifier: BSD 3-Clause License */ /* Copyright (c) 2022, University of Washington, Max Planck Institute for Software Systems, and The University of Texas at Austin */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/un.h> #include <sys/socket.h> #include <sys/types.h> #include...
/* baud_test.c * * test setting the baudrate and compare it with the expected runtime * * options: * -p <devicestring> defaults to "i:0x0403:0x6001" (this is the first FT232R with default id) * d:<devicenode> path of bus and device-node (e.g. "003/001") within usb device tree (usually at /proc/bus/usb/) *...
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2003 * Sleepycat Software. All rights reserved. */ #include "db_config.h" #ifndef lint static const char revid[] = "$Id: mut_fcntl.c,v 11.24 2003/05/05 19:55:03 bostic Exp $"; #endif /* not lint */ #ifndef NO_SYSTEM_INCLUDES #inc...
// SPDX-License-Identifier: GPL-2.0 /* * linux/drivers/staging/erofs/unzip_vle_lz4.c * * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ * Created by <NAME> <<EMAIL>> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main ...
/*---------------------------------------------------------------------------- Copyright (c) 2020 LumenRadio AB This code is the property of Lumenradio AB and may not be redistributed in any form without prior written permission from LumenRadio AB. -----------------------------------------------------------------------...
// Math library required for ‘sqrt’ #include <math.h> // System constants #define PI 3.14159265359f #define SAMPLING_RATE 0.01f // sampling period in seconds (shown as 1 ms) #define GYRO_MEAS_ERROR_DEG 5.0f #define GYRO_MEAS_ERROR (PI * (GYRO_MEAS_ERROR_DEG / 180.0f)) // gyroscope measurement error in rad/s (shown as 5...
/* testtreeflow.c * Copyright (C) 2001 Red Hat, Inc * Author: <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any l...
#include <sys/time.h> #include <sys/types.h> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <search.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "blaze822.h" /* design rationale: - only MBOX-RD because it's the only reasonable loss...
// PROTOCOL LAYER // Source file of the UDP component. // components #include "./pl_udp.h" #include "../general/general.h" // esp-idf #include "esp_log.h" #include "esp_netif.h" #include "esp_sntp.h" #include "freertos/task.h" #include "lwip/def.h" #include "lwip/err.h" #include "lwip/inet.h" #include "lwip/sockets....
#include <stdlib.h> #include <string.h> #include <memory.h> #include "tinytest.h" #include "array.h" TINYTEST_DECLARE_SUITE(arraysuite); /*********** * * Units tests * **********/ void int_copy( void **_to, void *_from ){ int *to = *(int**)_to; int *from = (int*)_from; *to = *from; } int test_array_create( c...
/*------------------------------------------------------------------------ * Copyright 2009 (c) <NAME> <<EMAIL>> * * This file is part of the ZBar Bar Code Reader. * * The ZBar Bar Code Reader is free software; you can redistribute it * and/or modify it under the terms of the GNU Lesser Public License as * ...
#include "gba.h" #include "internal.h" #include "ppu/ppu.h" #include "arm7tdmi/arm7tdmi.h" #include "util/string.h" #include <string.h> #include <assert.h> bool GBA_init(struct GBA_Core* gba) { if (!gba) { return false; } memset(gba, 0, sizeof(struct GBA_Core)); return true; } void...
#include <ngx_http.h> #include "nchan_defs.h" //string constants //headers const ngx_str_t NCHAN_HEADER_ETAG = ngx_string("Etag"); const ngx_str_t NCHAN_HEADER_IF_NONE_MATCH = ngx_string("If-None-Match"); const ngx_str_t NCHAN_HEADER_VARY = ngx_string("Vary"); const ngx_str_t NCHAN_HEADER_ALLOW = ngx_string("Allow...
/** * @file app2.c * * @brief Application code 2 : Receiving every 8 seconds with pollrx * * Application code used for testing general functionality and * lowapp_cmd calls without using stdin. * * @author <NAME> * @date October 4, 2016 */ #include <stdio.h> #include <stdlib.h> #include <uuid/uuid.h> #include ...
#include <stdio.h> #include <errno.h> #include <sys/socket.h> #include <resolv.h> #include <arpa/inet.h> #include <errno.h> #include<stdlib.h> #include<string.h> #define println() printf("\n"); #define MY_PORT 9999 #define MAXBUF 1024 static int dbg=0; void debug(){ dbg++; printf("Debug:%d\n\n",dbg); fflush(stdi...
#include <dlfcn.h> #include <mach-o/dyld.h> #include <mach-o/nlist.h> #include "../library_platform.h" #include <glug/library/library.h> #include <glug/library/handle.h> #include <string.h> #include <stdlib.h> #if defined(__LP64__) typedef struct mach_header_64 mach_header_t; typedef struct segment_command_6...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
// ecg.c // Parametric ECG wave function based on the following MATLAB source. // mathworks.com/matlabcentral/fileexchange/10858-ecg-simulation-using-matlab // Note that the separate series for waves were merged into a single loop. // Author: <NAME> // Year: 2022 // -----------------------------------------------------...
/* This file contains functions that handle complex arrays and Fast Fourier Transform operations: FFTShift - can be used to re-center cross correlation result AllocCmplxArray - complex array memory management FreeCmplxArray InitCmplxArray fft2d - forward 2-D FFT ifft2d - ...
#include "Connection.h" #define BUFFER_SIZE (65536 - sizeof(StackNode)) #define DEFAULT_PORT 8888 static uv_loop_t *g_puvLoop; static uv_tcp_t g_server; static Connection *g_pClient = NULL; DPool g_dpBuffers; DPool g_dpConnections; static U32 g_uConnections = 0; static uv_tty_t g_uvhStdin; static Buffer g_bfrStdin; ...
#include <aubio.h> #include "utils_tests.h" int test_wrong_params(void); int main(int argc, char **argv) { uint_t err = 0; if (argc < 3 || argc >= 6) { PRINT_ERR("wrong number of arguments, running tests\n"); err = test_wrong_params(); PRINT_MSG("usage: %s <input_path> <output_path> [samplerate] [hop_...
/* HID support code for libusb */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <libusb.h> #include "hid.h" // HID handle struct hid_handle { // libusb handle libusb_device_handle *libusb_handle; // IN and OUT endpo...
// // 2x16 LCD display (HD44780 controller + I2C chip) // // Copyright (c) BitBank Software, Inc. // Written by <NAME> // <EMAIL> // Project started 12/6/2017 // // 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 // t...
#include "config.h" #include <stdlib.h> #ifdef HAVE_MALLOC_H #include <malloc.h> #endif #include <math.h> #include <stdio.h> #include "gadem.h" #include "defines.h" #include "random.h" int Compare_double2(const void *s1, const void *s2); void sort_double2(double *data,int size); double vector_similarity(void) { ...
/* * Copyright 2016 <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 to in wr...
/** * collectd - src/logfile.c * Copyright (C) 2007 <NAME> * Copyright (C) 2007,2008 <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; only version 2 of the License is applicable...
/* * fs/exec.c * * This file is part of JunOS Operating System. * * Copyright (C) 2016, <NAME> <<EMAIL>> * Licensed under MIT, http://opensource.org/licenses/MIT. */ #include <junos/junos.h> static inline long count(char **arg) { int count = 0; while (*arg++) count++; return count; } ...
/* avr_eeprom.c IO module that simulates the AVR EEProm Copyright 2008, 2009 <NAME> <<EMAIL>> This file is part of simavr. simavr 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...
/* * 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 ...
#include "ejson/json_iface_utils.h" #include <string.h> #include <math.h> #include <stdio.h> struct are_different_enum_state { int ret; struct jnode *p_other; struct cop_salloc_iface *p_alloc; }; static int are_different_jdict_enumerate(struct jnode *p_node, const char *p_key, void...
#include "mmf_sink.h" #include "i2s_api.h" #include "g711/g711_codec.h" #define BUF_BLK 3 //MUST BE GREATER OR EQUAL TO 2 static u8 i2s_dec_buf[320]; //store decoded data static u8 i2s_chl_buf[640*(BUF_BLK+1)]; //store mono2stereo data #define I2S_DMA_PAGE_NUM 2 #define I2S_DMA_PAGE_SIZE (640) static u8 i2s_tx_buf[I...
/* * Author: <NAME> <<EMAIL>> * * 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 righ...
#include <stdio.h> #include <emscripten.h> #include <string.h> #include <emscripten/html5.h> void report_result(int result) { if (result == 0) { printf("Test successful!\n"); } else { printf("Test failed!\n"); } #ifdef REPORT_RESULT REPORT_RESULT(); #endif } static inline const char *emscripten_event_...
/* * This file is part of the coreboot project. * * Copyright (C) 2012 Advanced Micro Devices, 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; version 2 of the License. * * This ...
#include "tar.h" #include <fs/vfs.h> static tar_header_t **headers; static size_t numHeaders = 30; static size_t getTarSize(const char *in) { size_t size = 0; size_t j; size_t count = 1; for (j = 11; j > 0; j--, count *= 8) size += ((in[j - 1] - '0') * count); return size; } void ...
/*****************************************************************************\ ** ** ** FILE: netmail.c ** ** AUTHORS: Alexios ** **...
/* * Copyright © 2021 Collabora Ltd. * * Derived from tu_image.c which is: * Copyright © 2016 Red Hat. * Copyright © 2016 <NAME> * Copyright © 2015 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Soft...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_env_check.c :+: :+: :+...
/*---------------------------------------------------------------------------- * File: ooaofooa_SM_EIGN_class.c * * Class: Event Ignored (SM_EIGN) * Component: ooaofooa * * your copyright statement can go here (from te_copyright.body) *------------------------------------------------------------...
/* * Copyright (c) 2017 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
#include<stdlib.h> #include<stdbool.h> static int max(const int a, const int b){return a>b?a:b;} typedef struct node{ int key; int rank; int size; struct node *left, *right; } node; typedef struct { node *left, *right; } node_pair; int get_rank(node *x){return x == NULL ? -1 : (*x).rank;} int get_size(node *x){r...
/* * Copyright (c) 2015, Weptech elektronik GmbH Germany * http://www.weptech.de * * 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 ab...
#include "Core.h" void timerCallback( EFI_EVENT event, void* context ); void togglePause( Core* this ); void gameOver( Core* this ); void startGame( Core* this ); void resetTickCounter( Core* this ); void handleInput( Core* this ) { EFI_INPUT_KEY key; EFI_STATUS status; status = gST->ConIn->ReadKeyStroke( gST->Co...
/* * minimal.c * * Created on: 01/05/2013 * Author: valle */ // gcc minimal_exe6.c -o test -lGL -lGLU -lglut // ./test #if __APPLE__ #include <GLUT/glut.h> #include <OpenGL/gl.h> #include <OpenGL/glu.h> #else #include <GL/glut.h> #include <GL/gl.h> #include <GL/glu.h> #endif #include <s...
/* * Copyright 2010,2013 Red Hat, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, and the entire permission notice in its en...
/* pdp10_fe.c: PDP-10 front end (console terminal) simulator Copyright (c) 1993-2012, <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 lim...
/* mkdir -- make directories Copyright (C) 1990, 1995-2002, 2004-2011 Free Software Foundation, 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 3 of the License, or ...
/****************************************************************************** * * Copyright 2017 Xaptum, 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 * * htt...
#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "dijkstra.h" Graphe* createGraphe(const char* nom, char* sSommets[], int nSommets, sArc* sArcs, int nArcs) { Graphe* graphe = malloc(sizeof(Graphe)); Sommet* sommets = malloc(nSommets * sizeof(Sommet)); Arc* arcs = ma...
#include <stdio.h> #include <unistd.h> #include <time.h> #include <signal.h> #include "easy_setup.h" int killed = 0; int debug_enable = 0; void usage() { printf("-h: show help message\n"); printf("-d: show debug message\n"); printf("-k <v>: set 16-char key for all protocols\n"); printf("-t <v>: easy_s...
#include "all.h" /// static int connection_on_message_begin(http_parser * parser) { struct connection * this = (struct connection *)parser->data; assert(this != NULL); assert(this->response_frame == NULL); this->idling = false; this->response_frame = ft_pool_borrow(&app.context.frame_pool, FT_FRAME_TYPE_RAW_D...
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * This file was modified from <NAME>'s verifier for nacl: * https://github.com/mseaborn/x86-decoder */ #include <assert.h> #include <elf.h>...
/* =================================================== * file: main.c * --------------------------------------------------- * purpose: main program for CRG test program * calculating z values and from a registered * array of x/y co-ordinates * --------------------------------...
#include<time.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include<string.h> #include <mqtt.h> #include "templates/posix_sockets.h" //#include "mqtt_helper.h" #include "device.c" #include"parse.h" #define ADDR "test.mosquitto.org" #define PORT "1883" #define SENSORS "sensors" #define ACTUATORS "actua...
/* * in-kernel handling for sie intercepts * * Copyright IBM Corp. 2008, 2009 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License (version 2 only) * as published by the Free Software Foundation. * * Author(s): <NAME> <<EMAIL>> * ...
// Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. // All Rights reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for ...