text stringlengths 5.8k 28.2k |
|---|
/*
* This file is part of RTRlib.
*
* This file is subject to the terms and conditions of the MIT license.
* See the file LICENSE in the top level directory for more details.
*
* Website: http://rtrlib.realmv6.org/
*/
#include "rtrlib/bgpsec/bgpsec_utils_private.h"
#include "rtrlib/spki/spkitable_private.h"
#i... |
//Day24b.c
//
//Question 1: Starting from location 0, what is the fewest number of steps
//needed to visit every non-zero number on the map at least once, and then
//return to location 0?
//
//This is now a true traveling salesman problem. Fortunately, only a small
//modification is needed to our recursive algorithm.
... |
/*
* @XMHF_LICENSE_HEADER_START@
*
* eXtensible, Modular Hypervisor Framework (XMHF)
* Copyright (c) 2009-2012 Carnegie Mellon University
* Copyright (c) 2010-2012 VDG Inc.
* All Rights Reserved.
*
* Developed by: XMHF Team
* Carnegie Mellon University / CyLab
* VDG Inc.
* ... |
/* Adventure SDL
Uses SDL_image library that has to be installed */
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <SDL.h>
#include <SDL_image.h>
#include <time.h>
#include <SDL_ttf.h>
// FRAME_MS -> millis for one frame. Set to adjust desired frame rate as 1000/FRAME_MS
#define FRAME_MS 17
#d... |
/*
Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2016 <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 o... |
/* Copyright (c) 2010, Atmel Corporation
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 con... |
/* @(#) $Header: /tcpdump/master/tcpdump/ospf.h,v 1.23 2007-10-08 07:53:21 hannes Exp $ (LBL) */
/*
* Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... |
/*
* Copyright (C) 1989-2015, <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... |
/*
* Copyright (C) 2011 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... |
/**
* This code is licensed under the Boost License, Version 1.0.
*
* http://www.boost.org/LICENSE_1_0.txt
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization
* obtaining a copy of the software and accompanying documentatio... |
/* LIF Header manipulation
*
* <NAME> - June 2021
*
* Based on Jean-<NAME>'s "alifhdr"
*/
#include "lifheader.h"
#include "liffiletype.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <strings.h>
#include <time.h>
#include <sys/stat.h>
/* Variables that ... |
/* ====================================================================
* Copyright (c) 1996-2004 Carnegie Mellon University. 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. Red... |
/*
Copyright 2007,2008,2009,2010 <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 of the License, or
(at your option) any later version.
This program i... |
// <NAME> 308163583
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <glob.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <unistd.h>
#define MAX_COMMAND_LEN 250 /* max length of a single command
... |
#include <gf2d_sprite.h>
#include "player.h"
#include "bug.h"
#include "world.h"
#include "equiptment.h"
#include "pickup.h"
#include "bloodsplat.h"
#include <SDL2/SDL.h>
#include <game/game.h>
#include <simple_logger.h>
#include <game/entity/manager.h>
#include <game/collision/raytrace.h>
#include <game/graphics/anim... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2016 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 ... |
/* Copyright (C) 2009-2018 Greenbone Networks GmbH
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* 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 (a... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* BYD TouchPad PS/2 mouse driver
*
* Copyright (C) 2015 <NAME> <<EMAIL>>
* Copyright (C) 2015 <NAME>
* Copyright (C) 2015 <NAME> <NAME>
* Copyright (C) 2015 <NAME>
* Copyright (C) 2015 <NAME>
*/
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/libps2... |
/******************************************************************************
* SDL_fox
*******************
* Font rendering library for Simple Direct Media Layer 2.x (SDL2).
* Copyright (c) 2016-2022 <NAME> <https://github.com/palomena>
*
* Dependencies:
* freetype2 (https://freetype.org/)
* fontcon... |
const char rcsid_pks_web_c[] = "$Id: pks_www.c,v 1.10 2003/01/06 18:52:27 dmshaw Exp $";
/*
* Copyright (c) 1996, 1997, 1998, 1999, <NAME>. All rights reserved.
* See the LICENSE file in the release for redistribution information.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
... |
/* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
/*
* Copyright © 2006 Mozilla Corporation
* Copyright © 2006 Red Hat, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without
* fee, provided that the... |
/* $NetBSD: elf2bb.c,v 1.3 2002/03/26 05:18:19 mhitch Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modificati... |
/* Copyright 2015~2016, <NAME> <<EMAIL>>
* All rights reserved.
*
* This file is part of the Firmata4CIAA program.
*
* 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 mu... |
/**
*
* /brief RR iterator over wireformat DNS packet
*/
/*
* Copyright (c) 2013, NLnet Labs, Verisign, 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 ... |
/*
* Author: <NAME>, Finland 2015-2019
*
* This file is part of Kunquat.
*
* CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/
*
* To the extent possible under law, Kunquat Affirmers have waived all
* copyright and related or neighboring rights to Kunquat.
*/
#include <player/devices/pro... |
/*
* Copyright (c) 2014-2015 Qualcomm Atheros, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND TH... |
#include "globals.h"
#include "array.h"
#include "childs.h"
#include <sys/time.h>
#include <pthread.h>
#define ACCEPTED_MSG "Conexion Aceptada"
#include "audio_filter.h"
struct chArgs{
//sistemV
int shmid, semid;
char *shmptr;
key_t clave;
int fdtSocket;
};
struct t1Args{
shm_packet *SHP;
int ... |
/***************************************************************************
* *
* Intend C - Embeddable Scripting Language *
* *
* Copyrig... |
/* dhcp-helper is Copyright (c) 2004,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; version 2 dated June, 1991, or
(at your option) version 3 dated 29 June, 2007.
This pr... |
/*
Copyright (c) 2020, <NAME>. (<EMAIL>)
All rights reserved.
This file is part of the topaz project (https://github.com/jcorks/topaz)
topaz was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated ... |
/*
* Rich text with images.
* Should there be an offset field, to do subscripts & kerning?
*/
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <event.h>
#include <panel.h>
#include "pldefs.h"
#include "rtext.h"
#define LEAD 4 /* extra space between lines */
#define BORD 2 /* extra border for images */
s... |
/*
Name: project.c
Author: <NAME>
Course: PHYS 319
Functionality: Makes MSP430 to run a metronome (on run) or tuner (on pressing P1.3 interrupt)
Pin setup:
P1.0: No Connection
P1.1: Connected to op-amp/comparator processed audio input from electret mic
P1.2: Connected to external speaker
P1.3: No Connection
P1.4: Conn... |
#include "neighbor.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "three_algebra.h"
#include "object.h"
#include "ptiming.h"
#include "error.h"
#include "system.h"
#include "ddcMalloc.h"
#include "heap.h"
#include "expandbuffer.h"
#include "preduce.h"
#include "units.h"
#... |
/* Copyright 1990-2008, Jsoftware Inc. All rights reserved. */
/* Licensed use only. Any other use is in violation of copyright. */
// utilities for JFE to load JE, initiallize, and run profile sentence
// JFEs are jconsole, jwdw, and jwdp
#define PLEN 1000 // path length
#ifdef _WIN32
#include... |
/* smbios.c - retrieve smbios information. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2019 Free Software Foundation, Inc.
*
* GRUB 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, ei... |
#include "ahci.h"
#include "types.h"
#include "defs.h"
#include "buf.h"
#include "x86.h"
#include "kernel/string.h"
#include "memlayout.h"
//AHCI implementation.
//See Intel reference docs @ https://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/serial-ata-ahci-spec-rev1-3-1.pdf
static ... |
/*
* <NAME> and <NAME>
* ECE312-01
* Project 2: Packet Ecapsulation
*
* In this project we were required to implement 2 protocols
* directly above UDP: RHP, and RHMP.
*
* RHP, or Rose-Hulman Protocol, is the lower of the two protocols,
* with fields: version, type, portID, length, payload... |
/*
* Program: pgn-extract: a Portable Game Notation (PGN) extractor.
* Copyright (C) 1994-2013 <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 1, or (at your opti... |
/*
* Copyright (c) Bridgetek Pte Ltd
*
* THIS SOFTWARE IS PROVIDED BY BRIDGETEK PTE LTD "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* BRIDGETEK PTE LTD BE LIABLE F... |
/* $OpenBSD: rfx.c,v 1.17 2015/03/28 19:07:07 miod Exp $ */
/*
* 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 reta... |
/* libunwind - a platform-independent unwind library
Copyright (C) 2003-2004 Hewlett-Packard Co
Contributed by <NAME> <<EMAIL>>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal... |
/*-
* Device driver for Specialix range (SI/XIO) of serial line multiplexors.
* 'C' definitions for Specialix serial multiplex driver.
*
* Copyright (C) 1990, 1992, 1998 Specialix International,
* Copyright (C) 1993, <NAME> <<EMAIL>>
* Copyright (C) 1995, <NAME> <<EMAIL>>
*
* Derived from: SunOS 4.x version
*
... |
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "uip_ip.h"
#include "uip_tcp.h"
#include "uip_icmp.h"
#include "uip_netif.h"
#include "uip_pbuf.h"
#if UIP_LOGGING == 1
#include <stdio.h>
#define UIP_LOG(m) uip_log(__FILE__,__LINE__,m)
#else
#define UIP_LOG(m)
#endif /* UIP_LOGGING == 1 */
#if UIP... |
/*
** mouse:~ppr/src/ppd/indexppds.c
** Copyright 1995--2005, Trinity College Computing Center.
** Written by <NAME>.
**
** 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... |
/*-
* Copyright (c) 2001, 2002 <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... |
/*
* linux/fs/befs/datastream.c
*
* Copyright (C) 2001 <NAME> <<EMAIL>>
*
* Based on portions of file.c by <NAME> <<EMAIL>>
*
* Many thanks to <NAME>, author of "Practical File System
* Design with the Be File System", for such a helpful book.
*
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <... |
#include "ltc_afe_impl.h"
#include <stddef.h>
#include <string.h>
#include "crc15.h"
#include "delay.h"
#include "log.h"
#include "ltc6811.h"
// - 12-bit, 16-bit and 24-bit values are little endian
// - commands and PEC are big endian
static uint16_t s_read_reg_cmd[NUM_LTC_AFE_REGISTERS] = {
[LTC_AFE_REGISTER_CONFI... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
//
// pkg.c
//
// Package management tool
//
// Copyright (C) 2012 <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 copyri... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2007
* DENX Software Engineering, <NAME>, <EMAIL>
*/
/*
* mb862xx.c - Graphic interface for Fujitsu CoralP/Lime
* PCI and video mode code was derived from smiLynxEM driver.
*/
#include <common.h>
#include <asm/io.h>
#include <env.h>
#include <pci.h>
#incl... |
// NeHe code adapted to mukaGL
// http://nehe.gamedev.net/tutorial/loading_and_moving_through_a_3d_world/22003/
/*
NeHe (nehe.gamedev.net) OpenGL tutorial series
GLUT port.in 2001 by milix (<EMAIL>)
Most comments are from the original tutorials found in NeHe.
For VC++ users, create a Win32 Console project and link... |
/*
* RTSP demuxer
* Copyright (c) 2002 <NAME>
*
* 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... |
/*
* Copyright (c) 2012 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
*/
#include <barrelfish/barrelfish.... |
#include <arpa/inet.h>
#include <fcntl.h>
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
#include <SDL.h>
#include <SDL_keycode.h>
#include "m68k.h"
#define RAM_SIZE (256 * 1024)
#define FLASH_SIZE (4 * 1024 * 1024)
#d... |
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <mm/pmm.h>
#include <sys/e820.h>
#include <lib/blib.h>
#include <lib/libc.h>
#include <lib/print.h>
#if defined (uefi)
# include <efi.h>
#endif
#define PAGE_SIZE 4096
#define MEMMAP_BASE ((size_t)0x100000)
#define MEMMAP_MAX_ENTRIES 256
#define ... |
#include "soft_tfidf.h"
#include <math.h>
#include "address_dictionary.h"
#include "float_utils.h"
#include "string_similarity.h"
#include "string_utils.h"
#include "log/log.h"
static soft_tfidf_options_t DEFAULT_SOFT_TFIDF_OPTIONS = {
.jaro_winkler_min = 0.9,
.jaro_winkler_min_length = 4,
.damerau_levensh... |
/*
Copyright 2014 Technical University of Denmark, DTU Compute.
All rights reserved.
This file is part of the time-predictable VLIW processor Patmos.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
... |
/* $NetBSD: display.c,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $ */
/* display.c -- How to display Info windows.
Id: display.c,v 1.7 2004/04/11 17:56:45 karl Exp
Copyright (C) 1993, 1997, 2003, 2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it ... |
/* Includes */
#include "geometry.h"
/* Static Function Definitions */
static inline uint32_t minu32 (uint32_t a, uint32_t b){return a<b?a:b;}
static inline uint32_t maxu32 (uint32_t a, uint32_t b){return a>b?a:b;}
static inline void swapu32(uint32_t* a, uint32_t* b){
uint32_t t = *a;
*a = *b;
*b = t... |
/*
* Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following condition... |
/*
* Copyright (c) 2008 <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, ... |
/* $OpenBSD: sndiod.c,v 1.31 2016/03/23 06:16:35 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in ... |
/******************************************************************************
*
* Copyright(c) 2007 - 2013 Intel Corporation. All rights reserved.
*
* Portions of this file are derived from the ipw3945 project, as well
* as portions of the ieee80211 subsystem header files.
*
* This program is free software; yo... |
// Resource IDs for FTPFOLDR
//
#include <intlid.h>
#ifndef WC_LINK
#define WC_LINK L"SysLink"
#endif // WC_LINK
#ifndef SS_CENTERIMAGE
#define SS_CENTERIMAGE 0x00000200L
#endif // SS_CENTERIMAGE
#ifndef SS_REALSIZECONTROL
#define SS_REALSIZECONTROL 0x00000040L
#endif // SS_REALSI... |
#include "backend-atkbd.h"
#include <sys/kbio.h>
#include <sys/param.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "util.h"
#define AT_ACK 0xfa
#define AT_NAK 0xfe
#define AT_BAT 0xaa
#define AT_ES0 0xe0
#define AT_ES1 0xe1
#define ... |
/*
* Copyright (C) 2012 RoboVM AB
*
* 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 ... |
typedef unsigned char RE_UINT8;
typedef signed char RE_INT8;
typedef unsigned short RE_UINT16;
typedef signed short RE_INT16;
typedef unsigned int RE_UINT32;
typedef signed int RE_INT32;
typedef unsigned char BOOL;
#if !defined(FALSE) || !defined(TRUE)
#define FALSE 0
#define TRUE 1
#endif
#define RE_ASCII_MAX 0x7F
#... |
/* crypto/crypto.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the... |
/**
*
* @file control.c
*
* 控制算法
*
**/
#include <stm32f10x.h>
#include "control.h"
#include "math.h"
#include "mpu6050.h"
#include "imu.h"
#include "stdio.h"
#include "motor.h"
#include "attitude_control.h"
#include "board_config.h"
extern uint32_t micros(void);
uint8_t offLandFlag=0;
u8 ok_to_spin = 0;// 油门... |
/* RETRO/Native (x86) -----------------------------------------
A personal, minimalistic forth
Copyright (c) 2016 - 2019 <NAME>
-----------------------------------------------------------*/
#include <sys/types.h>
#include <limits.h>
#include "image.c"
/*----------------------------------------------------------... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <math.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <signal.h>
#include <errno.h>
#include <arpa/inet.h>
#define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*s... |
#include <kernel/types.h>
#include <kernel/lists.h>
#include <kernel/device.h>
#include <kernel/timer.h>
#include <kernel/sync.h>
#include <kernel/block.h>
#include <kernel/callback.h>
/*
* Constants
*/
#define CMD_LOOKUP 0
#define CMD_CREATE 1
#define CMD_DELETE 2
#define CMD_RENAME 4
#def... |
/*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 <NAME>.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer Software License
*
* IMAGE POWER JPEG-2000 PUBLIC LICENSE
* ************************************
*
* GRANT:
* ... |
#include <stdint.h>
#include <string.h>
#include "usf.h"
#include <stdio.h>
#include <stdlib.h>
#include "usf_internal.h"
#include "api/callbacks.h"
#include "main/savestates.h"
#include "r4300/cached_interp.h"
#include "r4300/r4300.h"
#include "resampler.h"
#include "barray.h"
size_t usf_ge... |
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <mrsh/ast.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "shell/shell.h"
#include "shell/task.h"
#include "shell/trap.h"
static int run_subshell(struct mrs... |
/* Includes */
#define _GNU_SOURCE
#define __HAVE_FLOAT128 0
#include <cuda.h>
#include <cuda_runtime.h>
#include <dlfcn.h>
#include <linux/limits.h>
#include <pthread.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/fcntl.h>
#include <sys/mman.h>
#incl... |
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <sched.h>
#include <time.h>
#define IMG_HEIGHT (960)
#define IMG_WIDTH (1280)
//#define IMG_HEIGHT (300)
//#define IMG_WIDTH (400)
#define NUM_ROW_THREADS (3)
#define NUM_COL_THREADS (4... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include "rasp4you.h"
#define HASHLEN 16
#ifdef __STDC__
#define UL(x) x##U
#else
#define UL(x) x
#endif
typedef unsigned U32BIT;
typedef struct {
U32BIT i[2]; /* number of _bits_ handled mod 2^64 ... |
/**
* http.c
* Librería que contiene las funciones que procesa las peticiones HTTP
*
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include "http.h"
/*
* Funcion: http_get
* Función que procesa las petciones HTTP get y construye la cabecera
* INPUT : desc -> descriptor del socket por el que enviamos la cabecera
* ... |
/* packet-gsm_um.c
* Routines for GSM Um packet disassembly
* <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <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 b... |
/* discover class
*
* Copyright (c) 2004 <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,
* c... |
//@reference - https://cdn.sparkfun.com/datasheets/BreakoutBoards/CCS811_Programming_Guide.pdf
//@reference - https://github.com/CU-ECEN-5823/course-project-PuneetBansal
//@reference - SI LABS API
#include "Server.h"
#include "Client.h"
#include "state_machine.h"
uint8_t conn_handle=0xFF;
uint8_t bonded=0;
ex... |
/*********************************************************/
/* Konami PCM controller */
/*********************************************************/
/*
Changelog, <NAME> 02/05/2002
fix start address decode timing. (sample loop bug.)
Changelog, Mish, August 1999:
Removed ... |
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <stdbool.h>
#include "structs.h"
#include <string.h>
#include "functions_worker.h"
#include "communication_protocol.h"
#include <dirent.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
/*-----------------------------Posting List---------... |
/*
* 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 (c) 2010-2018 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#includ... |
/*******************************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2017 <NAME> and <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are ... |
/*
* Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* This file is part of PerfExpert.
*
* PerfExpert is free software: you can redistribute it and/or modify it under
* the terms of the The University of Texas at Austin Resea... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include "lgfx_qoi.h"
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
// color spaces
#define QOI_SRGB 0
#define QOI_LINEAR 1
#define QOI_HEADER_SIZE 14
#define QOI_PIXELS_MAX ((unsigned int)400000000)
#... |
/*
* File: 6lowpan-header.h
* Description: 6LowPAN-specific header definitions and function declarations.
* Author(s): <NAME>
*
* Copyright 2009 by Ember Corporation. All rights reserved. *80*
*/
//-------------------------------------------------------------
// 6LowPAN frame format
//
// The 6Low... |
/* $OpenBSD: clnt_tcp.c,v 1.25 2010/09/01 14:43:34 millert Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
*
* 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 r... |
#ifndef __x86_64__
#error
#endif
#include "../alignas.h"
#include "../intrinsics.h"
#include "../basic_intrinsics.h"
#include "../monochrome_filter_1.h"
#include "../basic.h"
#if defined(HAVE_AVX_INSTRUCTIONS) && defined(HAVE_AVX2_INSTRUCTIONS)
/*
result[index][7:0] = value[index][7:0]
result[index][31:... |
#include <stdio.h>
#include <string.h>
#include "dpi/sig/dpi_sig.h"
#include "dpi/dpi_module.h"
#include "dpi/sig/dpi_search.h"
int dpi_sigopt_get_pcre (void *context, dpi_sig_context_class_t *c, uint8_t **pcre, uint32_t *hs_flags)
{
//DEBUG_LOG_FUNC_ENTRY(DBG_DETECT, NULL);
dpi_sigopt_pcre_pattern_t *data = c... |
/*
* command.c - handle commands
* for tasknc
* by mjheagle
*/
#define _GNU_SOURCE
#include <ncurses.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "color.h"
#include "command.h"
#include "common.h"
#include "config.h"
#include "keys.h"
#include "log.h"
#include "statu... |
/*---------------------------------------------------------------------------------
Copyright (C) 2005
<NAME> (dovoto)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted ... |
/*************************************************************************************************************
Copyright 2019, Silicon Laboratories, 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... |
/*
=================================================================================
Name : sipcall.c
Version : 0.1 alpha
Copyright (C) 2012 by <NAME>, 2012, <EMAIL>
Description :
Tool for making automated calls over SIP/VOIP with PJSUA library and eSpeak.
Dependencies:
- PJSUA API (PJSIP)
- e... |
/*******************************************************************************
* *
* rotation.c -- Read and set Euler rotation angles for event display *
* *
* Copyright (c) 1991 Universities Research Association, Inc. *
* All rights reserved. *
* ... |
/*-
* Copyright (c) 2009-2012 <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 condit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.