text stringlengths 3.12k 18.7k |
|---|
/*
* 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 ... |
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 <NAME>
//
// Based on cpufreq(8) from BPF-Perf-Tools-Book by <NAME>.
// 10-OCT-2020 <NAME> Created this.
#include <argp.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <linux/p... |
/* ds18b20.c - a part of avr-ds18b20 library
*
* Copyright (C) 2016 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/**
\file
\brief Implements functions for controlling the DS18B20 sensors
*/
#include <stddef.h>
#include <uti... |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build amd64 386
#include "runtime.h"
#include "arch_GOARCH.h"
#include "malloc.h"
static uintptr isclosureentry(uintptr);
void runtime·deferproc(void);
vo... |
/*s: linkers/5l/dynamic.c */
#include "l.h"
// forward decls
typedef struct Reloc Reloc;
/*s: enum SpanConstants(arm) */
enum{
ABSD = 0,
ABSU = 1,
RELD = 2,
RELU = 3,
};
/*e: enum SpanConstants(arm) */
/*s: global [[modemap]] */
int modemap[4] = { 0, 1, -1, 2, };
/*e: global [[modemap]] */
/*s: stru... |
/* vere/ward.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <setjmp.h>
#include <gmp.h>
#include <sigsegv.h>
#include <stdint.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <uv.h>
#include <errn... |
/*
* tclWinLoad.c --
*
* This function provides a version of the TclLoadFile that works with
* the Windows "LoadLibrary" and "GetProcAddress" API for dynamic
* loading.
*
* Copyright (c) 1995-1997 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution of
* this fil... |
/* $Id: structs.h 1259 2014-05-28 19:28:06Z wrp $ */
#include "rstruct.h"
#include "aln_structs.h"
#include "param.h"
struct hist_str {
int histflg;
int *hist_a;
int histint, min_hist, max_hist, maxh;
long entries;
int z_calls;
char stat_info[MAX_STR];
};
struct db_str {
long entries;
unsigned long... |
/* hough transform for circles
*
* 7/3/14
* - from hough_line.c
* 2/1/18
* - 20% speedup
*/
/*
This file is part of VIPS.
VIPS 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; ... |
/* $NetBSD: set_keys.c,v 1.1.1.2 2014/04/24 12:45:49 pettai Exp $ */
/*
* Copyright (c) 1997 - 2001, 2003 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
/**************************************************************************
NETPBM
pm_config.in.h
***************************************************************************
This file provides platform-dependent definitions for all Netpbm
libraries and the p... |
/* $OpenBSD: octuctl.c,v 1.1 2016/03/18 05:38:10 jmatthew Exp $ */
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in... |
/*
* Copyright (c) 2018, Colorado School of Mines
* 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... |
/* SPDX-License-Identifier: BSD-2-Clause */
#include "test.h"
/*
* C_GetMechanismList is used to obtain a list of mechanism types supported by a token.
* SlotID is the ID of the token’s slot; pulCount points to the location that receives the number of mechanisms.
* There are two ways for an application to call C_G... |
// Copyright 2018 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 "ftl_mc.h"
#include "ftl_private.h"
#include "inc/kprivate/fsprivate.h"
#include "inc/sys.h"
// Configuration
#define MC_DEBUG FALSE
// Macro D... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include "offsetdb.h"
#define max(a, b) ((a) < (b) ? (b) : (a))
#define min(a, b) ((a) < (b) ? (a) : (b))
struct pstack {
pipos_t *ptrs;
size_t size, fill;
};
static int pstack_init(struct pstack *s, size_t init... |
// SPDX-License-Identifier: GPL-2.0+
//
// eukrea-tlv320.c -- SoC audio for eukrea_cpuimxXX in I2S mode
//
// Copyright 2010 <NAME>, <NAME> <<EMAIL>>
//
// based on sound/soc/s3c24xx/s3c24xx_simtec_tlv320aic23.c
// which is Copyright 2009 Simtec Electronics
// and on sound/soc/imx/phycore-ac97.c which is
// Copyright... |
/*-
* Copyright (c) 2000 <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 conditions a... |
/** @file
* Copyright (c) 2016-2018, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... |
/*
* Copyright (c) 2015 <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... |
#include "cu-memory.h"
#include <stdlib.h>
#include <memory.h>
#include <assert.h>
#include <stdint.h>
#include "cu.h"
#include "cu-heap.h"
#include "cu-avl-tree.h"
#include "cu-list.h" /* For release empty groups. */
#ifdef DEBUG
#include <stdio.h>
#include <inttypes.h>
#endif
static CUMemoryHandler memhandler... |
/*
* openldap buffer overflow dos attempt
*
* Copyright (C) 2014-2019 Cisco and/or its affiliates. All rights reserved.
* Copyright (C) 2006-2013 Sourcefire, Inc. All Rights Reserved
*
* Writen by <NAME> <<EMAIL>>
*
* This file may contain proprietary rules that were created, tested and
* certified by Sourcefi... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "httpkit/http_common.h"
#include "httpkit/http_response.h"
#include <string.h>
#include <stdio.h>
static const struct status_info {
unsigned int code;
const char* code_str;
unsigned int code_len;
const char* text_str;
unsigned int text_len;
}... |
/*---------------------------------------------------------------------------
qpbsvm_mex.c: Solver for QP task required for learning SVM without bias term.
Synopsis:
[x,exitflag,t,access,History] = qpbsvm_mex(H,f,UB,solver,tmax,tolabs,tolrel,tolKKT,verb,x0,Nabla0)
Compile:
mex qpbsvm_mex.c qpbsvmlib.c
... |
/*
* Copyright (c) 2008, <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 an... |
// gari.c
// 03-Dec-15 <NAME> <<EMAIL>>
// Arithmetic coding / decoding routines.
#include "gari.h"
#include <math.h>
// high part of x*y: these two versions probably create the same code,
#if 1
// "portable" gcc version
static uint64_t mul64hi(uint64_t x, uint64_t y)
{
return (uint64_t) ((((__uint128_t) x) * (... |
/*
*
* Phantom Cipher is Copyright (C) 1996 <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 Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This p... |
#include <stdio.h> // printf
#include <stdlib.h> // malloc, free
#include <stdint.h> // int64_t
#include <inttypes.h> // PRIi64
#include <string.h> // strtok, memcpy
#define MEMSIZE (41)
#define REGBASE ('a')
#define REGSTOP ('z')
#define REGSIZE (REGSTOP - REGBASE + 1)
typedef enum opcode {
SET,
... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* rt5677-spi.c -- RT5677 ALSA SoC audio codec driver
*
* Copyright 2013 Realtek Semiconductor Corp.
* Author: <NAME> <<EMAIL>>
*/
#include <linux/module.h>
#include <linux/input.h>
#include <linux/spi/spi.h>
#include <linux/device.h>
#include <linux/init.h>
#include <... |
/* errwarn.c
Errors and warnings... */
/*
* Copyright (c) 1995 RadioMail Corporation.
* Copyright (c) 2004,2007,2009,2014 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996-2003 by Internet Software Consortium
*
* Permission to use, copy, modify, and distribute this software for any
* purpose ... |
/* $Id: mix.c 5170 2015-08-25 08:45:46Z nanang $ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-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 as published by
* the Free ... |
/*
* determine impulse response of audio adapter
*/
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <SDL2/SDL.h>
#include "display.h"
#include "dlo.h"
static const float PI = 3.141592653f;
#define SHOT_ACTIVE 0x1
void create_rock(DLO *d, DLO *ship)
{
float r_max = 0.05 + 0.09 * drand48();
DL... |
/* $NetBSD: if_mbe_g2.c,v 1.3 2003/02/05 12:03:55 tsutsui Exp $ */
/*
* Copyright (c) 2002 <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... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/aout.h,v 1.7 2002/05/31 18:46:00 dawes Exp $ */
/*
* Borrowed from NetBSD's exec_aout.h
*
* Copyright (c) 1993, 1994 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
/*
* Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
*
* 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... |
/*
* FreeRTOS Kernel V10.1.1
* Copyright (C) 2018 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, ... |
/*
* ACE/vis - Visualization of Flow and Transport
*
* <NAME> and <NAME>
*
* Copyright 1990-2003 Oregon Health and Science University
* All Rights Reserved
*
*/
/*
*
* Toggle streamlines and wrap
*
*/
#ifndef lint
static char RCSid[] = "$Id: controlwin.c,v 1.3 2003/08/05 05:47:02 pturner Exp $";
#endif
#... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> for Adafruit Industries
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentatio... |
/**
* Temporarily remove the futex system call.
* As the correct implementation should still be correct if the futex calls are reomved.
*/
#include <stdint.h>
#include <linux/futex.h>
#include <sys/time.h>
#include <errno.h>
#include "context.h"
extern unsigned long do_syscall();
#define LOCKED 1
#define UNLOCKE... |
/**
* Copyright (c) 2016 - 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... |
/**
* =====================================================================================
*
* @file sops.c
*
*
* Version: 1.0
* Created: 01/08/2013 05:26:52 PM
*
*
* @section DESCRIPTION
*
* SOPS
*
* @section LICENSE
*
*
*
* ==============================... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018, <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,... |
#include "genesis.h"
#include "meshs.h"
#define MAX_POINTS 256
#define DEBUG 0
Vect3D_f16 pts_3D[MAX_POINTS];
Vect2D_s16 pts_2D[MAX_POINTS];
#define NUM_STARS 64
Vect3D_f16 stars_3D[MAX_POINTS];
Vect3D_f16 stars_t3D[MAX_POINTS];
Vect2D_u16 stars_t2D[MAX_POINTS];
extern Mat3D_f16 MatInv;
extern... |
/* Copyright (c) 2007, Nokia Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of con... |
/*
*--------------------------------------
* Program Name: ISO
* Author: Michael2_3B
* License: MIT
* Description: Rendering isometric terrain in the C language on the TI-84+ CE.
*--------------------------------------
*/
/* Keep these headers */
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#incl... |
/*
* fGame.c
*/
#include "Include.h"
/* protos */
static void UpdateForm(void);
static void UpdateInfo(void);
static void DrawQuiz(void);
static Boolean Guess(void);
static Boolean GetValue(UInt16 *, UInt16);
static void PrintD(UInt16, UInt16, UInt16, UInt16, Boolean);
static void PrintGrayBox(UInt16, UInt16, UInt16... |
#include "jpeg.h"
#include "utils.h"
#define Q_SHIFT 14
static void unzigzag(int16_t block[8][8]);
static int quantization(int quality, int x, int y);
static void dequantize(int16_t block[8][8], int quality);
static void inverse_dct(uint8_t dst[8][8], int16_t src[8][8]);
/* Quantization table, standard 50% quality JP... |
/*
* Functions to implement the various sticks one might find
* while wandering around the dungeon.
*
* @(#)sticks.c 3.14 (Berkeley) 6/15/81
*
* Rogue: Exploring the Dungeons of Doom
* Copyright (C) 1980, 1981 <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* See the LICENSE file for full copyright and lic... |
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_NET_STATISTICS_PERIODIC_OUTPUT)
#define NET_LOG_LEVEL LOG_LEVEL_INF
#else
#define NET_LOG_LEVEL CONFIG_NET_STATISTICS_LOG_LEVEL
#endif
#include <logging/log.h>
LOG_MODULE_REGISTER(net_stats, NET_LOG_LEVEL);
#i... |
/*-
* Copyright (c) 2010-2012 Semihalf.
* 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 cond... |
/*
* Copyright (C) 2015
* Chair of Process Control Engineering,
* Aachen University of Technology.
* 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 mu... |
/* Copyright 1988,1990,1993,1994 by <NAME>
* All rights reserved
*
* Distribute freely, except: don't remove my name from the source or
* documentation (don't take credit for my work), mark your changes (don't
* get me blamed for your possible bugs), don't alter or remove this
* notice. May be sold if buildable ... |
/*! \file one.c
\ingroup demos
Hey! This was the original file where freeglut development started.
See the creation date :)
\author Copyright (c) 1999 by <NAME><br>
Written by <NAME>, <<EMAIL>><br>
<code>Creation date: czw gru 2 11:58:41 CET 1999</code>
\author Portion... |
/******************************************************************************
* @file system_ADuCM3029.c
* @brief CMSIS Cortex-M3 Device Peripheral Access Layer Source File for
* Device ADuCM3029
* @version V3.10
* @date 23. November 2012
*
************************************************... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// This sample shows how to translate the Device Twin json received from Azure IoT Hub into meaningful data for your application.
// It uses the parson library, a very ... |
/* lnstat.c: Unified linux network statistics
*
* Copyright (C) 2004 by <NAME> <<EMAIL>>
*
* Development of this code was funded by Astaro AG, http://www.astaro.com/
*
* Based on original concept and ideas from predecessor rtstat.c:
*
* Copyright 2001 by <NAME> <<EMAIL>>
* Upps... |
/*
* Copyright (c) 2012, Intel Corporation
*
* 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 fol... |
/*
* (C) Copyright 2003
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2004
* <NAME>, Freescale Semiconductor, <EMAIL>.
*
* (C) Copyright 2005-2010
* <NAME>, Matrix Vision GmbH, <EMAIL>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <mpc5xxx.h>
#include <malloc.h>
#in... |
/*
* Copyright (c) 2005, 2006 <NAME> <<EMAIL>>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_system.h>
#include <asn_internal.h>
#include <per_support.h>
/*
* Extract a small number of bits (<= 31) from the specified PER data pointer.
*/
int32_t
pe... |
/*
* SH7760 ("camelot") DMABRG audio DMA unit support
*
* Copyright (C) 2007 <NAME> <<EMAIL>>
* licensed under the terms outlined in the file COPYING at the root
* of the linux kernel sources.
*
* The SH7760 DMABRG provides 4 dma channels (2x rec, 2x play), which
* trigger an interrupt when one half of the pr... |
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-08-08 Yang the first version
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <finsh.h>
#ifdef RT_USING_RTGUI
#include <rtgui/event.h>
... |
#include "iot-protocol.h"
#include "contiki.h"
/* Log configuration */
#include "sys/log.h"
#include "rpl-dag-root.h"
#include "contiki.h"
#include "contiki-net.h"
#include "net/routing/rpl-lite/rpl.h"
#include "net/ipv6/uip-ds6-route.h"
#include "net/ipv6/uip-sr.h"
/* Log configuration */
#include "sys/log.... |
/* Disassemble h8500 instructions.
Copyright 1993, 1998, 2000, 2001, 2002, 2004, 2005
Free Software Foundation, Inc.
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... |
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <Windows.h>
#include "coretimer.h"
#define TIME_SLOT_LEN 10
#define TIMER_HASH_SIZE (1<<10)
#define TIME_NEAR (1<<8)
#define TIME_LEVEL (1 << 6)
#define HASH(id) (id & (TIMER_HASH_SIZE-1))
#define TIME_NEAR_MASK (TIME_NEAR-1)
#define TIME_LEVEL_MASK... |
/*
* Waitable timers management
*
* Copyright (C) 1999 <NAME>
*
* 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 License, or (at your option) any later ... |
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) |
+-----... |
/*
Unix SMB/CIFS implementation.
SMB torture tester - charset test routines
Copyright (C) <NAME> 2001
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the L... |
/*
Copyright (c) 2008-2013 Apple Inc. All rights reserved.
@APPLE_APACHE_LICENSE_HEADER_START@
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/lice... |
#include <stdio.h>
#include <tmx.h>
#include <SDL.h>
#include <SDL_events.h>
#include <SDL_image.h>
#define DISPLAY_H 600
#define DISPLAY_W 800
static SDL_Renderer *ren = NULL;
void* SDL_tex_loader(const char *path) {
return IMG_LoadTexture(ren, path);
}
void set_color(int color) {
tmx_col_bytes col = tmx_col_to_... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
#include "Bibliotecas/bibliotecas.h"
#include "mecanicas.h"
#include "glm.h"
#include "desenha.h"
/**************************************************************/
//===============================================================================
//Movimentação
//===================================================... |
/*
* Author: <NAME>
* Copyright (c) 2019, Private Octopus, Inc.
* All rights reserved.
*
* 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.
*
* THIS SOFTWARE ... |
/**
* <NAME>, <NAME> 2019
*
* This file will automatically grade your cs170 threads library
* Please see the README for more info
*/
#include <pthread.h>
#include <semaphore.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include ... |
/**********************************************************************************************
*
* raylibExtras * Utilities and Shared Components for Raylib
*
* RLAssets * Simple Asset Managment System for Raylib
*
* LICENSE: MIT
*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge,... |
/* modifier 0 means no modifier */
static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
"AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 "
"Safari/537.15 Surf/"VERSION;
static char *scriptfile = "~/.surf/script.js";
static char *styledir = "~/.surf/";
static char *cachefolde... |
// We store bookkeping stuff in the vectmpvalues of our state variable,
// so that we don't have to figure everything out every row.
// Here are some macros to make sure we access what we want
// the same way every time:
#define HIST_MD_DIMENSIONS(s) (s)->vectmpvalues[0].i32
#define HIST_MD_VAL_LENGTH(s) ... |
/*
* ZMap Copyright 2013 Regents of the University of Michigan
*
* 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
*/
#include <stdlib.h>
#includ... |
/* Copyright 2016 IBM Corp.
*
* 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 writi... |
/*D*************************************************************************
* Modul: GUI - Dialog upcxpop.c
*
* Description: create a message popup and/or a pcx popup
*
* Calls: xUIdialog xUIbeep
*
* Copyright: yafra.org, Basel, Switzerland
********************************************************... |
/* Copyright(c) 2017 <NAME>, Red Hat, Inc.
*/
static const char *__doc__=
"XDP monitor tool, based on tracepoints\n"
;
static const char *__doc_err_only__=
" NOTICE: Only tracking XDP redirect errors\n"
" Enable TX success stats via '--stats'\n"
" (which comes with a per packet processing overhead... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* Copyright (c) 2017-2018, Renesas Electronics Corporation
*/
#include <assert.h>
#include <crypto/crypto.h>
#include <initcall.h>
#include <kernel/msg_param.h>
#include <kernel/thread.h>
#include <mm/core_memprot.h>
#include <mm/mobj.h... |
/* ************************************************************
% Apart = extractA(At,Ajc,blk0,blk1,blkstart[,blkstart2])
% EXTRACTA Fast alternative to
% Apart = At(blkstart(1):blkstart(2)-1,:).
% Instead of blkstart(2), it takes "blkstart2" (if supplied) or
% size(At,1)+1 (if neither blkstart(2) nor ... |
/**************************************************************************//**
* @file netx_esp8266_network.c
* @version V1.00
* @brief NetX/ESP8266 WiFi network source file
*
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
**************************************************************... |
/*
* This file is part of the Frost distribution
* (https://github.com/xainag/frost)
*
* Copyright (c) 2019 XAIN AG.
*
* 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.... |
/*-
* Copyright (c) 2013 Netflix, Inc. 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... |
#define _XOPEN_SOURCE 600
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <poll.h>
#include <pty.h>
#include <termios.h>
#include <unistd.h>
#include <argp.h>
#include <gpiod.h>... |
// Copyright (c) 2013, <NAME>
// For conditions of distribution and use, see the accompanying LICENSE and README files
// This file is a part of the Scattered Point Visualization application
// developed at the Norwegian University of Science and Technology
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#i... |
/*
Copyright (c) 2015 <NAME> <<EMAIL>>
Copyright (c) 2015 Center for Bioinformatics, University of Hamburg
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 cop... |
#include "zgs.h"
int player_number, MP;
char identity;
Game game;
void swap(int x,int y){
int z=x;
x=y;
y=z;
}
void swapC(Card x,Card y){
Card z=x;
x=y;
y=z;
}
extern char* FULL_NAME(char* s){
if(s=="K")return "杀";
if(s=="D")return "闪";
if(s=="P")return "桃";
if(s=="F")return "决斗";
if(s=="Z")r... |
/* doSamT02 prints out the UCSC SAM-T02 Protein Structure Analysis and Prediction sub-section */
#include "common.h"
#include "hdb.h"
#include "pbTracks.h"
char *getSgdId(char *protId, char *database)
/* Get SGD gene ID from a Swiss-Prot ID */
{
struct sqlConnection *conn2 = hAllocConn(database);
char condStr[256];
... |
/*
* This file is part of RGBDS.
*
* Copyright (c) 2019, <NAME> and RGBDS contributors.
*
* SPDX-License-Identifier: MIT
*/
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "link/main.h"
#include "link/section.h"
#include "extern/err.h"
#include "hashmap.h"
HashMap ... |
/*-------------------------------------------------------------------------
*
* dummy_index_am.c
* Index AM template main file.
*
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* src/test/modul... |
#define GL_SILENCE_DEPRECATION
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <CoreGraphics/CoreGraphics.h>
#include <CoreVideo/CoreVideo.h>
#include <OpenGL/CGLCurrent.h>
#include <OpenGL/gl3.h>
#include "private.h"
// Vertex Shader
static const char *kVertexShader =
"#version 400\n"
"in vec3 pos... |
/*
* Copyright (c) 2013-2016 by Farsight 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, mo... |
/*
* Unbuffered io for ffmpeg system
* Copyright (c) 2001 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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,... |
typedef struct Conf Conf;
typedef struct Ctx Ctx;
typedef struct FController FController;
typedef struct FDrive FDrive;
typedef struct FFrame FFrame;
typedef struct FPsave FPsave;
typedef struct FType FType;
typedef struct KMap KMap;
typedef struct Lance Lance;
typedef struct Lancemem Lancemem;
typedef struct Label L... |
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>
* Copyright (C) 2017 <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 3 of the License, or
* (at your opti... |
/*
* stresstest: simple program for applying IAX2 protocol stress to asterisk.
*
* Copyrights:
* Copyright (C) 2007, Wimba, Inc.
*
* Contributors:
* <NAME> <mihai AT hates DOT ms>
* <NAME> <<EMAIL>>
*
* This program is free software, distributed under the terms of
* the GNU Lesser (Library) General Public License.
*/
... |
//
// BCL.c
// Basic Control Layer
//
// Created by <NAME> on 01/10/14.
// Copyright (c) 2014 MiniMind. 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 witho... |
/*
* Copyright (c) 2008-2016 Allwinner Technology Co. Ltd.
* All rights reserved.
*
* File : CdxAacMuxer.c
* Description : Allwinner AAC Muxer Definition
* History :
*
*/
#include "CdxAacMuxer.h"
#define ADTS_HEADER_SIZE 7
typedef struct AacMuxContext
{
CdxMuxerT muxInfo;
CdxWriter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.