text stringlengths 3.08k 10.5k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <inttypes.h>
#include <assert.h>
#include "ff_queue.h"
#include "ffq_conf.h"
#include "misc.h"
#include "parse_int.h"
#include "lxaffnuma.h"
#include "bfcompat.h" // STATIC_ASSERT()
#define CL_SIZE 64 // cache-line size
#if defi... |
//------------------------------------------------------------------------------
// basisu-sapp.c
//
// This is mainly a regression test for compressed texture format support
// in sokol_gfx.h, but it's also a simple demo of how to use Basis Universal
// textures. Basis Univsersal compressed textures are embedded a... |
/*
* Author: hackNcode
* License: MIT
* Purpose: All FS and AM related shenanigance
*/
#include "libs.h"
#include "fsam.h"
int list_diritems(char *directory)
{
DIR *items = opendir(directory);
struct dirent *item;
int count = 1;
while((item = readdir(items))) {
/* COUNT) FILENAME */
printf("\x1... |
#include "db.h"
#include <stdarg.h>
/* Keep synced to dberror_t in db.h */
static const char *errors[] = {
"line too long",
"read",
"unknown command",
"syntax error",
"overflow",
"out of memory",
"bad utf8 sequence",
};
int c_init(connection_t **res_conn, int sock, prot_err_func_t error)
{
connection_t *conn... |
/**
*
* 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 writing, software
* distri... |
#include <stdio.h>
#define NRW 11 // number of reserved words
#define TXMAX 500 // length of identifier table
#define MAXNUMLEN 14 // maximum number of digits in numbers
#define NSYM 10 // maximum number of symbols in array ssym and csym
#define MAXIDLEN 10 // length of id... |
// Smoke test for pca9539r gpio expander
// Checks all pins configure to inputs/outputs, then toggles gpio states of all 16 pins
// At every stage, prints comparison of configuration registers against expected results
// I2C settings may need to be configured to match wiring on board
// Changing WAIT_TIME_MILLIS allows... |
/*
* Date: Apr 15, 2019
* Modified by: <EMAIL>
* Description: a client program for hdcpd
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include "hdcpapi.h"
#define HDCP_DEFAULT_LEVEL HDCP_LEVEL1
#define HDCP_DELAY 1
#define CONNECTED_RE... |
/*
* Copyright (C) 2014 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... |
/*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protected un... |
#include "BugCheck.h"
#include "FatalScene.h"
#include <revolution.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <egg/core/eggSystem.h>
#include <sp/WideUtil.h>
#include <sp/StackTrace.h>
// Referenced by SceneCreatorDyanmic.S
bool sBugCheckSet = false;
static char sContextFile[64]; // b... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "MockIO.h"
#include "CppUTest/TestHarness_c.h"
#if WIN32
#define snprintf _snprintf
#endif
enum{
FLASH_READ, FLASH_WRITE, NoExpectedValue = -1
};
typedef struct Expectation
{
int kind;
ioAddress addr;
ioData value;
} Expectation;
st... |
/*
* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The RACE - Runtime for Airspace Concept Evaluation platform is licensed
* under the Apache License, Version 2.0 (the "License"); you may not use... |
/******************************************************************************
* *
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... |
/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
mibentry.c
Abstract:
Sample subagent mib structures.
Note:
This file is an example of the output to be produced from the
code generation utility.
--*/
#include <snmp.h>
#include <snmpexts.h>
#include "mibfuncs.h"
... |
/*
* Copyright (c) 2013, <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 all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... |
/*
* Modifications Copyright (c) Microsoft. All rights reserved.
*
* Original code Copyright (c), NXP Semiconductors
*/
#pragma once
#include <phNfcTypes.h>
#define PHHCINFC_HCP_HEADER_LEN 0x02U
#define PHHCINFC_HCP_PACKET_HEADER_OFFSET 0x00U
#define PHHCINFC_H... |
/*
* file.c
*
* Created on: Jun 4, 2018
* Author: Jeff
*/
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../arena/strings.h"
#include "../class.h"
#include "../datastructure/map.h"
#include "../datastructure/tuple.h"
#include "../element.h"
#includ... |
/* ==============================================================
Record: record output_file_path [input_lag (ms)]
Play: play input_file_path [input_lag (ms)] [speed]
============================================================= */
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <time... |
#include <stdlib.h>
#include <stdbool.h>
#include "ccomponents.h"
#define this ((LinkedList *) _this)
typedef struct _list_private {
struct entry {
void *value;
struct entry *previous;
struct entry *next;
} *firstEntry, *lastEntry;
unsigned long int listSize;
} Private;
static in... |
/*
Copyright (c) 2020, <NAME>. (<EMAIL>)
All rights reserved.
This file is part of the topaz project (https://github.com/jcorks/topaz)
topaz was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentat... |
/*
* libcassava/system.c
* vim: set cin ts=4 sw=4 et cc=100:
*
* Copyright (c) 2012 <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 all c... |
CmdArgerDesc cmd_arger_desc_flag(CmdArgerBool* value_out, char* name, char* info) {
return (CmdArgerDesc) {
.name = name,
.info = info,
.value_out = value_out,
.kind = CmdArgerDescKind_flag,
};
}
CmdArgerDesc cmd_arger_desc_string(char** string_out, char* name, char* info) {
return (CmdArgerDesc) {
.name... |
/// MentOS, The Mentoring Operating system project
/// @file ls.c
/// @brief Command 'ls'.
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include <sys/dirent.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
... |
#include "common.h"
#include "dospush.h"
#include "fpp.h"
#include "libpush.h"
#include <tcp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
static in_addr_t resolve_peername(const char *peername)
{
in_addr_t peer_addr = INADDR_NONE;
in... |
/*
* Copyright (C) 1994-2005 The 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, or (at your option)
* any later version.
*
* This prog... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
// LAST UPDATE: 2013-09-04
#include <stdio.h> // fprintf, fputs
#include <stdlib.h> // malloc
#include <string.h> // str functions
#include <stdarg.h> // variadic args
#include <stdint.h> // UINTPTR_MAX
#include "sebC.h"
#define EMERGENCY_BUF_SIZE 1024
char emergencyBuf[EMERGENCY_BUF_SIZE]; // Used during... |
// Solution to Network Programming, Lab Exercise 1
// author : <NAME>
// id : 2018B5A70423P
// -----------------------------------------------
// In this solution, I have used realtime signals
// instead of regular signals because :
//
// 1) sigqueue can send signals that get queued
// instead of kil... |
/*
* This file is part of the TREZOR project, https://trezor.io/
*
* Copyright (C) 2014 <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 L... |
/*
UCF EGN 3211
FALL 2018
Prof. <NAME>
*** Homework 7A ***
by <NAME>
*/
#include <stdio.h>
#include<stdlib.h>
#include <time.h>
#define MAXENTRIES 100
//Structure Definition
typedef struct tools
{
unsigned int id;
char name[25];
unsigned int qty;
float cost;
} structTools;
//Function Prot... |
#include <stdio.h>
#include <assert.h>
#include "lgdb_table.h"
static lgdb_handle_t s_allocate_entry(lgdb_table_t *table) {
assert(table->pool_ptr < table->max_entries);
lgdb_handle_t hdl = table->pool_ptr++;
table->pool[hdl].is_initialised = 0;
table->pool[hdl].next_entry = LGDB_INVALID_HANDLE;
... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "parallel.h"
#include "random.h"
int npart, N_THREADS; // number of particles, number of threads
double max_f, sim_t, chunk_size, dt, dt_old;
Particle * particles; /* Particles */
ParticleV * pv; /* Particle velocity */
... |
/* %%%%%%%%%%%%%%%%%%%% (c) <NAME> 1991 %%%%%%%%%%%%%%%%%%%%%%%%%%%% */
/* Permission to use this code is granted as long as the copyright */
/* notice remains in place. */
/* =============================== format.c ================================ */
/* Returns the registers associtiated with a FORMAT2 instruction (... |
/* Copyright (c) 2022 <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) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
/* See LICENSE file in the project root for full license information. */
/**
@file
at_hash_BSENSDEBUG.c
@brief
The file contains the implementation of custom command AT#BSENSDEBUG
@author
@date
13/03/2020
*/
... |
// Copyright (c) 2016-2020 Memgraph Ltd. [https://memgraph.com]
//
// 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 ... |
/* SPDX-License-Identifier: BSD-2 */
/*
* Copyright (c) 2018, Intel Corporation
* All rights reserved.
*/
#include <stdio.h>
#include <string.h>
#include "checks.h"
#include "db.h"
#include "pkcs11.h"
#include "slot.h"
#include "token.h"
#include "utils.h"
static struct {
size_t token_cnt;
token *token;
} ... |
void _E3D_Perspective(E3D_CAMERA *c, float *x, float *y, float *z, float *pz,
float ar)
{
float f = 1 / tan(c->fov * E3D_PI / 180 / 2);
*x = (f / ar);
*y = f;
*z = (c->zFar + c->zNear) / (c->zNear - c->zFar);
*pz = (2 * c->zFar * c->zNear) / (c->zNear - c->zFar);
}
int _E3D_... |
// SPDX-License-Identifier: Apache-2.0
#include <assert.h>
#include <fcntl.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <libhfuzz/libhfuzz.h>
#include "admin.h"
#include "ccid.h"
#include "ctap.h"
#include ... |
/*
* Copyright (c) 2016-present <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, pub... |
/*
* Copyright (C) 2017 Texas Instruments Incorporated
*
* 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 o... |
/*
Copyright (C) 2019 by <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 the License, or
(at your option) any later version.
This program is distributed in the h... |
/* Copyright (c) 2016 <NAME> <<EMAIL>>
* Released under the MIT License
*/
/* include the zone allocator header. */
#include <matte/zone.h>
/* ZONE_UNIT: number of bytes per unit of memory returned by a zone
* allocator. must be greater than the size of any matte object
* that the zone is expected to handle.
*/... |
/**
* Copyright © 2018, 2021 Push Technology 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... |
#include "mod.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
static int pickleCommandFile(pickle_t *i, int argc, char **argv, void *pd) {
UNUSED(pd);
if (argc < 2)
return error(i, "Invalid command %s", argv[0]);
if (!strcmp("rename", argv[1])... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include "DAG_task_queue.h"
// Initialize a DAG_task_queue structure with a DAG stored in CSR format.
// DAG(i, j) is nonzero means that task j relies on task i. If DAG(i, i) is
// nonzero, task i will be sk... |
/*
* THEC64 Mini
* Copyright (C) 2017 <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 3 of the License, or
* (at your option) any later version.
*
* This ... |
#include "xc.h"
#include "boot_user.h"
#define U1TX_RPOR_NUM 1
bool readBootPin(void);
void initOsc(void){
/*
Input Frequency: 7.370000e+00
Output Frequency: 120
Error in MHz: 3.277778e-02
N1: 9
M: 293
N2: 2
*/
CLKDIVbits.PLLPRE = 7;
PLLFBDbits.PLLDIV = 291;
CLKDIVbits.PLL... |
/**
* @file process.c
* @author <NAME> <<EMAIL>>
* @date Mon Oct 14 18:42:11 2013
*
* @brief
* API for killing processes that hold a mounted filesystem busy
* Adapted from AOSP code
*/
/**
* Copyright (C) 2013 Intel Corporation, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the... |
/* GCVideo DVI Firmware
Copyright (C) 2015-2017, <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... |
/*
** Methods for the volume set (Volumes) data type.
**
** Author:
** G.Lohmann, MPI/CNS, <<EMAIL>>, Dez. 1995
*/
/* From the Vista library: */
#include <viaio/Vlib.h>
#include <viaio/VImage.h>
#include <viaio/mu.h>
#include <viaio/option.h>
#include <viaio/Volumes.h>
/* From the standard C libaray: */
#include <std... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/select.h>
#include <linux/input.h>
#include <unistd.h>
#include <errno.h>
#define DEVICES_COUNT 8
#define OFFSET 262
void rd_error(char *action, char *hint);
const char *devices[DEVICES_COUNT][3] = {
{"Naga Epic",
... |
/*
Copyright 2015, Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... |
#include "flexsc.h"
#include <pthread.h>
#define ENTRY_PER_SYSPAGE 64
static inline int user_lock_init(void);
static void __flexsc_register(struct flexsc_init_info *info);
// static void flexsc_wait(void);
pthread_spinlock_t spin_free_entry[NUM_OF_USRCPU], spin_user_pending;
struct flexsc_init_info *u_info;
int ent... |
/*++
This file is part of Component Firmware Update (CFU), licensed under
the MIT License (MIT).
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "S... |
/* $NetBSD: param.h,v 1.1 2003/04/26 18:39:45 fvdl Exp $ */
#ifdef _KERNEL
#ifdef _LOCORE
#include <machine/psl.h>
#else
#include <machine/cpu.h>
#endif
#endif
#define _MACHINE amd64
#define MACHINE "amd64"
#define _MACHINE_ARCH x86_64
#define MACHINE_ARCH "x86_64"
#define MID_MACHINE MID_X86_64
/*
* Round p (poin... |
#include <stdio.h>
#include <freertos/FreeRTOS.h>
#include <esp_system.h>
#include <sys/param.h>
#include <esp_http_server.h>
#include <esp_log.h>
#include "esp_spiffs.h"
const char TAGHTTPD[] = "waterMonitorHttpd";
char webBuff[35];
char lineBuff[100];
httpd_handle_t server;
struct respTypes{
char* suffix;
c... |
#include <assert.h>
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <csv.h>
#include <table.h>
enum { N = 999, M = 99999 };
static char me[] = "vtk/age";
#include "util.h"
#define USED(x) \
if (x) \
; \
else { \
}
static int ... |
#include <blue.h>
#define SERVICE_RESET 0xFF00
#define SERVICE_ENABLE_SCAN 0xFF01
#define SERVICE_DISABLE_SCAN 0xFF02
static struct{
uint32_t cmd;
int32_t (*func)(int32_t ctl,int32_t hdev,uint32_t opt);
uint32_t opt;
}internal_command[]={
{SERVICE_RESET, resetBluetooth, 0},
{SERVICE_ENABLE_SCAN, enableS... |
/*
* Copyright 2012 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
/******************************************************************
***** *****
***** Name: easyweb.c *****
***** Ver.: 1.0 *****
***** Date: 07/05/2001 ... |
/**
* @file sirerrors.c
* @brief Error management.
*
* This file and accompanying source code originated from <https://github.com/ryanlederman/sir>.
* If you obtained it elsewhere, all bets are off.
*
* @author <NAME> <<EMAIL>>
* @copyright
*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME>
*
* Permi... |
/*
* Copyright (c) 2014-2015 <NAME> <<EMAIL>>
*
* Distributed under the terms of the MIT license.
* (See LICENSE.MIT or http://opensource.org/licenses/MIT)
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include "basemounts.h"
#include "config.h"
#include "../fs/constants.h"
#include "../fs/mount.... |
#pragma once
// License: MIT http://opensource.org/licenses/MIT
// Author: dustpg mailto:<EMAIL>
#include <stdint.h>
/// <summary>
///
/// </summary>
enum sfc_4015_write_flag {
SFC_APU4015_WRITE_EnableSquare1 = 0x01, // 方波1 使能
SFC_APU4015_WRITE_EnableSquare2 = 0x02, // 方波2 使能
SFC_APU4015_WRITE_Enable... |
/*
* Copyright 2016 GoPro Inc.
*
* 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, Vers... |
/******************************************************************************/
/* CT60A2500 C-ohjelmoinnin perusteet
* Otsikkotiedot: aliohjelmien 1 source file ali1.c
* Tekijä: <NAME>
* Opiskelijanumero: 0603219
* Päivämäärä: 7.15.2020
* Yhteistyö ja lähteet, nimi ja yhteistyön muoto:
*/
/*********************... |
/*----------------------------------------------------------------------------*/
/* */
/* Module: hal.h */
/* Author: NMS_RP ... |
/**
* Copyright 2019 <NAME> <<EMAIL>>
*
* This file is part of Matrix Market Suite.
*
* Matrix Market Suite is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... |
/*****************************************************************************
* main.c:
*****************************************************************************
* Copyright (C) 2004 <NAME>
* $Id$
*
* Authors: <NAME> <<EMAIL>>
*
*
* This program is free software; you can redistribute it and/or m... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <pthread.h>
#define QUIT_CMD "quit"
#define MAX_CMD_LEN 512
#define ARGS_DELIM " "
#define CMD_DELIM ";"
int compare_text(const char *t1, const char *t2)
{
int result = 0;
whil... |
// based on 20000914-1.c in the gcc c torture tests
#include <stdio.h>
#include <stdlib.h>
enum tree_code {
ERROR_MARK,
IDENTIFIER_NODE,
OP_IDENTIFIER,
TREE_LIST,
TREE_VEC,
BLOCK,
VOID_TYPE,
INTEGER_TYPE,
REAL_TYPE,
COMPLEX_TYPE,
VECTOR_TYPE,
ENUMERAL_TYPE,
BOOLEAN_TYPE,
CHAR_TYPE,
POINTER_TYPE,
OFFSET_TYPE,
REFERENCE... |
/*
* this is a fairly straightforward port of go-langs bench utility
* to C ...
* usage:
* see sample `main` at bottom
* original code see:
* http://golang.org/src/pkg/testing/benchmark.go
*
* Thanks to https://github.com/jbenet for "portable" c nanosec timer:
* https://gist.github.com/1087739
*
* Java... |
/* S H O W M A T S . C
* BRL-CAD
*
* Copyright (c) 2008-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.... |
/* Definitions for systems using, at least optionally, a GNU
(glibc-based) userspace or other userspace with libc derived from
glibc (e.g. uClibc) or for which similar specs are appropriate.
Copyright (C) 1995-2016 Free Software Foundation, Inc.
Contributed by <NAME>.
Modified for stabs-in-ELF by <NAME> ... |
/**************************************************************************
* The author of this software is <NAME>.
*
* Copyright (c) 1994,1995,1996,1997 by <NAME>. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose, subject to the provisions described below,... |
/*
* Copyright (c) 2008, Google Inc.
* All rights reserved.
* Copyright (c) 2009-2011, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source ... |
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Volteer family-specific sensor configuration */
#include "common.h"
#include "accelgyro.h"
#include "driver/accel_bma2x2.h"
#include "driver/acc... |
/*
* physmem.c
* <NAME>
*
* An exploit for CVE-2016-1825 and CVE-2016-7617 that allows reading and writing arbitrary
* physical addresses on macOS.
*
* The physmem exploit gives us the ability to read arbitrary physical addresses. Fortunately, on
* x86-64, kernel virtual addresses within the kernel image can be... |
/*
* This is the source directory handler for the rsslNIProvider application.
* It provides functions for sending a source directory response and close
* status message to an ADH. Functions for setting the service name and
* getting/setting the service id are also provided.
*/
#include "rsslDirectoryHandler.h"... |
/******************************************************************************
*
* Copyright (C) 2015 - 2016 Xilinx, 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 ... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* HID driver for some a4tech "special" devices
*
* Copyright (c) 1999 <NAME>
* Copyright (c) 2000-2005 <NAME> <<EMAIL>>
* Copyright (c) 2005 <NAME> <<EMAIL>> for Concept2, Inc
* Copyright (c) 2006-2007 <NAME>
* Copyright (c) 2008 <NAME>
*/
/*
*/
#include ... |
/*
* Copyright (c) 2004, <NAME>.. All rights reserved.
* Created by: <NAME>
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that... |
/*
* This is a part of uJIT's testing suite.
* Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
*/
#include "test_common.h"
#include <utils/uj_math.h>
#define PI 3.14159265
/* The purpose of this test is to ensure that different calculations are
* not messed up. We're not testing particular... |
/*
* Example events provider
*
* Copyright (C) Arm Limited 2010-2016. 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 as
* published by the Free Software Foundation.
*
* Similar entries to those below... |
/**
* This is the main entry point into hlld.
* We are responsible for parsing any commmand line
* flags, reading the configuration, starting
* the set manager, and finally starting the
* front ends.
*/
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <std... |
/*
-------------------------------------------------------------------------
GATEWAY ROUTINE FOR CALLING REORTH FROM MATLAB.
REORTH Reorthogonalize a vector using iterated Gram-Schmidt
[R_NEW,NORMR_NEW,NRE] = reorth(Q,R,NORMR,INDEX,ALPHA,METHOD)
reorthogonalizes R against the subset of columns of Q give... |
//=======================================================================
// MQSeries LDAP Security Channel Exit header
// Requires OpenLDAP
//
// Copyright 2014 Queuemetrix Pty Ltd Australia
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... |
/* process_control.c - Process controller.
* vim:ts=4 noexpandtab
*/
#include "process_control.h"
/*
* process_control_block_init()
* DESCRIPTION: Initializes the process control blocks for the kernel.
* INPUTS: none
* OUTPUTS: none
* RETURN VALUE: 0 on success, -1 on failure
* SIDE EFFECT... |
/****************************************************************************
* arch/arm/src/str71x/str71x_timerisr.c
*
* Copyright (C) 2007-2009, 2016-2017 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... |
/******************************************************************************
*
* Copyright(c) 2009-2010 Realtek Corporation.
*
*****************************************************************************/
#include <drv_types.h>
#include <rtw_debug.h>
#include <rtw_wifi_regd.h>
/*
* REG_RULE(freq start, fre... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h>
// Número máximo de threads passageiro e capacidade do carro
#define MAX_THREADS 12
#define CAPACITY_CAR 4
/* Variaveis Globais */
pthread_mutex_t lock_embarque; // mutex para controle de acesso a variavel 'embarcou... |
////////////////////////////////////////////////////////////////////////////////
//
// @file element.c
//
// @brief Implements basic element init and cleanup functions
//
// @copy 2018 Elementary Robotics. All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
#inclu... |
/* xgettext PO and JavaProperties backends.
Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2015 Free
Software Foundation, Inc.
This file was written by <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License a... |
/*
* Copyright © 2015 Broadcom
*
* 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... |
/*
* 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 distributed in the hope that it will be use... |
/* Target-dependent code for Analog Devices Blackfin processor, for GDB.
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Contributed by Analog Devices, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Publ... |
/*
* Copyright (c) 2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* 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... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <errno.h>
#include <string.h>
#include <myst/eraise.h>
#include <myst/options.h>
#include "config.h"
#include "shared.h"
static bool _is_allowed_env_variable(
const config_parsed_data_t* config,
const char* env)
{
for (s... |
/*****************************************************************************\
* cmos_ops.c
*****************************************************************************
* Copyright (C) 2002-2005 The Regents of the University of California.
* Produced at the Lawrence Livermore National Laboratory.
* Written by... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.