text stringlengths 5.8k 28.2k |
|---|
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <assert.h>
#include "memcached.h"
#include "cproxy.h"
#include "work.h"
#include "log.h"
// Internal declarations.
//
#define COMMAND... |
/*
* config_pool.c : pool of configuration objects
*
* ====================================================================
* 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
... |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: Target board general functions implementation
License: Revised B... |
#include "ui_roster.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "ui.h"
#include "ui_tabs.h"
#include "xmpp_pres.h"
#include "xmpp_roster.h"
/* Here goes everything related to roster widget in the user interface
* It's alredy complicated enough to keep it in the separa... |
/*
* include ./configure's header file
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* Rasterize current metafile buffer via gd library. Loosly based
on the gxpng utility:
gxpng Copyright 1999 <NAME>
Has been modified to behave more like the X interface, so the
output image will look more lik... |
#include <Prism/Rainbow/transform.h>
#include <math.h>
#include <string.h>
pr_bool_t Pr_MakeTransform(Pr_Transform ap_tr,
float a_00, float a_01, float a_02,
float a_10, float a_11, float a_12,
float a_20, float a_21, float a_22
)
{
if (!ap_tr) return PR_FALSE;
ap_tr[0] = a_00;
ap_tr[... |
/* txCdsEvFromProtein - Convert transcript/protein alignments and other evidence into a transcript CDS evidence (tce) file. */
/* Copyright (C) 2007 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "h... |
/* 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,
* dis... |
// Copyright 2015 Astex Therapautics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
#pragma GCC optimize("O3")
/******************************************************************************
* Sega Master System / GameGear Emulator
* Copyright (C) 1998-2007 <NAME>
*
* additionnal code by Eke-Eke (SMS Plus GX)
*
* This program is free software; you can redistribute it and/or modify
... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef unsigned ele;
ele rol (ele num, ele cnt);
ele safe_add (ele x, ele y);
ele cmn (ele q, ele a, ele b, ele x, ele s, ele t);
ele ff (ele a, ele b, ele c, ele d, ele x, ele s, ele t);
ele gg (ele a, ele b, ele c, ele d, ele x, ele s, ele t);
ele hh (ele ... |
/* Copyright (c) 2006 Trusted Computer Solutions, Inc. */
#include <errno.h>
#include <poll.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <selinux/selinux.h>
#include <sys/capability.h>
#include <sys/resource.h>
#in... |
/* license: MIT license
* Copyright (C) 2021 <NAME> <<EMAIL>> */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <time.h>
#include <sys/stat.h>
#include <libpq-fe.h>
#include <libdeflate.h>
#include "xmalloc.h"
#include "io.h"
#include "... |
/**************************************************************************
*
* Copyright 2015 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 wit... |
//===-- file-creator.c ----------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "address.h"
#include "fors.h"
#include "hash.h"
#include "hashx8.h"
#include "thash.h"
#include "thashx8.h"
#include "utils.h"
#include "utilsx8.h"
static void fors_gen_skx8(unsigned char *sk0,
unsigned char *sk1,
... |
// https://github.com/apple/darwin-xnu
// git checkout xnu-3789.70.16
// Sierra 10.12
// bsd/netinet/tcp.h
struct tcp_conn_status {
unsigned int probe_activated : 1;
unsigned int write_probe_failed : 1;
unsigned int read_probe_failed : 1;
unsigned int conn_probe_failed : 1;
};
#define IFNAMSIZ ... |
#include <stdio.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_memfile.h>
#include <getopt.h>
#include "main.h"
#include "menu_screen.h"
#include "resources/img/background.png.h"
#include "resources/font/VT323.ttf.h"
#include "... |
/*
* Copyright © 2018 Red Hat
*
* 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, dist... |
/*
Copyright (c) 1991-1999 <NAME>
"The MIT license"
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, merg... |
/* rc2.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL 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) a... |
/**
* This tests vul_astar on a rectangular grid.
*/
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#define VUL_DEFINE
#include "../vul_stable_array.h"
#include "../vul_astar.h"
#define TEST( expr ) if( !( expr ) ) {\
fprintf( stderr, #expr );\
exit( 1 );\
}
#ifdef _WIN32
#define snprintf sprintf... |
#include "okk.h"
#ifndef NULL
#define NULL 0
#endif
#define DIV_UP(a, b) (((a) - 1) / (b) + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define LOCAL_MEM_SIZE okk_local_mem_size_per_npu()
#define NPU_NUM okk_npu_num()
#define NO_USE 0
typedef struct {
int N, IC, OC, H, W;
... |
/*
* Copyright 1996-2021 Cyberbotics Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: t
* vi: set noexpandtab:
* :noTabs=false:
*
* <NAME> and <NAME>
* 1/10/12
* University of Washington
*
* This file was copied directly from leveldb/db/c_test.c, then edited.
*/
#include "../kp_macros.h"
#include "../leveldb_client.h"
#include "../leveldb/c... |
/* $OpenBSD: svc_udp.c,v 1.25 2015/11/01 03:45:29 guenther Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
*
* 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 r... |
#include <lib9.h>
#include <kernel.h>
#include "draw.h"
#include "tk.h"
#include "canvs.h"
char*
tkparsepts(TkTop *t, TkCpoints *i, char **arg, int close)
{
char *s, *e;
Point *p, *d;
int n, npoint;
i->parampt = nil;
i->drawpt = nil;
i->bb = bbnil;
s = *arg;
npoint = 0;
while(*s) {
s = tkskip(s, " \t");
... |
#include <inttypes.h>
const char* fmt_str(int fmt);
#include "test_spng.h"
#include "test_png.h"
#define SPNG_TEST_COMPARE_CHUNKS 1
#define SPNG_FMT_RGB16 8
struct spng_test_case
{
int fmt;
int flags;
int test_flags;
};
static int n_test_cases=0;
struct spng_test_case test_cases[100];
const char* fmt... |
/***************************************************************************//**
* \file I2C_1_I2C.c
* \version 4.0
*
* \brief
* This file provides the source code to the API for the SCB Component in
* I2C mode.
*
* Note:
*
*******************************************************************************
* \copyright
*... |
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2008-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2013 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of... |
/*
* Copyright (c) 2009-2012, Newcastle University, UK.
* 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, ... |
// vim: sw=4 ts=4 et :
#include "server.h"
connection_t *first_connection;
connection_t *last_connection;
// TODO get rid of this shit
char start = 0;
void player_connected_off(size_t id) {
if (start) {
players[id].connected = 0;
players[id].color ^= L_BLACK;
if (players_total > 0) player... |
/* fpgrpa.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... |
//forward declarations
long double evalLin(long double, const fit_results *);
long double evalPoly3(long double, const fit_results *);
long double evalPoly4(long double, const fit_results *);
long double eval2ParPoly3(long double,long double, const fit_results *);
long double eval1Par(long double, const fit_results *);... |
/***********************************************************************
**
** REBOL [R3] Language Interpreter and Run-time Environment
**
** Copyright 2012 REBOL Technologies
** REBOL is a trademark of REBOL Technologies
**
** Additional code modifications and improvements Copyright 2012 Saphirion AG
**
** Licens... |
/*
* ui_playlist_notebook.c
* Copyright 2010-2012 <NAME> and <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... |
/**
******************************************************************************
* @file mdr32f8_port.c
* @author Milandr
* @version V1.0.0
* @date 20/07/2015
* @brief This file provides all the PORT firmware functions.
***************************************************************************... |
/* sha512.c
* Copyright (C) 2008 梅どぶろく umedoblock
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sha.h"
#define SHA512_BLOCKSIZE (1024/8)
unt K[80][2] = {
{0x4a475817, 0x6c44198c}, {0x3ad6faec, 0x5fcb6fab}, {0xfc657e2a, 0x597f299c}, {0xcb3e42b6, 0x4cc5d4be},
{0x9c100d4c, 0x431d67c4}, {0x1... |
/*
============================================================================
Name : pardiso_solver.c
Author : <NAME>
Version : 0.1
Description : Wrapper for pardiso functions
Date : Mai 16, 2017
============================================================================
*/
#include <stdio.h>
... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Core support for ATC260x PMICs
*
* Copyright (C) 2019 <NAME> <<EMAIL>>
* Copyright (C) 2020 <NAME> <<EMAIL>>
*/
#include <linux/interrupt.h>
#include <linux/mfd/atc260x/core.h>
#include <linux/mfd/core.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_... |
/*
* This file is released under the terms of the Artistic License. Please see
* the file LICENSE, included in this package, for details.
*
* Copyright (C) 2003-2008 <NAME> & Open Source Development Labs, Inc.
*
* Based on TPC-C Standard Specification Revision 5.0 Clause 2.8.2.
*/
#include <sys/types.h>
#inclu... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/uio.h>
#include <errno.h>
#include <sys/stat.h>
#includ... |
/**
* \file am65xx/usb_wrapper.c
*
* \brief This file contains APIs for manipulating the SOC specific wrapper.
* As the name suggests this file implements the USB wrapper as
* impemented by AM6x .
*
* \copyright Copyright (C) 2018-2019 Texas Instruments Incorporated -
* ... |
/* cursesio.c: User interface functions for the ncurses library.
*
* Copyright (C) 2000 by <NAME>, under the GNU General Public
* License. No warranty. See COPYING for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <errno.h>
#include <ncurses.... |
#include <stdint.h>
#include <string.h>
#include "fips202.h"
#include "packing.h"
#include "params.h"
#include "poly.h"
#include "polyvec.h"
#include "randombytes.h"
#include "sign.h"
#include "symmetric.h"
/*************************************************
* Name: expand_mat
*
* Description: Implementation of... |
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
/////////////////////////////////////////////////////////////////////////////////////
// Types of errors charbydis may make
#define SUCCESS 0
#define INVALID_LENGTH 1
#define NO_POLICY_FOR_THIS_CONNECTION 2
#define NO_STATE_FOR_THIS_CONNECTION 3
#define SA... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "seduce.h"
/*
typedef unsigned int uint;
typedef unsigned short boolean;
#define TRUE 1
#define FALSE 0
*/
#define CHARACTER_SET_SIZE 256
#define CHARACTER_SPACE_SIZE 1.0
#define CHARACTER_KERNING_DEPTH 0.9
#define CHARACTER_KERNING_SIZE 0.15
void s... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define _USE_MATH_DEFINES
#include<math.h>
#include "hertzianDipole.h"
typedef enum { false, true } bool;
//calculate the fraction of electron speed to light speed from the relativistic kinetic energy:
double calculateBeta(double T) {
double eMass = 9.1093835... |
/* Hello World 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>
#i... |
/* diskmodel (version 1.1)
* Authors: <NAME>, <NAME>
* Contributors: <NAME>, <NAME>, <NAME>
*
* Copyright (c) of Carnegie Mellon University, 2003-2005
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this
* software, you agree that yo... |
/**
* Copyright 2020 <NAME>
*
* 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 w... |
/*
* Copyright (c) Newcastle University, UK.
* 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... |
/* serrgt.f -- translated by f2c (version 20061008).
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... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <string.h>
#include <pthread.h>
#include "../include/c-serial-com.h"
#include "../include/kbd.h"
static char szComName[16][16] = {
"/dev/tty... |
#include "build.h"
static post_list *gl_pl;
static map_t gl_map;
static char *post_file_contents;
static char *page_file_contents;
static char *listing_file_contents;
static lua_State *Lpass;
static const char *theme;
static int dLoop(const char *inFile) {
post *me;
string t_out, tmp;
if (strcmp(fileExte... |
/*
* $Id: pump.c,v 1.76.2.4 2000/02/09 23:30:00 wessels Exp $
*
* DEBUG: section 61 PUMP handler
* AUTHOR: <NAME>
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from the
... |
/*
* hotpatch is a dll injection strategy.
* Copyright (c) 2010-2011, <NAME>, Selective Intellect LLC
* 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 m... |
/*
* $Id: client.c,v 1.85.2.3 2000/03/23 07:08:40 wessels Exp $
*
* DEBUG: section 0 WWW Client
* AUTHOR: <NAME>
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from the
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* RTP translator.
*
* Usage:
* rtptrans [host]/port[/ttl] [host]/port[/ttl] [...]
*
* Forwards RTP/RTCP packets from one of the named sockets to all
* others. Addresses can be a multicast or unicast. TTL values for
* unicast addresses are ignored. (Actually, doesn't check whether
* packets are RTP or not.)
*
* I... |
/*
* Copyright 2005-2014 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
#include "11.h"
#include "rk11.h"
// not particularly accurate
// and no implementation of maintenance mode
// RK05 has:
// 256 16bit words per sector
// 12 sectors per cylinder
// 2 surfaces
// 203 cylinders per surface
// 1500 rpm
enum {
// RKDS
SC_EQ_SA = 020,
WPS = 040, // write protect status
ARDY = 01... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#include <unistd.h>
#else
#include <CL/cl.h>
#endif
#include "err_code.h"
#include "device_picker.h"
#include "utilsopencl.h"
#define MAX_ITERS 10000
#define TEST_CASE 3
#define X_DIM ... |
#include <acknex.h>
#include "noise.h"
BYTE perm[] =
{ 151,160,137,91,90,15,
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,
88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165,71,134,139,48,27,166,
77,146,... |
//*****************************************************************************
// main.c
// Author: <EMAIL>
//*****************************************************************************
#include "lab_buttons.h"
#include "time.h"
#include <stdlib.h>
#include <stdio.h>
#define MOVE_PIXELS 1
// Turn Debuggin off
#... |
/* sierra_usbwrap.c
*
* Copyright 2002 <NAME> <<EMAIL>>
* Copyright 2012-2013 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licens... |
/* ednmpt.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 doublereal c_b25 = -.5;
/* $Procedure EDNMPT ( Ellipsoid normal vector to surface point ) */
/* Subroutine */ int... |
#include "utility.h"
#include "notrendAR.h"
void sampleMiss(double *y, double B0, double B1, double *t, double sig2_e, double *Psi,
int Nobs, int Nmiss, int *miss, double *ySample){
int i=0, j=0, l=0, m=0, a=0, b=0, c=0, d=0, one=1;
int N = Nobs+Nmiss, Nyy = Nobs*Nobs, Nyym = Nobs*Nmiss, Nymym =... |
/* manager.c */
#include "message.h"
#include "utils.h"
#include "client.h"
#include <assert.h>
#include <ctype.h>
#include <getopt.h>
#include <netinet/in.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#define BUFSIZE ... |
#include "log.h"
#include <ctype.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <tcpr/types.h>
#include <openssl/ssl.h>
... |
/*
* <NAME> - MD5 Hashing Algorithm
*
*
* Compile and run the code using the following:
- make main
- ./main *insert text*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <ctype.h>
#include <unistd.h>
/*
*
* x >> y - Shifting the x value to the right y bits
... |
// This is part of Pico Library
// (c) Copyright 2004 Dave, All rights reserved.
// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas
// Free for non-commercial use.
// For commercial use, separate licencing terms must be obtained.
#include "PicoInt.h"
#include "../zlib/zlib.h"
#include "../unzip/unzip.h"
#include... |
#include "sfo.h"
#include "list.h"
#include "util.h"
#define SFO_MAGIC 0x46535000u
#define SFO_VERSION 0x0101u /* 1.1 */
typedef struct sfo_header_s {
u32 magic;
u32 version;
u32 key_table_offset;
u32 data_table_offset;
u32 num_entries;
} sfo_header_t;
typedef struct sfo_index_table_s {
u16 k... |
/* Core dump and executable file functions below target vector, for GDB.
Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996,
1997, 1998, 1999, 2000, 2001, 2003, 2004 Free Software Foundation,
Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modif... |
// 20160809 박유화
// 코드 environment, requirement
// This assignment is built on an open source specified below.
// aes.c, aes.h, main.c, makefile are included in the submission
/*
*
* Chinese Academy of Sciences
* State Key Laboratory of Information Security
* Institute of Information Engineering
*
* Copyright (C)... |
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/malloc.h>
#include <math.h>
typedef enum {
STR2INT_SUCCESS,
STR2INT_OVERFLOW,
STR2INT_UNDERFLOW,
STR2INT_INCONVERTIBLE
} str2int_errno;
// 256 bit arit... |
/*
* Spin to C/C++ translator
* Copyright 2011-2021 Total Spectrum Software Inc.
*
* +--------------------------------------------------------------------
* ¦ TERMS OF USE: MIT License
* +--------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any... |
#include <stdio.h>
#include <ioman.h>
#include <iox_stat.h>
#include <sysclib.h>
#include "cdfs_iop.h"
// 16 sectors worth of toc entry
#define MAX_FILES_PER_FOLDER 256
#define MAX_FILES_OPENED 16
#define MAX_FOLDERS_OPENED 16
#define MAX_BYTES_READ 16384
#define DRIVER_UNIT_NAME "cdfs"
#define DRIVER_UNIT_VERSION 2... |
/*
* Copyright (C) 2012 Invensense, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but ... |
//MIT License
//Copyright (c) 2018 Eotvos Lorand University, Budapest
/* vim:set ts=4 sw=4 sts=4 et: */
/* SPP model statistic functions
*/
#include "algo_stat.h"
#include "algo_spp_evol.h"
/* Macro for saving standard deviations at the end of the simulation */
// Place it inside the CloseModelSpecificStats functi... |
/*============================================================================
pamcut
==============================================================================
Cut a rectangle out of a Netpbm image
This is inspired by and intended as a replacement for Pnmcut by
<NAME>, 1989... |
/******************************************************************************
Curse of War -- Real Time Strategy Game for Linux.
Copyright (C) 2013 <NAME>.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Sof... |
// Copyright 2011 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the COPYING file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be... |
/*
Copyright (c) 2012-2021 <NAME>, <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 follow... |
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright(c) 2018-2019 Realtek Corporation.
*/
#include "main.h"
#include "reg.h"
#include "bf.h"
#include "debug.h"
void rtw_bf_disassoc(struct rtw_dev *rtwdev, struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf)
{
struct rtw_chip_info *chi... |
/*
** 2008 December 3
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*********************... |
/***************************************************************************
Copyright (c) 2011, <NAME>, <NAME>, Austria.
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, inclu... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_otbn.h"
#include "sw/device/lib/runtime/ibex.h"
#include "sw/device/lib/runtime/log.h"
#include "sw/device/lib/runtime/otbn.h"
#include "... |
/*
____ _____ +---+
/ ___\ / __ \ | R |
/ / / /_/ / +---+
/ / ________ ____ ___ / ____/___ ____ __ __
/ / / ___/ __ `/_ / / _ \/ / / __ \/ _ \/ / / /
/ /__/ / / /_/ / / /... |
/*
* repo_appdatadb.c
*
* Parses AppSteam Data files.
* See http://people.freedesktop.org/~hughsient/appdata/
*
*
* Copyright (c) 2013, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.... |
#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... |
/* Finit - Fast /sbin/init replacement w/ I/O, hook & service plugins
*
* Copyright (c) 2008-2010 <NAME> <<EMAIL>>
* Copyright (c) 2008-2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), t... |
// Multinomials over Z.
// e.g. [[1, 2], 3, [4, [5, 6]]] means
// (1 + 2y) + 3 x + (4 + (5 + 6z)y)x^2
// Convenient interchange format for different groups, rings, and fields.
// TODO: Canonicalize, e.g. [[1]], 0, 0] --> 1.
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h> // for intptr_t
#include <stdlib.h>... |
#include "rcm.h"
/*!
@file
Reverse Cuthill-McKee algorithm.
*/
/*!
@fn void rcm_rootls (int32 root, int32 xadj[], int32 adjncy[], int32 mask[],
int32 *nlvl, int32 xls[], int32 ls[])
@short Generate a level structure.
@param root [I] - the node at which the level structure is to be rooted.
@param xadj... |
/*
* Copyright (C) 2011, <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, di... |
/*
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 the License, or
(at your option)... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h> /* 저수준(Low level) I/O를 위해 사용 */
#include <errno.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/fb.h> /* 프레임버퍼를 위한 헤더 파일 */
#include <linux/videodev2.h> /* Video4Linux2를 위한 헤더파일 */
#include <gb... |
/* $OpenBSD: rgephy.c,v 1.12 2006/06/27 05:36:58 brad Exp $ */
/*
* Copyright (c) 2003
* <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 c... |
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <errno.h>
#include <unistd.h>
#include <time.h>
#include <math.h>
#include <semaphore.h>
#include <signal.h>
// Définition des couleurs
#define red "\033[0;31m"
#define cyan "\033[0;36m"
#define green "\033[0;32m"
#define blue "\033[0;34m"
#de... |
/* $NetBSD: printf.c,v 1.37 2015/06/16 22:54:10 christos Exp $ */
/*
* Copyright (c) 1989, 1993
* 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 me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.