text stringlengths 5.8k 28.2k |
|---|
// tlib.c
#include <kernel.h>
/*
* sys_get_message:
* Get a message from the current thread and
* put it into the given buffer.
* The message has 6 standard elements.
*/
// Called by sci.c
// Service 111.
// It is called by the applications.
// It is also used for ipc.
void *sys_get_message ( unsig... |
/* Sitronix st2205 picframe decompression and compression code
*
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* This program 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 ... |
/*
* MIT License
*
* Copyright 2018 <NAME> for HAW Hamburg
*
* 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, cop... |
// Specialized configuration for FACE Safety Profiles
// See http://www.opengroup.org/face for more info about the Future Airborne
// Capability Environment
// Using this header:
// In ace/config.h, #define ACE_FACE_SAFETY_BASE or ACE_FACE_SAFETY_EXTENDED
// Optionally #define ACE_FACE_DEV
// ACE_FACE_DEV is a develop... |
/* Group tab */
#include "brut.h"
GtkWidget *groupconfirm; /* a box positioned right next to the treeview. */
GtkWidget *hint;
void remove_groupconfirm() {
if(GTK_IS_WIDGET(groupconfirm))
gtk_widget_destroy(groupconfirm);
gtk_container_add(GTK_CONTAINER (groupbox), gtk_label_new(l.ginfoclick));
gtk_widget_sh... |
/* GStreamer tag muxer base class
* Copyright (C) 2006 <NAME> <<EMAIL>>
* Copyright (C) 2006 <NAME> <tim centricular net>
* Copyright (C) 2006 <NAME> <<EMAIL>>
* Copyright (C) 2009 Pioneers of the Inevitable <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms ... |
/**
* Copyright 2016 <NAME> (<EMAIL>)
* 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 requir... |
/********************************************************
* Title : UDP
* Date : 2022/01/10
* Design : kingyo
********************************************************/
#include "udp.h"
// 4B5B convert table
const static uint8_t tbl_4b5b[16] = {0b11110, 0b01001, 0b10100, 0b10101, 0b01010, 0b01011, 0b01110, 0b0... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/*
** localfunc_mex_cvode.c
**
** Cvode-Mex implementation of BioNetGen model 'localfunc'.
**
** Code Adapted from templates provided by Mathworks and Sundials.
** QUESTIONS about the code generator? Email <EMAIL>
**
** Requires the CVODE libraries: sundials_cvode and sundials_nvecserial.
** https://... |
/*-------------------------------------------------------------------------
*
* mysql_vars.c
* routines to cache mysql session variables and generate
* 'set var' statements.
*
*
* Copyright (c) 2019-2021 ZettaDB inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* combined ... |
/*
* Copyright (c) 2012 the MansOS team. 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 conditio... |
/*************************************************************************\
***************************************************************************
** **
** ipfcursors **
** ... |
#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... |
//=================== VideoCD BinCue ==========================
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include "mp_msg.h"
#include "help_mp.h"
#include "stream.h"
#include "help_mp.h"
#inclu... |
/*******************************************************************************
# Linux-UVC streaming input-plugin for MJPG-streamer #
# Modified by <NAME> to be more generic, #
# with some functionality removed. #
#... |
/* lib/usual/config.h. Generated from config.h.in by configure. */
/* lib/usual/config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Define to enable assert checking */
/* #undef CASSERT */
/* Define to 1 if... |
#include "game.h"
#include <ultra64.h>
#include <nustd/math.h>
#include <os_host.h>
#include "definitions.h"
#include "math.h"
#include "static.h"
#include "controller.h"
#include "data/texture.h"
#include "fonts/font_ext.h"
#include "objects/billboards.h"
#include "objects/map_helper.h"
#include "objects/walls.h"
... |
#include "../include/node.h"
#include "../include/textutil.h"
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#define __REGISTER_STATIC_FUNCTION__(x) do {if (strcmp(func_name, #x) == 0) return (void (*)(void)) x;} while(0)
// 関数プロトタイプ/*{{{*/
static void delete_atmark_node(MIN_REGEX_NOD... |
/*
* Copyright (c) 2014 Intel, Inc. All rights reserved.
* Additional copyrights may follow
*
* $HEADER$
*/
#include "orcm_config.h"
#include "orcm/constants.h"
#include "orcm/types.h"
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#ifdef HAVE_STRING_H
#include <str... |
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "libmseed.h"
#include "min_max.h"
#include "standard_deviation.h"
#define SECONDSINDAY 86400
#define SECONDSINHOUR 3600
#define SECONDSINMINUTE 60
static nstime_t NSECS = 1000000000;
stat... |
/*
* mydev.c
*
* Created on: Jul 7, 2016
* Author: root
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define LOG_TAG "mydev"
#include "base/sl_log.h"
#include <sl/sl_service.h>
#include <sl/sl_chan... |
/* 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 its l... |
/*
* info.c
*
* information support functions
*
* Copyright (c) 2010-2011, PostgreSQL Global Development Group
* contrib/pg_upgrade/info.c
*/
#include "pg_upgrade.h"
#include "access/transam.h"
static void get_db_infos(ClusterInfo *cluster);
static void print_db_arr(ClusterInfo *cluster);
static void print_r... |
/* Server demo */
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <pthread.h>
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "socketinfo.h"
#include "utils.h"
// Funct... |
#define _GNU_SOURCE
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <sched.h>
#include <pthread.h>
#include <poll.h>
#include <assert.h>
#include <time.h>
#include <sys/mman.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/wait.h>
#include <sys/syscall.h>
#include <sys/ioctl.h>
#include... |
/*
* Copyright (c) 2013-2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must r... |
/*
* sdl.c
* sdl interfaces -- based on svga.c
*
* (C) 2001 <NAME> <<EMAIL>>
* Joystick code contributed by <NAME>
* Sound code added by Laguna
*
* Licensed under the GPLv2, or later.
*/
#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
#include "SFont.h"
#include "font8px.h"
#include "gnuboy.h"... |
#include "constants.h"
#include "game.h"
#include "random.h"
#include "states.h"
#include "terminal.h"
#include "timer.h"
#include <ncurses.h>
#include <stdlib.h>
int tb_color_from_block_type(int type) {
return type - 1;
}
tb_block* tb_spawn_block(int y, int x) {
int type = tb_random_number(1, TB_BLOCK_TYPES)... |
#include "config.h"
#include <assert.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdbool.h>
#include <unbound.h>
#include "dns.h"
#include "error.h"
#include "rs_worker.h"
#include "utils.h"
#include "uv.h"
/*
* Prototypes
*/
static void
hsk_rs_pending_log(hsk_rs_pending_t *pending, const char *fmt, ...);... |
/*
Planarity-Related Graph Algorithms Project
Copyright (c) 1997-2010, <NAME>
All rights reserved. Includes a reference implementation of the following:
* <NAME>. "Simplified O(n) Algorithms for Planar Graph Embedding,
Kuratowski Subgraph Isolation, and Related Problems". Ph.D. Dissertation,
University of Victoria... |
/*
* Copyright (C) 2008, 2009 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PR... |
/*---------------------------------------------------------------
* Programmer(s): <NAME> @ SMU
*---------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2019, Lawrence Livermore National Security
* and Southern Methodist University.
* All rights reserved.
*... |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... |
/*
MIT Copyright Notice
Copyright 2003 M.I.T.
Permission is hereby granted, without written agreement or royalty fee, to use,
copy, modify, and distribute this software and its documentation for any
purpose, provided that the above copyright notice and the following three
paragraphs appear in all copies of this ... |
/*
* This file is part of the libopencm3 project.
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
* Copyright (C) 2015 <NAME> <<EMAIL>>
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publishe... |
/*
* Floating-point operations.
*
* ==========================(LICENSE BEGIN)============================
*
* Copyright (c) 2017-2019 Falcon Project
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to dea... |
/***************************************************************************
* A program for libmseed packing tests.
*
* This file is part of the miniSEED Library.
*
* Copyright (c) 2020 <NAME>, IRIS Data Management Center
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... |
/**
* @file touch_display_main.c
* @author <NAME> <<EMAIL>>
* @date 09/30/2018
* @version 1.0
*
* @brief AlarmDecoder Touch Screen UI
*
* @copyright Copyright (C) 2018 Nu Tech Software Solutions, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... |
/*
* Copyright (c) 2010, Texas Instruments Incorporated
* 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... |
/*******************************************************************
APO semestral project by <NAME>
(C) Copyright 2017 - 2017 by <NAME>
e-mail: <EMAIL>
license: MIT
*******************************************************************/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#in... |
/*----------------------------------------------------------------------------*/
/* Hobbit backend script for disabling/enabling tests. */
/* */
/* Copyright (C) 2003-2009 <NAME> <<EMAIL>> */
/* ... |
// (c)2015 befinitiv
/*
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; ... |
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "k-means.h"
#include "heap.h"
cluster_centroid_data *create_cluster_centroid_data(float data) {
cluster_centroid_data *new_ccd = malloc(sizeof(cluster_centroid_data));
new_ccd->tf_idf = data;
new_ccd->standard_... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
// Copyright 2018 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 "hog.h"
#include "boot_descriptors.h"
#include <stdlib.h>
#include <string.h>
#include <ddk/protocol/bt-gatt-svc-lib.h>
#include <zircon/assert.... |
/*
* A version of the "short" driver which drives a parallel printer directly,
* with a lot of simplifying assumptions.
*
* Copyright (C) 2001 <NAME> and <NAME>
* Copyright (C) 2001 O'Reilly & Associates
*
* The source code in this file can be freely used, adapted,
* and redistributed in source or binary form, ... |
/* * Copyright 1997, Regents of the University of Minnesota
*
* mdiffusion.c
*
* This file contains code that performs mc-diffusion
*
* Started 9/16/99
* George
*
* $Id: mdiffusion.c,v 1.2 2003/07/21 17:18:50 karypis Exp $
*/
#include <parmetislib.h>
#define PE -1
/*****************************************... |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \___... |
// SPDX-License-Identifier: GPL-2.0-only
/**
* Copyright (C) 2020 Microchip
*
* Author: <NAME> <<EMAIL>>
*/
#include <linux/clk.h>
#include <linux/counter.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_d... |
//****************************************************************************************************
//Author: <NAME>
// <NAME>
//Description: Derived from zhiyoong_Pblr.c and Tstack_ondemand_temp_radio.c
// Moving towards Mouse Implantation
// Revision 1.... |
#include "test_lazy_alloc.h"
size_t mem_available_normal[max_phase];
size_t mem_available_ex[max_phase];
sem_t start_sem;
sem_t end_sem;
pthread_t threads[MAX_NR_THREADS];
int num_threads = 0;
int hmp_test_done = 0;
unsigned int mmap_flags[] = {
(MAP_EXMEM|MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE),
(MAP_EXMEM|MAP_P... |
/*
** mouse:~ppr/src/www/ppr-passwd.c
** Copyright 1995--2006, Trinity College Computing Center.
** Written by <NAME>.
**
** This file is part of PPR. You can redistribute it and modify it under the
** terms of the revised BSD licence (without the advertising clause) as
** described in the accompanying file LICENSE.tx... |
/*
Copyright 1996, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... |
/*
* 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... |
#include "ddsfile.h"
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
/* The magic of a DDS file */
#define DDS_MAGIC "DDS "
/* Texture contains alpha data; rgbalpha_bit_mask contains valid data. */
#define DDPF_ALPHAPIXELS 0x00000001
/* Used in some older DDS files for alpha channel... |
/*
* Copyright (c) 2021 <NAME>
* This file is part of DSiWifi and is distributed under the MIT license.
* See dsiwifi_license.txt for terms of use.
*/
#include "wifi_sdio.h"
#ifdef WIFI_SDIO_DEBUG
#include "wifi_debug.h"
#endif
#include "wifi_ndma.h"
#define WIFI_SDIO_NDMA
void wifi_sdio_controller_init(void* ... |
/*
* Specifies the type of each system call, in terms of whether followers (and
* the leader) should execute it.
*
* There are three types:
* - ALL: syscalls that are always executed by all variants (e.g., mmap,
* clone).
* - ONE: syscalls only executed by the leader (e.g. all I/O syscalls, unless
* ... |
/* genoLay - genome layout. Arranges chromosomes so that they
* tend to fit together nicely on a single page. */
#include "common.h"
#include "hash.h"
#include "jksql.h"
#include "vGfx.h"
#include "cytoBand.h"
#include "hCytoBand.h"
#include "genoLay.h"
static char const rcsid[] = "$Id: genoLay.c,v 1.12 2009/04/06 0... |
/*
* ext2.c
*
* Created on: Nov 6, 2010
* Author: cds
*/
#include <16bitreal.h>
#include "../../inttypes.h"
#include <disk/disk.h>
#include "../../mem.h"
#include "../../print.h"
#include "../../pt.h"
#include "ext2.h"
#include <alloc.h>
#define EXT2_ROOT_INODE 2
/*****************... |
/*
* Copyright 1996-2019 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 ... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 1998 - 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. Redistributions of source code mu... |
#include"tls.h"// include .h file
int initialized = 0; // flag to see if it is intialize
int page_size = page_sizeDef;// the page size thats assumed on bandit
int prt= 1; // boolean to decide if statements should print
int tls_create(unsigned int size){
if(prt)printf("\tin create\n");//
//VVV check for error con... |
// author: Tyler (at) Trezise (dot ca)
// (Refer to system diagram for port wiring)
// OR = Optical (phototransistor) at Reflectivity station
// EX = infrared sensor at Exit of belt
// HE = Hall Effect sensor (sorted bin position)
// WH = white
// BL = black
// AL = aluminum
// ST = steel
#include <stdlib.h>
#include ... |
/********************************************************************
ITU-T Draft Recommendation P.563
Version 1.0 - 23 March 2004
Version 1.1 - 04 October 2005
NOTICE
The Single Ended Assessment Model P.563 algorithm and the copyright therein
is the joint property of Psytechnics Limited, OPTICOM GmbH and Swi... |
/*
* MIT License
*
* Copyright (c) 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, m... |
/* hgNearTest - Test hgNear web page. */
#include "common.h"
#include "memalloc.h"
#include "linefile.h"
#include "hash.h"
#include "htmshell.h"
#include "portable.h"
#include "options.h"
#include "errCatch.h"
#include "ra.h"
#include "htmlPage.h"
#include "../hgNear/hgNear.h"
#include "hdb.h"
#include "qa.h"
static c... |
/*
* drivers/display/vout/vout.c
*
* Copyright (C) 2015 Amlogic, Inc. 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 you... |
#include <stdint.h>
#include "io.h"
#include "sound.h"
#define PSG_MAX 0x7f
#define PSG_MIN -0x80
#define SAMP_MAX 0x1ff
#define SAMP_MIN -0x200
//How much time a single sample takes (in seconds)
#define SAMPLE_TIME (1.0 / (SND_FREQUENCY))
static double duty_lut[4] = { 0.125, 0.250, 0.500, 0.750 };
static... |
/************************************************************************
* *
* fields.c - V1.6.1 (Jan 97) *
* *
* by <NAME> (<EMAIL>) *
* *
* Copyright <NAME>. Permission is granted to use and *
* copy provided that this copyright notice remains attached. *
* This code may not be sold.... |
/* By <NAME> <<EMAIL>>, 2013> */
#include <stdio.h>
#include <stdlib.h>
#include <capstone/capstone.h>
void print_string_hex(char *comment, unsigned char *str, size_t len);
static char *get_eflag_name(uint64_t flag)
{
switch(flag) {
default:
return NULL;
case X86_EFLAGS_UNDEFINED_OF:
return "UNDEF_OF";
... |
/* epidRecord.c */
/* epidRecord.c - Record Support Routines for epid records */
/*
* Original Author: <NAME>
* Current Author: <NAME>
* Date: 5-19-89
*
* Experimental Physics and Industrial Control System (EPICS)
*
* Copyright 1991, the Regents of the University of Califor... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <NAME>
*
* Objects for drawing i-star goals
* This class supports the whole goal specialization hierarchy
* Copyright (C) 2002 <NAME>
*
* Based on SADT box object
* Copyright (C) 2000, 2001 <NAME>
*
* Forked from Flowchart toolbox -- obje... |
/* crypto/rsa/rsa_gen.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
*... |
/* $OpenBSD: if_malovar.h,v 1.28 2010/08/30 20:33:18 deraadt Exp $ */
/*
* Copyright (c) 2007 <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 ... |
/* Copyright (c) 2007-2011 Massachusetts Institute of Technology
*
* 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, ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* Copyright (C) 2008 The Android Open Source 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:
* * Redistributions of source code must retain the above copyright
* notice, t... |
/*
* Copyright (C) 2012-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
#include "os_specific.h"
#include "os-apis/host.h"
static int IsHostArch64Bit()
{
OS_RETURN_CODE os_ret;
OS_HOST_CPU_ARCH_TYPE host_arch;
static int host_is_64bit = 1;
static int checked = 0;
if (1 == check... |
/**
* Copyright (c) 2018, <NAME>
*
* All rights reserved.
*
* @brief Red Pitaya Scpi server SCPI configuration and general command implementation
*
* @Author <NAME>
*
* (c) Red Pitaya http://www.redpitaya.com
*
* This part of code is written in C programming language.
* Please visit http://en.wikipedia.org... |
/*
* ttf2pk.c
*
* This file is part of the ttf2pk package.
*
* Copyright 1997-1999 by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h> /* for size_t */
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "ttf2tfm.h"
#inclu... |
//
// uvp.c
// CFD_Lab_test1
//
// Created by <NAME> on 06/05/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include <stdio.h>
#include <math.h>
#include "helper.h"
#include "init.h"
#include "uvp.h"
// declaring functions used for discretization
double du_dx( double uim1j, double uij, double dx);
dou... |
/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
Contributed by <NAME>
This file is part of the GNU Fortran runtime library (libgfortran).
Libgfortran 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; ... |
#include "SliderW.h"
#include "converters-xft.h"
#include "sig_xt.h"
#include "common_sigxt.h"
/****************************************************
* resourcen, todo! *
****************************************************/
#define TICKS_W 15
#define BAR_BORDER 1
#ifndef TF
# define... |
/* $OpenBSD: est.c,v 1.39 2016/03/06 22:41:24 naddy Exp $ */
/*
* Copyright (c) 2003 <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:
* 1. Redistributions of source code must retai... |
/*
* get_locks.c : RA get-locks API implementation
*
* ====================================================================
* 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
... |
#include <stdint.h>
#include "platform_assert.h"
//#include "platform_constants.h"
#include "platform_isr.h"
extern void UnhandledInterrupt( void );
extern void Reset_Handler ( void );
extern void vPortSVCHandler ( void );
extern void xPortPendSVHandler ( void );
extern void xPortSysTickHandler ( void... |
/*
* The MIT License (MIT)
*
* Copyright (c) [2015] [<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
* t... |
/*
* Author: <NAME>
* Description: A simple Unix shell based on BASH
*/
#define MAX_LINE_CHARS 1024
#define INTERACTIVE_PROMPT "cowrie> "
#define DEFAULT_PATH "/bin:/usr/bin"
#define WORD_SEPARATORS " \t\r\n"
#define DEFAULT_HISTORY_SHOWN 10
// These characters are always returned as single words
#define SPECIAL_C... |
/*
NAME: numerical.c
DESCRIPTION: For testing the collection of numerical
routines.
AUTHOR: <NAME>
VERSION: 2015-05-05
LICENSE: This is free and unencumbered software
released into the public domain.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "vec3.h"
#include "rgb.h"
#include "perlin.h"
#include "funcs.h"
#include "colours.h"
#define INF 10000
int width = 400, height = 400;
float tmin = 0.000001;
float tmax = 500.0;
float stepScale = 250.0;
float stepD... |
/*
* Extracted from "ex" API implementation
* http://lua-users.org/wiki/ExtensionProposal
* Copyright 2007 <NAME> < <EMAIL> >
*/
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/wait.h>
#include "lua.h"
#include "lualib.h"
#include ... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
/*******************************************************************************
*
* Copyright (c) 2019, snickerbockers <<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:
* * Redistr... |
// SPDX-License-Identifier: GPL-2.0+
/*
* mux.c
*
* (C) Copyright 2016
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* Based on:
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*/
#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mu... |
/*
* Copyright (C) 2018, Xilinx Inc - All rights reserved
* Xilinx SDAccel Media Accelerator API
*
* 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://www.apache.org/licenses/LIC... |
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "libmrt.h"
struct chunk get_updates(struct mrt *mrt, int inde... |
/*
* at.c -- AT command handler definitions
*
* Copyright (c) 2015-2017, Afero, Inc. All rights reserved.
*
* <NAME>, <NAME>, and <NAME>
*/
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <termios.h>
#include <unis... |
/* Copyright (c) 2015 <NAME>. All rights reserved.
* License: This code is licensed under a 3-clause BSD license. See
* the file named "LICENSE" for a full copy of the license.
*/
/** @file This program demonstrates how to load cylindrical and
* cubemap panorama photos (either in mono or stereo modes).
*
* @auth... |
/*
Copyright (c) 2012, Broadcom Europe Ltd
Copyright (c) 2021, Amazon.com, Inc. or its affiliates.
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 abo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.