text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright 2020-present MongoDB, 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 ag... |
/* Copyright (c) 2020-2021 Alibaba Cloud and Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <getopt.h>
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
... |
/*
* C Extension module to test Python internal C APIs (Include/internal).
*/
#if !defined(Py_BUILD_CORE_BUILTIN) && !defined(Py_BUILD_CORE_MODULE)
# error "Py_BUILD_CORE_BUILTIN or Py_BUILD_CORE_MODULE must be defined"
#endif
/* Always enable assertions */
#undef NDEBUG
#define PY_SSIZE_T_CLEAN
#include "Python... |
// --------------------------------------------------------------------------
// Example Zyre distributed chat application
//
// Copyright (c) 2010-2014 The Authors
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Softwa... |
/* USER CODE BEGIN Init 0 */
#include <stdio.h>
#include <string.h>
#include "main.h"
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_SPI2_Init(void);
static void MX_USART1_UART_Init(void);
static USART *USART1Pointer;
int main(void) {
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_S... |
/**
* @file master.c
* @brief functions for master side
*
* @author <NAME> (<<EMAIL>>)
* @version 1.0
* @since 1.0
*
* @copyright Copyright (c) 2016-2017
* @copyright Apache License, Version 2.0
*/
#include "linkutils.h"
#include "master.h"
/**
* @brief starts master mode
*
* @param *userName a string with current u... |
/*
* Copyright (c) 2012 <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 ... |
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <dirent.h>
#include <assert.h>
#define dirent xv6dirent // avoid clash with host struct dirent
#define stat xv6stat // avoid clash with host struct stat
#include "... |
/*******************************************************************************
Project:
CAN Bus Driver for EPICS
File:
devSiCan.c
Description:
CANBUS String Input device support for Wiener VME crate - NOT a general-
purpose stringin device support.
Authors:
<NAME> and <NAME>
Created:
25 A... |
/*
* region-allocator.c -- region based memory allocator.
*
* Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
*
* See LICENSE for the license.
*
*/
#include <config.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "region-allocator.h"
#ifdef ALIGNMENT
#undef ALIGNMENT
#endif
... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2007-2008 <NAME> - 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 Softwa... |
#include <common.h>
#include <asm/io.h>
#include <spl.h>
#include <mach/sfax8.h>
#include <mach/sys.h>
extern void ddr_init(void);
extern void sys_reset_all_module(void);
extern char __bss_start[], __bss_end[];
/**************************************************************************************************
* ... |
/*
* LPbox 模型程序,用于LPbox模型的结果解析。
*/
#include "config.h"
#include <math.h>
#include "kpu.h"
#include "lpbox.h"
bbox_t *new_bbox(float x1, float y1, float x2, float y2, float score, bbox_t *next)
{
bbox_t *new;
new = (bbox_t *)malloc(sizeof(bbox_t));
new->x1 = x1;
new->x2 = x2;
... |
/**
* @file sysrepo-plugind.c
* @author <NAME> <<EMAIL>>
* @brief sysrepo plugin daemon
*
* @copyright
* Copyright 2018 Deutsche Telekom AG.
* Copyright 2018 - 2019 CESNET, z.s.p.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Date: 16/10/25 4:29p $
* @brief
* Use PDMA channel 4 to transfer data from memory to memory by scatter-gather mode.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Co... |
/*
* libhugetlbfs - Easy use of Linux hugepages
* Copyright (C) 2005-2006 <NAME> & <NAME>, IBM Corporation.
*
* 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
... |
#include "png_decode.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <winnt.h>
void fix_iat(char *p_image_base, IMAGE_NT_HEADERS *p_NT_headers) {
IMAGE_DATA_DIRECTORY *data_directory = p_NT_headers->OptionalHeader.DataDirectory;
// load the address of the import descri... |
/* $OpenBSD: expl.c,v 1.13 2016/01/07 21:37:53 mestre Exp $ */
/* $NetBSD: expl.c,v 1.2 1997/10/10 16:33:18 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... |
#include "noc_control.h"
#include "intra_pred.h"
#include "mbmodes.h"
#include "block.h"
#include "parser_2_buffer.h"
void send_start_new_frame(int addr){
//wait for ack from previous command
packet rx_packet;
rx_packet.num_flits = 0;
while(rx_packet.num_flits == 0){
rx_packet = get_packet_by_id(0... |
// SPDX-License-Identifier: GPL-2.0
/* DSA driver for:
* Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch
* Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch
* Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch
* Vitesse VSC7398 SparX-G8e 8-port Integrated Gig... |
/* FUNCTION list --- --- --- --- --- --- ---
*/
/* BASE headers --- --- --- --- --- --- --- */
#include "../agi.h"
/* LIBRARY headers --- --- --- --- --- --- --- */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/* OTHER headers --- --- --- --- --- --- --- */
#include "list_box.h"
#include "msg.h"
#in... |
//
// Copyright (c) 2017, Intel 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 conditi... |
/*
* Copyright @ <NAME>, 2018
*
* Inspired by:
* Apple System Management Control (SMC) Tool.
*
* 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 ... |
// Snipe text handling. Free and open source, see licence.txt.
#include "text.h"
#include "unicode.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
// A text object stores an array of bytes, as a gap buffer. The gap is between
// offsets lo and hi in the ... |
/*
* Copyright (C) <NAME> <<EMAIL>>
*
* 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... |
#include "../headers/mdparams.h"
/**
## GENERAL INFORMATION
##
## FILE mdparams.c
## AUTHORS <NAME> and <NAME>
## LAST MODIFIED 28-11-08
##
## SPECIFICATIONS
##
## Handle parameters (parse the command line and sore values)
## for the mdpocket programm.
##
## MODIFICATIONS HISTORY
##
## 28-11-08 (v) Comme... |
// Server Location / Information on each build
// ------ Beta / "Photo Butler App" In iTunes Connect ------
// App ID In Build Target: com.photobutler.PhotoButlerBeta
// ICON AssetPack In Build Target: AppIconBeta
/*
#define cMixpanelToken @"<PASSWORD>"
// Is DEV Facebook ID
#define cFacebookAppId @"960223207430209"... |
/* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
/* MACHINE GENERATED FILE, DO NOT EDIT! */
#define VMDPLUGIN molfile_vaspchgcarplugin
#define STATIC_PLUGIN 1
/***************************************************************************
* RCS INFORMATION:
*
* $RCSfile: vaspchgcarplugin.c,v $
* $Author: johns $ $Locker: $ $State: Exp ... |
/* generated by gen_config_h.bat */
/* Templates for defines setup by configure.
Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public... |
/**
* Copyright (c) 2017 - 2018, 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 notice, th... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2010 <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) ... |
/* K=15 r=1/6 Viterbi decoder for x86 SSE2
* Copyright Mar 2004, <NAME>, KA9Q
* May be used under the terms of the GNU Lesser General Public License (LGPL)
*/
#include <emmintrin.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <limits.h>
#include "fec.h"
typedef union { unsigned long w[512]; ... |
/*
* 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 2017 Google Inc. All Rights Reserved.
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... |
/*
u8x8_d_st7586s_erc240160.c
Display: 240x160 pixel
ST7586s: 384 x 160 x 2
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2018, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provide... |
/**
Copyright (c) 2012-2015 <NAME> <<EMAIL>>
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... |
/*
* Copyright (c) 2016, 2018, 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 code must retain the above copyright
* notice, ... |
// SPDX-License-Identifier: GPL-2.0
/*
* Test functionality of BPF filters with SO_REUSEPORT. Same test as
* in reuseport_bpf_cpu, only as one socket per NUMA node.
*/
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <errno.h>
#include <error.h>
#include <linux/filter.h>
#include <linux/bpf.h>
#include <linux/i... |
/**
* Copyright (c) 2012 - 2020, 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 notice, th... |
/*
* This an unstable interface of wlroots. No guarantees are made regarding the
* future consistency of this API.
*/
#ifndef WLR_USE_UNSTABLE
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
#endif
#ifndef WLR_XWAYLAND_H
#define WLR_XWAYLAND_H
#include <stdbool.h>
#include <time.h>
#include <wl... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2022 STMicroelectro... |
/*
* inputs.c
*
* Created on: 5 aug. 2021
* Author: fredrikjohansson
*/
#include "inputs.h"
#include "settings.h"
#include <hal.h>
#include <ch.h>
#include <stm32f042x6.h>
#include <stm32_dma.h>
#define DMA_SAMPLES_CNT 5
// medium priority
#define DMA_PRIORITY 1U
#define TIM2_SPEED 100000U
// ---------... |
/****************************************************************************
*
* SciTech OS Portability Manager Library
*
* ========================================================================
*
* The contents of this file are subject to the SciTech MGL Public
* License Version 1.0 (the "L... |
/*
This program tests the capability to write bytes to and read bytes from specific
memory addresses, independent of any memory layout/section scheme.
*/
#include <stdlib.h>
#include <uart/uart.h>
#include <spi/spi.h>
#include "../../src/mem.h"
// len - number of bytes in each of write and read
void print_write_read... |
/*
* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "protocol_examples_common.h"
#include "esp_netif.h"
#include "lwip/err.h"
#include "lwip/sockets.h... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... |
/* -*- buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen_perly.pl from perly.y.
Any changes made here will be lost!
*/
/* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, ... |
#include "os_sound.h"
#include "util.h"
#include <AudioToolbox/AudioQueue.h>
#include <assert.h>
#include <string.h>
#include <unistd.h>
enum {
k_os_sound_max_period = 16,
};
struct os_sound_struct {
uint32_t sample_rate;
uint32_t buffer_size_in_frames;
uint32_t num_periods;
uint32_t frames_per_period;
... |
/* Command-line output logging for GDB, the GNU debugger.
Copyright (c) 2003, 2004, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, 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 Public License as publish... |
/* Copyright (C) 2007-2010 by <NAME> */
/*
* 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 disclaim... |
/*
Copyright (C) 1996-1997 Id Software, 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 the License, or (at your option) any later version.
This program is distributed in th... |
/* Copyright (C) 2006 <NAME> */
/**
@file filterbank.c
@brief Converting between psd and filterbank
*/
/*
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 a... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: SRT.c
* Author: <NAME> <<EMAIL>>
*
* Created on June 27, 2018, 7:22 PM
*/
#include <stdlib.h>
#include <stdio.h>
... |
/*
* @brief
*
* @note
* Author: Mikeqin Feng<EMAIL>
*
* @par
* This is free and unencumbered software released into the public domain.
* For details see the UNLICENSE file at the root of the source tree.
*/
#include <string.h>
#include "board.h"
#include "app_usbd_cfg.h"
#include "protocol.h"
#include "defin... |
/* liblouis Braille Translation and Back-Translation
Library
Based on the Linux screenreader BRLTTY, copyright (C) 1999-2006 by
The BRLTTY Team
Copyright (C) 2004, 2005, 2006, 2009
ViewPlus Technologies, Inc. www.viewplus.com and
JJB Software, Inc. www.jjb-software.com
This program is free softwar... |
/**
* Copyright (c) 2014 - 2020, 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 no... |
/* lu1fac.c : written by <NAME> 20.1.99
This is a CMEX file that calls LU1FAC, a sparse LU factorization written in
FORTRAN by <NAME> (MS). The MATLAB call is
[L, U, p, q, luparm, parmlu] = lu1fac(A, luparm, parmlu)
where A is a sparse MATLAB matrix, luparm and parmlu are LU
settings, L and U are the sparse factors,... |
/* newProg - make a new C source skeleton. */
/* Copyright (C) 2013 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "portable.h"
#include "dystring.h"
#include "options.h"
boolean jkhgap = FALSE;
boolean cg... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* (c) Copyright 2002-2010, Ralink Technology, Inc.
* Copyright (C) 2014 <NAME> <<EMAIL>>
* Copyright (C) 2015 <NAME> <<EMAIL>>
* Copyright (C) 2018 <NAME> <<EMAIL>>
*/
#include "mt76x0.h"
#include "eeprom.h"
#include "mcu.h"
#include "initvals.h"
#include "../mt76x02_ph... |
/*
* Copyright (C) 2015-2017 Netronome Systems, Inc.
*
* This software is dual licensed under the GNU General License Version 2,
* June 1991 as shown in the file COPYING in the top-level directory of this
* source tree or the BSD 2-Clause License provided below. You have the
* option to license this software und... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2018 NXP.
*/
#include <dt-bindings/firmware/imx/rsrc.h>
#include <linux/arm-smccc.h>
#include <linux/firmware/imx/sci.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#define IMX_SC_TIMER_FUNC_GET_RTC_SEC... |
/*
* socket-server.c
* Simple TCP/IP communication using sockets
*
* <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <netdb.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#in... |
/* Audio Library for Teensy 3.X
* Copyright (c) 2014, <NAME>, <EMAIL>
*
* Development of this audio library was funded by PJRC.COM, LLC by sales of
* Teensy and Audio Adaptor boards. Please support PJRC's efforts to develop
* open source software by purchasing Teensy or other PJRC products.
*
* Permission is he... |
/**
* @file: k_msg.c
* @brief: kernel message passing routines
* @author: <NAME>
* @date: 2020/10/09
*/
#include "k_msg.h"
#include "printf.h"
#ifdef DEBUG_0
#endif /* ! DEBUG_0 */
extern TCB *gp_current_task;
extern TCB g_tcbs[MAX_TASKS];
//extern TMB t_mailbox[MAX_TASKS];
int k_mbx_create(size_t size) {... |
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2016 <NAME> and <NAME>
Copyright (C) 2017-2019 <NAME>
Copyright (C) 2020-2022 <NAME> and Rubicon Communications, LLC(Netgate)
This file is part of CLIXON.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ... |
/* ================================================================== */
/* */
/* Microsoft Speech coder ANSI-C Source Code */
/* SC1200 1200 bps speech coder */
/* Fixed Point Imple... |
/*
* Copyright 2017-2018 Uber Technologies, 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 applica... |
/******************************************************************************
* Copyright © 2014-2018 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *... |
//////////////////////////////////////////////////////////////////////////////////
/* CE1007/CZ1007 Data Structures
2016/17 S1
Author and Lab Group: <NAME> / FSP7
Program name: FSP7_ALVIN_LEE_YONG_TECK
Date: 03 November 2016
Purpose: Implementing the required functions for Assignment 1 (Question 2)*/
///////... |
#include "adc.h"
#include "drv_spi.h"
#include "platform.h"
#include <stdbool.h>
#include <stdint.h>
static void setup_pin_SYNC_ADC(void);
static void setup_pin_CONVST(void);
// clang-format off
#define NOP1 asm("nop")
#define NOP2 NOP1;NOP1
#define NOP4 NOP2;NOP2
#define NOP8 NOP4;NOP4
#define NOP16 NOP8;N... |
/*
* Copyright (C) Nabto - All Rights Reserved.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unabto/unabto_common_main.h>
#include <unabto/unabto_env_base.h>
#include <unabto/unabto_external_environment.h>
#include "RAK415.h"
#include "systimer.h"
#define N_SOCKETS 2
... |
/*
* ACE/gredit - 2d finite element grid generation
*
* <NAME> and <NAME>
*
* Copyright 1990-2003 Oregon Health and Science University
* All Rights Reserved.
*
*/
/* $Id: wvwin.c,v 1.3 2007/02/21 00:21:21 pturner Exp $
*
* Set the world scale and viewport
*/
#ifndef lint
static char RC... |
/*
* Copyright (c) 1996-2020, <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... |
#include "cl_common.h"
#include <stdio.h>
#include <stdlib.h>
void destroy_cl_state(struct cl_state *cl)
{
if (cl->events)
free(cl->events);
if (cl->queues)
free(cl->queues);
if (cl->kernels)
free(cl->kernels);
if (cl->dev_props)
free(cl->dev_props);
if (cl->devices)
free(cl->devices);
if (cl->platfor... |
#include "dropboxClient.h"
char buffer[BUFFER_SIZE];
pthread_t sync_thread;
pthread_t sync_server_thread;
struct user_info user;
SSL *ssl;
SSL_CTX *ctx;
int sockid;
int status;
struct sockaddr_in serverconn;
// Inicializa engine ssl
const SSL_METHOD *method;
int configLine = 1; // linha 1 do arquivo config
int port... |
// Copyright 2015 <NAME>, <NAME> All Rights Reserved.
//
// 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 b... |
/* File: ttyaccess.c
Author: <NAME>, Dept. of Comp. Sci., U. of Iowa, Iowa City, IA 52242.
Modified by: <NAME>, <EMAIL>.
added fixes so it uses termios.h rather than sgtty.h
Date: Aug. 15, 1995
Updates: M<NAME>, April 2020
Language: C (UNIX)
Purpose: Code to take over the tty and put it in raw mode
*... |
/**********************************************************
PacktHAL interface to the Adafruit BMP183 pressure sensor
breakout board: http://www.adafruit.com/products/1900
Written by <NAME> (<EMAIL>)
Based on the Adafruit Industries code originally
written by <NAME>
This code is made available under... |
/* login - log into the system Author: <NAME> */
/* Original version by <NAME>. History of modifications:
*
* <NAME> Jan. 1988
* - Set up $USER, $HOME and $TERM.
* - Set signals to SIG_DFL.
*
* <NAME> June 1988
* - Allow a username as an optional argument.
* - Time out if a password is not typed wit... |
/*
cpu_map_atmega328p.h - CPU and pin mapping configuration file
Part of Grbl
Copyright (c) 2012-2015 <NAME>
Grbl 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
... |
#include "sha256.h"
static const uint32_t k[64] = {0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a748... |
/*
Author: <NAME> <<EMAIL>>
Copyright (C) 2013-2014 <NAME> <<EMAIL>>
Licensed according to the included 'LICENCE' document
This file is part of lua-lzqm library.
*/
#include "lzutils.h"
#include <memory.h>
#include <assert.h>
#if LUA_VERSION_NUM >= 502
int luazmq_typerror (lua_State *L, ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "internal.h"
#include "displayLanguage.h"
static const char *
displayLanguage(const char *lang) {
return DisplayLanguage((char *)lang);
}
static const char *
getDisplayName(const char *table) {
return lou_getTableInfo(table, "display-name");
}
sta... |
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
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 version.... |
#include <dirent.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <magic.h>
#include <limits.h>
#include <unistd.h>
#include <errno.h>
#include "tui.h"
int filter_hidden(const struct dirent * e);
int filter_twodot_dir(const struct di... |
/* License
-------
Copyright (c) 2018 bnzis <https://github.com/bnzis>
This file is part of the Bulb Interpreter and is released under the terms
of the MIT/Expat License - see LICENSE. */
#include "parser.h"
bool bulbIsInt(char *exp, unsigned len)
{
unsigned i = 0;
char c = (exp[0] == '-')? exp[1... |
/* Copyright (c) 2010 - 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 notice, thi... |
/* -----------------------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* -----------------------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2019, Lawrence Livermore National Security
* and Southern Methodist Univers... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Advanced Micro Devices, 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; version 2 of the License.
*
* This ... |
#include <msp430.h>
#include <libTimer.h>
#include "lcdutils.h"
#include "lcddraw.h"
#include "switches.h"
#include "gameDemo.h"
#include "buzzer.h"
#include "buzzer_notes.h"
/*
char
switch_update_interrupt_sense()
{
char p2val = P2IN;
// update
P2IES |= SWITCHES;
P2IES |= (p2val & SWITCHES); /* if switch up,... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: kernel_main.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://william@r<EMAIL>-dres<EMAIL>.de/svn-base/benchit-root/BenchITv6/kernel/io/read/C/PThread... |
/*
* Copyright (c) 2005-2020 <NAME> (<EMAIL>)
* Copyright (c) 2008 <NAME> (<EMAIL>)
* Copyright (c) 2008 <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. Redistribu... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libnet.h>
#include "arp_send.h"
void *arp_send(void *req) {
arpctx_t *ctx = (arpctx_t *) req;
int ret;
if((ret = arp_fill(ctx->lctx, ctx->arp, &ctx->ltags)) < 0) {
fprintf(stderr, "[CRIT] arp_send: error creating %s: %s\n", ret ==... |
/************************************************
ipsocket.c -
created at: Thu Mar 31 12:21:29 JST 1994
Copyright (C) 1993-2007 <NAME>
************************************************/
#include "rubysocket.h"
struct inetsock_arg
{
VALUE sock;
struct {
VALUE host, serv;
struct rb_addrinfo *res;
... |
/*
* xrdesktop
* Copyright 2019 Collabora Ltd.
* Author: <NAME> <<EMAIL>>
* SPDX-License-Identifier: MIT
*/
#include <glib.h>
#include <glib-unix.h>
#include <xrd.h>
static VkImageLayout upload_layout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL;
typedef struct Example
{
GMainLoop *loop;
XrdClient *client;
gui... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright 2018-2020 Broadcom.
*/
#include <linux/dma-mapping.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/pgtable.h>
#include <linux/vmalloc.h>
#include <asm/page.h>
#include <asm/unaligned.h>
#include <uapi/linux/misc/bcm_vk.h>
#include "bcm_vk.h"
#i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.