text stringlengths 3.12k 18.7k |
|---|
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/* Copyright 2015 Freescale Semiconductor Inc.
* Copyright 2018-2019 NXP
*/
#include <linux/module.h>
#include <linux/debugfs.h>
#include "dpaa2-eth.h"
#include "dpaa2-eth-debugfs.h"
#define DPAA2_ETH_DBG_ROOT "dpaa2-eth"
static struct dentry *dpaa2_dbg_root;
... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 邓俊兴 (<NAME>)
* Email : <EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation t... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "mpi.h"
/*
extern double drand48();
*/
/* Pipeline version of the algorithm... */
/* we really need the velocities as well... */
typedef struct {
double x, y, z;
double mass;
} Particle;
/* We use leapfrog for the time i... |
/*-
* Copyright (c) 2001 <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 retain the above copyright
* notice, this list of conditions, ... |
#define INDIRECT_SOURCE 1
#define IGNOREUNMAP 6 /* number of unmap notifies to ignore while scanning existing clients */
#define DIV 15 /* number to divide the screen into grids */
#define DOUBLECLICK 250 /* time in miliseconds of a double click */
#define NAMEMAXLEN 1024 /* m... |
/**************************************************************************************************
* *
* This file is part of HPIPM. *
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
# include <io.h>
# define rindex(X,Y) strrchr(X,Y)
# define index(X,Y) strchr(X,Y)
#else
# include <sys/time.h>
# include <sys/resource.h>
# include <unistd.h>
# include <strings.h>
#endif
#define DEFINE_GLOBALS
#include "protos.h"
#include "regi... |
//receiver.c <Server>
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#define BUFSIZE 1400
typedef char ... |
/*
* Copyright 2012 The Luvit Authors. 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... |
/***************************************************************************
mhs_thread.c - description
-------------------
begin : 08.03.2012
copyright : (C) 2012 by MHS-Elektronik GmbH & Co. KG, Germany
author : <NA... |
// See LICENSE file for license details
#include <stdlib.h>
#include <unistd.h>
#include "vendor/encoding.h"
#include "vendor/platform.h"
#include "vendor/prci_driver.h"
#define rdmcycle(x) { \
uint32_t lo, hi, hi2; \
__asm__ __volatile__ ("1:\n\t" \
"csrr %0, mcycleh\n\t" ... |
// SPDX-License-Identifier: GPL-2.0
/*
* Zynq UltraScale+ MPSoC Divider support
*
* Copyright (C) 2016-2018 Xilinx
*
* Adjustable divider clock implementation
*/
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/slab.h>
#include "clk-zynqmp.h"
/*
* DOC: basic adjustable divider clock that... |
/*
* elfsign: ELF binary signature generation tool
*
* skape
* <EMAIL>
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "openssl/objects.h"
#include "openssl/rsa.h"
#include "openssl/err.h"
#include "openssl/x509.h"
#include "openssl/pem.h"
#include "openssl/bio.h"
#inc... |
#include "query_param.h"
#include "query_error.h"
#include "geo_index.h"
#include "numeric_filter.h"
#include "query_internal.h"
QueryParam *NewQueryParam(QueryParamType type) {
QueryParam *ret = rm_calloc(1, sizeof(*ret));
ret->type = type;
return ret;
}
QueryParam *NewGeoFilterQueryParam_WithParams(struct Que... |
#include "depthai-bootloader-shared/SBR.h"
#include "assert.h"
#include "stddef.h"
#include "string.h"
static uint32_t read_uint32_t(const void* buffer) {
if(buffer == NULL) return 0;
uint8_t* p = (uint8_t*)buffer;
uint32_t val = 0;
val = (p[0]) + (p[1] << 8) + (p[2] << 16) + (p[3] << 24);
return ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2017 The University of Tennessee a... |
/*
Copyright (c) 2002, <NAME>
Part of Radeon accelerant
Main init/uninit functions
*/
#include "GlobalData.h"
#include "generic.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <malloc.h>
#include "C... |
/**
* \file
* JIT trampoline code for Sparc
*
* Authors:
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
*
* (C) 2003 Ximian, Inc.
*/
#include <config.h>
#include <glib.h>
#include <mono/arch/sparc/sparc-codegen.h>
#include <mono/metadata/marshal.h>
#include <mono/metadata/tabledefs.h>
#include "mini.h"
#include ... |
/*********************************************************************
* Copyright 1993, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
* $Header: /upc/share/CVS/netcdf-3/nctest/slabs.c,v 1.13 2009/02/11 16:17:39 ed Exp $
***************************************************... |
/* a few routines from a vector/matrix library */
#include "matlib.h"
void xpose(float *indata, int iRsiz, float *outdata, int oRsiz, int Nrows, int Ncols){
/* not in-place matrix transpose */
/* INPUTS */
/* *indata = input data array */
/* iRsiz = offset to between rows of input data array */
/* oRsiz = offset to be... |
#include <alsa/asoundlib.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#define PCM_DEVICE "default"
static uint32_t pcm;
static uint32_t tmp;
static uint32_t rate = 44100; // hard assumption
static uint8_t channels = 1; // stero
static snd_pcm_t *pcm_handle;
static snd_pcm_hw_params_t *params;
static ... |
#include "DefMath.h"
#define PIX_SORT(a,b) { if ((a)>(b)) PIX_SWAP((a),(b)); }
#define PIX_SWAP(a,b) { elem_type temp=(a);(a)=(b);(b)=temp; }
/*----------------------------------------------------------------------------
* Function : opt_med3()
* In : pointer to array of 3 pixel values
* Out : a... |
/* Copyright ©2006-2010 <NAME> <<EMAIL> at Gmail>
* See LICENSE file for license details.
*/
#include "dat.h"
#include <limits.h>
#include "fns.h"
static void float_placeframe(Frame*);
void
float_attach(Area *a, Frame *f) {
f->client->floating = true;
f->r = f->floatr;
float_placeframe(f);
assert(a->sel != f)... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Advanced Micro Devices, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This ... |
/* $NetBSD: test_fx.c,v 1.1.1.2 2014/04/24 12:45:51 pettai Exp $ */
/*
* Copyright (c) 2009 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
/*
* rtsubstate.c - Audiality 2 realtime substate test
*
* This test runs a master realtime state with a substate that also runs
* a realtime driver. That is, two asynchronous realtime states sharing
* banks, programs, waves etc.
*
* NOTE: This test needs a driver/API that supports multiple opens
* or multiple... |
/*
* shell.c
*
* Copyright 2020 chehw <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This ... |
/*
* Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file.
*
* 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 lis... |
// SPDX-License-Identifier: GPL-2.0
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
******************************************************************************/
#include "odm_precomp.h"
/* This function is... |
//MIT License
//
//Copyright (c) 2020 Edinburgh Architecture and Systems (EASE) Lab @ University of Edinburgh
//
//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... |
/*
* Copyright (C) 2020 HAW Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup sys_uri_parser
* @{
*
* @file
* @brief A minimal, non-destructive URI parse... |
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
develop this 3D driver.
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 ... |
/* 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... |
/* pluck.c - elementary waveguide simulation of plucked strings - JOS 6/6/92 */
/* Note: The word "inline" below can be deleted if your compiler
does not support it. It is a nice GNU feature not in the ANSII C spec. */
#define SRATE 44100
#define DOUBLE_TO_SHORT(x) ((int)((x)*32768.0))
#import <libc.h>
#include ... |
/* Dump registers.
Copyright (C) 1999-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 1999.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published b... |
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "date.h"
#define ENTRY_SIZE 3 /* 3 bytes per value */
#define DAYS_PER_WEEK 7 /* Sunday, etc. */
#define WEEKS_PER_MONTH 6 /* Max. weeks in a month */
#define MONTHS_PER_LINE 3 /* Three months across */
#define MONTH_SPACE 3... |
#include <stdlib.h>
#include <event.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
#include <fcntl.h>
#include <getopt.h>
#include <arpa/inet.h>
#include <err.h>
#ifdef __linux__
#include <net/if.h>
#include <linux/if_tun.h>
#include <string.h>
#include <sys/i... |
/***************************************************************************//**
* @file
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
*********************************************************************... |
/*
* make sure _GNU_SOURCE is defined
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* we need O_DIRECT */
#endif
#include "network_backends.h"
#ifdef USE_LINUX_AIO_SENDFILE
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <netinet/in.h>
#in... |
/* funcs.h
* Declarations and prototypes of functions
* SRE, Fri Sep 3 09:19:50 1993
*
*/
#include <stdio.h>
#include "structs.h"
/*
* from align.c
*/
extern int Trace2ali(char *seq, struct trace_s *tr, int watsoncrick, struct align_s **ret_ali);
extern int Traces2Alignment(char **rseqs, SQINFO *sqinfo, stru... |
/* -*- mode: C; c-basic-offset: 4 -*- */
/* ex: set shiftwidth=4 tabstop=4 expandtab: */
/*
* Copyright (c) 2013, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
* Georgia Tech Humanoid Robotics Lab
* Under Direction of Prof. Mike Stilman <<EMAIL>>
*
*
* This file is pr... |
#include "milone.h"
struct FirstSecondTuple2_List;
struct First_List;
struct Second_List;
struct FirstListSecondListTuple2_;
struct Node_List;
struct Node_;
struct Node_List;
struct FirstSecondTuple2_ListFirstListSecondListTuple2_Fun1;
struct First_;
struct Second_;
struct FirstSecondTuple2_;
struct IntThir... |
/*
Software License Agreement (BSD License)
Copyright (c) 1997-2011, <NAME>, (LADSoft).
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following
conditions are met:
* Redi... |
#include "common.h"
void get_neighbours_1d_x(struct Options *opt, int i, int *n_i) {
int num_neighbours = 8;
n_i[0] = i - 1;
n_i[1] = i - 1;
n_i[2] = i - 1;
n_i[3] = i;
n_i[4] = i + 1;
n_i[5] = i + 1;
n_i[6] = i + 1;
n_i[7] = i;
if (opt->ineighbourtype == NEIGHBOUR_EXTENDED)
... |
/*
* annosbr.c -- prepend annotation to messages
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/tws.h>
#include <h/utils.h>
#include <fcntl.h>
#include <uti... |
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <time.h>
#include "json.h"
#include "printbuf.h"
static void do_benchmark(json_object *src1);
static const char *json_str1 =
"{"
" \"glossary\": {"
" \"title\": \"example glossary... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2020-21 Intel Corporation.
*/
#include "iosm_ipc_imem.h"
#include "iosm_ipc_protocol.h"
#include "iosm_ipc_protocol_ops.h"
#include "iosm_ipc_pm.h"
#include "iosm_ipc_task_queue.h"
int ipc_protocol_tq_msg_send(struct iosm_protocol *ipc_protocol,
en... |
/*******************************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2017 <NAME> and <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are ... |
/******************************************************************************
* Copyright (C) 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/***********************************************************************... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <getopt.h>
#include <libgen.h>
#include "calloc_errchk.h"
#include "io.h"
#define F_NAME_LEN 128
#define BUF_SIZE 4096
int readV... |
/*
* librd - Rapid Development C library
*
* Copyright (c) 2012-2013, <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 retain the above... |
#include <stdint.h>
#include <stdio.h>
#include "Driver_PINMUX_AND_PINPAD.h"
#include "Driver_GPIO.h"
#include "mipi_dsi_host.h"
#include "RTE_Components.h"
#include "Driver_CDC200.h"
#include "display.h"
#include "delay.h"
#include "image_processing.h"
#include CMSIS_device_header
extern ARM_DRIVER_GPIO Driver_GPIO4;... |
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ip.h>
#include <linux/in.h>
#include <linux/icmp.h>
#include <linux/tcp.h>
#include <linux/skbuff.h>
// ARP stuff, in case we go chasin' brownies.
#include <linux/if_arp.h>
#include <net/arp.h>
/*
<NAME>
Lab 7
Fall 2... |
/***************************************************************************//**
* @file main_single_low_current_xG21.c
* @brief Uses the internal IADC timer to trigger a single-ended conversion,
* which in turn triggers the LDMA to transfer the IADC measurement to memory,
* all while remaining in EM2. After NUM_SA... |
#define DELIM " \t\r\a"
#define PIPE_DELIM "|"
#define _GNU_SOURCE
#define PROMPT_COLOR "\033[36;1m"
#define COLOR "\033[33;0m"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <assert.h>
#include <signal.h>
#include <fcntl.h>
#include <linux/limits.h>
int co... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define SIZE 10000
#define V 50
#define INF 99999
char temp_username[100], temp_password[100];
int ch;
time_t t;
int count = 0;
int dist[V][V];
struct articles
{
char article_name[100];
float cost;
float discount;
int popularity;
};
... |
/*
fast_sqrt.c
Copyright (c) 2021, <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 of
conditions and the followin... |
/*
* --- Revised 3-Clause BSD License ---
* Copyright Semtech Corporation 2020. 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 ... |
#include "mupdf/fitz.h"
fz_text *
fz_new_text(fz_context *ctx)
{
fz_text *text = fz_malloc_struct(ctx, fz_text);
text->refs = 1;
return text;
}
fz_text *
fz_keep_text(fz_context *ctx, const fz_text *textc)
{
fz_text *text = (fz_text *)textc; /* Explicit cast away of const */
return fz_keep_imp(ctx, text, &text-... |
/*
* This file Copyright (C) 2008 <NAME> <<EMAIL>>
*
* This file is licensed by the GPL version 2. Works owned by the
* Transmission project are granted a special exemption to clause 2(b)
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned ... |
//
// main.c
// queens
//
// Created by <NAME> on 3/22/18.
// Copyright © 2018 mateusnbm. All rights reserved.
//
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#define N 8
#define INDIVIDUAL_SIZE 24
#define POPULATION_SIZE 100
#define MAXIMUM_CHILDS_PER_CYCLE 40
#define MUTATION_PROBABILITY 40
#define ... |
/* alt3data - extracts alt3 splicing data from intron database. */
#include "common.h"
#include "wormdna.h"
struct feature
{
struct feature *next;
char *chrom;
int start, end;
char strand;
char *orfName;
DNA *dna;
int alt3size;
int cdnaCount;
int shortCdnaCount;
};
int cmpF... |
/*
* $Id$
*
* Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2014, Professor <NAME>
* Copyright (c) 2010-2011, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
int mFilterArray[100]; //array for storing readings for the median filter during initial reading. ### USED FOR ALL SENSORS!! ###
struct SENSOR_STATIC_VALS{ // Declare "SENSOR_STATIC_VALS" struct type
int pin; //(2 bytes)
int hardMin; // lowest reading at calibration. //(2 bytes)
int hardMiddle; // start/end/mi... |
#include <stdbool.h>
#include "chunk.h"
#include "common.h"
#include "graphic/camera.h"
#include "graphic/gl.h"
#include "graphic/shader.h"
#include "graphic/texture.h"
#include "graphic/vertex.h"
#include "resource.h"
#include "util/rng.h"
#include "voxel.h"
#include "window.h"
#include <GLFW/glfw3.h>
static void c... |
const char COPYRIGHT[] =
"Copyright (c) 1999-2011 <NAME> (<EMAIL>)";
/*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of th... |
#include "ota_update.h"
#include "radio.h"
#include "spi.h"
#include "timer.h"
#include "main.h"
#include "status.h"
#include "radio_protocol.h"
// First page used for the temporary copy
#define MIRROR_PAGE (AT91C_IFLASH_NB_OF_PAGES / 2)
// Amount of data received so far
static uint32_t ota_data_len;
// If nonzero, ... |
/**
* Copyright (c) 2018 hgoel
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include <types.h>
#include <stdlib.h>
#include <string.h>
#include <cardinal/local_spinlock.h>
#include "SysVirtualMemory/vmem.h"
#include "SysPhysicalMemory/phys_mem.h"
#include "SysInte... |
/*************************************************************************************************************
Copyright 2015-2019, Silicon Laboratories, 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 Li... |
#define _POSIX_C_SOURCE 200809L
#include <libevdev/libevdev.h>
#include <linux/input-event-codes.h>
#include <string.h>
#include <strings.h>
#include <xkbcommon/xkbcommon.h>
#include <xkbcommon/xkbcommon-names.h>
#include <wlr/types/wlr_cursor.h>
#include "sway_commands.h"
#include "sway_config.h"
#include "sway_keyboa... |
#include "3dmath.h"
#include "mini3d.h"
#if defined(__GNUC__) || defined(__clang__)
#ifdef TARGET_PLAYDATE
#pragma GCC optimize ("O3")
#pragma GCC optimize ("-ffast-math")
#endif
#endif
#if !defined(MIN)
#define MIN(a, b) (((a)<(b))?(a):(b))
#endif
#if !defined(MAX)
#define MAX(a, b) (((a)>(b))?(a):(b))
#endif
#if ... |
/*
* wiiuse
*
* Written By:
* <NAME> < para >
* Email: < thepara (--AT--) g m a i l [--DOT--] com >
*
* Copyright 2006-2007
*
* This file is part of wiiuse.
*
* 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
* th... |
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2020 Facebook */
#include <stdio.h>
#include <errno.h>
#include <bpf/btf.h>
#include <bpf/libbpf.h>
#include "test_progs.h"
static const char * const btf_kind_str_mapping[] = {
[BTF_KIND_UNKN] = "UNKNOWN",
[BTF_KIND_INT] = "INT",
[BTF_KIND_PTR] = "PTR",
[BTF_... |
/*
* Copyright (c) 2019, 2020 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <error.h>
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#include "mfm_input.h"
#include "mfm_general.h"
/**
* Key and his code
*/
typedef struct
{
unsigned char code[8];
mfm_key key;
}... |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "aiot_state_api.h"
#include "aiot_sysdep_api.h"
#include "aiot_dynreg_api.h"
#include "aiot_mqtt_api.h"
#include "module_aiot.h"
#include "aiot_state_api.h"
#include "aiot_sysdep_api.h"
#include "aiot_mqtt_api.h"
#include "aiot_mqtt_upload_api.... |
/* 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... |
/*
Psychtoolbox3/Source/Common/SCREENLoadNormalizedGammaTable.c
AUTHORS:
<EMAIL> awi
<EMAIL> mk
PLATFORMS:
All.
HISTORY:
1/27/03 awi Created.
1/30/06 mk Improved online help text.
DESCRIPTION:
Interface to the operating systems hardware gamma-table functions.
TO DO:
*/
#i... |
#include <stdint.h>
#include <stdio.h>
#include <fcntl.h>
#ifndef _WIN32
#include <unistd.h>
#endif
/***********************************************************************************************************/
//Базовая реализация упаковки/распаковки файла по упрощённому алгоритму LZSS+RLE+RC32
/********************... |
/*
** task_adaptiveODR2.c
**
** task "fixation-target-target".c ... "
** standard fixation + 2-target tasks
** (e.g., overlap and memory saccades)
*
* Modified version of the adaptiveODR task to be more like the
* Triangles task from Glaze et al 2015
*/
#include "../toys.h"
#include "../task.h"
#include "../tas... |
/*
* Copyright (c) 2009 Intel Corporation
*
* 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 fol... |
/*
* (C) Copyright 2017-2020
* SPDX-License-Identifier: GPL-2.0+
*Allwinner Technology Co., Ltd. <www.allwinnertech.com>
*
*/
#include "spinand.h"
#include "spic.h"
#include "spinand_osal_boot0.h"
extern __s32 spi_nand_reset(__u32 spi_no, __u32 chip);
extern __s32 read_single_page(struct boot_spinand_physical_par... |
/*
Copyright (c) 2013, <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 the following disclai... |
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#include "pubnub_sync.h"
#include "core/pubnub_helper.h"
#include "core/pubnub_timers.h"
#include "core/pubnub_crypto.h"
#include "core/pubnub_json_parse.h"
#include <stdio.h>
#include <time.h>
#include <string.h>
static void generate_uuid(pubnub_t* pbp)... |
/*
* C Implementation: opts.c
*
* Option parser
*
* License: BSD-style license
* Copyright: <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <pthread.h>
#includ... |
/* hash.c: hash table support for functions and variables. */
/*
Functions and variables are cached in both internal and external
form for performance. Thus a variable which is never "dereferenced"
with a $ is passed on to rc's children untouched. This is not so
important for variables, but is a big win fo... |
/*
Institute for Formal Models and Verification (FMV),
<NAME> Linz, Austria
Copyright (c) 2006, <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 r... |
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* righ... |
/*
* 0BSD
*
* BSD Zero Clause License
*
* Copyright (c) 2019 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR... |
/*
* io_sock.c - SecureTransport sample I/O module, X sockets version
*/
#include "ioSockThr.h"
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <CoreServices/../Fra... |
/***************************************************************************//**
* @file app.c
* @brief Callbacks implementation and application specific code.
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b... |
//<NAME>: 24136956
//<NAME>: 28474741
/* TODO:
* Output Format Issues - Especially when a background processes outputs
* Test more thoroughly
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
//Array size values
#define MAX_CMD_LINE 80
#define MAX_ARGS 3
//Char. and Token values
... |
/*****************************************************************************\
** **
** FILE: setup.c **
** AUTHORS: Alexios **
**... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
#include "swc_usb.h"
USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface =
{
.Config =
{
.ControlInterfaceNumber = INTERFACE_ID_CDC_CCI,
.DataINEndpoint =
{
.Address = CDC_TX_EPADDR,
... |
/*
* hexdump.c
*
* Prints, as text, the content of a binary file to stdout,
* in both HEX and ASCII forms.
*
* Compile with:
* $ gcc -Ofast -o hexdump[.exe] hexdump.c
*
*
* Copyright 2019-2020 (C) <NAME>
*
* This file is in the public domain.
* Feel free to copy, modify or redistribute it!
*
*/
#inclu... |
#include "spimcore.h"
unsigned grabOnly(unsigned instruction, int begIndex, int endidx);
//WILL
/* ALU */
/* 10 Points */
void ALU(unsigned A,unsigned B,char ALUControl,unsigned *ALUresult,char *Zero)
{
if (ALUControl == 0b000) // add
*ALUresult = A + B;
else if (ALUControl == 0b001) // sub
... |
/*
* Copyright (C) 2007 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.