text stringlengths 5.8k 28.2k |
|---|
#include "config.h"
#include <assert.h>
#include <fcntl.h>
#ifdef STDC_HEADERS
#include <stdlib.h>
#endif
#ifdef HAVE_MEMORY_H
#include <memory.h>
#endif
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <stdio.h>
#include <string.h>
#include "ffs.h"
#include "test_funcs.h"
static int verbose = 0;
static char ... |
/* BEEBS compress benchmark
Copyright (C) 2014 Embecosm Limited and University of Bristol
Contributor <NAME> <<EMAIL>>
This file is part of the Bristol/Embecosm Embedded Benchmark Suite.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Publi... |
//*********************************************************
// ft245tools Version 1.0
// Copyright (C) 2019 by odaman68000. All rights reserved.
// Linux(/Mac)と, FT245RLを搭載したFM-7系マイコンとを繋ぐ!
// With FM-7 binaries:
// - FT245DRV : FM-7用バイナリデータ送・受信プログラム
// - FT245TRN : FM-7用バイナリデータ送・受信プログラム
// - FT245D77 :... |
#include "region_layer.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct {
float x;
float y;
float w;
float h;
} box_t;
typedef struct {
int class;
int index;
float **probs;
} sortable_box_t;
int region_layer_init(region_layer_t *rl, int width, int height, int cha... |
#include "cache.h"
#include "urlmatch.h"
#define URL_ALPHA "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define URL_DIGIT "0123456789"
#define URL_ALPHADIGIT URL_ALPHA URL_DIGIT
#define URL_SCHEME_CHARS URL_ALPHADIGIT "+.-"
#define URL_HOST_CHARS URL_ALPHADIGIT ".-[:]" /* IPv6 literals need [:] */
#define UR... |
/*
This code solves multiphase, multicomponent flow in porous media
(two phase, two component). Thanks to <NAME> for his
contribution.
keywords: transient, vector, implicit, nonlinear, dimension
independent, boundary integrals
*/
#include "petiga.h"
#include "petigaprobe.h"
typedef struct {
IGA ig... |
/*-
* 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 code must retain the above copyright
* notice, this list of ... |
/*
Copyright (c) 2012, <NAME>
<NAME>
Copyright (c) 2014: <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
... |
/* qaSeq.c - read and write quality scores. */
#include "common.h"
#include "portable.h"
#include "linefile.h"
#include "hash.h"
#include "fa.h"
#include "rle.h"
#include "qaSeq.h"
#include "sig.h"
void qaSeqFree(struct qaSeq **pQa)
/* Free up qaSeq. */
{
struct qaSeq *qa;
if ((qa = *pQa) == NULL)
return;
freeM... |
/* EDF scheduling */
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "../port/edf.h"
#include <trace.h>
/* debugging */
enum {
Dontprint = 1,
};
#define DPRINT if(Dontprint){}else print
static long now; /* Low order 32 bits of time in µ... |
/*
Copyright 2002-2004 <NAME>, All Rights Reserved
*/
#include "d.h"
#include "util.h"
#include "dparse_tables.h"
#include "gram.h"
#include "lr.h"
#include "lex.h"
typedef struct NFAState {
uint index;
Vec(struct NFAState *) chars[256];
Vec(struct NFAState *) epsilon;
Vec(Action *) accepts;
Vec(Action *)... |
#include "private.h"
#include "linsys.h"
const char *SCS(get_lin_sys_method)() {
return "sparse-direct";
}
/*
char *SCS(get_lin_sys_summary)(ScsLinSysWork *p, const ScsInfo *info) {
char *str = (char *)scs_malloc(sizeof(char) * 128);
scs_int n = p->L->n;
sprintf(str, "lin-sys: nnz(L): %li\n", (long)(p->L->p[n... |
/*
* This software is a modification of "sniffex.c"
* sniffex.c
*
* Sniffer example of TCP/IP packet capture using libpcap.
*
* Version 0.1.1 (2005-07-05)
* Copyright (c) 2005 The Tcpdump Group
*
* This software is intended to be used as a practical example and
* demonstration of the libpcap library; availabl... |
/*-
* Copyright (c) 2003-2004 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
/* Copyright (c) 2001 <NAME>.
* Copyright (c) 2001-2004, <NAME>.
* Copyright (c) 2004-2006, <NAME>, <NAME>.
* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file selftest.c
* \brief Relay self-testing
*
* Relays need to make sure that their own ports are rea... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <string.h>
#include "cubo.h"
float fps = 0; // Frames por segundo
char title[22]; // Título da janela
int previous_frame; // Frame anterior
int current_picture = 0; // Quadro atual
extern float value; ... |
/*
** Copyright (C) 1999-2011 <NAME> <<EMAIL>>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2.1 of the License, or
** (at your option) any later version.
**
** Thi... |
/*
* Copyright (c) 2011 Borqs Ltd.
* 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 condition... |
/*
* autores: <NAME> y <NAME>.
* fecha: 17/10/17
* descripcion: cubilete SIN arreglos
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
// funcion dado> regresa unn valor entre el 0 y 5
char dado();
// funcion menu: pregunta si el usuario quiere jugar o no
int menu();
// funcion menu_jugador: preguntta... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "jv.h"
#include "jv_dtoa.h"
#include "jv_unicode.h"
#include "jv_alloc.h"
#include "jv_dtoa.h"
typedef const char* presult;
#define TRY(x) do {presult msg__ = (x); if (msg__) return msg__; } while(0)
#ifdef __GNUC__
#define pfunc ... |
/*
* 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-2014, Ixonos Denmark ApS
* Copyright (c) 2013-2014, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the ... |
/* PSVita bare-metal loader by xerpi */
#include <stdio.h>
#include <string.h>
#include <psp2kern/kernel/cpu.h>
#include <psp2kern/kernel/modulemgr.h>
#include <psp2kern/kernel/threadmgr.h>
#include <psp2kern/kernel/sysmem.h>
#include <psp2kern/lowio/pervasive.h>
#include <psp2kern/kernel/iofilemgr.h>
#include <psp2ker... |
/**************************************************************/
/*
* Copyright (c) 2014-2015, <NAME>, IBM Research
* 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... |
/*
** Copyright 2005-2018 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of version 2.1 of the GNU Lesser General Public... |
#include "lcd.h"
#include "lcdfont.h"
/*
||||
|------|
+==============+
| |
| 0.96 inch |
| |
| IPS RGB LCD |
| |
| 80 x 160 |
| |
| |
| |
+==============+
这个屏是80x160,但它的显存是132x162
... |
/**************************************************************************
*
* Copyright 2006 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 w... |
// SPDX-License-Identifier: GPL-2.0
/*
* Sensirion SPS30 particulate matter sensor serial driver
*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*/
#include <linux/completion.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/iio/iio.h>
#include <linux/minmax.h>
#include <linux/mod_devicetable.h>
#includ... |
/* tak.sf */
/* Generated by #F $Id$ */
#ifdef PROFILE
#define host host_module_tak
#endif
#define MODULE module_tak
#define LOAD()
/* standard includes */
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
/* standard definitions */
typedef ptrdiff_t obj; /* pointers are this siz... |
/******************************Module*Header*******************************\
*
* *******************
* * GDI SAMPLE CODE *
* *******************
*
* Module Name: heap.c
*
* This module contains the routines for an off-screen video hea... |
#include "idenc.h"
#include "ac.h"
#include "dist.h"
#include "misc.h"
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <ctype.h>
#include <limits.h>
#include <assert.h>
/* does a particular character constitute a separator */
static const bool issep[256] =
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0... |
#include "gtxt_freetype.h"
#include "gtxt_glyph.h"
#include "gtxt_richtext.h"
#include <fs_file.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H
#include FT_IMAGE_H
#include FT_STROKER_H
#include <assert.h>
#include <math.h>
struct font {
FT_Library library;
FT_Face face;
unsigned char* buf;
}... |
/*
* libteletone
* Copyright (C) 2005-2014, <NAME> <<EMAIL>>
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozil... |
/*
* Copyright (c) 2016 The WebM 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 contributin... |
/*
* token - read input file characters into tokens
*
* Copyright (C) 1999 <NAME> and <NAME>
*
* Primary author: <NAME>
*
* Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License
* as published by the Free Software Foundat... |
#line 41 "mesh-mex.nw"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <lua.h>
#include <lualib.h>
#include "modelmgr.h"
#include "model-test.h"
#include "model-matlab.h"
#include "uses-manager.h"
#include "netout.h"
#include "netout-file.h"
#include "netout-mlab.h"
#include "mex-handle.h"
#inclu... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to the number of bits in type 'ptrdiff_t'. */
#define BITSIZEOF_PTRDIFF_T 64
/* Define to the number of bits in type 'sig_atomic_t'. */
#define BITSIZEOF_SIG_ATOMIC_T 32
/* Define to t... |
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License ve... |
/*********************
* <NAME>
* CS 645
* Programming Assignment Five
* Due 28 Nov 2012
*
* A simple raytracer which models reflections and not refractions.
* In addition the raytraced scene will be framed by spline patches on
* either side modeling sine curves.
*
* The scene to be depicted shows several s... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <pru_cfg.h>
#include <pru_intc.h>
#include <pru_iep.h>
#include <gpio.h>
#include "iep.h"
#include "intc.h"
#include "resource_table.h"
#include "commons.h"
#include "shepherd_config.h"
#include "stdint_fast.h"
#include "debug_routines.h"
/* The A... |
/*
* Copyright (c) 2011-2012, Los Alamos National Security, LLC.
* All rights Reserved.
*
* Copyright 2011-2012. Los Alamos National Security, LLC. This software was produced
* under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
* Laboratory (LANL), which is operated by Los Alamos Nati... |
// SPDX-License-Identifier: MIT
// clN22-worker / worker.c
// v0.933-220620 (c)2019-2020 ~EM <EMAIL>
#include "worker.h"
const size_t ValidKLen = 6;
const size_t dBufLen = 5;
void zoldhash(char* prefixIn, char* resultOut, int idval) {
rCount = 0; nSpace = 0; hId0 = 0; hId1 = 0; lCounter = 0; WSMcount = 0; gHashr... |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "sim5lib.h"
#include "disk-slim-dsi.h"
static char model_name[] = "slim-disk";
static double bh_mass = 0.0;
static double bh_spin = 0.0;
static double disk_mdot = 0.0;
static double disk_alpha = 0.0;
static double r_h, r_min, r_max;
#define disk_al... |
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... |
/*
* AES GCM implementation used as reference for debugging Verilog design.
* Still incomplete:
* - IV size limited to 96 bits
* - missing support for 192/256-bit AES operations
* - probably other things that I can't remember right now
*
* AES GCM references:
* https://luca-giuzzi.unibs.it/corsi/Sup... |
/*
CHAT: A chat client using the SDL example network and GUI libraries
Copyright (C) 1997-2022 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is gra... |
#include "naru_bit_stream.h"
#include "naru_internal.h"
#include "naru_utility.h"
#include <string.h>
#include <stdlib.h>
/* 下位ビットを取り出すマスク 32bitまで */
const uint32_t g_naru_bitstream_lower_bits_mask[33] = {
0x00000000UL,
0x00000001UL, 0x00000003UL, 0x00000007UL, 0x0000000FUL,
0x0000001FUL, 0x0000003FUL, 0x... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Duda I/O
* --------
* Copyright (C) 2012-2014, <NAME>. <<EMAIL>>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy o... |
/*****************************************************************************
*
* 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) 2007-2021 Intel Corporation. All rights reserved... |
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "code.h"
#include "compiler.h"
#include "opcodes.h"
#include "object.h"
#include "strobject.h"
#include "vm.h"
#include "util.h"
#include "exc.h"
#include "err.h"
#include "codeobject.h"
/*
* The CodeObject bytecode format is similar to the general ... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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
... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is ... |
/* ELF Boot loader
* As we have seek, this implementation can be straightforward.
* 2003-07 by <NAME>
*/
#include "config.h"
#include "kernel/kernel.h"
#include "libc/diskio.h"
#include "arch/common/elf_boot.h"
#include "libopenbios/elf_load.h"
#include "libopenbios/sys_info.h"
#include "libopenbios/ipchecksum.h"
#... |
#include "partition.h"
#define NLINKS2 8
//generating n random labels (boolean values)
unsigned long init(adjlist *g,unsigned long *lab){
unsigned long i,n=g->n;
unsigned long nlab=(K>n)?n:K;
//random side for each node:
for (i=0;i<n;i++){
lab[i]=rand()%nlab;
}
return nlab;
}
partition choose_partition(cha... |
/* minix.c - The minix filesystem, version 1 and 2. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2004,2005,2006,2007,2008 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* th... |
#include <stdio.h>
#include <stdlib.h>
#include "util.h"
#include "table.h"
#include "symbol.h"
#include "absyn.h"
#include "temp.h"
#include "tree.h"
#include "printtree.h"
#include "frame.h"
#include "translate.h"
//LAB5: you can modify anything you want.
static F_fragList frags, cur;
struct Tr_level_ {
F_frame ... |
/*
Simple library using IOUSBDeviceFamily and IOKit to talk to USB devices.
Written by <NAME> on November 13, 2019
Licensed under the MIT License
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <mach/mach.h>
#include <IOKit/usb/IOUSBLib.h>
#include <IOKit/IOCFPlugIn.h>
#inc... |
/**********************************************************************************
*
*
* contxtmnu.c - contains functions for handling/creating context menu extension
*
* Created - 9/97 - vikramm
*
**********************************************************************************/
#include "_apipch.h"
... |
/*
* @brief I2CM bus slave example using interrupt mode
*
* @note
* Copyright(C) NXP Semiconductors, 2014
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This ... |
/******************************************************************
***** *****
***** Name: cs8900.c *****
***** Ver.: 1.0 *****
***** Date: 07/05/2001 ... |
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <linux/unistd.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sched.h>
#include <signal.h>
#include <setjmp.h>
#include <errno.h>
#include <assert.h>
#include <stdlib.h>
#include "gt_include.h"
#define KTHREAD_DEFAU... |
/*////////////////////////////////////////////////////////////////////////
Copyright (c) 1997 Electrotechnical Laboratry (ETL), AIST, MITI
Permission to use, copy, modify, and distribute this material for any
purpose and without fee is hereby granted, provided that the above
copyright notice and this permission notice... |
// Copyright 2017 <NAME>. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This f... |
/*
* 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) 1993-1996 by id Software, Inc.
//
// This source is available for distribution and/or modification
// only under the terms of the DOOM Source Code License as
// published by id Software. All rights reserved.
//
// The sourc... |
/* $Id$ */
/*
* %GPL_START_LICENSE%
* ---------------------------------------------------------------------
* Copyright 2015-2016, Google, Inc.
* Copyright 2008-2016, Pittsburgh Supercomputing Center
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the t... |
#include <stdlib.h>
#include <stdio.h>
#include "world.h"
typedef enum jointType {
JOINT_DELETE = 0,
JOINT_CONTACT
} jointType;
typedef struct joint {
jointType type;
bodyID a, b;
} joint;
typedef struct contact_joint {
joint j;
contact contact;
} contact_joint, joint_max;
//World
typedef struct accumulator {
... |
#include "gaboom.h"
#include "boinc.h"
void cluster(FA_Global* FA, GB_Global* GB, VC_Global* VC, chromosome* chrom, genlim* gene_lim, atom* atoms, resid* residue, gridpoint* cleftgrid, int num_chrom, char* end_strfile, char* tmp_end_strfile, char* dockinp, char* gainp)
{
bool Hungarian = false;
int i,j;
cfstr cf; ... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2018-2019 Mutant Industries ltd.
#include <driver/timer.h>
#include <stddef.h>
#include <compiler.h>
#include <driver/cpu.h>
#include <driver/interrupt.h>
// -------------------------------------------------------------------------------------
/**
* Input div... |
/* Purpose: data segement.
* lab7.c
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#define PATH "acc_gyro.txt"
#define DATA_SIZE 1250
#define WINDOW 20
#define VARIANCE_WINDOW 15 //odd number required.
#define SQR(X) ((X) * (X))
// Super structure.
typedef struct table{
double time ;
... |
#include <android/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <sys/time.h>
#include <sys/queue.h>
#include <errno.h>
#include <inttypes.h>
#include <GLES2/gl2.h>
#include "debug.h"
#include "native_main.h"
#include "engine.h"
#include "matrix.h"
#i... |
/*
* Copyright (C) 2018 Alibaba Group Holding Limited
*/
/*
This file provides support for cpu tickless-idle.
Tickless-idle eliminates unnecessary timer interrupts when the processor is
otherwise idle. When the processor exits the idle state, it advances time by
the number of ticks that elapsed during the idle per... |
/*
* senone.c -- Mixture density weights associated with each tied state.
*
* **********************************************
* CMU ARPA Speech Project
*
* Copyright (c) 1996 Carnegie Mellon University.
* ALL RIGHTS RESERVED.
* **********************************************
*
* HISTORY
*
* $Log: senone.c,v... |
#include <kernel.h>
//Variáveis internas.
// Heap support.
// #todo: Precisamos melhorar esses nomes. nada neles indica que
// estamos lidando com heap.
unsigned long heap_pointer_last_valid; // Último heap pointer válido.
unsigned long last_size; // Último tamanho alocado.
unsigned long mm_prev_poin... |
// Immix collector - tracing functionality
//
// It uses a four-color incremental algorithm:
// All objects start out white. When the GC sees a white pointer, first it "marks" it, turns it gray and adds it to the "gray stack".
// When marking, it may move the object and leave a forwarding pointer in the header, with th... |
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/types.h>
#ifndef _WIN32
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#endif
#ifdef USE_MALLOC_WRAPPERS
# ... |
/*
* Copyright (c) 2010, <NAME> <<EMAIL>>
* Copyright (c) 2009-2010, <NAME> <<EMAIL>>
* Copyright (c) 2009-2010, <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. Re... |
/*
* EAP-WSC server for Wi-Fi Protected Setup
* Copyright (c) 2007-2008, <NAME> <<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
* published by the Free Software Foundation.
*
* Alternatively, this software may... |
/*
* Crypto acceleration support for Rockchip RK3288
*
* Copyright (c) 2015, Fuzhou Rockchip Electronics Co., Ltd
*
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as publishe... |
/*
* 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 may... |
// 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 <inet6.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <zircon/boot/netboot.h>
// Enable at your own risk. Some of these p... |
/* $OpenBSD: pwd_mkdb.c,v 1.43 2010/01/08 13:29:08 oga Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
* Portions Copyright (c) 1994, <NAME>. All rights reserved.
* Portions Copyright (c) 1998, <NAME>. All rights reserved.
*
* Redistribution an... |
/*
* FreeRTOS Kernel V10.3.1
* 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, ... |
//
// NWLCore.m
// NWLogging
//
// Copyright (c) 2012 noodlewerk. All rights reserved.
//
#import "NWLCore.h"
#include <stdio.h>
#include <string.h>
#include <sys/uio.h>
#include <sys/sysctl.h>
#include <signal.h>
#include <unistd.h>
#include <math.h>
#import <CoreFoundation/CFDate.h>
#pragma mark - Constants and ... |
/* $NetBSD: ext2fs.c,v 1.9 2013/06/23 02:06:06 dholland Exp $ */
/*
* Copyright (c) 1997 <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 copyrig... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "config-paths.h"
#include "utils/compat.h"
#include "utils/map.h"
#include "utils/err.h"
#include "utils/strtob.h"
#include "utils/tgen.h"
#include "utils/fileutils.h"
#include "getuuid.h"
#include "dlite.h"
#i... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <poll.h>
#include <errno.h>
#include <turbojpeg.h>
#include <libfreenect.h>
#include "erlcmd.h"
#include "defs.h"
#define DEBUG
#ifdef DEBUG
#define log_location stderr
#define debug(...) ... |
/*
Copyright (c) 2012 <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 following d... |
/***********************************************************************
**
** REBOL [R3] Language Interpreter and Run-time Environment
**
** Copyright 2012 REBOL Technologies
** REBOL is a trademark of REBOL Technologies
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this... |
/*!
\file usbh_hid_core.c
\brief this file implements the functions for the HID core state process
\version 2014-12-26, V1.0.0, firmware for GD32F10x
\version 2017-06-20, V2.0.0, firmware for GD32F10x
\version 2018-07-31, V2.1.0, firmware for GD32F10x
*/
/*
Copyright (c) 2018, GigaDevice Sem... |
/********************************************************************
NAME: prop2ll -- convert the list of propagated ssv inertial
coordinates contained in inVecFile to a list of
lat/lon coordinates of the near and far edge of
the swath, given nominal near and far look angles
SYNOPSIS: pr... |
/*
* 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")... |
/* SPDX-License-Identifier: Apache-2.0
* Copyright(c) 2018 Saaras Inc.
*/
/*
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
* 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... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source c... |
#include <linux/kernel.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/time.h>
#include "firewall_main.h"
#include "firewall_static_rules.h"
#include "firewall_manipul... |
/*
* max30102.c - Support for MAX30102 heart rate and pulse oximeter sensor
*
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* 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 t... |
/*------------------------------------------------------------------------------
* geniono.c : ionosphere correction estimation
*
* Copyright (C) 2012 by T.TAKASU, All rights reserved.
*
* version : $Revision:$ $Date:$
* history : 2012/09/15 1.0 new
*----------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.