text stringlengths 3.12k 18.7k |
|---|
/* annoFormatTab -- collect fields from all inputs and print them out, tab-separated. */
#include "annoFormatTab.h"
#include "annoGratorQuery.h"
#include "dystring.h"
struct annoFormatTab
{
struct annoFormatter formatter;
char *fileName;
FILE *f;
boolean needHeader; // TRUE if we should print ou... |
#include "PLL.h"
#include "SysTick.h"
//OUTPUT
#define GPIO_PORTB_DATA_R (*((volatile unsigned long *)0x400053FC)) // bits 7-0
#define GPIO_PORTB_DIR_R (*((volatile unsigned long *)0x40005400))
#define GPIO_PORTB_AFSEL_R (*((volatile unsigned long *)0x40005420))
#define GPIO_PORTB_DEN_R (*((vo... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/sysmacros.h>
#include "diskStats.h"
#include "utils.h"
void diskStatClear(diskStatType *d) {
d->startSecRead = 0;
d->startSecWrite = 0;
d->startSecTimeio = 0 ;
d->finishSe... |
/*
* Copyright 2019 The Opentls Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.opentls.org/source/licens... |
// sym_substructure.c ひとつの原子の順位を高くする
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main_canost.h"
extern int iatm;
extern int new_atm;
extern struct atom *a1st;
extern struct queue *head,*tail;
extern struct level *pes;
extern struct level *reef;
extern int ore;
extern int *confined_bond;
exte... |
/**
* \file gui_debugbox.c
* \brief Debug box widget
*/
/*
* Copyright (c) 2020 <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,... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "network.h"
#define min(a,b) (((a) < (b)) ? (a) : (b))
static int network_handle_sacn(config_t* cfg, uint8_t* data, size_t len){
sacn_header* hdr = (sacn_header*) d... |
#include "upstream.h"
#include "everykey/everykey.h"
#include "everykey_usb/usb.h"
#include "everykey_usb/hid.h"
#include "cnctypes.h"
#include "state.h"
#include "cmdqueue.h"
#define IN_REPORT_SIZE sizeof(ResponseStruct)
#define OUT_REPORT_SIZE sizeof(CommandStruct)
#define POLL_INTERVAL 3
// USB data handler... |
/*
Copyright 2013 Samsung R&D Institute Russia
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 con... |
/*
** Purpose: Implement example table.
**
** Notes:
** None
**
** License:
** Template written by <NAME> and licensed under the GNU
** Lesser General Public License (LGPL).
**
** References:
** 1. OpenSatKit Object-based Application Developer's Guide.
** 2. cFS Application Developer's Guide.
**
*/
/*
** Inc... |
/*
$Id$
Copyright 1989-2014 <NAME>
This file is part of NewGen.
NewGen 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 any later version.
NewGen is distribute... |
/*
+----------------------------------------------------------------------+
| Author: <NAME> <<EMAIL>> |
+----------------------------------------------------------------------+
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iconv.h>
#include <tcrdb.h>
#include "c... |
/*
* Copyright (c) 2016, Intel Corporation, Intel Mobile Communication
* 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 ... |
/*! \file bcma_cli_parse_table.c
*
* <description>
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <bsl/bsl.h>
#include <sal/sal_libc.h>
#include <... |
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include "lizard.h"
#include <time.h>
/*
* Input formats must be 120 bit key as 30 hex values and 64 bit IV as 16 hex values.
* The keystream output length can be chosen between 1 bit and 10000 bits.
*/
uint32_t K[120];
uint32_t IV[64];
uint32_t z=0;
uint... |
/*
* Copyright 2014-2016 Nippon Telegraph and Telephone 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 requi... |
#pragma once
#include "../diablo.h"
typedef void ( *SEVTHANDLER)(struct _SNETEVENT *);
#ifndef __STORM_SMAX
#define __STORM_SMAX(x,y) (x < y ? y : x)
#endif
#ifndef __STORM_SSIZEMAX
#define __STORM_SSIZEMAX(x,y) (__STORM_SMAX(sizeof(x),sizeof(y)))
#endif
#ifndef __STORM_SMIN
#define __STORM_SMIN(x,y) (x < y ? x : ... |
/*
* cloudfs: block source
* By <NAME>. Copyright (C) 2013, All rights reserved.
*
*/
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <pthread.h>
#include <linux/nbd.h>
#include <linux/ioctl.h>
#include <linux/fs.h>
#include <sys/io... |
/*
* Copyright (c) 2017 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 applicabl... |
/* Copyright 2007,2008,2010 ENSEIRB, 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 distribution of free software. You can
**... |
// gnu tar and ustar extraction
// - rlyeh, public domain.
#ifndef TAR_H
#define TAR_H
typedef struct tar tar;
tar *tar_open(const char *filename, const char *mode);
int tar_find(tar*, const char *entryname); // returns entry number; or <0 if not found.
unsigned tar_count(tar*);
char* tar_name(ta... |
/*
*
* Copyright 2015 gRPC authors.
*
* 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 agree... |
#include "as.h"
static Label *label_new(char *ident, Token *token) {
Label *label = (Label *) calloc(1, sizeof(Label));
label->ident = ident;
label->token = token;
return label;
}
static Dir *dir_new(StmtType type, Token *token) {
Dir *dir = (Dir *) calloc(1, sizeof(Dir));
dir->type = type;
dir->token =... |
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyri... |
/*
* File : ethernetif.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... |
/*
* FreeRTOS V202111.00
* 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 "Software"), to deal in
* the Software without restriction, incl... |
/*
* Copyright (c) 2018-2020 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2020 <NAME>. All rights reserved.
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
* $COPY... |
/* -*- Mode: C; c-basic-offset: 3 -*-
Copyright (C) 2002-2008 <NAME> <<EMAIL>>
This file is part of Siproxd.
Siproxd 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 t... |
/*
*
*
*
*
*
**********/
/*****************************************************************************\
|********************************** includes *********************************|
\*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include... |
#include "internal.h"
/*
Copyright 2019 <NAME>. All Rights Reserved
This is an arbitrary precision implementation of the long-hand square
root algorithm.
The long hand square root algorithm is originally attributed to
Fibonacci in his work <NAME>.
He described that:
when a number has 2n or 2n−1 digits, the ... |
/* $NetBSD: pfkey.c,v 1.1 2012/01/06 14:21:16 drochner Exp $ */
/* $KAME: ipsec.c,v 1.33 2003/07/25 09:54:32 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitte... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <time.h>
#include <math.h>
int mrand_accu_reg = 0;
int mrand_write_count = 0;
void mrand_operation_in_refer(char* binary, int* modification_flag){
char operation_code[3];
char value[7];
int result = 0;
... |
/******************************************************************************
Copyright (c) 2004, <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:
* Redistributions of source code mus... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <app_config.h>
#include <stdlib.h>
#include <string.h>
#include <devices/devicelist.h>
#include <devices/wifi.h>
#include <devices/rtl8723ds.h>
#include <yoc/netmgr.h>
#include <yoc/eventid.h>
#include <yoc/uservice.h>
#include <yoc/init.h>
#inc... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
#include <dirent.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <ev3dev_stretch/lego_sensor.h>
#include <ev3dev_stretch/sysfs.h>
#include <pbio/iodev.h>
#include <pbio/port.h>
#include <pbio/util.h>
#define MAX_... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* Copyright 2014-2020 Real Logic Limited.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2012. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... |
#include <stdlib.h>
#include <string.h>
#include "app_callback.h"
#include "rules.h"
extern int delay;
extern int SIZE_X; extern int SIZE_Y;
extern int drawGrid;
extern int **world;
extern int **worldSave;
extern Rule *rule;
extern int **(*rule_function)(int **, int, int);
extern GtkWidget *dA;
extern GtkWidget *rul... |
#include "words.h"
char const *const tt_words[] = {
"the",
"name",
"of",
"very",
"for",
"before",
"and",
"just",
"form",
"in",
"much",
"is",
"great",
"it",
"think",
"you",
"say",
"that",
"help",
"he",
"low",
"was",
"line",
"for",
"before",
"on",
"turn",
"are",
"cause",
"with",
"same",
"... |
/*
* Copyright 1997, Regents of the University of Minnesota
*
* struct.h
*
* This file contains data structures for ILU routines.
*
* Started 9/26/95
* George
*
* $Id: struct.h,v 1.2 2003/07/21 17:50:22 karypis Exp $
*/
/* Indexes are as long as integers for now */
#ifdef IDXTYPE_INT
#define IDX_DATATYPE MP... |
/* bedCons - Look at conservation of a BED track vs. a refence (nonredundant) alignment track. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "jksql.h"
#include "bed.h"
#include "fa.h"
#include "nib.h"
#include "hdb.h"
#include "binRange.h"
static char const rcsid[] = "$Id... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <emscripten.h>
#include <emscripten/vr.h>
static int gDisplay = -1;
static int renderLoopCalled = 0;
static bool renderLoopArgCalled = false;
static void* renderLoopArgArg = NULL;
void report_result(int result) {
emscripten_... |
/*
* Vulkan Samples
*
* Copyright (C) 2015-2016 Valve Corporation
* Copyright (C) 2015-2016 LunarG, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
/*==================================================================*\
| EXIP - Embeddable EXI Processor in C |
|--------------------------------------------------------------------|
| This work is licensed under BSD 3-Clause License |
| The full license terms and condit... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/epoll.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/vm_sockets.h>
#include <sys/ti... |
#include "xmfract.h"
#include "fractype.h"
#include "macros.h"
#include "helpdefs.h"
#include "mpmath.h"
#include "globals.h"
#include "prototyp.h"
#ifndef NO_IDENT
#ident "$Id: restore_menu.c,v 1.400 1995/06/20 15:39:23 darryl Exp $"
#endif
/* static functions */
static void restore_previous_image_cb
(Widget w, X... |
/* test_alphaComp.c
* vi:ts=4 sw=4
*
* (c) Copyright 2012 Hewlett-Packard Development Company, L.P.
* 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-... |
/**
* Copyright (c) 2009 - 2017, Nordic Semiconductor ASA
*
* 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... |
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence LLC
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, m... |
// Asynchronous socket server - accepting multiple clients concurrently,
// multiplexing the connections with epoll.
//
// <NAME> [http://eli.thegreenplace.net]
// This code is in the public domain.
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <winsock2.h>
#include <pthread.h>
#include <Windows.h>
#include <unistd.h>
#define DEFAULT_THREADS 10 //默认线程数
unsigned int portlist[65536]; //端口池,portlist[0]为需要测试的端口数
unsigned int ... |
#include "stdio.h"
#include "string.h"
#include "openssl/err.h"
#include "openssl/pem.h"
#include "openssl/x509_vfy.h"
const int OK = 1;
const int BUF_SIZE = 4096;
int sign(const char *pk_file, const char *file);
int verify(const char *ca_file, const char *chain_file, const char *cert_file, const char *sign_file, co... |
// Copyright 2016 The Fuchsia 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 "netifc.h"
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <xefi.h>
#include <efi/protocol/simple-network.h>
#include "in... |
/*
* The Computer Language Benchmarks Game
* http://shootout.alioth.debian.org/
*
* Original C contributed by <NAME>
* Conversion to C++ by <NAME>
* OpenMP parallelize by The Anh Tran
* Add SSE by The Anh Tran
* Reconversion into C by <NAME>
*/
#define _GNU_SOURCE
#include <omp.h>
#include <math.h>
#include <... |
/**
* Copyright (c) 2016, <NAME>
*
* 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 DISCLAIMS ... |
/* eapAddStep - Add a step to eapStep and related tables. This is just a small shortcut for doing it in SQL. You can only add steps defined in C code.. */
/* Copyright (C) 2014 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "... |
/*
* BSD LICENSE
*
* Copyright(c) 2007-2017 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... |
/*
* Copyright (c) 1997-1999, 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 option) any later ... |
/*
Unicode character type helpers.
Written by <NAME> (<EMAIL>).
Modified for Python 2.0 by <NAME> (<EMAIL>)
Copyright (c) Corporation for National Research Initiatives.
*/
#include "Python.h"
#include "unicodeobject.h"
#define ALPHA_MASK 0x01
#define DECIMAL_MASK 0x02
#define DIGIT_MASK 0x04
#define LO... |
// OLED SSD1306 using the I2C interface
// Written by <NAME> (<EMAIL>)
// Project started 1/15/2017
//
// The I2C writes (through a file handle) can be single or multiple bytes.
// The write mode stays in effect throughout each call to write()
// To write commands to the OLED controller, start a byte sequence with 0x00... |
/************************
* ADDRESS DEFINITIONS
************************/
// System Control Legacy base address
#define SYSCTL_RCGC2_R (*((volatile unsigned long *)0x400FE108))
// PortF(APB) base address: 0x40025000
#define GPIO_PORTF_DATA_R (*((volatile unsigned long *)0x400253FC))
#define GPIO_PORTF... |
/*
* Copyright (c) 2005-2008 Chelsio, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source ... |
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <setjmp.h>
#define MAX_CANON 256
#define QUIT_STRING "q"
#define BLANK_STRING " "
#def... |
/* $NetBSD: mertwist.c,v 1.8 2008/04/28 20:24:06 martin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> <<EMAIL>>.
*
* Redistribution and use in source and binary forms, with or without
*... |
/*
* File: two_wheel_first.c
* Date: 22/01/2021
* Description:
* Author: <NAME>
* Modifications:
*/
#include <string.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <webots/distance_sensor.h>
#include <webots/motor.h>
#include <webots/robot.h>
#include <webots/gp... |
/* include the peptide headers. */
#include "peptide.h"
#include "peptide-atoms.h"
/* peptide_improper_find(): lookup an improper dihedral in a peptide
* structure by its atom array indices.
*
* arguments:
* @P: pointer to the peptide structure to access.
* @id*: array indices of the query atoms.
*
* returns... |
/*
* Tool for querying the vocab.
*
* Usage:
* zet_dict -f <index-prefix>
* zet_dict -h # for help
*
* This tool loads the vocabulary for the index specified by the
* "-f <prefix>" argument, or by default the index with the prefix
* "index". It then reads queries from standard i... |
// ---------------------------------------------------------------------------
// Copyright <NAME> 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)... |
/*
* platform.c - DesignWare HS OTG Controller platform driver
*
* Copyright (C) <NAME> <<EMAIL>>
*
* 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 copyr... |
/******************************************************************************
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
*
... |
/*
** This is free and unencumbered software released into the public domain.
**
** Anyone is free to copy, modify, publish, use, compile, sell, or
** distribute this software, either in source code form or as a compiled
** binary, for any purpose, commercial or non-commercial, and by any
** means.
**
** In jurisdictio... |
/* gui_start_java.c: start the java process */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <dirent.h>
#include <signal.h>
#include <sys/types.h>
#include "lib/util.h"
#ifdef DEBUG_PRINT
#define DEBUG_EXEC_JAVA
#endif /* DEBUG_PRINT */
... |
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2018-2020 Linaro Ltd.
*/
#include <linux/refcount.h>
#include <linux/mutex.h>
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/interconnect.h>
#include "ipa.h"
#include "ipa_cl... |
#include <SFML/Audio.h>
#include <SFML/Graphics.h>
#include <SFML/OpenGL.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <unistd.h>
#include <inttypes.h>
#include <string.h>
#include <stdlib.h>
volatile char runflag = 1;
void sig_int(int sig){
runflag = 0;
}
void show_devices(){
size_t devn... |
#include "jasm8080.h"
uint8_t recognizeInstruction(char *str) {
uint8_t i;
for(i = 0; i < totalInstructionPlaceholders; i++) {
if(!strcasecmp(str, instructionsStr[i])) {
return i;
}
}
return totalInstructionPlaceholders;
}
uint8_t recognizePseudoInstruction(char *str) {
uint8_t i;
for(i = 0; i < total... |
/*
* Copyright (c) 2000
* 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 conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... |
/*-
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it u... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... |
// See LICENSE for license details.
#include <stdio.h>
#include <stdlib.h>
#include "platform.h"
#include <string.h>
#include "plic/plic_driver.h"
#include "encoding.h"
#include <unistd.h>
#include "stdatomic.h"
void reset_demo (void);
// Structures for registering different interrupt handlers
// for different parts... |
/*
* Copyright (c) 2019-2020, The Linux Foundation. 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 the following conditions are met:
*
* * Redistributions of source c... |
/* PVCAMSET - set PVCAM device parameters
FLAG = PVCAMSET(HCAM, PARAM, VALUE) assigns VALUE to the PVCAM
parameter specified by the string PARAM for the camera specified
by HCAM. FLAG returns 0 if an error occurred, 1 if the program
was successful. The user should call PVCAMGET() first to obtain
... |
#include "sha1.h"
// rol 宏 让 val 循环左移 bits
#define rol(val, bits) (((val) << (bits)) | ((val) >> (32 - (bits))))
/* blk0() and blk() perform the initial expand. */
#ifdef ISBIG
# define blk0(i) block->l[i]
#else
# define blk0(i) (block->l[i] = (rol(block->l[i], 24) & 0xFF00FF00)\
| ... |
#include "tabusearch.h"
#include "heuristics.h"
#include "distutil.h"
#include <unistd.h>
#include <float.h>
////////////////////////////////////////////////////////
///////////////// HYPERPARAMETERS //////////////////////
////////////////////////////////////////////////////////
#define NUM_ITER 100 // It' the number... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#define pghash(daddr) palloc.hash[(daddr>>PGSHIFT)&(PGHSIZE-1)]
static Lock pglock;
struct Palloc palloc;
void
pageinit(void)
{
Page *p;
ulong np, hw, hr, vmem, pmem;
np = palloc.np0+palloc.np1;
... |
/* Copyright (c) 2017-2018 Mozilla */
/*
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 discl... |
/*
* Copyright (C) 2013 <NAME> <<EMAIL>>
* 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, including without limitation
* the rights to use,... |
/*
* Copyright (c) 2015 Kaprica Security, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... |
#include <setjmp.h>
#include <sys/time.h>
#include <pthread.h>
void __real_puts (const char* txt);
void __wrap_puts (const char* txt);
extern "C" void cpc_CX_APM_MODE(unsigned long mode);
// extern "C" long Est_Interruption();
extern "C" void *Thread_Updater(void*);
extern "C" void Interruption_Timer(long signal);
... |
#define K_BASE_PHYS 0x10000
#define K_DATA_PHYS 0x100000
#define K_DATA_SIZE 0x800000
#define K_RAMDISK_PHYS 0x40000
#define K_RAMDISK_SIZE 0x1000
#define K_STACK_PHYS 0x30000
#define K_STACK_SIZE 0x10000
#define K_SIZE 0x20000
//#define STACK_BASE 0x90000
//#define STACK_SIZE 0x4000
typedef struct
{
u32 present:1;
... |
/*
* Reads a zone file from disk and prints it to stdout, one RR per line.
* Adds artificial DS records and RRs.
* For the purpose of generating a test zone file
*
* (c) SIDN 2010/2011 - <NAME>/<NAME>
*
* See the LICENSE file for the license
*/
#include "config.h"
#include <unistd.h>
#include <stdlib.h>
#inclu... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 <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 Soft... |
#include <stdlib.h>
#include <gp2xregs.h>
#include <orcus.h>
#include <fat.h>
#include <sys/dir.h>
#include <dirent.h>
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "font_bin.h"
#include "bootloader.h"
// global variables
bool renderRequired = true;
// current view
View* cur... |
/**
* @file lv_ex_settings_1.c
*
*/
/*********************
* INCLUDES
*********************/
#include "../../src/lv_settings/lv_settings.h"
#include "lv_drivers/indev/keyboard.h"
#include "lv_drivers/indev/mousewheel.h"
/*********************
* DEFINES
*********************/
#ifndef LV_SETTINGS_KEYBO... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
* Copyright (c) 2013, 2015 Jonas 'Sortie' Termansen.
*
* 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" AND T... |
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2015 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU G... |
/*
complete.c
Created: July 1995 by <NAME> <<EMAIL>>
*/
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "myhistedit.h"
#include "shell.h"
#include "complete.h"
#include "error.h"
#include "expand.h"
#include "nodes.h"
#include "memalloc... |
//
// Python C-API module to modify
// image buffer in-place for brightness and such adjustments.
//
// Build with:
// gcc -O2 -fpic --shared `python3-config --includes` \
// `pkg-config --libs --cflags gtk+-3.0` pixbuf_proc.c -o pixbuf_proc.so
//
// Usage:
// import pixbuf_proc
// buff, w, h, rs, alpha = pixbuf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.