text stringlengths 3.08k 10.5k |
|---|
/*
*
* BRIEF MODULE DESCRIPTION
* Galileo EV96100 board specific pci support.
*
* Copyright 2000 MontaVista Software Inc.
* Author: MontaVista Software, Inc.
* <EMAIL> or <EMAIL>
*
* This file was derived from <NAME>'s
* arch/mips/mips-boards/generic/pci.c
*
* <NAME>, <EMAIL>
* Copyright (C) 1999,... |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source cod... |
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the term... |
/*
* 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 ma... |
#include "../mouse.h"
#include "../microsleep.h"
#include <math.h> /* For floor() */
#include <ApplicationServices/ApplicationServices.h>
#if !defined(M_SQRT2)
#define M_SQRT2 1.4142135623730950488016887 /* Fix for MSVC. */
#endif
#define MMMouseToCGEventType(down, button) \
(down ? MMMouseDownToCGEventType(butt... |
/*
* Common library for ADIS16XXX devices
*
* Copyright 2012 Analog Devices Inc.
* Author: <NAME> <<EMAIL>>
*
* Licensed under the GPL-2 or later.
*/
#include <linux/export.h>
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>
#i... |
/* FINDXT- FIND EXIT FROM ROOM */
/*COPYRIGHT 1980, INFOCOM COMPUTERS AND COMMUNICATIONS, CAMBRIDGE MA. 02142*/
/* ALL RIGHTS RESERVED, COMMERCIAL USAGE STRICTLY PROHIBITED */
/* WRITTEN BY <NAME> */
#include <stdio.h>
#include "funcs.h"
#include "vars.h"
logical findxt_(dir, rm)
integer dir;
integer rm;
{
/* S... |
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <errno.h>
#include <fcntl.h>
#ifndef FALLOC_FL_COLLAPSE_RANGE
#define FALLOC_FL_COLLAPSE_RANGE 0x08
... |
/*
* Allegro A8293 SEC driver
*
* Copyright (C) 2011 <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)... |
/**
@file
master - demonstrates object subscription, registration and notification, use with 'servant'
<NAME> - <EMAIL>
@ingroup examples
*/
#include "ext.h"
#include "ext_obex.h"
#include "jpatcher_api.h"
////////////////////////// object struct
typedef struct _master
{
t_object ob; // the object itself ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* (C) 2007 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include "mpitest.h"
/*
* This program tests that MPI_Comm_split applies to intercommunicators;
... |
/*
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <string.h>
#i... |
//<NAME>COM 2016 Ejercicio 3
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define NDATOS_MAX 256 //Cantidad máxima de datos a leer
//estrucutra para almacenar datos del ajuste lineal
typedef struct {
double a, b, siga, sigb, chi2,sigdat;
}FitPARAMS;
//Función para fitear una recta y=a+b*x a los N... |
/* Copyright 2012 The Regents of the University of California */
/* See COPYING for information about copying and redistribution.
*/
/**
* \file disk_bench.c
* Use nl calipers to measure local disk performance.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nl_calipers.h... |
/*****************************************************************************/
/* */
/* Telize 2.0.0 */
/* Copyright (c) 2013-2018, <NAME> */
/* https:... |
/* gdb-io.c: FR403 GDB stub I/O
*
* Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
* 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
* as published by the Free Software Foundation; either version
*... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <survive.h>
#include "assert.h"
#ifdef _WIN32
#include "survive_plugins.windows.h"
#else
#include "survive_plugins.unix.h"
#endif
static const char *get_so_filename();
static void*... |
/*
* Copyright (c) 2015 <NAME> (<EMAIL>)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implie... |
// The MIT License
//
// Copyright (c) 2017-2018 by the author(s)
//
// 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,... |
/*
* mon_assembleR65C02.c - The VICE built-in monitor, R65C02 assembler module.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms... |
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above cop... |
/*
Copyright 2010-2013 SourceGear, 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 agreed to in writing, softwar... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* editor_drawing.c :+: :+: :+: ... |
/*
* name-hash.c
*
* Hashing names in the index state
*
* Copyright (C) 2008 <NAME>
*/
#define NO_THE_INDEX_COMPATIBILITY_MACROS
#include "index.h"
/*
* This removes bit 5 if bit 6 is set.
*
* That will make US-ASCII characters hash to their upper-case
* equivalent. We could easily do this one whole word at ... |
/* --- 100 characters -----------------------------------------------------------------------------
Created by: Laurie 2019/03/19
Sudoku puzzle solver.
Compile: gcc solver.c -o bin/solver -lm -m64 -O3
Usage: bin/solver
*/
#include <stdbool.h>
#include <stdio.h>
bool contains(unsigned char val, unsigned char list[9... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 <NAME> / <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... |
/**
******************************************************************************
* @file stm32f0xx_ip_dbg.c
* @author MCD Application Team
* @version V1.4.0
* @date 24-July-2014
* @brief This file provides all STM32F0xx peripherals pointers initialization.
*************************************... |
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <yaml.h>
#include "yaml-path.h"
int parse_and_emit (yaml_parser_t *parser, yaml_emitter_t *emitter, yaml_path_t *path, yaml_path_filter_mode_t mode, int use_flow_style)
{
yaml_event_t event;
yaml_event_type_... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "dask.h"
#include "conio.h"
#include "cpgplot.h"
#define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg)
//prototypes
int acquire_data(void);
void show_channel_data( U16 *buf, int num_chan );
int plot_channel_data(void);
void transfer_and_scale(U... |
// # condition variables ######################################################
// - rlyeh, public domain
#ifndef CONDV_H
#define CONDV_H
typedef union condv {
char opaque_cpp_x64_vs2013[16];
char opaque_cpp_x64_vs2015[88];
char opaque_cpp_x64_vs2017[88];
char opaque_cpp_x86_vs2013[8];
char opaque... |
// Copyright 2017 The Australian National University
//
// 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 appli... |
#include <stdint.h>
#include <stddef.h>
#include <lib/readline.h>
#include <lib/libc.h>
#include <lib/blib.h>
#include <lib/term.h>
#if defined (bios)
# include <lib/real.h>
#elif defined (uefi)
# include <efi.h>
#endif
int getchar_internal(uint8_t scancode, uint8_t ascii) {
switch (scancode) {
#if defined (bios... |
//==============================================================================
// Includes
//==============================================================================
#include <celib/memory/allocator.h>
#include <celib/api.h>
#include <celib/containers/hash.h>
#include <celib/id.h>
#include <stdatomic.h>
#inclu... |
#include <getopt.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wayland-client-protocol.h>
#include <wayland-client.h>
#include <wlr/util/log.h>
#include "idle-client-protocol.h"
static struct org_kde_kwin_idle *idle_manager = NULL;
static struct wl_sea... |
/*
* Copyright (C) 2021 Huawei Device 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 o... |
#include <stdint.h>
#include "malloc.h"
#include "log.h"
#include "chunk.h"
#define dl_assert(x)\
{\
if(!(x))\
abort();\
}
void inspector(void *start, void *end, size_t used_bytes, void *callback_arg) {
(void) callback_arg; // unused
dl_printf(
"start=0x%016lX end=0x%016lX size=%6lu... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
int maxdepth=10;
int mode=0; // 0 .. count, 1 .. output
int skip_last=0;
long *counter;
char **lookup;
const char * pattern[] = {
"HB", "KO", "KK", "PF", "VB", "KC", "BP", "SS", "BS", "PB", "VH", "BK", "BO", "HN", "... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 13