text stringlengths 5.8k 28.2k |
|---|
/*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2003 Massachusetts Institute of Technology
*
* 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 ... |
#include <minix/syslib.h>
#include <minix/drvlib.h>
#include <minix/log.h>
#include <minix/mmio.h>
#include <minix/clkconf.h>
#include <minix/sysutil.h>
#include <minix/board.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.... |
#ifdef SL_DEBUG
#include "debug.h"
#endif
#ifndef SL_HTTP_ASSERT
# ifdef SL_ASSERT
# define SL_HTTP_ASSERT(...) SL_ASSERT(__VA_ARGS__)
# else
# define SL_HTTP_ASSERT(...) ((void)0)
# endif
#endif
#ifndef SL_HTTP_LOG
# ifdef SL_LOG
# define SL_HTTP_LOG(...) SL_LOG(__VA_ARGS__)
# else
# define SL_HTTP_LOG(...) ((voi... |
/* util.c: libshout utility/portability functions
*
* Copyright 2002-2003 the Icecast team <<EMAIL>>,
* Copyright 2012-2015 Philipp "ph3-der-loewe" Schafft <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as p... |
#define _GNU_SOURCE
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sched.h>
#include <unistd.h>
#include <mpi.h>
#ifdef _OPENMP
#include <omp.h>
#else
#define omp_get_max_threads() 1
#define omp_get_num_threads() 1
#define omp_get_thread_num() 0
#endif
struct xthi_options_... |
#include <util/curl/curl-helper.h>
#include <util/threading.h>
#include <util/platform.h>
#include <util/darray.h>
#include <util/dstr.h>
#include <obs-data.h>
#include "file-updater.h"
#define warn(msg, ...) \
blog(LOG_WARNING, "%s" msg, info->log_prefix, ##__VA_ARGS__)
#define info(msg, ...) \
blog(LOG_WARNING, "%... |
#include <ruby.h>
#include <ruby/util.h>
#include <ruby/io.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#define UNINITIALIZED_ERROR -2
#if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL) && defined(HAVE... |
#include <math.h>
#include <stdlib.h>
#include "mex.h"
//Finding Minimum-Cost Path in a 2-D Matrix, w.r.t. equation (5.2.2) in J.D.Tucker's Thesis.
//Problem Statement : Given a cost matrix Cost[][] where Cost[i][j] denotes the Cost of visiting cell with coordinates (i,j), find a min-cost path to reach a cell (x,y) fro... |
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
char* read_file(char* path) {
FILE* file = fopen(path, "rb");
if (!file) {
fprintf(stderr, "Failed to open file: %s\n", path);
return NULL;
}
fseek(file, 0, SEEK_END);
long len = ftell(file);
char* c... |
/* $Header$ */
/* Purpose: Software configuration management */
/* Copyright (C) 1995--present <NAME>
This file is part of NCO, the netCDF Operators. NCO is free software.
You may redistribute and/or modify NCO under the terms of the
3-Clause BSD License with exceptions described in the LICENSE file */
#in... |
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <time.h>
#include <getopt.h>
#include <errno.h>
#include <linux/types.h>
static unsigned int time_out = 1;
static double read_ratio = 0.7; //70% read 30% writ... |
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>
char ATSIGN = '@';
int line_number = 1;
typedef struct List
{
void * data;
struct List * successor;
} list;
/* a list must be initialized with data */
list * list_new(void * d)
{
list * l... |
/*
safenet_pe_slad_405EX.c
Copyright:
Copyright (c) 2007 - 2007 <NAME>.
All rights reserved.
Safenet Look-Aside Accelerator Packet Engine Interface
implementation specifics for 405EX Chips with the use
of the SLAD driver.
*/
#include "safenet_pe.h"
#include "safenet_pe_slad_platform.h"
#include "sa... |
#include <hre/config.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <hre/user.h>
#include <mc-lib/atomics.h>
#include <mc-lib/cctables.h>
#include <mc-lib/hashtable.h>
#include <mc-lib/set-ll.h>
#include <mc-lib/statistics.h>
#include <mc-lib/stats.h>
#include <util-lib... |
/* -*- C -*-
*
* Copyright 2011 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
* retains certain rights in this software.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licen... |
#include "shet.h"
#include "util.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
#ifdef DEBUG
#define DPRINTF(...) fprintf(stderr, __VA_ARGS__)
#else
#define DPRINTF(...)
#endif
// Assert the type... |
/*******************************************************
Copyright (C) 1995 <NAME>
All rights reserved
This file is part of yaehmop.
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 r... |
/*
* This file is part of AtomVM.
*
* Copyright 2019 <NAME> <<EMAIL>>
*
* 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 r... |
#include <stdio.h> /* Standard input/output definitions */
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <sys/poll.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <sys/ioctl.h>
speed_t
baudcode (int baud)
{
... |
/**
* |----------------------------------------------------------------------
* | Copyright (C) <NAME>, 2014
* |
* | 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... |
/*
* Created on June 18 2020
*
* Copyright (c) 2020 - <NAME>
* <EMAIL>
* This file is part of the Commander-API project.
*/
#include "interpreter.hpp"
API_t API_tree[NUM_OF_API_FUNCS];
uint32_t API_cntr;
uint32_t API_place_cntr;
#ifdef INTERPRETER_BUFFER_SIZE
/// Interpreter input buffer
///
/// It is only used w... |
/******************************************************************************
* Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited
* and/or its subsidiaries.
*
* This program is the proprietary software of Broadcom and/or its licensors,
* and may only be used, duplicated, modified or... |
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** This Source Code may also be made availabl... |
/* packet-syslog.c
* Routines for syslog message dissection
*
* Copyright 2000, <NAME> <gerald[AT]wireshark.org>
*
* Support for passing SS7 MSUs (from the Cisco ITP Packet Logging
* facility) to the MTP3 dissector by <NAME> <sarkar.abhik[AT]gmail.com>
* with some rework by <NAME> <jeff.morriss.ws [AT] gmail.com... |
/*
* Copyright (c) 1997, 1999 <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 condition... |
/*
File: MFiServerPlatformQNX.c
Package: Apple CarPlay Communication Plug-in.
Abstract: n/a
Version: 410.8
Disclaimer: IMPORTANT: This Apple software is supplied to you, by Apple Inc. ("Apple"), in your
capacity as a current, and in good standing, Licensee in the MFi Licensing Program. Use of this
Appl... |
/*
* FIPS-180-2 compliant SHA-256 implementation
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* Copyright (C) 2018, Intel Corporation, All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file... |
#include "compressor.h"
struct trie_node * make_trie_node(char c, unsigned int trie_depth){
struct trie_node * t = malloc(sizeof(struct trie_node));
t->c = c;
t->num_children = 0;
t->count = 0;
t->last_index = -trie_depth;
t->children = (struct trie_node_ref*)0;
return t;
}
void add_trie_child(struct trie_nod... |
// PIC18F4550 Configuration Bit Settings
#include <htc.h>
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.
// CONFIG1L
#pragma config PLLDIV = 1 // PLL Prescaler Selection bits (No prescale (4 MHz oscillator input drives PLL directly))
... |
/*-
* Copyright (c) 1993 <NAME>
* Copyright (c) 1993 <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... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 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) 2006-2007 University of Houston. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ATF.h"
#include "ATF_Memory.h"
#include "ATF_tfqmr.Cal.h"
/*#include "ATF_Matmul.h"*/
#include "ADCL.h"
#include "ATF_Adcl_global.h"
/*
** Implementation o... |
//-----------------------------------------------------------------------------
// Copyright (C) 2010 iZsh <iz<EMAIL>>
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------... |
#include "../lib/connq/connq.h"
#include "../lib/cproto/cproto.h"
#include "../lib/logger/logger.h"
#include "../lib/lru//lru.h"
#include "../lib/nethelpers/nethelpers.h"
#include <arpa/inet.h>
#include <bits/getopt_core.h>
#include <errno.h>
#include <netinet/in.h>
#include <pthread.h>
#include <stdio.h>
#include <std... |
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswresample/swresample.h>
#include <android/log.h>
#include <jni.h>
#include <inttypes.h>
#include "jni-protocol.h"
#include "audiodecoder.h"
#define READ_BUF... |
/** @example ex/perfADSub.c
*/
/*
* This sample provides a high throughput Guaranteed Messaging subscribing
* example for the Solace Messaging API for C.
*
* Copyright 2007-2018 Solace Corporation. All rights reserved.
*/
/**************************************************************************
* For Win... |
/*
* Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... |
/**
* @brief Cronus Digital Clock Display Functions
*
* @author <NAME> <<EMAIL>>
* @copyright MIT License
*/
#include "cronus/display.h"
#include <math.h>
#include <string.h>
#include "aespl/gfx.h"
#include "aespl/gfx_animation.h"
#include "aespl/gfx_buffer.h"
#include "aespl/gfx_font_1.h"
#include "aesp... |
/* KallistiOS ##version##
vmu.c
Copyright (C)2002,2003 <NAME>
Copyright (C)2008 <NAME>
*/
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <kos/thread.h>
#include <kos/genwait.h>
#include <dc/maple.h>
#include <dc/maple/vmu.h>
#include <arch/timer.h>
/*
This module deals with the VMU.... |
/*
* Copyright (c) 2008-2011 Atheros Communications 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" A... |
/* kakapo - a BGP traffic source and sink */
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#i... |
//
// ACME - a crossassembler for producing 6502/65c02/65816 code.
// Copyright (C) 1998-2006 <NAME>
// Have a look at "acme.c" for further info
//
// Flow control stuff (loops, conditional assembly etc.)
//
// Macros, conditional assembly, loops and sourcefile-includes are all based on
// parsing blocks of code. When ... |
#include "ascii2hamming.h"
int main(int argc, char *argv[]) {
dc_posix_tracer tracer;
dc_error_reporter reporter;
struct dc_posix_env env;
struct dc_error err;
struct dc_application_info *info;
int ret_val;
reporter = error_reporter;
tracer = trace_reporter;
tracer = NULL;
dc_e... |
#include <string.h>
#include "st7735.h"
#include "display.h"
#include "esp_log.h"
// ==== Color definitions constants ==============
const color_t black = { 0, 0, 0 };
const color_t navy = { 0, 0, 0x80 };
const color_t darkgreen = { 0, 0x80, 0 };
const color_t darkcyan = { 0, 0x80, 0x... |
/*
* best_effort_prototype1.c
*
* Created on: 09.04.2015
* Author: gorlorom
*/
/*
* A version of the paternoster_best_effort where local_out in west/east direction is reached by going through the corner-buffer.
* This prevents flits from going endlessly in circles and never reaching local_out, since they ... |
/*
Solar Bug Bot
Firmware
for use with ATtiny2313
Chaos Computer Congress (24C3)
<NAME>
4-Jul-08
Distributed under Creative Commons 2.5 -- Attib & Share Alike
All credits to the author!
Found at http://www.tvbgone.com/mfaire/bugbot/bugbot.c
*/
/*
Ladyada has a great website about the MiniPOV kit, fr... |
/*
* Copyright (c) 2010-2017 TIBCO Software Inc.
* Licensed under a BSD-style license. Refer to [LICENSE]
* For more information, please contact:
* TIBCO Software Inc., Palo Alto, California, USA
*/
/*
* This is a sample of a basic C FTL logging subscriber program.
*/
#include <stdlib.h>
#include <stdio.h>
#in... |
/*
* Copyright 2012 NVIDIA Corporation
*
* 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 wri... |
/* mipslabwork.c
This file written 2015 by <NAME>
Updated 2017-04-21 by <NAME>
This file should be changed by YOU! So you must
add comment(s) here with your name(s) and date(s):
This file modified 2017-04-31 by <NAME>
For copyright and licensing, see file COPYING */
#include <stdint.h> /* Decl... |
/* Extended Module Player
* Copyright (C) 1996-2010 <NAME> and <NAME>
*
* This file is part of the Extended Module Player and is distributed
* under the terms of the GNU General Public License. See doc/COPYING
* for more information.
*/
/* Ultimate Soundtracker support based on the module format descript... |
/*
* 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 2020-2021 Zuse Institute Berlin
//
// 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 a... |
/**
******************************************************************************
* @file lsm9ds1_acc_gyr.c
* @author <NAME>
* @version V1.0.0
* @date 21-May-2015
* @brief
******************************************************************************
*
* UNPUBLISHED PROPRIETARY SOURCE CODE
... |
/* $OpenBSD: if_upgtvar.h,v 1.17 2013/04/15 09:23:01 mglocker 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... |
#pragma once
const int cMaxArtefSeqs = 20; // allow at most this number of artefact sequences
const int cMaxArtefSeqLen = 40; // artefact sequences can be at most this length
const char *pszArtef5Seq = "ACACTCTTTCCCTACACGACGCTGTTCCATCT"; // default artifact seq for 5' simulated read ends (Illumina Single End... |
/********************************************************************************
* PolyShapeReader.c
*
* File contains:
* PolyShapeReader
*
* Updated: Jan 2005 for weight function capabilities BB
* Updated: April 2005 for "ALL" keyword support BB
* Updated: May 2005 to support file chunking BB
* Updated: J... |
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/XInput2.h>
#include <X11/extensions/Xfixes.h>
#include <X11/extensions/shape.h>
#define CHANGE_POS 1
#define CHANGE_SHAPE 2
static Display *display... |
/**************************************************************************
*
* \file
*
* \brief MP3 player.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
/* #define _POSIX_C_SOURCE 199309L */
#define _DEFAULT_SOURCE
#define DEBUG
#include <Imlib2.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <dirent.h>
#include <getopt.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define SEC2MILI 10... |
/* $NetBSD: px.c,v 1.21 2003/10/27 07:07:35 chs Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 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
* mod... |
/*
* Copyright (C) 2010-2011 <NAME> <<EMAIL>>
* Copyright (C) 2010-2011 LunarG 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
... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "overhead.h"
#include "proto.h"
#include "ngbtree3d.h"
#define DEBUG NO
#define NAMELEN 60
/* Fundamentally, this code is identical to the basic LOS column density code.
the difference is that it is designed to calculate for an a... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* 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(DATA... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
#include "seismic.h"
#include "wem.h"
void wesep2dop(float **ux,float **uy,
float **uz,float **up,float **us,
int nt,float ot,float dt,
int nx,float ox,float dx,
int ny,float oy,float dy,
float vp,float vs,
float fmin,float fmax,
bool decomp, bool H,
bool verbose);
void docs () {
char * doc =
" ... |
#include <gb/gb.h>
#include <gb/cgb.h>
#include "defines.h"
#include "select.h"
#include "fade.h"
#include "gamestate.h"
#include "set_data_rle.h"
#include "cos.h"
#include "ram.h"
#include "sound.h"
#include "mmlgb/driver/music.h"
#include "sgb_send_packet.h"
#include "characters.h"
#include "arrow.h"
#include "circl... |
/**********************************************************
* Copyright 2008-2009 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restrict... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
//////////// STRUCTURE AND VARIABLE DECLARATION ///////////////////
struct order { int index;
int quantity;
} ;
struct customer
{
char name[20];
char phone_no[10];
char ... |
/* zbesk.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
/******************************************************************************
* Filename: setup.c
* Revised: 2021-01-12 10:04:07 +0100 (Tue, 12 Jan 2021)
* Revision: 60045
*
* Description: Setup file for CC13xx/CC26xx devices.
*
* Copyright (c) 2015 - 2020, Texas Instruments Incorporated
* ... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
/*
* metasploit
*/
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <endian.h>
#i... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/* $Id: engine.c 27 2009-08-28 21:03:48Z gallows $
*
* Copyright (c) 2008,2009 <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.
... |
/*
* linux/fs/hfs/mdb.c
*
* Copyright (C) 1995-1997 <NAME>
* (C) 2003 Ardis Technologies <<EMAIL>>
* This file may be distributed under the terms of the GNU General Public License.
*
* This file contains functions for reading/writing the MDB.
*/
#include <linux/cdrom.h>
#include <linux/genhd.h>
#include <lin... |
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "base64.h"
#include "http_auth.h"
#include "plugin.h"
#include <stdlib.h>
#include <string.h>
#if defined HAVE_LIBSSL && defined HAVE_OPENSSL_SSL_H
#define USE_OPENSSL_CRYPTO
#endif
#ifdef USE_OPENSSL_CRYPTO
#include <openssl/evp.h>... |
/*
* Copyright (c) 2013-2019, <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 lis... |
/*
* dirent.c
*
* $Id$
*
* Provides emulation of POSIX "directory stream" manipulation functions,
* in terms of the MS-Windows FindFile API.
*
*
* Derived from DIRLIB.C by <NAME>
* This note appears in the associated DIRLIB.H header file:
* DIRLIB.H by <NAME> Released to public domain 1-Jan-89
*
* Update... |
/* Copyright 2004,2007,2008,2010,2011,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distri... |
/* Combined Purdue/PurduePlus patches, level 2.0, 1/17/89 */
/***********************************************************
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the abov... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2020-2021. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "mc_cuda.h"
#include "utils/ucc_malloc.h"
#include <cuda_runtime.h>
#include <cuda.h>
static const char *stream_task_modes[] = {
[UCC_MC_CUDA_TASK_KERNEL] = "kernel",
[UCC_MC_CUDA_T... |
#include <stdio.h>
#include "SDL_render.h"
#include "global.h"
#include "ppu.h"
#include "system.h"
typedef struct RGB_Color {
u8 r;
u8 g;
u8 b;
} RGB_Color;
RGB_Color rgb_colors[64] = {
{ 84, 84, 84},
{ 0, 30, 116},
{ 8, 16, 144},
{ 48, 0, 136},
{ 68, 0, 100},
{ 92, ... |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY,... |
#include <app_scheduler.h>
#include <app_timer.h>
#include "battery.h"
#include "scanner.h"
static uint32_t mScanTimer;
static void scan_task(void * p_context) {
if (scanner_enable) {
// don't start scans if BLE is inactive (paused)
if(BLEgetStatus() != BLE_INACTIVE) {
uint32_t resul... |
/*
* Copyright 2019, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details... |
/*
* drivers/net/ethernet/ibm/emac/phy.c
*
* Driver for PowerPC 4xx on-chip ethernet controller, PHY support.
* Borrowed from sungem_phy.c, though I only kept the generic MII
* driver for now.
*
* This file should be shared with other drivers or eventually
* merged as the "low level" part of miilib
*
* Copyri... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2011 UT-Battelle, LLC. All rights reserved.
* Copyright (c) 2014 Research Organization for Information Science
* ... |
#include "drivers/usb/request.h"
#include "drivers/usb/device.h"
#include "drivers/pci/pci.h"
#include "drivers/usb/usb.h"
#include "sys/mem/phys.h"
#include "arch/amd64/hw/io.h"
#include "sys/string.h"
#include "sys/assert.h"
#include "sys/debug.h"
#include "sys/heap.h"
#include "sys/attr.h"
#include "sys/mm.h"
#defi... |
//
// potion-test.c
// tests of the Potion C api
//
// (c) 2008 why the lucky stiff, the freelance professor
// (c) 2013 perl11 org
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "potion.h"
#include "internal.h"
#include "CuTest.h"
PN num = PN_NUM(490);
Potion *P;
void po... |
/*
* txt-stat: Linux app that will display various information about
* the status of TXT.
*
* Copyright (c) 2006-2011, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
#include "KlvParser.h"
#include "KlvTree.h"
#include "Constants.h"
typedef enum
{
KLV_TYPE_UINT,
KLV_TYPE_INT,
KLV_TYPE_DOUBLE,
KLV_TYPE_STRING,
KLV_TYPE_OTHER
} KlvType_t;
typedef struct
{
KlvType_t Type;
double Min;
double Max;
} KlvTagInfo_t;
KlvTagInfo_t TagInfo[KLV_UAS_NUM_ELEME... |
/**
******************************************************************************
* @file sequence.c
* @brief Coordinates commutation switching sequence.
* @author Neidermeier
* @version
* @date December-2020
******************************************************************************
*/
/**
* @def... |
/*! \file halfmac_client_hw.c
\brief Reception Half of a CSMA MAC protocol
@version 16.1
@author <NAME>
The goal of this MAC is to act as a receiver to a CSMA-enabled server.
This server will continue to retransmit packets until this client
acknowledges its reception.
In this variant, ACK transmission is hand... |
/* $OpenBSD: acpimadt.c,v 1.24 2011/03/06 22:40:05 deraadt Exp $ */
/*
* Copyright (c) 2006 <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 "geometry_system.h"
#include "core/logger.h"
#include "core/kmemory.h"
#include "core/kstring.h"
#include "systems/material_system.h"
#include "renderer/renderer_frontend.h"
typedef struct geometry_reference {
u64 reference_count;
geometry geometry;
b8 auto_release;
} geometry_reference;
typedef... |
/*
* Copyright (C) <NAME> on 25/04/12.
*
* 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 program... |
/*
* AUTHENTICATION
*
*/
#include <signal.h>
#include <pwd.h>
#include <stdarg.h>
#include "libtacplus.h"
/*
types of authentication
TACACS_ENABLE_REQUEST 1 Enable Requests
TACACS_ASCII_LOGIN 2 Inbound ASCII Login
TACACS_PAP_LOGIN 3 Inbound PAP Login
TACACS_CHAP_LOGIN 4 ... |
/*$Header: /data/petsun4/data1/src_solaris/t4_actmapf_4dfp/RCS/t4_xr3d_4dfp.c,v 1.12 2007/09/20 03:16:32 avi Exp $*/
/*$Log: t4_xr3d_4dfp.c,v $
* Revision 1.12 2007/09/20 03:16:32 avi
* linux compliant
*
* Revision 1.11 2006/09/29 04:56:02 avi
* Solaris 10
*
* Revision 1.10 2006/09/29 03:00:40 avi
* be... |
/* dasrcr.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__3 = 3;
static integer c__256 = 256;
/* $Procedure DASRCR ( DAS, remove comment records ) */
/* Su... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.