text stringlengths 3.08k 10.5k |
|---|
/*
"Programming Principles" by B.Stroustrup
p.126 Exercise 3
Read a sequence of double values into a vector. Think of each value as
the distance between two cities along a given route. Compute and print
the total distance (the sum of all distances). Find and print the smallest
and greatest dist... |
/*
* asleap - actively recover weak LEAP passwords. Pronounced "asleep".
*
* Copyright (c) 2004, <NAME> <<EMAIL>>
*
* $Id: apeek.c,v 1.5 2004/07/31 02:38:15 jwright Exp $
*
* 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... |
/*
* =============================================================================
* Copyright (c) 2016-2018, Barcelona Supercomputing Center (BSC)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are... |
/*
* Copyright (c) 2015 Qualcomm Atheros, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below)
// provided that t... |
/******************************************************************************
* File Name: main.c
*
* Description: This is the source code for the XMC MCU: DMA M2M Example for
* ModusToolbox. This example demonstrates transfer of data from flash to RAM
* using GPDMA peripheral.
*
* Related Document: See README.md... |
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* 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
* vers... |
//
// Created by zhangrongxiang on 2017/10/18 14:42
// File main
//
#include<stdio.h>
#include<stdlib.h>
#include <string.h>
#define flen 1024 * 8
const char *INI_NAME = "conf.ini";
void trim(char *strIn, char *strOut);//去除字符串首位空格
void getValue(char *keyAndValue, char *key, char *value);
//根据key得到value
int writeCF... |
/* BSD Socket API Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h... |
/* Copied from the stats package, R-2.15.1.
* <NAME> (<EMAIL>) -- 2012/07/31
*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995-2001 <NAME>, <NAME> and the
* R Core Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms ... |
/*
* inet_aton test suite.
*
* The canonical version of this file is maintained in the rra-c-util package,
* which can be found at <http://www.eyrie.org/~eagle/software/rra-c-util/>.
*
* Written by <NAME> <<EMAIL>>
*
* The authors hereby relinquish any claim to any copyright that they may have
* in this work, ... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright 2019 Pengutronix
* All rights reserved.
*
* <NAME> <<EMAIL>>
*/
#include <config.h>
#include <drivers/tzc380.h>
#include <imx-regs.h>
#include <initcall.h>
#include <kernel/panic.h>
#include <mm/core_memprot.h>
#include <mm/generic_ram_layout.h>
/*
* TZASC... |
/*
* 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 (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. */
// This sample C application for Azure Sphere demonstrates General-Purpose Input/Output (GPIO)
// peripherals using a blinking LED and a button.
// The blink rate can be changed through a button press.
//
// It uses the ... |
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <regex.h>
#include <alloca.h>
#include <assert.h>
#include "toktype.h"
#include "mtsclass.h" // for field_type_x definitions.
/**
* Notice that these are strict patterns:
* 1. octal is required to begin with a '0',
* 2. ... |
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
develop this 3D driver.
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 ... |
/* Copyright (c) 1993-1999 by <NAME> and <NAME>.
See file COPYING. */
#include "sysdep.h"
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/time.h>
#include <errno.h> /* for errno, (POSIX?/ANSI) */
#include "c-mods.h"
#include "scheme48... |
#include "jatek.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <conio.h>
struct SOR
{
char kerdes[200];
char a[30];
char b[30];
char c[30];
char d[30];
char jo;
int nehez... |
#include "globals.h"
#include "array.h"
#include "childs.h"
void sINT_Handler(void );
void sTERM_Handler(void );
//para las signals
int signals_stat;
int main(int argc, char *argv[])
{
struct sigaction _sigAction;
int fd; /* sound device file descriptor */
int arg; /* argument for ioctl calls */
int... |
/*=====================================================================
======= COPYRIGHT NOTICE =======
Copyright (C) 1996, Carnegie Mellon University, Cambridge University,
<NAME> and <NAME>.
All rights reserved.
This software is made available for research purposes only. It may be
redistribut... |
/* 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.
*/
/*
* Based on the AIX XMMS output plugin by <NAME>, <NAME>
* and... |
/** MIT License
*
* Copyright (c) 2018 <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, modi... |
// Copyright (c) 2019 <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, distri... |
/*
* linux/arch/m68knommu/platform/MC68VZ328/de2/config.c
*
* Copyright (C) 1993 <NAME>
* Copyright (C) 1999 <NAME>
* Copyright (C) 2001 <NAME>, <NAME>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of... |
#include <sys/wait.h> /* waitpid */
#include <stdio.h> /* printf, perror */
#include <stdlib.h> /* exit */
#include <unistd.h> /* fork */
#include <pthread.h> /* UNIX-like thread library */
/* global variables */
int An,Am,Bn,Bm,Cn,Cm;
int** A;
int** B;
int** C;
int nthreads;
void *multThread(void *par... |
/*
* Copyright (c) 2017-2019 Cisco and/or its affiliates.
* 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 appl... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <locale.h>
#define Hash_Table_Length 7
struct ListNode {
int Data;
char *String;
struct ListNode *Next;
};
struct ListNodeRep {
struct ListNode *Head;
struct ListNode *Tail;
... |
/**
******************************************************************************
* @file jencode_decode.c
* @author SongWenShuai
* @brief This file contain the compress method.
******************************************************************************
*/
/* Includes ---------------------------... |
/* erlmunk_util.c */
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include "erl_interface.h"
#include "ei.h"
#include "uthash.h"
#include "erlmunk_util.h"
extern char *node_name;
unsigned int ref_count = 0;
unsigned char creation = 'c';
erlmunk_client *current_client = NULL;
void set_current_client... |
/*
* This is a minimal encoder for uncompressed PNGs.
*
* It is based on this Python implementation:
* http://mainisusuallyafunction.blogspot.com/search/label/png
*/
#include "pngout.h"
/* CRC32 computation */
static const uint32_t crc_table[16] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc419... |
//-------------------------------------------------------------------------//
// //
// This benchmark is a serial C version of the NPB FT code. This C //
// version is developed by the Center for Manycore Programming at Seoul //
// Nati... |
#include <stdlib.h>
#include <stdio.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include "lk_common.h"
#include "lk_file.h"
#define LK_BUFFER_SIZE 65536
/**
* @struct lk_file
* File reader struct for text files: a file of lines of text separated with
* line feed and carriage returns
... |
#include "ipv4.h"
#include "logging.h"
#include <net/ethernet.h>
#include <net/udp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
ipv4_header_t ipv4_create_header(uint8_t src_ip[4],
in_addr_t dst_addr,
uint8_t protocol,
... |
/*
*
* Copyright (c) 2019 Matrix Orbital, Corp. https://www.matrixorbital.com/
*
* 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... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/resource.h>
typedef struct slice {
void *data;
size_t len;
size_t cap;
} slice;
slice * sliceCreate(void *data, size_t len, size_t cap) {
// allocate memory from the heap
slice *s = (struct slice *)malloc(sizeof(st... |
/* cfg80211 support
*
* See copyright notice in main.c
*/
#include <linux/ieee80211.h>
#include <net/cfg80211.h>
#include "hw.h"
#include "main.h"
#include "orinoco.h"
#include "cfg.h"
/* Supported bitrates. Must agree with hw.c */
static struct ieee80211_rate orinoco_rates[] = {
{ .bitrate = 10 },
{ .bitrate = ... |
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "mpi.h"
#define MINSIZE 1
#define MAXSIZE 262144
#define REPEATS 500
int comm_world_rank, comm_world_size;
char *buffer;
double ping( int size, int to )
{
int msg;
double totaltime;
MPI_Status sta... |
/*
Copyright 2019 <NAME>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistribut... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SCAN_CORRECT_LINES_MAX 30
#define STRINGMAX 32
#define SCAN_LINE_MAXLENGTH 256
struct s_students {
char student_name[STRINGMAX];
char student_surname[STRINGMAX];
char student_studypaths[4][STRINGMAX];
} studentlist[SCAN_CORRECT_LINES_MAX]... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <nlopt.h>
#include <unistd.h>
#include <sys/time.h>
void quadbezier(const double *a, const double *b, const double *c,
double t, double *out)
{
double onemt = 1.0 - t;
out[0] = onemt * (onemt * a[0] + t * b[0]) + t * (onemt * b[0] + t * c[0]);
o... |
#include "listdir.h"
#include <fcntl.h>
#include <fts.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "archive.h"
#include "program_options.h"
#include "util.h"
struct file_data*
list_directory_by_fts(FTS* fts... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define VPX_CODEC_DISABLE_COMPAT 1
#include "vpx/vpx_encoder.h"
#include "vpx/vp8cx.h"
#define interface (vpx_codec_vp8_cx())
#define fourcc 0x30385056
#define IVF_FILE_HDR_SZ (32)
#define IVF_FRAME_HDR_SZ (12)
typedef struct {
int f... |
/**
* List the raw input devices that have been set up.
*
* Documentation:
* * https://docs.microsoft.com/en-gb/windows/win32/api/winuser/nf-winuser-getrawinputdevicelist
* * https://docs.microsoft.com/en-gb/windows/win32/api/winuser/nf-winuser-getrawinputdeviceinfoa
*/
#include "common.h"
#include <inttypes.h>
... |
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "sim_task.h"
int interactive = 0;
unsigned long minimum = 1;
unsigned long maximum = 5;
int num_tasks = 26;
int deadline = 120;
int seed = 5;
/**
* Recognized arguments:
* - `-m`: the minimum amount of time that a task will run
* - `-M`: the maxi... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <string.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "shox.h"
void parse(char *command, char **args) //parse command line string into a strings vector **args. This step is required... |
/**
* Copyright 2019 Comcast Cable Communications Management, 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 applica... |
#include <curl/curl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
pid_t bg;
void BindServer(const char *ip,... |
/*
* Copyright (c) 2020-2021 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 applic... |
#include <stdio.h>
#include "child_utils.h"
#include "file_wrapper.h"
#define WRITE_END 1
#define READ_END 0
#define MAX_BUFF_SIZE 1256
child_process* build_children(int num_children) {
child_process* pcp = (child_process*) calloc(num_children, sizeof(child_process));
for(int i = 0; i < num_children; ++i) {
... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <float.h>
#include "multinest.h"
/******************************************** loglikelihood routine ****************************************************/
// Now an example, sample an egg box likelihood
// Input arguments
// ndim... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2016 MediaTek Inc.
* Author: <NAME> <<EMAIL>>
*/
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <soc/mediatek/smi.h>
#include "mtk_mdp_comp.h"
static const cha... |
#include "strikethrough.h"
#include <parser.h>
#include <render.h>
cmark_node_type CMARK_NODE_STRIKETHROUGH;
static cmark_node *match(cmark_syntax_extension *self, cmark_parser *parser,
cmark_node *parent, unsigned char character,
cmark_inline_parser *inline_parser) {... |
/*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of con... |
/*
* 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... |
/*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
/*
* Tests that the performance of a struct that contains a vector type
* exploits the vector type correctly
*
* If PACK_IS_NATIVE is defined, MPI_Pack stores exactly the same bytes as the
* user would pack manually... |
/***************************************************************************
* FILE: main.c
* AUTHOR: <NAME> - 15504319
* UNIT: FCC200
* PURPOSE: Main RSA implementation
* LAST MOD: 03/05/17
* REQUIRES: main.h
***************************************************************************/
#include "main.h"
//-------... |
/*-
* Copyright (c) 2015 <NAME> <<EMAIL>>
* 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 (c) 2018, Intel 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:
//
// 1. Redistributions of s... |
// board enforces
// in-state
// accel set/resume
// out-state
// cancel button
// accel rising edge
// brake rising edge
// brake > 0mph
// these are set in the Honda safety hooks...this is the wrong place
const int gas_interceptor_threshold = 328;
int gas_interceptor_detected = 0;
int br... |
#include <stdio.h>
#include "display.h"
#include "types.h"
#include "exec_stack.h"
#include "insts.h"
#include "safestd.h"
static void print_val_(Val val0, int display_style) {
stack_push((Val){TYPE_PRINT_CONTROL, {.print_control_data = PRINT_CONTROL_END}});
stack_push(val0);
Val val;
while (1) {
... |
/*
* Copyright (c) 1995,1999 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS"... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Load ELF vmlinux file for the kexec_file_load syscall.
*
* Copyright (C) 2004 <NAME> (<EMAIL>)
* Copyright (C) 2004 IBM Corp.
* Copyright (C) 2005 <NAME> (<EMAIL>)
* Copyright (C) 2006 <NAME> (<EMAIL>)
* Copyright (C) 2016 IBM Corporation
*
* Based on kexec-to... |
/**
******************************************************************************
* @file HTS221_anklabs.h
* @author <NAME>
* @brief HTS221 header driver file
* @Version 1.0
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/* GMODULE - GLIB wrapper code for dynamic module loading
* Copyright (C) 1998, 2000 <NAME>
*
* BeOS GMODULE implementation
* Copyright (C) 1999 <NAME> and <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 ... |
/*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010 - 2019 <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... |
#include "match.h"
#include "env.h"
#include "eval.h"
#include "assertions.h"
bool obj_match(Process *process, Obj *env, Obj *attempt, Obj *value);
bool obj_match_lists(Process *process, Obj *env, Obj *attempt, Obj *value) {
//printf("Matching list %s with %s\n", obj_to_string(attempt)->s, obj_to_string(value)->s);... |
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// This test checks that values stored in task_data in a barrier_begin event
// are still present in the corresponding barrier_end event.
// Therefore, callback implementations different from the ones in callback.h are neccessary.
// This... |
#include "asm_util.h"
#include "asm_opcodes.h"
#include <assert.h>
#include <stddef.h>
#include <string.h>
void
asm_make_uop0(struct asm_uop* p_uop, int32_t uopcode) {
p_uop->uopcode = uopcode;
p_uop->value1 = 0;
p_uop->value2 = 0;
p_uop->is_eliminated = 0;
p_uop->is_merged = 0;
p_uop->backend_tag = 0;
}... |
/*
* sc.c: String carousel
*
* I often find myself in a situation where I'm returning a statically
* allocated string from a function, often formatted using printf or strftime,
* and usually to be used for logging or debugging. The function simply
* overwrites that static string buffer on every call, growing or s... |
/*
* Routines to access hardware
*
* Copyright (c) 2015 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "FreeRTOS.h"
#include "task.h"
#include "diag.h"
#inc... |
#include "mysock.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <poll.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/time.h>
static const int rand_port_dbg=0;
static const int socket_dbg=0;
static const int db... |
/*
* RGB2R-C128-Kassenprogramm
* © 2007-2009 phil_fry, sECuRE, sur5r
* See LICENSE for license information
*
*/
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "general.h"
#include "kasse.h"
#include "c128time.h"
#include "print.h"
#include "version.h"
s... |
#include <stdio.h>
#include <stdbool.h>
// Works. cannot work with multiple comments in the same line like below
/* this is a comment */ /* this is another comment */ // this is the last comment
/* What is working:
* Removes the first comment it encounters! but not the subsequent ones in the same line
*
*/
#defin... |
#include "reproc/reproc.h"
#include "handle.h"
#include "pipe.h"
#include "process.h"
#include "string_utils.h"
#include <assert.h>
#include <stdlib.h>
#include <windows.h>
static void reproc_destroy(reproc_type *process)
{
assert(process);
handle_close(&process->handle);
handle_close(&process->parent_stdin)... |
#include <stdint.h>
#include "cmsis.h"
extern void gf_polymul_128x128(int *h, int *f, int *g);
extern int jump128divsteps(int minusdelta, int *M, int *f, int *g);
void gf_polymul_128x128_2x2_x2p2 (int *V,int *M,int *fh,int *gh);
void gf_polymul_128x128_2x2_x_2x2 (int *M, int *M1, int *M2);
int jump256divsteps(int minu... |
/***************************************************************************//**
* @file
* @brief Core Application OTA DFU MicriumOS logic.
*******************************************************************************
* # License
* <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b>
*****************... |
/*
* This file is part of wl18xx
*
* Copyright (C) 2011 Texas Instruments Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope th... |
/* $Id: servo.c,v 1.1 2006/06/15 09:27:08 casse Exp $
*
* Copied from autopilot (autopilot.sf.net) thanx alot Trammell
* (c) 2002 <NAME> <<EMAIL>>
* (c) 2003 <NAME>, <NAME>
*
* This file is part of paparazzi.
*
* paparazzi is free software; you can redistribute it and/or modify
* it under the terms of the GNU... |
/* $Xorg: bufio.c,v 1.4 2001/02/09 02:04:03 xorgcvs Exp $ */
/*
Copyright 1991, 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 above copyright notice appear in all copies and that both tha... |
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2015 Intel Corporation.
*
* 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 t... |
/*
* Altera SPI driver
*
* based on bfin_spi.c
* Copyright (c) 2005-2008 Analog Devices Inc.
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
#include <fdtdec.h>
#include <spi.h>
#include <asm/io.h>
DECLARE... |
/* Default error handlers for CPP Library.
Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1998, 1999, 2000,
2001, 2002, 2004 Free Software Foundation, Inc.
Written by <NAME>, 1994.
Based on CCCP program by <NAME>, June 1986
Adapted to ANSI C, <NAME>, Jan 1987
This program is free software; you ... |
/*############################################################################
# Copyright 2017 Intel 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://... |
/* usbreset -- send a USB port reset to a USB device */
/*
http://marc.info/?l=linux-usb-users&m=116827193506484&w=2
and needs mounted usbfs filesystem
sudo mount -t usbfs none /proc/bus/usb
There is a way to suspend a USB device. In order to use it,
you must have a kernel with CONFIG_PM_SYSFS_DEPRECATED turned ... |
/*
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2008-2013 Sourcefire, Inc.
*
* Author: aCaB <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* ... |
/*
* Copyright (c) 2018 <NAME>, Inc., http://www.sippysoft.com
* 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
* no... |
#include "context.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "hardware.h"
enum ctx_state_e
{
CTX_INIT,
CTX_EXEC,
CTX_END
};
struct ctx_s
{
unsigned int ctx_magic;
void *ctx_esp;
void *ctx_ebp;
unsigned char *ctx_base;
func_t *ctx_f;
void *ctx_arg;
en... |
/***********************************************************
bessel.c -- Bessel (ベッセル) 関数
***********************************************************/
#include <stdio.h>
#include <math.h>
#define EPS 1e-10 /* 許容相対誤差 */
#define odd(x) ((x) & 1) /* 奇数? */
#define PI 3.141592653... |
/******************************************************************//**
* *
* Advanced file I/O module (CORE) *
* *
* HISTORY ... |
/*
* Copyright (c) 2019 <NAME>
* https://github.com/iotaledger/entangled
*
* Refer to the LICENSE file for licensing information
*/
#include <stdlib.h>
#include <string.h>
#include "common/crypto/curl-p/ptrit.h"
#include "common/crypto/curl-p/search.h"
#include "common/trinary/ptrit_incr.h"
#include "common/trin... |
/*
Authored 2021. <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the following
di... |
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include "tsar.h"
struct stats_nginx {
unsigned long long naccept; /* accepted connections */
unsigned long long nhandled; /* handled connections */
unsigned long long nrequest; /* handle... |
/*******************************************************************************
* arg_dbl: Implements the double command-line option
*
* This file is part of the argtable3 library.
*
* Copyright (C) 1998-2001,2003-2011,2013 <NAME>
* <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and bin... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* repmat.c
*
* Code generation for function 'repmat'
*
*/
/* Include files */
#include "rt_nonfinite.h"
#inc... |
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<time.h>
#include<string.h>
#include<ctype.h>
/* exact and permutation tests for calculating p-value of contingency table, not used anymore 06/20/2013 */
double compute_pvalue_permutation(int** ctable,int size,double cl,int iter,int** newtable,int fast,str... |
/* $OpenBSD: ln.c,v 1.25 2019/06/28 13:34:59 deraadt Exp $ */
/* $NetBSD: ln.c,v 1.10 1995/03/21 09:06:10 cgd Exp $ */
/*
* Copyright (c) 1987, 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... |
/*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <arch_helpers.h>
#include <assert.h>
#include <bl_common.h>
#include <context_mgmt.h>
#include <string.h>
#include "tlkd_private.h"
#define AT_MASK 3
/**************************... |
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2018 <NAME>
*/
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <time.h>
#include <sched.h>
#include <math.h>
... |
#include <open62541/plugin/log.h>
#include <open62541/plugin/log_stdout.h>
#include <types/basic_types.h>
#include <hidapi.h>
#include "controller.h"
#include "multithreading.h"
static volatile bool monitoring_enabled = false;
static volatile hid_device *handle = NULL;
static volatile bool detected = false;
static voi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.