text stringlengths 3.12k 18.7k |
|---|
/*
* A simple HTTP/RPC library
* Copyright (C) 2018 A. C. Open Hardware Ideas Lab
*
* Authors:
* <NAME> <<EMAIL>>
* <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 Softwar... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sqlite3.h>
#include <time.h>
#define CMAIL_ADMIN_AUTH
#include "../cmail-admin.h"
#include "getpass.c"
#include "user.c"
#define MAX_PW_LENGTH 256
#define PROGRAM_NAME "cmail-admin-user"
int generate_salt(char* out, unsigned chars) {
const char* ... |
/* $OpenBSD: dec_3000_300.c,v 1.11 2002/06/25 21:33:19 miod Exp $ */
/* $NetBSD: dec_3000_300.c,v 1.30 2000/05/22 20:13:32 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* All rights reserved.
*
* Author: <NAME>
*
* Permission to use, copy, modify and distribute this software and
* ... |
/* Packaged FreeRTOS usbcdc library
* <NAME> VE3WWG
*/
#include <stdlib.h>
#include <string.h>
#include <libopencm3/cm3/scb.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/cdc.h>
#include <libopencm3/cm3/scb.h>
#include <FreeRTOS.h>
#... |
/**************************************************************************//**
* @file main.c
* @version V1.00
* $Revision: 12 $
* $Date: 15/11/19 4:22p $
* @brief Demonstrate the usage of SYS driver by changing different
* PLL setting for the system clock source. And this sample
* ... |
#include "clarissa_cat.h"
#include "clarissa_defines.h"
#include <stdio.h> // asprintf()
#include <stdlib.h> // exit()
#include <unistd.h> // close()
#include <err.h> // err(), warnx()
#include <stdbool.h> // type bool
#include <getopt.h> // getopt_long()
#include <dirent.h> // struct dirent, opendir(), readdir()
#inc... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
// TODO Broadphase
#define WINDOW_WIDTH 1280
#define WINDOW_HEIGHT 720
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <astera/asset.h>
#include <astera/render.h>
#include <astera/input.h>
#include <astera/col.h>
#include <astera/ui.h>
// render & input context
r_ctx* render_c... |
//<NAME>
//2/24/15
//md5.c
//Calculate the MD5 hash on a given input
#include <string.h>
#include <stdio.h>
//Rotate to the left by some amount
int ROTL(unsigned int x, unsigned int n) {
return (((x) << (n)) | ((x) >> (32 - (n))));
}
void md5_process(unsigned int *count, unsigned int *abcd, unsigned char *buf, cons... |
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#define TAU 6.28318530717958647692
typedef struct {
uint16_t frequency;
uint64_t samples;
int16_t* data;
} AudioBuffer16;
typedef struct {
uint32_t chunkId;
uint32_t chunkSize;... |
/*
* Copyright (C) 2017 - This file is part of libecc project
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Contributors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This software is licensed under a dual BSD and GPL v2 license.
* See LICENSE file at ... |
/*
* Copyright 2015-2018 Yubico AB
*
* 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 i... |
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-11-22 Rick the first version
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <stdio.h>
#include "drv_spi.h"
#include <string.h>
#include ... |
/*
* smilint.c --
*
* MIB module checker main program.
*
* Copyright (c) 1999 <NAME>, Technical University of Braunschweig.
*
* See the file "COPYING" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* @(#) $Id: smilint.c 1673 2010-06-24 10:09:36Z scho... |
/** @file security.h
@brief Definitions pertaining to access levels and security.
@author Alexios
Original banner, legalese and change history follow.
@par
@verbatim
*****************************************************************************
** ... |
#include "luv.h"
void luvL_thread_ready(luv_thread_t* self) {
if (!(self->flags & LUV_FREADY)) {
TRACE("SET READY\n");
self->flags |= LUV_FREADY;
uv_async_send(&self->async);
}
}
int luvL_thread_yield(luv_thread_t* self, int narg) {
TRACE("calling uv_run_once\n");
uv_run(self->loop, UV_RUN_ONCE);
... |
#include "fwcfg.h"
#include "vm.h"
#include "libcflat.h"
static void *free = 0;
static void *vfree_top = 0;
static void free_memory(void *mem, unsigned long size)
{
void *end;
assert_msg((unsigned long) mem % PAGE_SIZE == 0,
"mem not page aligned: %p", mem);
assert_msg(size % PAGE_SIZE == 0, "size not page ... |
/*
* Copyright (c) 2013, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/
* All rights reserved.
*/
/*
* This file is licensed according to the BSD 3-clause license as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
/* -*- mode: C; coding:utf-8 -*- */
/**********************************************************************/
/* Yet Another Teachable Operating System */
/* Copyright 2016 <NAME> */
/* */... |
/**
******************************************************************************
* @file TIM/ExtTrigger_Synchro/main.c
* @author MCD Application Team
* @version V3.5.0
* @date 08-April-2011
* @brief Main program body
**********************************************************************... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2017 Intel Corporation. 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 as
* published by the Free Software Foundation; version 2 of
* the Licen... |
/*
* Copyright (c) 2015-2016 Yubico AB
* 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 ... |
//
// This application utilizes microblaze processors to calculate the
// mandelbrot series.
// It displays the output using vga
// Author: <NAME>
// Date: Fall 2010
//
#include <stdio.h>
#include <hthread.h>
#include <vga_lib.h>
#include <arch/arch.h>
// Define the vga output size
#define DISPLAY_COLUMNS 640
#defi... |
/**
* \file
*
* \brief SAM D20 DAC WAVEFORM GENERATOR
*
* Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products... |
#include <oss.h>
#include <lld.h>
#include <my.h>
int strlen(const char *str) {
int len = 0;
for (; str[len]; len++);
return len;
}
void memcpy(char *dest, const char *src, int size){
for (int i = 0; i < size; i++)
dest[i] = src[i];
}
char **strToWords(const char *str, char split) {
lld_t... |
/*****************************************************************************
Copyright(c) 2014 FCI Inc. All Rights Reserved
File name : fci_hal.c
Description : source of host interface
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... |
#define IP_STR 16 /* ip string biggest size: 000 .000.000.000\0 */
#define FIT_USEC 1000000 /* fit all times to microseconds */
#define BLOCK_TIMER -1 /* stop the timer that remove flows from the list */
#define IP_TYPE 8 /* code of IP protocol */
#define FORWARD 0 /* flow direction client -> server */
#define ... |
/*!
*****************************************************************************
* @file: CN0396.c
* @brief:
* @version: $Revision$
* @date: $Date$
*-----------------------------------------------------------------------------
*
Copyright (c) 2016-2017 Analog Devices, Inc.
All rights reserved.
Redistrib... |
/**
* Octopipes
* Developed by <NAME>
*
* MIT License
* Copyright (c) 2019-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 limi... |
#include "generator.h"
#include "layers.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void setupLayer(Layer *l, Layer *p, int s, mapfunc_t getMap)
{
l->layerSeed = s ? getLayerSeed(s) : 0;
l->startSalt = 0;
l->startSeed = 0;
l->p = p;
l->p2 = NULL;
l->scale = 0;
l->edge =... |
/*******************************************************************************
Raspberry Pi用 I2C 加速度センサ Analog Devices 社 ADXL345
本ソースリストおよびソフトウェアは、ライセンスフリーです。(詳細は別記)
利用、編集、再配布等が自由に行えますが、著作権表示の改変は禁止します。
・I2C接続の加速度センサの値を読み取る
コンパイル方法
make または gcc -Wall -O1 raspi_adxl345.c soft_i2c.o -o raspi_adxl345
使い方
./ra... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright (C) 2010 <NAME> *
* *
* This program is free software. You may redistribute and/or modify *
* it under the term... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <signal.h>
#include "dsm_inet.h"
#inc... |
// SPDX-License-Identifier: GPL-2.0
/*
* Intel Cherry Trail ACPI INT33FE pseudo device driver
*
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* Some Intel Cherry Trail based device which ship with Windows 10, have
* this weird INT33FE ACPI device with a CRS table with 4 I2cSerialBusV2
* resources, for 4 different chip... |
/*
* Copyright (c) 2012-2014, <NAME> / Forsvarets Forskningsinstitutt
* 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 copyrigh... |
/*
* 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,
* distribute, sublicense, and/or s... |
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
/* ISC license. */
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <errno.h>
#include <pwd.h>
#include <skalibs/types.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/bytestr.h>
#include <skalibs/fmtscan.h>
#include <skalibs/buffer.h>
#include <skalibs/strerr2.h>
#include <skalibs/stralloc.... |
/*
* ping.c
*
* Network PING for PC-XT
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <conio.h>
#include <dos.h>
#include <time.h>
#include <signal.h>
#include "ip/netif.h"
#include "ip/stack.h"
#include "ip/icmp.h"
#include ... |
/*
* Copyright (c) 2012-2018 Andes Technology Corporation
* All rights reserved.
*
*/
#include "wdt_ae250.h"
#include "RTE_Device.h"
#define NDS_WDT_DRV_VERSION NDS_DRIVER_VERSION_MAJOR_MINOR(2,9)
#if (!RTE_WDT)
#error "WDT not enabled in RTE_Device.h!"
#endif
// Driver Version
static const NDS_DRIVER_VERSION... |
/*
* Copyright (c) 2007, <NAME>, <NAME>, <NAME>,
* <NAME>.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* ... |
#include <stdio.h>
#include "dist/wasmer-build/src/wasmer-runtime-c-api/lib/runtime-c-api/wasmer.h"
#include <assert.h>
#include <string.h>
// Function to print the most recent error string from Wasmer if we have them
void print_wasmer_error()
{
int error_len = wasmer_last_error_length();
printf("Error len: `%d`\n... |
/*
* Copyright 2011-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
void add_contact();
void delete_contact();
void edit_contact();
void search_contact();
void display_contacts();
void sorting();
void counter_assignment();
struct info
{
char FirstName[100];
char LastName[30];
char PhoneNumber[20];
cha... |
typedef unsigned int uint;
typedef _Bool bool;
static uint ini(uint a) { return !a; }
static bool bni(uint a) { return !a; }
static uint ioii(uint a, uint b) { return a || b; }
static uint iaii(uint a, uint b) { return a && b; }
static bool boii(uint a, uint b) { return a || b; }
static bool baii(uint a, uint ... |
#include "zygotew.h"
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <android/log.h>
#define LOG_TAG "Zygote watchdog"
#define ZYGOTE_SYSCALL_TRACE_FILE "/data/local/tmp/zygote_strace.txt"
#define WHITELIST_FILE "/data/local/tmp/whitelist.txt"
#define LOGI(...) ((void)__an... |
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include "ahb.h"
#include "ast.h"
#include "bits.h"
#include "log.h"
#include "soc.h"
#include "trace.h"
#define AHBC_BUF_LEN (64 * 1024)
#define R_AHBC_BCR_CSR 0x40
#define AHBC... |
/*
LCD4Bit v0.1 16/Oct/2006 neillzero http://abstractplain.net
What is this?
An arduino library for comms with HD44780-compatible LCD, in 4-bit mode (saves pins)
Sources:
- The original "LiquidCrystal" 8-bit library and tutorial
http://www.arduino.cc/en/uploads/Tutorial/LiquidCrystal.zip
http://www.arduino.cc... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <3ds.h>
#include "checksum.h"
void *buffer;
int size = 1024 * 128;
int cursor = 0;
int dumpNVRAMbin()
{
Result res = 0;
FILE *out = fopen("/nvram.bin", "wb");
if (out == NULL)
{
printf("Error opening nvram.bin\n");
return 1;
}
res = fwrit... |
/*
*
* Embedded System Architecture
* Copyright (c) 2018 Packt
*
* Author: <NAME> <<EMAIL>>
*
* MIT License
* 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, incl... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
#define PARROT_IN_EXTENSION
#include "parrot/parrot.h"
#include "parrot/extend.h"
#include "sixmodelobject.h"
#include "repr_registry.h"
#include "knowhow_bootstrapper.h"
#include "serialization_context.h"
/* Cached type IDs. */
static INTVAL stable_id = 0;
static INTVAL smo_id = 0;
static INTVAL sc_id = 0;
/*... |
#include "include.h"
#include "common.h"
#include "rwnx_config.h"
#include "app.h"
#if (NX_POWERSAVE)
#include "ps.h"
#endif //(NX_POWERSAVE)
#include "sa_ap.h"
#include "sa_station.h"
#include "main_none.h"
#include "sm.h"
#include "sys_rtos.h"
#include "rtos_pub.h"
#include "error.h"
#include "wlan_ui_pub.h"
#inc... |
#include <errno.h>
#include <fcntl.h>
#include <mqueue.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "util.h"
typedef struct client
{
int client_ID;
int client_q... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define MAX 100
struct map {
unsigned m_size;
char* m_addr;
struct map *next, *prior;
};
struct process {
unsigned id;
char* m_addr;
unsigned m_size;
};
struct map *coremap;
struct map *pointer;
struct process p_manager[MAX];
int count_process = 0;
... |
/* $OpenBSD: sockaddr.c,v 1.3 2011/03/27 17:39:17 eric Exp $ */
/*
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* 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 co... |
/* ----------------------------------------------------------------------
MR-MPI = MapReduce-MPI library
http://www.cs.sandia.gov/~sjplimp/mapreduce.html
<NAME>, <EMAIL>, Sandia National Laboratories
Copyright (2009) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporat... |
/*
PSoc5 (CY8CKIT-059 development board) PPI module on the cheap
Based on blog post by dirktheeng
http://www.buildlog.net/blog/2011/12/getting-more-power-and-cutting-accuracy-out-of-your-home-built-laser-system/
NOTE: the solution is NOT tested in a machine, it is just a part of learning PSoC coding... |
/*
* Copyright 2011, Marvell Semiconductor Inc.
* <NAME> <<EMAIL>>
*
* Copyright 2017 Intel Corporation
*
* Secure Digital (SD) Host Controller interface DMA support code
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* publis... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2018-2020, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "config_power_domain.h"
#include "config_ppu_v0.h"
#include "synquacer_core.h"
#include <mod_power_domain.h>
#include <mod_system_power.h>
#include <fwk_e... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file RCC/RCC_CRS_Synchronization_Polling/Src/main.c
* @author MCD Application Team
* @brief This example describes how to use the RCC HAL API to configure the
* system clock (SYSCL... |
/* $OpenBSD: hello.c,v 1.12 2011/03/12 01:57:13 claudio Exp $ */
/*
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* 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 c... |
/* SCTP kernel Implementation
* (C) Copyright IBM Corp. 2004
* Copyright (c) 1999-2001 Motorola, Inc.
*
* The SCTP implementation 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 (... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int iterations [5];
double f_example_1 (double x) {
return (x - 2) * (x + 3);
}
double f_example_2 (double x) {
return pow (2.718281828, x);
}
double f_example_3 (double x) {
return sin(x);
}
double f_example_1_diff (double x) {... |
//
// tracking process
//
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
typedef struct _pre_data{ // infer data from python
int n;
int uid;
int cls;
float score;
float x, y; // box center position;
float area;
uint8_t Y;
int8_t Cb, Cr;
} pre_data_t;... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <OpenCL/opencl.h>
// #include <omp.h>
//Student ID: 21804416
//Name: <NAME>
//Where use openmp speed up:
//Here we have four tasks using openmp to speed up
//1. use openmp to sort all columns
//2. use openmp to generate blocks
//3. The key point her... |
#include <php.h>
#include <Zend/zend_exceptions.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include "shmt.h"
/* ==================================================================================================== */
struct _shmtHead shmtCreateHeader(uint32_t size)
{
struct _shmtHead shmtHead... |
#include <linux/printk.h> /* pr_err, printk, etc */
#include <linux/delay.h> /* udelay, etc. */
#include <linux/kthread.h>
#include <linux/sched/clock.h>
#include "fusb3601_global.h" /* Chip structure */
#include "platform_helpers.h" /* Implementation details */
#include "../core/plat... |
#include "global.h"
#include <string.h>
#include "ctlra.h"
#include "devices/ni_kontrol_d2.h"
/* for drawing graphics to screen */
#include <cairo/cairo.h>
static cairo_surface_t *surface = 0;
static cairo_t *cr = 0;
#define WIDTH 480
#define HEIGHT 272
int32_t d2_screen_redraw_cb(struct ctlra_dev_t *dev, uint... |
/******************************************************************************
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
*
* 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... |
#include <stdio.h>
#include <stdlib.h>
#define WMAX 55
#define HMAX 55
#define W_BY_H_MAX 27
int W,H;
int *good[HMAX+1][WMAX+1];
int mine[HMAX][WMAX];
int neighbours[HMAX][WMAX];
int clicked[HMAX][WMAX];
int blankcount;
int blankfound;
int boardnum;
#define DBG_BRD 0
int min(int a, int b) { return a<b ? a : b... |
/* $Id$ */
/*
* Copyright (C) 2011-2011 Teluu Inc. (http://www.teluu.com)
*
* 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 late... |
#include "g728.h"
/*
* (c) Copyright 1990-2007 AT&T Intellectual Property.
* All rights reserved.
*
* NOTICE:
* This software source code ("Software"), and all of its derivations,
* is subject to the "ITU-T General Public License". It can be viewed
* in the distribution disk, or in the ITU-T Recommendation G.191... |
#include "petiga.h"
#define SQ(A) ((A)*(A))
typedef struct {
PetscReal m,lambda,kappa,NGr;
PetscReal S0,Sin,d0,penalty;
PetscBool phase_field;
} AppCtx;
PetscErrorCode L2Projection(IGAPoint p,PetscScalar *K,PetscScalar *F,void *ctx)
{
if (p->atboundary) return 0;
AppCtx *user = (AppCtx *)ctx;
PetscInt ... |
/*
Copyright (C) 1997-2001 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... |
#define DEBUG 1
#include <stdint.h>
#include "panic.h"
#include "object.h"
#include "regops.h"
#include "etimer.h"
#define REG__CAPTURED_LO 0x00
#define REG__CAPTURED_HI 0x04
#define REG__LOAD_LO 0x08
#define REG__LOAD_HI 0x0c
#define REG__EVENT_LO 0x10
#define REG__EVENT_HI... |
#include <stdio.h>
#include <fcntl.h> /* File Control Definitions */
#include <termios.h>/* POSIX Terminal Control Definitions*/
#include <unistd.h> /* UNIX Standard Definitions */
#include <string.h>
#include <stdlib.h>
#define MAX_BUFFER 10000
struct ClunetMsg {
unsigned char src_address;
... |
//mysql -u root -p
//pones contraseña
//08 codigo pregunta por la ip
//09 codigo de respuesta de la ip
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netpacket/packet.h>
#include <net/ethernet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <pthread.h>
unsigned char ... |
#include <fileioc.h>
#include <graphx.h>
#include <stdbool.h>
#include <stdint.h>
#include "defines.h"
#include "images.h"
#include "levels.h"
#include "player.h"
uint16_t tilemap_draw_width_px;
uint8_t tilemap_draw_height_px;
static void extract_level_data(tiles_t* in, uint8_t* out);
static void config_tilemap_glob... |
/*
* (C) Copyright 2001
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 Fo... |
/*
* Dynomite - A thin, distributed replication layer for multi non-distributed storages.
* Copyright (C) 2014 Netflix, 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
*
* ... |
/* ISC license. */
#include <errno.h>
#include <signal.h>
#include <regex.h>
#include <skalibs/uint16.h>
#include <skalibs/uint32.h>
#include <skalibs/bytestr.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/error.h>
#include <skalibs/strerr2.h>
#include <skalibs/buffer.h>
#include <skalibs/stralloc.h>
#include ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME>. "Chip" Pearson (aka CmdrZin)
*
* 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 limitati... |
#include "drally.h"
extern byte ___185a5ch[];
extern byte ___1a112ch__VESA101_ACTIVESCREEN_PTR[];
extern byte ___1866b8h[];
extern byte ___185ba9h[];
extern byte ___1a10e0h[];
extern byte ___185b58h[];
extern byte ___1a10cch[];
extern byte ___1a1e68h[];
extern byte ___1a10f4h[];
void ___12e78h_cdecl(dword, d... |
/****************************************************************************************/
/* PalOptimize */
/* */
/* Author: <NAME> ... |
/*
libfat.c
Simple functionality for startup, mounting and unmounting of FAT-based devices.
Copyright (c) 2006 <NAME>" Chisholm
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 ... |
/* Automatic switching between software and hardware IEEE 128-bit
floating-point emulation for PowerPC.
Copyright (C) 2016-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> (<EMAIL>)
Code is based on the main soft-fp library written by:
<NAME> (<EMAIL>) a... |
/* multifit_nlinear/svd.c
*
* Copyright (C) 2016 <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.
*
... |
/*
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source c... |
/*
* SAMD21_GCCInterrupt_Proj.c
*
* Created: 18.12.2018 15:27:49
* Author : User
*/
#include "sam.h"
typedef enum
{
INTERNAL_SRC = 0,
EXTERNAL_8M = 1,
EXTERNAL_32K = 2,
} TIMER_typedef;
/***** SPI DEFINITIONS *****/
#define SPI_CLK_FREQ 8000000
#define SPI_BAUD 50000
#define GPIO_GROUP_SS 0 // PORT ... |
// Copyright 2008, <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE.md file.
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <ctype.h>
#include <string.h>
/* Helper macros */
#define FUNC_PRINT_RETU... |
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/sta... |
/*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aXe_grism.h"
#include "aXe_utils.h"
#include "spc_sex.h"
#include "spc_utils.h"
#include "spc_CD.h"
#ifndef AXE_IMAGE_PATH
#define AXE_IMAGE_PATH "AXE_IMAGE_PATH"
#endif
#ifndef AXE_OUTPUT_PATH
#define AXE_OUTPUT_PATH "AXE_OUTPUT_PATH"
#e... |
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* Openvision retains the copyright to derivative works of
* this source code. Do *NOT* create a derivative of this
* source cod... |
#include "uriparse.h"
// placeholder for an empty string
char* empty = "";
#define strmalloc(length) ( \
malloc(sizeof(char*) * (length+1)) \
)
struct t_uri uriparse_create(char* uri) {
struct t_uri uri_parsed = {uri, empty, empty, empty, empty, empty, {-1, -1, -1, -1, -1, -1, -1}};
// FIXME: if not enough parame... |
#define _GNU_SOURCE
#include "check_confuse.h"
#include <string.h>
#include <sys/types.h>
static cfg_t *cfg = 0;
#define ACTION_NONE 0
#define ACTION_RUN 1
#define ACTION_WALK 2
#define ACTION_CRAWL 3
#define ACTION_JUMP 4
static int parse_action(cfg_t *cfg, cfg_opt_t *opt, const char *value, void *result)
{
if (st... |
/*
* Copyright 2021 The UAPKI Project Authors.
* Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
*
* 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... |
/*
* Copyright (c) 2014, 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 copyright
* n... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zlib.h>
#include <errno.h>
#include <getopt.h>
#include <pcre.h>
#include "global.h"
#include "pullseq.h"
#include "pull_by_name.h"
#include "pull_by_size.h"
#include "pull_by_re.h"
extern int QUALITY_SCORE;
extern int verbose_flag;
void show_usage... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.