text stringlengths 3.12k 18.7k |
|---|
#pragma once
enum
{
TELEM_OFF = 0,
TELEM_USART1 = 1,
TELEM_USART2 = 2,
TELEM_USART3 = 3,
TELEM_USART4 = 4,
TELEM_USART5 = 5,
TELEM_USART6 = 6,
TELEM_ACTUATOR1 = 7,
TELEM_ACTUATOR2 = 8,
TELEM_ACTUATOR3 = 9,
TELEM_ACTUATOR4 = 10,
TELEM_ACTUATOR5 = 1... |
/*!
\file
\brief A simple frequent itemset discovery program to test GKlib's routines
\date 6/12/2008
\author George
\version \verbatim $Id: gkgraph.c 11408 2012-01-25 15:05:58Z karypis $ \endverbatim
*/
#include <GKlib.h>
/*************************************************************************/
/*! Data structu... |
/*
* hostapd / AP table
* Copyright (c) 2002-2009, <NAME> <<EMAIL>>
* Copyright (c) 2003-2004, Instant802 Networks, Inc.
* Copyright (c) 2006, Devicescape Software, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#incl... |
/* mdb_stat.c - memory-mapped database status tool */
/*
* Copyright 2011-2013 <NAME>, Symas Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of this license is availa... |
/*
* Disk Array driver for Compaq SMART2 Controllers
* Copyright 1998 Compaq Computer Corporation
*
* 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 L... |
#include "live.h"
struct bb *bb_init(struct ir_stmt *s, struct ir_stmt **next)
{
struct bb *blk = malloc(sizeof(struct bb));
blk->succ = NULL, blk->pred = NULL;
blk->nsucc = 0, blk->npred = 0;
blk->use = NULL, blk->def = NULL;
blk->nuse = 0, blk->ndef = 0;
blk->graph = NULL;
blk->nvert = 0;
blk->in = NULL,... |
/****************************************************************************
*
* Copyright 2020 Samsung Electronics 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... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdint.h>
#include "util_image_tga.h"
#ifndef UNUSED
#define UNUSED(x) ((void)x)
#endif
typedef enum {
tga_type_null = 0,
t... |
/******************************************************************************
* @file main.c
* @version V3.00
* $Revision: 2 $
* $Date: 16/10/25 4:29p $
* @brief Show how to read/program embedded flash by ISP function.
* @note
* Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
*... |
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <thread.h>
#include <cursor.h>
#include <mouse.h>
#include <keyboard.h>
#include <frame.h>
#include <fcall.h>
#include <plumb.h>
#include <libsec.h>
#include "dat.h"
#include "fns.h"
static Point prevmouse;
static Window *mousew;
Range
range(int q0, int q1)... |
/**
* @file idkAM571x_ethernet_config.c
*
* @brief
* This file contains the ICSS EMAC PHY configurations for idkAM571x board
*
* Board_icssEthConfig: This API configures 10/100 PHYs connected to two
* ICSS ports. Several configurations are needed for normal operation of
* the ICSS Ether... |
/*
CODE for likelihood based cut calculation that preserves long reads and operates on fragments rather than edges
code first implemented 03/02/15 | likelihood based model for initializing two shores of the cut (startnode... secondnode)
##for each read store 4 floats P(R | H), P(R | complement(H)) and P(R | H_new),... |
/*
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* Derived from driver/rtc/rtc-au1xxx.c
*
* 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
* o... |
#include "shell.h"
#include "terminal.h"
#include "time.h"
#include "keyboard.h"
#include <stddef.h>
#include <stdbool.h>
#include "kmalloc.h"
#include "printf.h"
#include "list.h"
#include "kernel.h"
#define NBCOMMANDES 8
//paramètres obligatoire pour une fonction shell donc inutilisé si elle ne prend pas d'arguments
... |
// X-WING PROCESSING FOR SUDOKU. ***************
/*
//FUNCTION DECLARATIONS. **************************
void xWingRow (void);
void xWingColumn (void);
*/
//xWingRow Processing. *********************************
void xWingRow (void)
{
int x, y, z, yy, yyy, xx, xxx;
int sumTable[9][2];
int q... |
/*
* Copyright (C) 2003 <NAME> <<EMAIL>>
*
* This file is part of MPlayer.
*
* MPlayer 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 v... |
/*
* $PIP_license: <Simplified BSD License>
* 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 follow... |
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <openssl/evp.h>
#include "chimera.h"
#include "log.h"
#include <string.h>
#include <sys/types.h>
#include <signal.h>
#include "dtime.h"
#include <errno.h>
#define USAGE "bighost [ -j bootstrap:port ] port key"
#define OPTSTR "j:"
#define DEBUG 0
#d... |
#include "clapack.h"
/* Table of constant values */
static integer c__1 = 1;
static real c_b22 = 1.f;
static real c_b23 = 0.f;
/* Subroutine */ int slaed3_(integer *k, integer *n, integer *n1, real *d__,
real *q, integer *ldq, real *rho, real *dlamda, real *q2, integer *
indx, integer *ctot, real *w, real *s, int... |
#include <stdio.h>
#include <stdlib.h>
#include <vic411_vicNl.h>
static char vcid[] = "$Id: vic411_read_veglib.c,v 4.2.2.3 2009/10/01 21:12:16 vicadmin Exp $";
vic411_veg_lib_struct *vic411_read_veglib(FILE *veglib, int *Ntype)
/**********************************************************************
vic411_read_vegl... |
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... |
/* Library includes. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* FreeRTOS includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "stm32f4xx.h"
//global space for some variable
char usr_msg[250]={0};
TaskHandle_t xTaskHandle1=NULL;
TaskHandle_t xTaskHandle2=NULL;
//fun... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/spi_device.h"
#include "spi_device_regs.h" // Generated.
#include "sw/device/lib/common.h"
#define SPI_DEVICE0_BASE_ADDR 0x40020000
#define S... |
/*
* Copyright (C) 2012 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; either version 2 of the License, or
* (at your option) any later version.... |
/*
* pps-gpio.c -- PPS client driver using GPIO
*
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publi... |
/*
* Copyright (c) 2008-2010 Secure Endpoints 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,
* modi... |
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copi... |
/* author <NAME> <<EMAIL>>
copyright 2009-2010 Basho Technologies
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... |
// UDP output.
// Follows the protocol of CalcProgrammer1/KeyboardVisualizer's LED strip code.
// Quite a big mess. It works, however.
//
// Copyright (c) 2019, Adrian "vifino" Pistol <<EMAIL>>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby grante... |
#include <fcgi_stdio.h>
#include <curl/curl.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/dir.h>
#include "lib/paranoia/paranoia.h"
#include "cfg.h"
const char* css =
"#page{"
"text-align:center"
"}"
"#path{"
"width:780px;"
"text-align:left;... |
/*
* Copyright 1997, Regents of the University of Minnesota
*
* mfm2.c
*
* This file contains code that implements the edge-based FM refinement
*
* Started 7/23/97
* George
*
* $Id: mfm2.c,v 1.2 1998/11/30 14:50:44 karypis Exp $
*/
#include "metis.h"
/******************************************************... |
#include "header.h"
struct sockaddr_in myaddr, remaddr;
int fd, i, j, slen=sizeof(remaddr);
char buf[BUFLEN]; /* message buffer */
int recvlen; /* # bytes in acknowledgement message */
char *server ; /* change this to use a different server */
unsigned short clientPort = 12345 ;
unsigned short serverPort = SERVICE_PO... |
/*
* sh-i18n--envsubst.c - a stripped-down version of gettext's envsubst(1)
*
* Copyright (C) 2010 <NAME>
*
* This is a modified version of
* 67d0871a8c:gettext-runtime/src/envsubst.c from the gettext.git
* repository. It has been stripped down to only implement the
* envsubst(1) features that we need in the gi... |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
*... |
/*
* usbfix.c
*
* Created by Slice on 21.09.11.
*
* based on works by mackerintel 2008, orByte 2006, Signal64, THeKiNG
*/
#include "Platform.h"
#ifndef DEBUG_USB
#ifndef DEBUG_ALL
#define DEBUG_USB -1
#else
#define DEBUG_USB DEBUG_ALL
#endif
#endif
#define DBG(...) DebugLog(DEBUG_USB, __VA_ARGS__)
#define ... |
#include <getopt.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <pwd.h>
#include <unistd.h>
#include <sys/select.h>
#include <sys/time.h>
#include <errno.h>
#include <libpq-fe.h>
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif
#define EXI... |
/*
* Backlight driver for Marvell Semiconductor 88PM8606
*
* Copyright (C) 2009 Marvell International Ltd.
* <NAME> <<EMAIL>>
*
* 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.
... |
/*
* Copyright (c) 2018 <NAME>
* https://github.com/iotaledger/iota_common
*
* Refer to the LICENSE file for licensing information
*/
#include <stdio.h>
#include <unity/unity.h>
#include "common/trinary/flex_trit.h"
#if defined(FLEX_TRIT_ENCODING_1_TRIT_PER_BYTE)
#define TRITS_IN -1, 0, 1, 1, 0, 1, 1, 0, -1, -1... |
/*
Can be compiled with the following command:
gcc gemtek-gen-dict.c -lcrypto -o gemtek-gen-dict
Purpose of this program is to generate a dictionary with default
wifi passwords of some Gemtek routers (tested on WVRTM-127ACN
distributet in Italy by Linkem).
The algorithm implemented on this program is... |
/** @file
This function deal with the legacy boot option, it create, delete
and manage the legacy boot option, all legacy boot option is getting from
the legacy BBS table.
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and ma... |
/* Copyright 2016, <NAME>
* Copyright 2016, <NAME>.
* All rights reserved.
*
* This file is part sAPI library for microcontrollers.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sour... |
/*-------------------------------------------------------------------
* UW Coursera Spring 2013 Lab 5 Starter code:
* single doubly-linked free block list with LIFO policy
* with support for coalescing adjacent free blocks
*
* Terminology:
* o We will implement an explicit free list allocator
* o ... |
#include "rib.h"
#include "basics.h"
#include "subcomm.h"
#include "migrate.h"
#include "mesh_geom.h"
static point center_of_mass(unsigned n, point o[])
{
point com;
unsigned i;
unsigned long tn;
com = point_zero;
for (i = 0; i < n; ++i)
com = point_add(com, o[i]);
mpi_add_doubles(comm_mpi(), point_arr... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2006-2007 PA Semi, Inc
*
* SMBus host driver for PA Semi PWRficient
*/
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/sched.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2013 <NAME> <<EMAIL>>
* Copyright (c) 2013 <NAME> <<EMAIL>>
* Copyright (c) 2013 <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
... |
#include <zephyr.h>
#include <bsd.h>
#include <logging/log.h>
#include <dfu/mcuboot.h>
#include <dfu/dfu_target.h>
#include <misc/reboot.h>
#include <modem_info.h>
#include <net/bsdlib.h>
#include <net/lwm2m.h>
#include <stdio.h>
#include "fota.h"
LOG_MODULE_REGISTER(app_fota, CONFIG_APP_LOG_LEVEL);
#include "pm_con... |
/*
* Copyright 1996-2020 Cyberbotics 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 <stdio.h>
#include <stdlib.h>
#include <glob.h>
#include <syslog.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "medialib.h"
#include "mytbf.h"
#include "../include/proto.h"
#include "server_conf.h"
#define PATH_SIZE 102... |
#include "common.h"
#include <errno.h>
#include <dirent.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
#include <sys/socket.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
#include <sys/stat.h>
#include "config.h"... |
/*
* Copyright (c) 2012, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and t... |
/**
* \file ati_pcigart.c
* ATI PCI GART support
*
* \author <NAME> <<EMAIL>>
*/
/*
* Created: Wed Dec 13 21:52:19 2000 by <EMAIL>
*
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of t... |
#include "timer.h"
#include "process.h"
#include "scheduler.h"
//extern circular_queue rq_proc;
//circular_queue dq_proc;
//circular_queue fq_proc;
extern scheduler sche_proc;
void core_timer_access_by_el0(){
unsigned long tmp;
asm volatile("mrs %0, cntkctl_el1" : "=r"(tmp));
tmp |= 1;
asm volatile("msr cntkctl_... |
/*
* Ad-hoc Tcode9 virtual machine
* <NAME>, 2017, CC0 license
* https://creativecommons.org/publicdomain/zero/1.0/
*
* Running at about 1/13th of the speed of native
* T3X9 output when compiled with clang -O2.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
... |
/*
* Copyright (c) 2014, <NAME> <<EMAIL>>.
* Copyright (c) 2015-2016, <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:
*
* * Redistributions of source code must retain t... |
/*
Copyright (C) 2006, 2008-2012
<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 3 of the License, or
(at your option) any later version.
This progra... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <complex.h>
#include <fftw3.h>
#include "seis_data.h"
#include "gauss_conv.h"
#include "traveltime.h"
void cross_correlation_fft(double *x, int Nx, double *y, int Ny, double *h)
{
/* h should be pre allocated to have a length of at least Nx+Ny-... |
/* C standard library headers */
#include <limits.h>
#include <stdio.h>
/* PSP Common headers */
#include "../common/output.h"
/* PSP Slave headers */
#include "options.h"
/* functions forward declarations */
static int custom_option_checks(struct option_descriptor *);
/* parse_command_line */
int parse_command_lin... |
/*------------------------------------------------------------------------
ADUC841.H
Header file for Analog Devices ADuC841 controller.
Rev. 3.0 02nd July 2007
Copyright (c) 1999 - 2007 Keil - An ARM Company
All rights reserved.
------------------------------------------------------------------------*/
... |
/* license: MIT license
* Copyright (C) 2021 <NAME> <<EMAIL>> */
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include "xmalloc.h"
#include "sllist.h"
#include "memcpy_sse2.h"
#include "util.h"
#include "io.h"
#include "http_header.h"
#include "http_msg.h"
#define DEBUG
#include "debug.h"
#define L... |
/*
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 may not use this f... |
/* Includes ------------------------------------------------------------------*/
#include "usart.h"
#include "ring_buffer.h"
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_rcc.h"
#include <stdio.h>
#include <string.h>
/* Private definitions -------------------------------------------------------*/
/* Definition ... |
/*
* Copyright (c) 2016 Intel Corporation.
*
* 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... |
/*
ChibiOS - Copyright (C) 2006..2015 <NAME>
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 appl... |
/* $OpenBSD: gpioiic.c,v 1.8 2008/11/24 12:12:12 mbalmer Exp $ */
/*
* Copyright (c) 2006 <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 ... |
/* 2006-06-23
* vim:set sw=4 sts=4 et:
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <errno.h>
/*
* Argument and Result are Stack. Each value is EOV terminated String.
* Number can be stored as String.
* The result which is not terminated by EOV is ... |
/*
* Copyright (c) 2007 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later vers... |
/*
* persona_mgr.c
* Tool to manage personas
*
* <NAME> <<EMAIL>>
*
*/
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <inttypes.h>
#include <libgen.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <mach/mach.h>
#in... |
/*
* free.c - free(1)
* procps-ng utility to display free memory information
*
* Copyright (C) 1992-2012
*
* Mostly new, <NAME> <<EMAIL>> 15 Apr 2011
* All new, <NAME> <<EMAIL>> 18 Nov 2002
* Original by <NAME> and <NAME> 14 Dec 1992
*
* Copyright 2003 <NAME>
* Copyright 2004 <NAME>
*
* This program is ... |
/*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-│
│vi: set et ft=c ts=8 tw=8 fenc=utf-8 :vi│
╚──────────────────────────────────────────────────────────────────────────────╝
│ ... |
/*
*
* Copyright 2015-2018 Espressif Systems (Shanghai) PTE 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 appli... |
/*
* qemu user cpu loop
*
* Copyright (c) 2003-2008 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later versio... |
/*
* EmbedVM - Embedded Virtual Machine for uC Applications
*
* Copyright (C) 2011 <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... |
/*
* MIT License
*
* Copyright (c) 2019-2021 Ecole Polytechnique Federale Lausanne (EPFL)
*
* 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 limit... |
/*-
* Copyright (c) 2011-2012 Semihalf.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of cond... |
/*
* http_client - HTTP client
* Copyright (c) 2009, <NAME> <<EMAIL>>
*
* 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.
*
* Alternatively, this software may be distributed und... |
/*
*
* sep_crypto.h - Crypto interface structures
*
* Copyright(c) 2009-2011 Intel Corporation. All rights reserved.
* Contributions(c) 2009-2010 Discretix. 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 a... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BAGS_COUNT 595
#define LINE_LENGTH 128
#define MAX_REFERENCES 10
struct Rule
{
char *color;
struct Rule **references;
int *counts;
};
struct Rule *createRules(char *lines[]);
char **getBags(char *lines[]);
void replace(char *text,... |
/* pckr02.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
static integer c__5 = 5;
/* $Procedure PCKR02 ( Read PCK record from segment, type 2 ) */
... |
// 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
// distributed un... |
/*
stm32flash - Open Source ST STM32 flash program for *nix
Copyright (C) 2010 <NAME> <<EMAIL>>
Copyright (C) 2010 <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 ... |
/*
* Copyright (c) 2014 genu<NAME> <<EMAIL>>
* Copyright (c) 2014 Fixup Software Ltd.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOF... |
/* -*- indent-tabs-mode: nil -*-
*
* Copyright 2011-2012 <NAME> <<EMAIL>>
*
* 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... |
#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... |
/*
* 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 this list
* of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce t... |
/*
IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
consideration of your agreement to the following terms, and your use, installation,
modification or redistribution of this Apple software constitutes acceptance of these
terms. If you do not agree with these terms, please ... |
/*
Part of the Raspberry-Pi Bare Metal Tutorials
https://www.valvers.com/rpi/bare-metal/
Copyright (c) 2013-2020, <NAME>
This software is licensed under the MIT License.
Please see the LICENSE file included with this software.
*/
#include <stdint.h>
#include <stdio.h>
#include "rpi-armtimer.h"
#... |
/*
simple MAVLink testsuite for C
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
#define MAVLINK_USE_CONVENIENCE_FUNCTIONS
#define MAVLINK_USE_MESSAGE_INFO
#define MAVLINK_COMM_NUM_BUFFERS 2
// this trick allows us to make mavlink_message_... |
#include <stddef.h>
#include <qla_config.h>
#if QLA_SSE_LEVEL >= 1
#include <xmmintrin.h>
#endif
#if QLA_SSE_LEVEL >= 2
#include <emmintrin.h>
#endif
#if QLA_SSE_LEVEL >= 3
#include <pmmintrin.h>
#endif
typedef __m128 v4sf;
typedef __m64 v2sf;
typedef union {
int i[4];
v4sf v;
} _ivu;
static const _ivu _sgn01 ... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "main.h"
#include "stars.h"
static char *effect1_name = "Colored Cubes";
/* state variables */
/*static int blend = 1;*/
static int frame_count = 0; /* number of frames drawn */
stati... |
#include "wire.h"
#include "circuit.h"
#include "renderer.h"
#include <stb_ds.h>
#include <assert.h>
#include <stdio.h>
enum {
STATE_START = 0,
STATE_WIRE_BEGIN,
STATE_WIRE_P1,
STATE_WIRE_P2,
STATE_WIRE_END,
STATE_MOVE_CP,
};
typedef struct {
V2i down_pos;
bool is_down;
} State_Sta... |
#include "nav/tui/overlay.h"
#include "nav/log.h"
#include "nav/tui/buffer.h"
#include "nav/tui/window.h"
#include "nav/util.h"
#define SZ_BUF 3
#define SZ_LBL 8
#define SZ_ARGS 8
#define SZ_LN 10
#define ST_ARG() (SZ_LBL)
#define ST_PRG() ((SZ_LBL)-1)
#define ST_LN(col) ((col)-((SZ_ARGS)-1)... |
/* Copyright (c) 2007-2009, Stanford University
* 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 ... |
/*
* Mesa 3-D graphics library
*
* Copyright 2018 Collabora
*
* Based on platform_surfaceless, which has:
*
* Copyright (c) 2014 The Chromium OS Authors.
* Copyright © 2011 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated doc... |
/*
Author: <NAME> (c) 1997
ESIGN digital signature scheme. See "Handbook of
Applied Cryptography" by <NAME> et al
Section 11.7.2 pages 473 - 474.
*/
#include <math.h>
#include <mem.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "lip.h"
#define DEBUG
#define LITTLE_ENDIA... |
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "sck.h"
/* Allocates a new SocketPayload_t data structure and returns a pointer to it. */
static SocketPayload_t * newSocketPayload(size_t numBytes) {
SocketPay... |
/*
Copyright 1994 The PL-J Project. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following... |
/*
* Copyright (c) 2013-2016 Intel Corporation. All rights reserved.
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, ava... |
// #################################################################################################
// # << NEORV32 - Demo for the Execute In Place (XIP) Module >> #
// # ********************************************************************************************* #
// # BSD 3-Clause... |
#include <stdlib.h>
#include <string.h>
#include <sys/sysctl.h>
#include <mach/mach_init.h>
#include <mach/mach_host.h>
#include <sys/mount.h>
#include "info.h"
#define LEN 20
#define MNT_IGNORE 0
/* Internal Declarations */
static size_t regetmntinfo(struct statfs **mntbufp,
long mntsize, const char **vfslist... |
/* Auxiliary vector support for GDB, the GNU debugger.
Copyright 2004 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 published by
the Free Software Foundation; either ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.