text stringlengths 3.12k 18.7k |
|---|
/*-
* Copyright (c) 2014-2018 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* __config_parser_close --
* WT_CONFIG_PARSER->close method.
*/
static int
__config_parser_close(WT_CONFIG... |
//
// Created by 唐继 on 2020/6/4.
//
// version 1.0 实现了dither
// version 1.1 修复了dither中result_matrix赋值时下标计算错误的bug
// version 2.0 实现了ordered-dither
// version 2.1 修改了dither函数,合并了两种dither,减少了代码量
//
#include <stdint.h>
#include <core/image.h>
#include <imgproc/color-convert.h>
guint8 **new_matrix(guint32 x, guint32 y);
g... |
/*
** OSSP uuid - Universally Unique Identifier
** Copyright (c) 2004-2008 <NAME> <<EMAIL>>
** Copyright (c) 2004-2008 The OSSP Project <http://www.ossp.org/>
**
** This file is part of OSSP uuid, a library for the generation
** of UUIDs which can found at http://www.ossp.org/pkg/lib/uuid/
**
** Permission to use... |
/*
* FIPS 180-2 SHA-224/256/384/512 implementation
* Last update: 02/02/2007
* Issue date: 04/30/2005
*
* Copyright (C) 2005, 2007 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
/*
* uitsAIFFManager.c
* uits-osx-xcode
*
* Created by <NAME> on 5/4/10.
* Copyright 2010 Universal Music Group. All rights reserved.
*
* $Date$
* $Revision$
*/
#include "uits.h"
char *aiffModuleName = "uitsAIFFManager.c";
/*
*
* Function: aiffIsValidFile
* Purpose: Determine if an audio file is... |
/*
* Copyright (c) 2011 Mellanox Technologies. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this sou... |
/*
* MIT License
*
* Copyright (c) 2016-2017 Kalray
*
* 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, modi... |
#include <stdint.h>
#include <spd.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <device/pnp_def.h>
#include <arch/hlt.h>
#include <console/console.h>
#include "superio/winbond/w83627hf/early_serial.c"
#include "cpu/x86/bist.h"
#include "cpu/x86/msr.h"
#include <cpu/amd/gx2def.h>
#include "southbridge/amd... |
/*
* Copyright (C) 2018 Jolla Ltd.
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* You may use this file under the terms of BSD license as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
/******************************************************************************
*
* Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Fr... |
/**
* @file main.c
*
* @brief Main function
*/
#include "stdint.h"
#include "stdbool.h"
#include "mcu.h"
#include "buzzer.h"
#include "pitches.h"
#include "utils.h"
/*****************************************
* Private Constants
*****************************************/
#define COMPASS_TIME 2400
/***********... |
/*
* usbmidi.c
*
* Revision 1
*
* Copyright 2020 <NAME>, aka <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... |
/*
* 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 <assert.h>
#include <fcntl.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "bloom.h"
#include "murmurhash2.h"
#define MAKESTRING(n) STRING(n)
#define STRING(n) #n
//janki: below func... |
#include "core/input.h"
#include "core/config.h"
#include "core/debugger.h"
#include "core/graphics.h"
#include "utils/dictionary.h"
#include "famicom/famicom.h"
#include "famicom/io.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
extern Config config;
Dictionary* keys;
Input buttons[SDL_CONTROLLER_BUTT... |
//
// main.c
// C-MapReduce
//
// Created by jeffrey on 1/12/15.
// Copyright © 2015 jeffrey. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "splitutility.c" // for splitting the input problem
#include "wordutility.c" // for word parsing and counting... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Color space converter library
*
* Copyright (c) 2013 Texas Instruments Inc.
*
* <NAME>, <<EMAIL>>
* <NAME>, <<EMAIL>>
* <NAME>, <<EMAIL>>
*/
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/sl... |
#include "bmptk.h"
#include "lcd5510.h"
#include "timer.h"
void sce_set( unsigned char x ){
if( x ){
*(volatile int *)( 0x50000000 + 1 * 0x10000 + ( 0x04 << 0 )) = -1;
} else {
*(volatile int *)( 0x50000000 + 1 * 0x10000 + ( 0x04 << 0 )) = 0;
}
}
void res_set( unsigned char x ){
if( x ){
... |
/* Nombre Fichero: src/main.c */
#include "arboles.h"
int buscarPunto(const Nodo_t* nodo, char *fd);
int main()
{
int ret = 1;
// Pruebas insertar el nodo por la izquierda ----------------------------- //
Nodo_t* raizArbol = NULL;
ret = borrarArbol(&raizArbol);
if (ret > 0 || raizArbol!= NULL) printf("(1.1) ... |
/*
* ISC License
*
* Copyright (C) 1990-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
/***************************************************************************//**
* @file
* @brief State machine for sending data via xmodem. This code is agnostic to the
* data being sent or the actual transport mechanism. It has callbacks to
* send the Xmodem formatted data over-the-air or via serial.
*********... |
void __finite() {} ;
void __finitef() {} ;
void __finitel() {} ;
void __fpclassify() {} ;
void __fpclassifyf() {} ;
void __signbit() {} ;
void __signbitf() {} ;
void acos() {} ;
void acosf() {} ;
void acosh() {} ;
void acoshf() {} ;
void acoshl() {} ;
void acosl() {} ;
void asin() {} ;
void asinf() {} ;
void asinh() {}... |
/* $OpenBSD: who.c,v 1.28 2018/08/08 22:55:14 deraadt Exp $ */
/* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistributio... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include "alloc.h"
#include "core/core.h"
#include "dlist.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
void
dt_vkalloc_init(dt_vkalloc_t *a, uint64_t pool_size, uint64_t bytesize)
{
memset(a, 0, sizeof(*a));
a->heap_size = bytesize;
a->pool_size = pool_size;
a->vkmem_pool ... |
/*
* Copyright (C) 2012 The Android Open Source 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.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 <NAME>
Modified: 2000 AlansFixes
Modified by <NAME> 2003 and Dietmar Warning 2012
**********/
/* load the diode structure with those pointers needed later
* for fast matrix loading
*/
#include "ngspice/ngspice.h"
... |
/*
* Copyright (c) 2008-2010 <NAME>
*
* All rights reserved.
*
* This file is part of ruby-ffi.
*
* This code is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3 only, as
* published by the Free Software Foundation.
*
* This code is... |
#include "bench.h"
/* #define _DEBUG */
#if defined(HAVE_SYSMP)
#include <sys/sysmp.h>
#include <sys/sysinfo.h>
#endif
#if defined(HAVE_MPCTL)
#include <sys/mpctl.h>
#endif
#if defined(HAVE_BINDPROCESSOR)
#include <sys/processor.h>
#endif
#if defined(HAVE_PROCESSOR_BIND)
#include <sys/types.h>
#include <sys/proces... |
/*
* Copyright (c) 2020 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/* variables */
/* $Id: var.c,v 1.3 1996/04/08 05:24:06 gray Exp $ */
/*********************************************************************
This file is part of "gema", the general-purpose macro translator,
written by <NAME> <<EMAIL>> in 1994 and 1995.
You may do whatever you like with this, so long as you re... |
/*
* linux/arch/arm/mach-pxa/corgi_lcd.c
*
* Corgi/Spitz LCD Specific Code
*
* Copyright (C) 2005 <NAME>
*
* Connectivity:
* Corgi - LCD to ATI Imageon w100 (Wallaby)
* Spitz - LCD to PXA Framebuffer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU... |
/*
* bluetooth_spp.c
*
* Created on: Nov 6, 2013
* Author: liyixiao
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <btstack/hci_cmds.h>
#include <btstack/run_loop.h>
#include <btstack/sdp_util.h>
#include <btstack/utils.h>
#include "../btstack/src/hci.h"
#includ... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: work.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://<EMAIL>/svn-base/benchit-root/BenchITv6/kernel/numerical/vecadd/F77/0/0/BjxxEBjxxPAi/work.c $
... |
/*
* Copyright (c) 2009-2015, <NAME>
* See LICENSE file for license details.
*/
#include "b6/utf8.h"
static const char ascii[] =
"\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020"
"\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
" !\"#$%&\'()*+,-./0123456789:;<=>?"
"@ABCDEFGHIJKLM... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <sqlite3.h>
#include "common/get_paths.h"
#if defined(_WIN32) || defined(__WIN32__)
#include "common/getopt.h"
#else
#include <unistd.h>
int getopt(int argc, char * const argv[], const char *optstring);
extern char *optarg;
ext... |
/*
* QEMU S390 virtio target
*
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any l... |
/*login: chen3593
* date: 10/05/15
* name: <NAME>, <NAME>
* id: chen3593, wang5575*/
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <string.h>
#include "makeargv.h"
#include "share.h"
#define INELIGIBLE 0
#defin... |
/*
* Copyright (c) 2012, 2013, <NAME> aka Tectu <<EMAIL>>
* Copyright (c) 2012, 2013, <NAME> aka inmarket
*
* 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... |
/*
* le.c
*
* Copyright (c) 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 ... |
/*
* Copyright (c) 2021 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... |
#include "ex1.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define BYTE 8
/*
* @name: is_big_endian
* @author: <NAME>
* @return: 1 if the program was compiled and executed on a machine uses Big-Endian, 0 if the machine uses Little-Endian.
* @brief: In order to detect big or little endian, we c... |
/*-
* Copyright (c) 2015 <NAME>
* Copyright (c) 2015 <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
* noti... |
/*
Copyright 2010 SourceGear, LLC
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 writing, software
dis... |
/*
* Copyright (C) 2012 Samsung Electronics
*
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <config.h>
#include <common.h>
#include <lcd.h>
#include <fdtdec.h>
#include <libfdt.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clock.h>
... |
/*
* encoder.c
*
* Based on https://github.com/pimoroni/pimoroni-pico/tree/encoder-pio/drivers/encoder-pio
*
*/
#include "stdint.h"
#include "stdbool.h"
#include <math.h>
#include "hardware/pio.h"
#include "hardware/irq.h"
#include "encoder.h"
#include "encoder.pio.h"
// new encoder source is backwards and twic... |
/* 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 ... |
/*
* 0BSD
*
* BSD Zero Clause License
*
* Copyright (c) 2019 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR... |
/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/*
* Copyright (c) 2007 - 2015 <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, publi... |
/*
* This tests out the key load functionality; this largely focuses on
* the auxiliary data and various error conditions.
*
* The keyload test will do a far more exhaustive test of the non-error case.
*/
#include "test_hss.h"
#include "hss.h"
#include <stdio.h>
#include <stdarg.h>
static bool rand_1( void *outp... |
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include "miner.h"
#include "avxintrin-emu.h"
#include "interleave.h"
/////////////////////////////
////
//// NEW FEATURE: algo_gate
////
//// algos define targets for their common functions
//// and define a function for miner-thread to call to reg... |
#include "driver.h"
UINT8 *timeplt_videoram,*timeplt_colorram;
static tilemap *bg_tilemap;
/*
sprites are multiplexed, so we have to buffer the spriteram
scanline by scanline.
*/
static UINT8 *sprite_mux_buffer,*sprite_mux_buffer_2;
static int scanline;
/*************************************************************... |
#include "rw.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "amatrix.h"
#include "scs.h"
#include "util.h"
/* writes/reads problem data to/from filename */
/* This is a VERY naive implementation, doesn't care about portability etc */
static void write_scs_cone(const ScsCone *k, FILE *fout) {... |
/*
Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distribut... |
/*
** Copyright 1994, Silicon Graphics, Inc.
** All Rights Reserved.
**
** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
** the contents of this file may not be disclosed to third parties, copied or
** duplicated in any form, in whole or in part, without the prior written
** permission ... |
/******************************************************************************
* The c2D Compiler Package
* c2D version 1.00, May 24, 2015
* http://reasoning.cs.ucla.edu/c2d
******************************************************************************/
#include "c2d.h"
//getopt.c
c2dOptions* get_option... |
#include "qdldl.h"
#define QDLDL_UNKNOWN (-1)
#define QDLDL_USED (1)
#define QDLDL_UNUSED (0)
/* Compute the elimination tree for a quasidefinite matrix
in compressed sparse column form.
*/
QDLDL_int QDLDL_etree(const QDLDL_int n,
const QDLDL_int* Ap,
const QDLDL_int* ... |
/* $Id$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* C R O S S J U M <NAME> N G
*
* CJ.H
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <em_mnem.h>
#include <em_spec.h>
#include "..... |
/*
* field.c
*
* Handle field (image) structures.
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* This file part of: SExtractor
*
* Copyright: (C) 1993-2012 <NAME> -- IAP/CNRS/UPMC
*
* License: GNU General Public License
*
* SExtractor is free software: you can redistribute it ... |
/*
* Copyright (c) 2019 <NAME> <u at one u x dot o r g>
*
* Simplified sockets server-side API implementation
*/
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <poll.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/socket.... |
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 <NAME> <<EMAIL>>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* SD card SDIO driver.
*
*/
#include <stdbool.h>
#include STM32_HAL_H
#include <core_cmInstr.h>
#include "mp.h"
#include "irq.h... |
/*
* Copyright (C) 2018 Xilinx, Inc. All rights reserved.
*
* Authors:
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in ... |
// Generated by HLC 4.2.1 (HL v4)
#define HLC_BOOT
#include <hlc.h>
#include <_std/Sys.h>
extern $Sys g$_Sys;
#include <hl/natives.h>
String Std_string(vdynamic*);
extern String s$68b329d;
#include <sys/io/FileOutput.h>
extern hl_type t$sys_io_FileOutput;
void sys_io_FileOutput_new(sys__io__FileOutput,hl_fdesc*);
exte... |
/* ----------------------------------------------------------- */
/* */
/* ___ */
/* |_| | |_/ SPEECH */
/* | | | | \ RECOGNITION ... |
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <locale.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <getopt.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <libtorque/torque.h>
static void
print_version(FILE *fp){
fprintf(fp,"torquehost from libtorque %s\n",torqu... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "server.h"
#include "debug.h"
unsigned sockBufferSize(int serv_sock)
{
unsigned optVal;
int optLen = sizeo... |
/*
$License:
Copyright (C) 2012 InvenSense Corporation, All Rights Reserved.
$
*/
/*******************************************************************************
*
* $Id:$
*
******************************************************************************/
/*
Includes, Defines, and Macros
*/
#undef MPL_... |
/* $OpenBSD: if_bwi_pci.c,v 1.16 2015/11/24 17:11:39 mpi Exp $ */
/*
* Copyright (c) 2007 <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 all ... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "blobsBack.h"
#ifdef _WIN32
#define BLOB1 "A"
#define BLOB2 "Z"
#define POINTS1 "J1"
#define POINTS2 "J2"
#define PLAYER1 "Jugador1"
#define PLAYER2 "Jugador2"
#else
#define BLOB1 "\x1b[36;1mO\x1b[0m" //Blue
#define BLOB2 "\x1... |
/*
* =============================================================================
* HSA Runtime Conformance Release License
* =============================================================================
* The University of Illinois/NCSA
* Open Source License (NCSA)
*
* Copyright (c) 2014, Advanced Micro Devi... |
#include<stdio.h>
#include<sys/time.h>
#include<string.h>
#include <syslog.h>
#include<stdarg.h>
#include "plog.h"
#include"plterrno.h"
#include "zlog.h"
#include "errno.h"
int zlog_flag = 0;
log_t *log_handle = NULL;
pthread_mutex_t log_mutex = PTHREAD_MUTEX_INITIALIZER;
static void zlog_event_handler(struct ino... |
/* ************************************************************************
* File: spec_assign.c Part of CircleMUD *
* Usage: Functions to assign function pointers to objs/mobs/rooms *
* *
* All rights re... |
/**
* Simple RLE (Run-Lenght Encoding) encoding/decoding utility
*
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* 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 al... |
/*
* VRRP packet crafting.
* Copyright (C) 2018-2019 Cumulus Networks, Inc.
* <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)... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Ge... |
/*
* Copyright 2010 Red Hat 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, merge, publish, d... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* Copyright 2015, International Business Machines
*
* 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 applica... |
/**
* MIT License
*
* Copyright (c) 2021 Klatu Networks, 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, c... |
/**
iXKeyLog - Copyright (c) 2011 by <NAME>
All rights reserved.
display.c - The important stuff is done here.
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 abov... |
// Copyright 2016 <NAME>. Subject to the MIT License.
#include "repl.h"
#include "error.h"
#include "eval.h"
#include "parse.h"
#include "util.h"
#include <readline/readline.h>
#include <readline/history.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// String constants for prompts.
static const cha... |
/*
* This should act almost excatly like the python script rmServeWacomInput.py
* This can be compiled and run on the reMarkable itself (using the toolchain or gcc on the device from entware)
* A recent binary can be found here: https://github.com/LinusCDE/rmWacomToMouse/releases
*/
#include <errno.h>
#include <ne... |
/******************************Intel Confidential******************************/
/*++
Copyright (c) 1998-2001, Microsoft Corporation. All rights reserved.
Module Name:
xmmi_types.h
Abstract:
This module contains the xmmi data definitions.
Author:
<NAME>
Revision History:
--*/... |
/*-
* Copyright (c) 1996, <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 unmodified, this list of ... |
/*
* Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <platform_def.h>
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <lib/psci/psci.h>
#includ... |
/*
** ###################################################################
** Processors: MIMXRT1024CAG4A
** MIMXRT1024DAG5A
**
** Compilers: Freescale C/C++ for Embedded ARM
** GNU C Compiler
** IAR ANSI C/C++ Compiler... |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
*... |
#include <uart_test.h>
volatile static uint8_t receive_block = 0;
static void uart_callback(int32_t idx, usart_event_e event)
{
if (event == USART_EVENT_RECEIVE_COMPLETE) {
receive_block = 0;
}
}
int test_uart_syncSend(void *args)
{
usart_handle_t hd;
test_uart_args_t td;
int32_t ret;
uint8... |
/*++
Copyright (c) 2001 Microsoft Corporation
Module Name:
proplist.c
Abstract:
dump a cluster property list
Author:
<NAME> (charlwi) 13-Jun-2001
Revision History:
--*/
#include "clusextp.h"
#include <clusapi.h>
PCHAR TypeNames[] = {
"UNKNOWN",
"ENDMARK",
"L... |
/*++
/* NAME
/* auto_clnt 3
/* SUMMARY
/* client endpoint maintenance
/* SYNOPSIS
/* #include <auto_clnt.h>
/*
/* AUTO_CLNT *auto_clnt_create(max_idle, max_ttl, open_action, context)
/* int max_idle;
/* int max_ttl;
/* VSTREAM *(open_action)(void *context)
/* void *context;
/*
/* VSTREAM *auto_clnt_access(auto_clnt)
/*... |
/*
* ov7670.c
*
* Created on: 6 Haz 2021
* Author: H3RK3S
*/
/*
* ov7670 camera initializing codes are taken by <NAME>
*
*/
#include "ov7670.h"
#include "stm32f0xx_hal.h"
#include "main.h"
#include "ILI9341_GFX.h"
extern I2C_HandleTypeDef hi2c1;
extern SPI_HandleTypeDef hspi1;
extern T... |
#include <assert.h>
#include <elf.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#define __USE_GNU
#include <link.h>
int altstrcmp(const char *s1, const char *s2)
{
return 0;
while (*s1 && *s2) {
if (*s1 < *s2 - 1) {
return -1;
... |
#include "enc_and_hmac.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
//@ #include "quantifiers.gh"
#define SERVER_PORT 121212
void sender(char *enc_key, char *hmac_key, char *msg, unsigned int msg_len)
/*@ requires [_]public_invar(enc_and_hmac_pub) &*&
principal(?sender, _) &*&
... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "fs_disk.h"
#include "jfs_common.h"
void walk_filesystem(jfs_t *jfs, char *pathname, int inodenum,
char *block_bitmap, char *inode_bitmap)
{
struct inode i_node;
struct dirent* dir_entry;
int dir_size, bytes_done=0;
char block[... |
/* GStreamer
* Copyright (C) <1999> <NAME> <<EMAIL>>
* Copyright (C) <2009> <NAME> <<EMAIL>>
*
* EffecTV:
* Copyright (C) 2001-2002 <NAME>
*
* EdgeTV - detects edge and display it in good old computer way
*
* EffecTV is free software. This library is free software;
* you can redistribute it and/or
* modify i... |
/* $OpenBSD: bwx.c,v 1.4 2003/10/06 22:29:45 miod Exp $ */
/*-
* Copyright (c) 1998 <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 ... |
/* ----------------------------------------------------------------------- *
*
* Copyright (C) 2016, <NAME>, <NAME>, <NAME>
* All rights reserved.
*
* This file is part of the indoor air quality measurement daemon,
* and is made available under the terms of the BSD 3-Clause Licence.
* A full copy of th... |
/*
* CS:APP Binary Bomb (Autolab version)
*
* Copyright (c) 2004, <NAME> and <NAME>, All rights reserved.
* May not be used, modified, or copied without permission.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "phases.h"
#include "support.h"
/* Global bomb ID */
int bomb_id = 121242031;... |
/*
*
* ao_oss.c
*
* Original Copyright (C) <NAME> - May 1999
* Modifications Copyright (C) <NAME> - July 2000, June 2001
*
* This file is part of libao, a cross-platform library. See
* README for a history of this source code.
*
* libao is free software; you can redistribute it and/or modify
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.