text stringlengths 3.12k 18.7k |
|---|
/*
* 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fs_rtcdc.h"
void upload_fs_on_message(struct rtcdc_data_channel *channel,
int datatype, void *data,
size_t len, void *user_data)
{
char *local_repo_path = (char *)user_data;
// printf(... |
/** File: Vigenere-IUP.c
*
* Main:
* Creates + Displays UI and Callbacks for Vigenere-IUP
*
* Author: <NAME>
*
* License: See LICENSE File
*/
#include <stdlib.h>
#include <string.h>
#include <iup.h>
/** Declare Functions to Encrypt/Decrypt */
void enVigenere( const char *pt, const char *key, char *c... |
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <fcntl.h>
// find_corruption -b 4 -c 4201578152 -f test.out -t 8 < ../data
uint32_t crc32c(uint32_t crc, void const *buf, size_t len)... |
/*
* Copyright (c) 2014 Fujitsu Ltd.
* Author: <NAME> <<EMAIL>>
*
* 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 Free Software Foundation.
*
* This program is distributed in the hope that it would b... |
/* Copyright (c) 2021-2022, <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 all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... |
#include "b64.h"
#include "aes_128/aes_128.h"
#include "hamdist.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define BLOCK_LEN (16)
static unsigned int randprefixlen;
static unsigned char randprefix[3*BLOCK_LEN] = {0};
static unsigned char randkey[BLOCK_LEN] = {0};
static const uns... |
#include <bsp.h>
#include <stm32f4xx.h>
#include "raging-global.h"
#include "nufr-platform-import.h"
#include "nufr-platform-export.h"
#include "nsvc-app.h"
#include "exception-priorities.h"
#include "rx-driver.h"
#include "ssp-driver.h"
#include "disco-feature-switches.h"
#define TEMP_DEBUG
#ifdef TEMP_DEBUG
... |
/* comm -- compare two sorted files line by line.
Copyright (C) 1986, 1990-1991, 1995-2005, 2008-2011 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, eit... |
/*
* Copyright (c) 2010-2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* EXYNOS4X12 - CPU frequency scaling support
*
* 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 Founda... |
/*
* create.c
*
* Description:
* This translation unit implements routines associated with spawning a new
* thread.
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
* Copyright... |
#include "jsi.h"
#include "jscompile.h"
#include "jsvalue.h"
#include "jsrun.h"
#include "regexp.h"
static void jsG_markobject(js_State *J, int mark, js_Object *obj);
static void jsG_freeenvironment(js_State *J, js_Environment *env)
{
js_free(J, env);
}
static void jsG_freefunction(js_State *J, js_Fu... |
// set.c
// Contains functions for manipulating sets
#include <stdlib.h>
#include "golf.h"
Set new_set() {
Set set = {NULL};
return set;
}
static inline void free_node(TreeNode *node) {
free_item(&node->item);
free(node);
}
// Frees a tree node and all of its descendants
static inline void free_tree(TreeNod... |
/* libmpdclient
(c) 2003-2019 The Music Player Daemon Project
This project's homepage is: http://www.musicpd.org
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... |
/*
* Routines to authenticate access to a daemon (hosts allow/deny).
*
* Copyright (C) 1998 <NAME>
* Copyright (C) 2004-2009 <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; eith... |
/*
* 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 distributed in the hope that it will be use... |
/*-
* SPDX-License-Identifier: BSD-4-Clause
*
* Copyright (c) 2005
* <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 retai... |
/*******************************************************************************
SPI PLIB
Company:
Microchip Technology Inc.
File Name:
plib_spi3_master.c
Summary:
SPI3 Master Source File
Description:
This file has implementation of all the interfaces provided for particular
SPI periph... |
/* $OpenBSD: upa.c,v 1.2 2002/06/11 11:03:07 jason Exp $ */
/*
* Copyright (c) 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 m... |
/*
* PowerPC64 Segment Translation Support.
*
* <NAME> and <NAME> {<EMAIL>|<EMAIL>
* Copyright (c) 2001 <NAME>
*
* Copyright (C) 2002 <NAME> <<EMAIL>>, IBM
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as pub... |
/*
* Simple IDCT
*
* Copyright (c) 2001 <NAME> <<EMAIL>>
*
* 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... |
// Copyright (c) 2020, NVIDIA 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 condi... |
/*
* Broadcom 802.11 device interface
*
* Copyright (C) 2013, Broadcom Corporation
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
* the contents of this file may not be disclosed to third parties, copied
* or duplicated in any form, in whole or in part, without ... |
/*
* FreeRTOS Kernel V10.2.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, ... |
/*
*
* 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... |
/*
* Linux DV1394 interface
* Copyright (c) 2003 <NAME> <<EMAIL>>
*
* 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 th... |
#include "vterm_internal.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
/*****************
* API functions *
*****************/
static void *default_malloc(size_t size, void *allocdata)
{
void *ptr = malloc(size);
if(ptr)
memset(ptr, 0, size);
return ptr;
}
static void... |
#undef NDEBUG
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define USAGE_DIVS (10)
#define USAGE_DELTA (100*1000) /* in usec */
/* the value of SCALE_FACTOR limits USAGE_DELTA
* (USAGE_DIVS * USAGE_DELTA * max[scale_table]) < MAX_INT)
*/
#define SCALE_FACTOR (100)
static un... |
/* R O O M . C
* BRL-CAD
*
* Copyright (c) 2004-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as pu... |
// Code from:
// https://www.hanshq.net/othello.html
// https://github.com/Whillikers/Asimov-othello
#include "cbitboard.h"
#define NUM_DIRS 8
/*
* Occluded Fill operations
*
* gen: sources of fill
* pro: propagators of fill
*/
unsigned int popcount(uint64_t x) {
#ifdef __GNUC__
return __builtin_popcountll(... |
/* Shared library add-on to iptables to add CLUSTERIP target support.
* (C) 2003 by <NAME> <<EMAIL>>
*
* Development of this code was funded by SuSE AG, http://www.suse.com/
*/
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <stddef.h>
#if defined(__GLI... |
/*
* RTC driver for Maxim MAX8907
*
* Copyright (c) 2011-2012, NVIDIA Corporation.
*
* Based on drivers/rtc/rtc-max8925.c,
* Copyright (C) 2009-2010 Marvell International Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version... |
/*
** Nofrendo (c) 1998-2000 <NAME> (<EMAIL>)
**
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of version 2 of the GNU Library General
** Public License as published by the Free Software Foundation.
**
** This program is distributed in the hope that it will be useful,... |
#include "l.h"
void
noops(void)
{
Prog *p, *p1, *q, *q1;
int o, mov, aoffset, curframe, curbecome, maxbecome;
/*
* find leaf subroutines
* become sizes
* frame sizes
* strip NOPs
* expand RET
* expand BECOME pseudo
*/
if(debug['v'])
Bprint(&bso, "%5.2f noops\n", cputime());
Bflush(&bso);
curfr... |
#include "rc_internal.h"
enum {
RC_LBOARD_START = 1 << 0,
RC_LBOARD_CANCEL = 1 << 1,
RC_LBOARD_SUBMIT = 1 << 2,
RC_LBOARD_VALUE = 1 << 3,
RC_LBOARD_PROGRESS = 1 << 4,
RC_LBOARD_COMPLETE = RC_LBOARD_START | RC_LBOARD_CANCEL | RC_LBOARD_SUBMIT | RC_LBOARD_VALUE
};
void rc_parse_lboard_internal(rc_... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2017
* <NAME>, Guntermann & Drunck GmbH, <EMAIL>
*
* based on the gdsys osd driver, which is
*
* (C) Copyright 2010
* <NAME>, Guntermann & Drunck GmbH, <EMAIL>
*/
#include <common.h>
#include <display.h>
#include <dm.h>
#include <regmap.h>
#include <video... |
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> of the Numerical Aerospace Simulation Facility,
* NASA Ames Research Center.
*
* Redistribution and use in source and binary forms, with or without
... |
/**
* <NAME>
* EE17BTECH11036
* 15TH SEPT 2K19
**/
#include <stdio.h>
#include <malloc.h>
#include <math.h>
typedef long double lgdb;
void printarray(lgdb *arr,int n){
printf("[ ");
for(int i=0;i<n;i++)
printf("%Lf ",arr[i]);
printf(" ]");
printf("\n");
}
lgdb *correlation(int m,int n,l... |
#include "defines.h"
#include "serial.h"
#define SERIAL_UART_NUM 2
#define PIC_UART1 ((volatile struct pic_uart *)0xBF806000)
#define PIC_UART2 ((volatile struct pic_uart *)0xBF806200)
struct pic_uart {
volatile uint32 UxMODE;
volatile uint32 UxMODECLR;
volatile uint32 UxMODESET;
volatile uint32 UxMODEINV;
... |
#pragma once
#define IAC 255
#define DONT 254
#define DO 253
#define WONT 252
#define WILL 251
#define SB 250
#define GA 249
#define EL 248
#define EC 247
#define AYT 246
#define AO 245
#define IP 244
#define BREAK 243
#define DM 242
#define NOP 241
#define SE 240
#define EOR 239
#define ABORT 238
#define SUSP 237
#de... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main_rand.c :+: :+: :+: ... |
/*
* Copyright (c) 2012-2016, Juniper Networks, Inc.
* All rights reserved.
*
* You may distribute under the terms of :
*
* the BSD 2-Clause license
*
* Any patches released for this software are to be released under these
* same license terms.
*
* BSD 2-Clause license:
*
* Redistribution and use in source... |
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <stdlib.h> /* AWH */
#include <refos/refos.h>
#include <refos/error.h>
#inc... |
#include <stdio.h>
#include "gatt_att.h"
unsigned short read_uint16_le(unsigned char *buff, int offset)
{
unsigned short value = 0;
value = buff[offset];
value |= buff[offset + 1] << 8;
return value;
}
void write_uint16_le(unsigned short value, unsigned char *buff, int offset)
{
buff[offset + 1]... |
// TODO: Python-style order-preserving mapping https://www.youtube.com/watch?v=p33CVV29OG8
#include <assert.h>
#define EMPTY ((size_t)(-1))
MAPPING MAPPING_CTOR(void)
{
size_t n = 8; // TODO: experiment with different values
MAPPING map = malloc(sizeof(*map) + n*sizeof(map->flex[0]));
assert(map);
map->refcou... |
/* $XConsortium: pexPick.c,v 5.3 94/04/17 20:36:11 hersh Exp $ */
/* $XFree86: xc/programs/Xserver/PEX5/dipex/objects/pexPick.c,v 3.0 1995/07/07 15:36:10 dawes Exp $ */
/*
Copyright (c) 1989, 1990, 1991 X Consortium
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and ass... |
/* Pixman uses some non-standard compiler features. This file ensures
* they exist
*
* The features are:
*
* FUNC must be defined to expand to the current function
* PIXMAN_EXPORT should be defined to whatever is required to
* export functions from a shared library
* limits ... |
/*
Copyright (c) 2021-2022 jdeokkim
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) any later version.
This progr... |
/*
* AWS IoT EduKit - Core2 for AWS IoT EduKit
* Factory Firmware v2.0.3
* power.c
*
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Softwa... |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include "libgccjit.h"
#include "harness.h"
/**********************************************************************
GCC_JIT_FUNCTION_ALWAYS_INLINE and GCC_JIT_FUNCTION_INTERNAL
**********************************************************************/
static vo... |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* 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 cod... |
/* Copyright (C) 2010-2018 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (chd_stream.c).
* ---------------------------------------------------------------------------------------
*
* Permi... |
/* options.c
Copyright 1999-2000 <NAME> <<EMAIL>,
<EMAIL>,
<EMAIL>>
Copyright 2008 <NAME> <<EMAIL>>
Copyright 2009 <NAME> <<EMAIL>>
Copyright 2009 <NAME> <<EMAIL>>
Copyright 2010 <NAME> <<EMAIL>>
Copyright 2017 <NAME> <<EMAIL>... |
/*
* This file is part of GreatFET
*/
#include "sgpio_isr.h"
#include <libopencm3/lpc43xx/sgpio.h>
#include "usb_bulk_buffer.h"
//
// FIXME: this whole module is a stand-in; it will disappear shortly when
//
// Offsets into the shadow register:
// A = 0
// B = 4
// C = 8
// D = 12
// E = 16
// F = 20
// G = 24
... |
/* copyright: <NAME>, 2002
* All rights reserved. See _BSDLicense.txt.
*
* user clones MP3Decoder and implements input and output methods
* and then calls run.
* input should return a buffer, output will have a buffer argument.
*/
#include "IoMP3Decoder.h"
#include "List.h"
#include "IoState.h"
#include "IoNumber... |
/* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file btrack_orconn_maps.c
* \brief Hash map implementation for btrack_orconn.c
*
* These functions manipulate the hash maps that contain bt_orconn
* objects.
**/
#include <stdbool.h>
#include "core/or/or.h"
... |
/*
* Copyright (C) 2018 Marvell International Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses
*/
/* AP807 Marvell SoC driver */
#include <common/debug.h>
#include <drivers/marvell/cache_llc.h>
#include <drivers/marvell/ccu.h>
#include <drivers/marvell/io_win.h>
#include <drivers/marvel... |
/*
* Copyright (C) 2015 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 (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:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and t... |
/* Copyright (c) 2014, Intel Corporation.
*
* 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 THE AUTHOR DI... |
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#ifndef apple
#define _XOPEN_SOURCE 600
#include <malloc.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#endif
#include <inttypes.h>
#include "db.h"
#include "db_arena.h"
#include "db_map.h"
#include "db_object.h"
#include "db_... |
#include "tests.h"
#include "x86_desc.h"
#include "lib.h"
#include "keyboard.h"
#include "filesystem.h"
#include "terminal.h"
#include "rtc.h"
#define PASS 1
#define FAIL 0
#define ECE391 391
#define videome 0xB8000
#define kenme 0x400000
#define width_screen 80
#define size_long 10
/* format these macros as you see... |
/*
The MIT License (MIT)
Copyright (c) 2013 <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,... |
/* go-callers.c -- get callers for Go.
Copyright 2012 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
#include "config.h"
#include "backtrace.h"
#include "runtime.h"
#include "array.h"
/* This is set to non-zero whe... |
// game.c
// includes
#include "attack.h"
#include "board.h"
#include "fen.h"
#include "game.h"
#include "list.h"
#include "move.h"
#include "move_do.h"
#include "move_legal.h"
#include "piece.h"
#include "square.h"
#include "util.h"
// constants
static const bool UseSlowDebug = FALSE;
// variables
game_t Game[1... |
/*
* quickdisk.c
*
* Quick Disk interface control.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
#define GPI_bus GPI_floating
#define GPO_bus GPO_pushpull(_2... |
/*
* @ : Copyright (c) 2021 Phytium Information Technology, Inc.
*
* SPDX-License-Identifier: Apache-2.0.
*
* @Date: 2021-05-06 09:30:51
* @LastEditTime: 2021-05-25 16:41:10
* @Description: Description of file
* @Modify History:
* * * Ver Who Date Changes
* * ----- ------ -------- ---... |
#include "fpu_lib.h"
#define _SSE_ROUND_NEAREST (0x0000)
#define _SSE_ROUND_DOWN (0x2000)
#define _SSE_ROUND_UP (0x4000)
#define _SSE_ROUND_TOWARD_ZERO (0x6000)
#define _SSE_ROUND_MASK (0x6000)
bool fpu_verbose_mode = false;
int write_log(const char *format, ...)
{
if(fpu_verbose_mode)... |
/*
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:
* Redistributions of source code must retain the above copyright notice, this
list of conditions a... |
/*
* main.c
*
* Created on: 27/11/2020
* Author: sjoshi
*/
//#include "stm32f4xx.h"
#include "main.h"
#include <stdio.h> //sprintf
#include <string.h> //memset and strlen
void Timer2_Init(void);
void Error_Handler(void);
void SystemClockConfigHSE(uint32_t sysclk);
void GPIO_Init(void);
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
typedef char string[500];
string listaAlelos[3];
string listaPadres[730];
string listaFenotipos[730];
typedef struct archivo{
int n;
string caracteristicas[10];
string feno_dominantes[10];
string feno_recesivos[10];
} contenidoArch... |
/**
* @file xdict.c (dictionary query)
* @author <NAME>
* @editor set number ; syntax on ; set autoindent ; set tabstop=4 (vim)
* $Id$
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#ifdef WIN32
# include "config_win32.h"
#endif
#include "xdict.h"
#include "xtree.h"
#include "xdb.h"
#include "crc32.h... |
/*
Contains functions delaing with transmitting data from the current peer
*/
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>
#include "peer.h"
#include "bt_server.h"
#include "log.h"
#include "hash.h"
#include "chunk.h"
#include "transfer.h"
#include "... |
#include <stdint.h>
/* DOPPLER-Board-Layout:
* ---------------- FPGA Pins ------------------
* DAC1 SCK MOSI DAC0 LedR LedG LedB CT1 CP0
* DIL P... |
/* gift.c -- Prepare a gift of information for the program currently loaded.
*
* To pass a new data structure into the kernel:
*
* 1. Define your new data structure in typed.h. You will probably want
* to define some supporting routines for your data structure. These
* should go in a file by themselves. ... |
/*******************************************************************************
* Copyright 2019 Microchip Corporation.
*
* SPDX-License-Identifier: MIT
*
* MPFS HSS Embedded Software
*
*/
/*!
* \file Boot Service State Machine
* \brief Boot Service
*/
#include "config.h"
#include "hss_types.h"
#include ... |
#include <ctype.h>
#include <getopt.h>
#include "common.h"
#include "openssl/aes.h"
#include "openssl/sha.h"
#include "openssl/evp.h"
#include "openssl/err.h"
#include "openssl/rand.h"
#include <math.h>
/* include code that creates policy by hand */
#define BYTES 4
// size_t attr_len = 0;
// char *attr[MAX_CIPHERTEXT... |
/*
* Copyright (C) 2018-2019 Jolla Ltd.
* Copyright (C) 2018-2019 <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... |
#include "jdesp.h"
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"
#include "mbedtls/platform.h"
#include "mbedtls/net_sockets.h"
#include "mbedtls/esp_debug.h"
#include "mbedtls/ssl.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"
#incl... |
/*
* Copyright (c) 2007 <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, ... |
#include "cache.h"
#include "pkt-line.h"
static const char *packet_trace_prefix = "git";
static const char trace_key[] = "GIT_TRACE_PACKET";
void packet_trace_identity(const char *prog)
{
packet_trace_prefix = xstrdup(prog);
}
static void packet_trace(const char *buf, unsigned int len, int write)
{
int i;
struct ... |
#include "../tlse.c"
#include <stdio.h>
#include <string.h> //strlen
#ifdef _WIN32
#include <winsock2.h>
#define socklen_t int
#else
#include <sys/socket.h>
#include <arpa/inet.h>
#endif
static char identity_str[0xFF] = {0};
int read_from_file(const char *fname, void *buf, int max_le... |
#include "cham_stream_node.h"
char *null_link = "0";
void *null_data = NULL;
Kmap *stream_map = NULL;
typedef struct StreamMessage{
int file_fd;
char *file_path;
long file_seek;
} StreamMessage;
int equality(void *data_1 , void *data_2){
return data_1 == data_2;
}
void key_destructor(void *data){}
... |
/***********************************************************************
|
| FNAMES.H - Last Edited 6. 8. 1988
|
***********************************************************************/
/* matc.c */
char *doread( void );
VARIABLE *com_quit( void );
/*
* $Id: fnames.h,v 1.2 2007/06/08 08:12:19 jpr Exp $
*
* $Lo... |
/* lavToPsl - Convert blastz lav to psl format. */
/* Copyright (C) 2014 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "lav.h"
#include "hash.h"
#include "options.h"
#include "psl.h"
#include "bed.h"
/* strand to us for target */
char* ta... |
//
// BREthereumExchange.c
// WalletKitCore
//
// Created by <NAME> on 6/9/20.
// Copyright © 2018-2019 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
#include "BREthereumEx... |
/* $NetBSD: common.c,v 1.8 2015/10/28 07:27:24 shm Exp $ */
/*-
* Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
/* liftOver - Move annotations from one assembly to another. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "binRange.h"
#include "chain.h"
#include "bed.h"
#include "genePred.h"
#include "sample.h"
#include "liftOver.h"
int bedPlus = 0;
int ends = 0;
bool fudgeThick = FA... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <iconv.h>
#include <stdarg.h>
#include <sqlcli.h>
#include "PaseType.h"
#include "../PaseCliLic.h"
/* This module is only used ILE compile.
* Modifies a few libdb400.a extended APIs
* to enable single source code major function.
*/
static SQLHANDL... |
/*
* storage.c
*
* Created on: Jun 17, 2019
* Author: george
*/
#include <stdio.h>
#include <third_party/spiffs/SPIFFSNVS.h>
#include <third_party/spiffs/spiffs.h>
#include <ti/drivers/NVS.h>
#include "board.h"
#include "storage.h"
#include <post.h>
#include "badge.h"
uint8_t spiffsWo... |
/*
* arch/sh/kernel/timers/timer-tmu.c - TMU Timer Support
*
* Copyright (C) 2005 <NAME>
*
* TMU handling code hacked out of arch/sh/kernel/time.c
*
* Copyright (C) 1999 <NAME> & <NAME>
* Copyright (C) 2000 <NAME> <<EMAIL>>
* Copyright (C) 2002, 2003, 2004 <NAME>
* Copyright (C) 2002 <NAME> <<EMAIL... |
/*Copyright 2019-2021 T-Head Semiconductor 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 applicable law or agreed to i... |
/*
* This file is part of the sse package, copyright (c) 2011, 2012, @radiospiel.
* It is copyrighted under the terms of the modified BSD license, see LICENSE.BSD.
*
* For more information see https://https://github.com/radiospiel/sse.
*/
#include "http.h"
#include "sse.h"
#define SSE_CLIENT_VERSION "0.2"... |
#include <videoDriver.h>
#include <stdint.h>
#include <fonts.h>
#include <screens.h>
#include <colors.h>
#include <lib.h>
unsigned int WIDTH = 1024;
unsigned int HEIGHT = 768;
unsigned int PIXEL_SIZE = 3; //bytes por pixel
unsigned int DEFAULT_BG_COLOUR = 0X000000;
unsigned int DEFAULT_FONT_COLOUR = 0XFFFFFF;
unsigne... |
/********************************************************************************************************/
/********************************************************************************************************/
/***********************************TUTORAT SYSTEMES IMA*************************************************/... |
/*
* Copyright (c) 2021, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... |
#include "modes/special/scale.h"
const u8 scale_points[33] = {0, 4, 8, 12, 19, 26, 31, 35, 42, 48, 54, 58, 64, 71, 78, 84, 88, 93, 97, 103, 109, 115, 121, 126, 137, 143, 149, 155, 161, 167, 173, 179, 186};
const u8 scale_data[186] = {
1, 5, 7, 10, // In Sen
2, 5, 7, 9, // Yo scale
1, 5, 6, 10, // Iwato
2, 3, 5, 6,... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2021, <NAME>
*/
#include <assert.h>
#include <config.h>
#include <pkcs11_ta.h>
#include <string.h>
#include <tee_api_defines.h>
#include <tee_internal_api.h>
#include <tee_internal_api_extensions.h>
#include <utee_defines.h>
#include <util.h>
#include "att... |
#include "../include/paralleltt.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef HEAD
#define HEAD (int) 0
#endif
// Tensor ind is an array of indices, s.t. we think of X as
// X[vec_ind] = X[tensor_ind[0], tensor_ind[1], ..., tensor_ind[d-1]] (this would work in MATLAB!)
void... |
#include "video_filters.h"
void video_filter(SDL_Surface *surface, uint32_t (*function)(uint32_t, SDL_PixelFormat*)){
SDL_LockSurface(surface);
uint32_t *pixels = (uint32_t*)surface->pixels;
for(int i = 0; i < surface->w * surface->h; i++){
pixels[i] = function(pixels[i], surface->format);
}
SDL_UnlockSurfac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.