text
stringlengths
3.08k
10.5k
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <termios.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <time.h> #include <sys/socket.h> #include <netinet/in.h> #include "rtklib.h" #define STR_NTRIPSVR 6 #define STR_MODE_W 0x2 #define SIZE_BUFFER 256 typedef struct { int ...
#include "common.h" #define FUSE_USE_VERSION 26 #include <fuse.h> #include <glib.h> #include <glib-object.h> #include <ccnet.h> #include <ccnet/ccnet-object.h> #include <seaf-db.h> #include "log.h" #include "utils.h" #include "seaf-fuse.h" #include "seafile-session.h" static char *replace_slash (const char *repo...
#include "word_list.h" #define ErrorCase(condition, err, ret_val) { \ if (condition) { \ errno = err; \ return ret_val; \ } \ } int word_list_init(struct word_list *wl, long size) { ErrorCase(wl == NULL, EINVAL, -1); ErrorCase(size <= 0, EINVAL, -1); wl->size = size; wl->num_words = 0; wl->words = malloc...
#include <stdio.h> #include <stdlib.h> #include "CUnit/Basic.h" typedef unsigned char byte; typedef struct b_tree{ void *c; //-> void* c long long int freq; struct b_tree *next; struct b_tree *left; struct b_tree *right; } BinaryTree; //elementos da hash sao vetores que a...
#include "head.h" #include <mmu.h> #include <log.h> struct kernel_info *info = nil; int main_eid = -1; void log(int level, char *fmt, ...) { #if 1 char buf[256]; va_list a; va_start(a, fmt); vsnprintf(buf, sizeof(buf), fmt, a); va_end(a); kern_debug(buf); #endif } int handle_mem_req(int eid, int from, un...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parser.c :+: :+: :+: ...
#include "types.h" #include "defs.h" #include "param.h" #include "mmu.h" #include "proc.h" #include "spinlock.h" #include "sleeplock.h" struct msg { struct msg *next; long type; char *dataaddr; int dataszie; }; struct mq { int key; int status; struct msg *msgs; int maxbytes; int c...
/* * BRAINS * (B)LR (R)everberation-mapping (A)nalysis (I)n AGNs with (N)ested (S)ampling * <NAME>, <EMAIL> * Thu, Aug 4, 2016 */ /*! * \file allvars.c * \brief define all variables. */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <mpi.h> #include "allvars.h" /* MPICH */ int thistask,...
#include "array_list_illustration.h" /** \fn void print_line(size_type n) * \brief Print a line with given width. */ void print_line(size_type n) { for (size_type i = 0; i < n; i++) printf("-"); printf("\n"); } /** \fn print_array_list(parray_list pa, size_type begin, size_type end, size_type b, size_typ...
/******************************************************************************* * FILENAME: Headers.c * * PROJECT: * Bitty HTTP * * FILE DESCRIPTION: * This file has common header for the web site. * * COPYRIGHT: * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of ...
/* * Copyright (C) 2017 Intel Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
#include "cpu.h" #include "cpu/instr.h" #include <inttypes.h> #include <string.h> #include <stdlib.h> #include <stdio.h> cpu_t *cpu_new(mem_t *mem) { cpu_t *cpu = calloc(sizeof(*cpu), 1); if (!cpu) { fprintf(stderr, "allocation failed\n"); return NULL; } cpu->mem = mem; return cpu; } void cpu_del(cpu_t *c...
/************************************************************************/ /* */ /* RCPP - Resource Compiler Pre-Processor for NT system */ /* */ /* P0DEFS.H - De...
/* Copyright 2018 <NAME> / MxBlue * * 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 distribut...
/* Copyright (C) 2013 - 2015 CurlyMo This file is part of pilight. pilight 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. pilight ...
/* * Simple test program for dist_texture SPU. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <GL/glut.h> static GLfloat Xrot = 0, Yrot = 0, Zrot = 0; static GLboolean Anim = GL_TRUE; static void Idle(void) { Zrot += 0.5; glutPostRedisplay(); }...
/* $OpenBSD: ldcvar.h,v 1.6 2014/09/29 17:43:29 kettenis Exp $ */ /* * Copyright (c) 2009 <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * ...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <memory.h> #include <stdlibadd/assert.h> #include <agx/lib/putpixel.h> #include "libimg.h" #include "nanojpeg.h" #define BMP_MAGIC 0x4D42 // 'BM' with flipped endianness typedef struct bmp_file_header { uint16_t signature; uint32_t size; uint32_t...
#include <apic.h> #include <stdint.h> #include <print.h> #include <msr.h> #include <utils.h> #include <ioapic.h> #include <smp.h> #include <cpuid.h> #include <acpi/tables.h> #define APIC_REGISTER_SPURIOUS 0xF0 #define APIC_REGISTER_EOI 0xB0 #define APIC_REGISTER_LINT0 0x350 #define APIC_REGISTER_LINT1 0x360 #define AP...
/* strftime.c - date formatting ncc standard library Copyright (c) 1977-1995 by <NAME>. All rights reserved. Copyright (c) 2021 <NAME> (<EMAIL>). Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2019 Rubicon Communications, LLC (Netgate) * * 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 ...
/* BSD 2-Clause License */ /* Copyright (c) 2020, <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...
#include "stride.h" /************************************************************************* ** ** ** Calculate the number of individual secondary structure elements of ** ** type SecStrType and length not less than ElemLength that are: **...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <strings.h> #include <lib.h> #include <scheduler.h> #include <memoryManager.h> #include <console.h> #include <mutex.h> static mutNode * first = 0; /* Static ...
/* * Copyright 2015 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the...
/*++ Copyright (c) 1990 Microsoft Corporation Module Name: Monitorp.h Abstract: This contains the function prototypes, constants, and types for the monitor. Author: <NAME> (daveh) 16 Mar 1991 Revision History: --*/ #include <nt.h> #include <ntrtl.h> #include <nturtl.h> ...
// symmetric min max tree // from textbook #include<stdio.h> #include<stdlib.h> #define MAXLEN 100 #define SWAP(x,y,t)((t)=(x),(x)=(y),(y)=(t)) typedef struct { int key; }element; element heap[MAXLEN]; void show(element heap[], int n){ int i; printf("idx: "); for(i = 1; i < n+1; i+=1){ printf("%3d ",i); } ...
#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...
/* * icl::protoip * Author: asuardi <https://github.com/asuardi> * Date: November - 2014 */ #include <stdio.h> #include "xparameters.h" #include "netif/xadapter.h" #include "platform.h" #include "platform_config.h" #include "lwipopts.h" #ifdef __arm__ #include "xil_printf.h" #endif #define INVALID 0 #include...
/* ************************************************************************************************* * * Emulation of National Semiconductor LM75 I2C-Temperature Sensor * * State: Temperature reading is possible (fixed value). * Everything else doesn't work * * You can crash real LM75 by creating a stop/s...
/* private MMC helper routines. Copyright (C) 2004, 2005, 2006, 2008 <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an...
#include <errno.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/time.h> #include <netinet/in.h> #include <sys/socket.h> #include <netdb.h> #include <string.h> #include <fcntl.h> #include <stdlib.h> #include <time.h> #pragma pack(push, 1) // in typedef struct handshake_packet { uint8_...
/*****************************************************************/ /* Biblioteca vetor | PROG2 | MIEEC | 2014/15 */ /*****************************************************************/ #include "vetor.h" #include <string.h> #include <stdlib.h> #include <stdio.h> #include <time.h> vetor *vetor_novo(...
/* * Copyright (C) 2017 Institute of Applied and Experimental Physics (http://www.utef.cvut.cz/) * * 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 3 of the License, o...
/* * Copyright (C) 2010 The Android Open Source Project * Copyright (C) 2015-2016 The CyanogenMod Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
#include <asm-generic/errno-base.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <readline/history.h> #include <readline/readline.h> #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <termios.h> #include <unistd.h> #include <wordexp.h> #...
/** * Disassembler * by pyroesp, aka <NAME> * * Date: 1/09/2014 * * License: * This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. **/ #include "../include/config.h" uint8_t config_ReadFile(DISASM *pDisasm, char *configPath) { FILE *fi...
/* core.c version $Date: 2016/01/22 12:57:37 $ aes256encrypt <NAME> Public Domain */ #include "crypto_core.h" #include <arm_neon.h> #include "stdaes-common.h" #define AES_USE_ASM /* this one uses 'aese' for the sbox (only), and is slower than the C code */ static inline void aes256_armv8_setkey_encrypt(const...
/* * Tutorial 4 Jeopardy Project for SOFE 3950U / CSCI 3020U: Operating Systems * * Copyright (C) 2015, <GROUP MEMBERS> * All rights reserved. * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "questions.h" // Initializes the array of questions for the game void initialize_game(void) { ...
/**********************************************************************************/ /* MIT License */ /* */ /* Copyright (c) 2021 <NAME>, <NAME> */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining a copy */ /* of this software and associated docum...
/* * This file is part of the pCloud Console Client. * * (c) 2021 <NAME> <<EMAIL>> * (c) 2013-2015 pCloud Ltd * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ #include "config.h" #include "overlay_client.h" #include <netinet/in....
/* Exercise 5 - send() Run these tests using `make test`. These tests are a little more complicated than usual. They spin up a second thread that will listen and accept connections on a socket and attempt to send a message out. You will implement the send_message() method that this thread invokes ...
/* Copyright (c) 2012 <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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
/****h* debug/testAction * NAME * testAction.c * SYNOPSIS * ??? * FUNCTION * NOTES * BUGS * SEE ALSO *****/ #include <gtk/gtk.h> /***f* testAction/funcs * AUTHOR * PGB * SOURCE */ void func1 ( GtkAction *action, gpointer user_data ) { printf ( "hallo1\n" ); } void func2 ( GtkAction *action, gpointer user...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "util.h" typedef struct { int data; double priority; int dir; int step; double dist; } HeapType; typedef struct { HeapType *data; int *list;//用来存储元素对应位置的地址表 int n; int MaxSize; } Heap; Heap *InitHeap(int MaxSize);...
/* Copyright (c) 2010 - 2017, Nordic Semiconductor ASA 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 * l...
#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...
/* * Copyright 2021, Cypress Semiconductor Corporation or a subsidiary of * Cypress Semiconductor Corporation. All Rights Reserved. * * This software, associated documentation and materials ("Software"), * is owned by Cypress Semiconductor Corporation * or one of its subsidiaries ("Cypress") and is protected by...
// // PGCAutoreleasePool.c // PGCFoundation // // Created by <NAME> on 2/26/2012. // Copyright (c) 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 restrictio...
/* j/5/argon2.c ** */ #include "all.h" #include <argon2.h> /* helpers */ int argon2_alloc(uint8_t** output, size_t bytes) { *output = u3a_malloc(bytes); return (NULL != output); } void argon2_free(uint8_t* memory, size_t bytes) { u3a_free(memory); } /* functions */ u3_noun u3qe_argon2(...
/* * Copyright (C) <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <ctype.h> /* hexagonal coordinate calculating +---x---> │ │ 0 │ 2 │ 4 │ 6 y=-1 -4-2 0 2 4 y ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ "╲ -3-1 1 3 5 │ -1 │ 1 │ 3 │ 5 │ 7 ⎹ -4-2 0 2 4 v ╲...
/* * Copyright © 1987 <NAME> * [This program is licensed under the "MIT License"] * Please see the file COPYING in the source * distribution of this software for license terms. */ #include <stdlib.h> #include <stdio.h> #include <Xm/Xm.h> #include "inspmc.h" static unsigned int one = 1; static Boolean parsefroms...
/* * Copyright (c) 2002, Stockholms Universitet * (Stockholm University, Stockholm Sweden) * 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 ret...
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.2.0 * Git version: dcef523 * Options: (none) * Seed: 43448120 */ #include "csmith.h" static long __undefined; /* --- Struct/Union Declarations --- */ struct S0 { volatile signed f0 : 10; const volatile signed f1 : 23; volatile...
/* * The user structure. * One allocated per process. * Contains all per process data * that doesn't need to be referenced * while the process is swapped. * The user block is USIZE*64 bytes * long; resides at virtual kernel * loc 140000; contains the system * stack per user; is cross referenced * with the pro...
/* NETWORK PROGRAMMING WITH SOCKETS In this program we illustrate the use of Berkeley sockets for interprocess communication across the network. We show the communication between a server process and a client process. Since many server processes may be running in a system, we identify the desired ser...
struct sam_state_struct { /* Memory map mode */ uint8 ty_control_bit; /* Memory size */ uint8 m1_control_bit; uint8 m0_control_bit; /* MPU cycle rate */ uint8 r1_control_bit; uint8 r0_control_bit; /* Page number */ uint8 p1_control_bit; /* Video display starting address *...
/*! \file bcmtm_imm_device_pkt_rxq.c * * TM Device RX Queue configuration IMM Handlers. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <shr/shr_deb...
#include "../include/main.h" //Assumes no particular order for the CELL_array //This seems to work well when the majority of cells are roughly the same, with large outliers void segregate_cells_randomly(struct condensed* information){ //Cells are divided randomly into two temporary partiton lists // ex. If rand() >0...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <fcntl.h> #include <libipc.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <sys/select.h> #define MIN(a, b) (((a) < (b)) ? (a) : (b)) int mai...
/********************************************************************** * ONC RPC for WIN32. * 1997 by WD Klotz * ESRF, BP 220, F-38640 Grenoble, CEDEX * <EMAIL> * * SUN's ONC RPC for Windows NT and Windows 95. Ammended port from * <NAME>'s distribution. This version has been modified * and cleaned, suc...
#include "hotspot.h" void release_wait() { FILE *fp; fp = fopen(HOTSPOT_RELEASE, "w"); fclose(fp); while (!access(HOTSPOT_RELEASE, F_OK)) sleep(1); } void hotspot(char *shmbuf, int shmsz, int id, bool random, int rw_ratio) { int i; int j; int size; int start; srand((unsi...
#include "ecoz2.h" #include "lpc.h" #include "vq.h" #include "hmm.h" #include <string.h> #include <stdlib.h> // rand, srand, arc4random (on macos) #if defined(__APPLE__) static inline unsigned get_seed(void) { return (unsigned) arc4random(); } #else #include <sys/time.h> #include <errno.h> ...
/* Extended Module Player * Copyright (C) 1996-2010 <NAME> and <NAME> * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See doc/COPYING * for more information. */ /* * MED 1.12 is in Fish disk #255 */ #ifdef HAVE_CONFIG_H #...
/****************************************************************************/ /* */ /* This file is part of CONCORDE */ /* */ /* ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> const char *boxers[] = { "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "Great Tiger", "<NAME>", "<NAME>", "Mr. Sandman", "Super Macho Man", "<NAME>" }; const char *combatMoves[] = { "throws a right punch!", "throws a left p...
/* SX1276 Register (address) Register bit field (bit #) Values Note RegOpMode (0x01) LongRangeMode[7] ‘1’ LoRa mode enable Mode[2:0] ‘101’ Receive Continuous mode -----------------------------------------------...
#include <string.h> #include <ctype.h> #include <stdio.h> #include <errno.h> #include "common.h" #include "logging.h" #include "config.h" #include "access.h" char * email_from; char * email_host; char * email_user_pass; char * email_rcpt; char ** supr_child_args; struct StringList tmp_arg; u32 day_sec_open; u32 day_s...
/* Copyright (c) 2010 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. */ /* C port of DumpPublicKey.java from the Android Open source project with * support for additional RSA key sizes. (platform/system/core,git/li...
#include <errno.h> #include <sys/shm.h> #include <sys/mman.h> #include "frida-gumjs.h" #include "entry.h" #include "intercept.h" #include "prefetch.h" #include "stalker.h" #include "util.h" #define TRUST 0 #define PREFETCH_SIZE 65536 #define PREFETCH_ENTRIES ((PREFETCH_SIZE - sizeof(size_t)) / sizeof(void *)) #defi...
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_quick_sort_f32.c * Description: Floating point quick sort * * $Date: 2019 * $Revision: V1.6.0 * * Target Processor: Cortex-M and Cortex-A cores * --------------------------...
/* * This an unstable interface of wlroots. No guarantees are made regarding the * future consistency of this API. */ #ifndef WLR_USE_UNSTABLE #error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features" #endif #ifndef WLR_TYPES_WLR_BUFFER_H #define WLR_TYPES_WLR_BUFFER_H #include <pixman.h> #include <wayla...
/* * Copyright (C) 2014 The Regents of the University of California. * * 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...
// // Created by maillein on 2021/02/24. // #include <stdio.h> #include <stdlib.h> #include "../include/double_linked_list.h" struct Node *create_node(int data) { struct Node *new = (struct Node *)malloc(sizeof(struct Node)); new->data = data; new->next = new; new->prev = new; return new; } void init_dll(struct...
/* * Copyright (C) 2009, <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 * published by the Free Software Foundation. * * You should have received a copy of the GNU General Public License along * wit...
/* * netmon - simple Linux network monitor * * Copyright: (C) 2019 jawi * License: Apache License 2.0 */ #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #incl...
// SPDX-License-Identifier: GPL-2.0 /* * ci_hdrc_pci.c - MIPS USB IP core family device controller * * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved. * * Author: <NAME> */ #include <linux/platform_device.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/interrupt.h> ...
/*************************************************************************** * Copyright (C) 2010-2012 by <NAME> <<EMAIL>> * * * * Based on Logitech G13 driver (v0.4) * * Copyright (C) 2009 by <NAME>, ...
#include <assert.h> #include <fstrace.h> #include <fsdyn/fsalloc.h> #include <fsdyn/list.h> #include "pacer.h" #include "async_version.h" struct pacer { async_t *async; uint64_t uid; double rate, initial, maximum; uint64_t start_time; async_timer_t *timer; list_t *queue; }; struct pacer_ticket...
/*************************************************** * * @author Linwish * * @date 20190601 * * @discription A simple shell written in c * ****************************************************/ #include <sys/wait.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h>...
/* * Scheduling of process and threads * * Copyright 2018 <NAME> */ // Includes #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdio_ext.h> // Defines #ifdef linux #define OS "linux" #endif #ifdef _WIN32 #define OS "windows" #endif #define MIN_NUMBER_OF_PROCESSES 1 #d...
#include <ctype.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <unistd.h> #define MAX_LENGTH 3000 int out, in, pid, empty; char rawcommand[MAX_LENGTH], *commands[MAX_LENGTH], *tokens[MAX_LENGTH], *infile, *outfile, *alternate_tokens[MAX_LENGTH]; vo...
/* * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a copy of ...
#include <lib9.h> #include <image.h> #include <interp.h> #include <isa.h> #include "../interp/runt.h" #include <drawif.h> #include <prefab.h> Draw_Rect edgerect(Prefab_Environ *e, Draw_Point p, Draw_Rect *rin) { Draw_Rect r; Screen *s; r.min.x = p.x; r.min.y = p.y; r.max.x = p.x + 1 + Dx(*rin) + 1; r.max.y = p....
/*---------------------------------------------------------------------------- * File: ooaofooa_TE_UNRELATE_USING_class.c * * Class: OAL urelate_using (TE_UNRELATE_USING) * Component: ooaofooa * * your copyright statement can go here (from te_copyright.body) *------------------------------------...
/* Copyright (c) 2011 <NAME>, <NAME>, and contributors 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...
/* Author: <NAME> <<EMAIL>> Copyright (c) 2015 Cromulence LLC 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) International Business Machines Corp., 2001 * * 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 l...
/* Screen Doors*/ #define STRICT #include <windows.h> #include "Init_End.h" #include "kbmain.h" //keyboard header file from 3keyboar #include "resource.h" /*************************************************************/ //Functions in this file /********************************************************...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ui_jtoc_create_modal_ok.c :+: :+: :+: ...
/*- * Copyright (c) 2013 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
/******************************************************************************* MPLAB Harmony Application Splash Screen Source File Company: Microchip Technology Inc. File Name: app_splash.c Summary: This file contains the source code for the demo splash screen. Description: ...
#include <stdio.h> #include "api.h" #include "console.h" #include "graphic.h" #include "io.h" #include "sheet.h" #include "task.h" #include "window.h" int *hrb_api(int edi, int esi, int ebp, int esp, int ebx, int edx, int ecx, int eax) { struct Task *task = task_now(); int ds_base = task->ds_base; ...
/* *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved. * *Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the *"Software"), to deal in the Software without restriction, including *without limitation the rights ...
/* SPDX-License-Identifier: GPL-3.0-or-later * * Microcode programmable logic matrix analyzer. * Copyright 2015-2020 <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 3 * as published by the Free Software Found...
#include <string.h> #include "mex.h" #include "sqlite3.h" #include "sqlite4m.h" char *getzsql(int nrhs, const mxArray *prhs[], int *iargbind) { mxArray *mxColList; const mxArray *mxArgs[3]; int ldestroy; char *zsql, *strbuf; /* Argument is the table column names or numbers, one of either 1) if empty se...
/****************************************************************************** * * Copyright (C) 2002 - 2015 Xilinx, 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 Softw...
/* * CC_ENUMERATOR.C * * This file is part of the CCollections library. * * CCollections is licensed under the BSD-2-Clause License (FreeBSD). * Copyright (c) 2012, <NAME> and <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted ...
/********************************************************************** * Copyright (c) 2016 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or http://www.opensource.org/licenses/mit-license.php.* ***************************************...