text stringlengths 3.12k 18.7k |
|---|
#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Função que imprime o caminho para a solução
void printPath(State *s) {
// Apontamos para a última ação tomada
ActionList *tempAction = s->lastAction;
// Criamos mais que o espaço necessário para qualquer solução
unsigned char action... |
#include "keyboard.h"
#include "drivers/ports.h"
#include "drivers/console.h"
#include "apps/shell.h"
#include "syscalls/syscalls.h"
#include <k/io.h>
#include <stdio.h>
#define KBD_DATA 0x60
#define KEY_MAP_SIZE 128
typedef char key_t;
// For strings
#define KEY_SPECIAL 0xE0
// Pressed //
// Special
... |
/*
* calculator.c:
* Communicate 4D systems display with Raspberry Pi and control the
* GPIO through the display
*
* <NAME>, August 2017
***********************************************************************
*/
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <... |
/****** Copyright Notice ***
*
* PIOK - Parallel I/O Kernels - VPIC-IO, VORPAL-IO, and GCRM-IO, Copyright
* (c) 2015, The Regents of the University of California, through Lawrence
* Berkeley National Laboratory (subject to receipt of any required
* approvals from the U.S. Dept. of Energy). All rights reserved.
*... |
#include "segment.h"
#include <asm/memory/segment_load_table.h>
#include <debug/assert.h>
#include <general/address.h>
#include <memory/frame_allocator.h>
#include <stddef.h>
#include "global_descriptor_table.h"
#include "task_state_segment.h"
#define application_segment_descriptor(Limit, Address, Attribute) ... |
#include <time.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <ncurses.h>
#define PLATYPUS_LENGTH 7
#define PLATYPUS_PATTERN "Oo....*"
#define NB_PLATYPUS 20
#define NB_COLORS 7
#define TIME_TO_SLEEP 100000
/*
TODO
Fix color bugs
Add custom colors
Ch... |
/* curtim.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__11 = 11;
/* $Procedure CURTIM (Current Time) */
/* Subroutine */ int curtim_(char *time, ftnlen time_l... |
///////////////////////////////////////////////////////////
// douglas.c //
// Contient les fonctions relatives à l'algorithme de //
// Douglas-Peucker //
///////////////////////////////////////////////////////////
#include "../inc/douglas.h"
//
// douglas
// ... |
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <sys/stat.h>
#include <linux/stat.h>
#include <sys/time.h>
#include <iron/types.h>
#include <iron/process.h>
#include <iron/time.h>
#include <iron/mem.h>
#include <iron/lo... |
/* @file model.c
**
** load a pore model from file or memory
** @author: <NAME> (<EMAIL>)
** @@
******************************************************************************/
#include "model.h"
#include "f5c.h"
#include "f5cmisc.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
//#define DEBUG_MODEL_PRI... |
//----------------------------------------------------------------------------
// Description "receive" data and demultiplex it
// Author: <NAME>
// Created on:
//
// Copyright (C) 2022 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file exce... |
/*
MIT License
Copyright (c) 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... |
/*
===========================================================================
Copyright (C) 1997-1998 <NAME>
This file is part of XreaL source code.
XreaL source code 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 Founda... |
#include <stdio.h>
#include <SDL.h>
#include <SDL_ttf.h>
#include <stdlib.h>
#include <SDL_image.h>
#define RAPPORT_PARAMETRE_CHOIX 13.5
//PARAMETRE
#define XRAPPORT_GRAPHISMES 2.96
#define XMAXRAPPORT_GRAPHISMES 2.62
#define XRAPPORT_JOUABILITE 2.59
#define XMAXRAPPORT_JOUABILITE 2.33
#define XRAPPORT_INTERFACE 2.30
... |
#include "condition.h"
#include "cons.h"
#include "cons_list.h"
#include "constant.h"
#include "control_execute.h"
#include "control_object.h"
#include "control_operator.h"
#include "hold.h"
#include "parse_macro.h"
#include "setf.h"
#include "symbol.h"
static int setf_atom(addr pos)
{
if (keywordp(pos))
return 1;
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* File Name : freertos.c
* Description : Code for freertos applications
******************************************************************************
* @attention
*
* <h2><cente... |
/* ulongRecord.c */
/* Example record support module */
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "alarm.h"
#include "dbAccess.h"
#include "recGbl.h"
#include "dbEvent.h"
#include "dbDefs.h"
#include "dbAccess.h"
#include "devSup.h"
#include "errMdef.h"
#include "recSup... |
/*
* Copyright (c) 2012-2022 Filip "widelec-BB" Maryjanski, BlaBla group.
* All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <proto/cybergraphics.h>
#include <libvstring.h>
#include "globaldefines.h"
#include "talkwindow.h"
#include "contactslist.h"
#include "support.h"
#include ... |
#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "sd.h"
#include "fs.h"
enum {
Npart = 32
};
uchar *mbrbuf, *partbuf;
int nbuf;
#define trace 0
int
tsdbio(SDunit *unit, SDpart *part, void *a, vlong off, int mbr)
{
uchar *b;
if(sdbio(unit, part, a, unit->secsize, off) !... |
/*
* Copyright (c) 2012, 2015 Jonas 'Sortie' Termansen.
*
* 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 SOFTWARE IS PROVIDED "AS IS" AND T... |
/**
* Copyright (C) 2017-2018, <NAME>
**/
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <error.h>
#include <pservlet.h>
#include <pstd/mempool.h>
#include <pstd/scope.h>
static inline pipe_t _ensure_pipe(pipe_t current, const char* func)
{
pipe_t ret = current;
if(ERROR_CODE(pipe_t) == ret)
... |
/*****************************************************************************
* Driver main file for ois as a stand-alone C progrmam. *
* *
* (c) <NAME> *
* <EMAIL> ... |
#include <libusb-1.0/libusb.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "libxsvf.h"
#include "logsys/usb.h"
#include "logsys/usb.private.h"
#include "logsys/jconf.h"
... |
/* $NetBSD: hypervisor.c,v 1.7.2.1 2004/05/22 15:58:54 he Exp $ */
/*
*
* Copyright (c) 2004 <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 ... |
/***************************************************************************/
/* RSC IDENTIFIER: GEOCENTRIC
*
* ABSTRACT
*
* This component provides conversions between Geodetic coordinates (latitude,
* longitude in radians and height in meters) and Geocentric coordinates
* (X, Y, Z) in meters.
*
* ER... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... |
/*******************************************************************************
* tcc_project
* ESP-IDF SPI library for acceleration and temperature read from GY-91 board (BMP280 & MPU9250)
*
* Copyright (c) 2021 <NAME> <https://github.com/LucasSFeitosa/tcc_project>\n
*
* MIT Licensed as described in the file LI... |
#include "sign.h"
#include <stdlib.h>
#include <string.h>
//@ #include "quantifiers.gh"
#define SERVER_PORT 121212
int random_stub_sign(void *havege_state, char *output, size_t len)
//@ requires PRG_PRECONDITION(havege_state_initialized, havege_state);
//@ ensures PRG_POSTCONDITION(havege_state_initialized, hav... |
/*
============================================================================
Author : Ztiany
Description : 排序
============================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define MAX 1000000
long getSystemTime() {
struct... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <poll.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#define KAL_char 0x6
#define KAL_length 5
#define KAL_interval 1.5
int global_sock;
int ma... |
//------------------------------------------------------------------------------
// Dijkstra on PyCoRAM (Software)
// Copyright (C) 2013, <NAME>-Yamazaki
// License: Apache 2.0
//------------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#inc... |
/*
* Copyright (c) 2017 <NAME> <<EMAIL>>.
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_internal.h>
#include <INTEGER.h>
asn_dec_rval_t
INTEGER_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
... |
/*
* pidof.c - Utility for listing pids of running processes
*
* Copyright (C) 2013 <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
* of the License,... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <getopt.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#define DEF_BLOCK_SIZE (1048576)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
struct option getopt_long_options[] = {
{"block-size", 1, 0, 'b'},
{"help", 0, 0, '?'}
};
char const... |
/*
* Manage Keyboard Matrices
*
* Copyright (c) 2012 The Chromium OS Authors.
* (C) Copyright 2004 DENX Software Engineering, <NAME>, <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms... |
#define _DEFAULT_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include "ctlra.h"
#include "midi.h"
#include "devices/ni_maschine_mikro_mk2.h"
#include "devices/ni_maschine_jam.h"
#include "sequencer.h"
static volatile uint32_t done;
static Sequencer *sequ... |
#include <ncurses.h> // needed for some definitions, see terminfo(3ncurses)
#include "internal.h"
static bool
query_rgb(void){
bool rgb = tigetflag("RGB") == 1;
if(!rgb){
// RGB terminfo capability being a new thing (as of ncurses 6.1), it's not commonly found in
// terminal entries today. COLORTERM, howev... |
/* main.c - Application main entry point */
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define NET_LOG_LEVEL CONFIG_NET_UDP_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(net_test, NET_LOG_LEVEL);
#include <zephyr.h>
#include <linker/sections.h>
#include <zephy... |
/*
* Copyright 2017-2018 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*----------------------------------------------------------------------------*/
/* Hobbit RRD handler module. */
/* */
/* Copyright (C) 2005-2009 <NAME> <<EMAIL>> */
/* ... |
/*
* GLX Hardware Device Driver for Intel i810
* Copyright (C) 1999 <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 rig... |
/*
* File: multiplex3_pthreads.c
* CVS: $Id$
* Author: <NAME>
* <EMAIL>
* Mods: <NAME>
* <EMAIL>
*/
/* This file tests the multiplex functionality when there are
* threads in which the application isn't calling PAPI (and only
* one thread that is calling PAPI.)
*/
#include <pthread.h>... |
/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 1998.
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 by the Free Software... |
/**************************************************************************
*
* Copyright © 2010 <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 ... |
/*
* Copyright (c) 2021 <NAME>
* Created from ./echo.c
*/
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700 /* required for glibc to use getaddrinfo, etc. */
#endif
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <netdb.h>
#include <stdio.h>
#include <sys/select.h>
#include <sys/... |
/*
* Copyright (c) 2018-2019 iXsystems Inc. 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 co... |
/**
******************************************************************************
* @file NVIC/NVIC_IRQMask/main.c
* @author MCD Application Team
* @version V1.8.0
* @date 04-November-2016
* @brief Main program body
************************************************************************... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static doublecomplex c_b1 = {0.,0.};
static doublecomplex c_b2 = {1.,0.};
static integer c__3 = 3;
static integer c__1 = 1;
/* Subroutine */ int zlaror_(char *side, char *init, integer *m, integer *n,
doublecomplex *a, integer *lda, integer *ise... |
/**
* @brief Panel Volume Widget
*
* Shows an icon indicating the mixer's master volume,
* and shows a menu with a volume slider when clicked.
*/
#include <fcntl.h>
#include <sys/ioctl.h>
#include <kernel/mod/sound.h>
#include <toaru/yutani.h>
#include <toaru/graphics.h>
#include <toaru/menu.h>
#include <toaru/te... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2022 STMicr... |
/* ========================================================================== */
/* === umfpack_triplet_to_col =============================================== */
/* ========================================================================== */
/* ---------------------------------------------------------------------... |
/* P I X F I L T E R . C
* BRL-CAD
*
* Copyright (c) 1986-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 ... |
/*
* fw.c
*
* Copyright (c) 2001 <NAME> <<EMAIL>>
*
* $Id$
*/
#include "config.h"
#include <sys/types.h>
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dnet.h"
#include "mod.h"
static void
usage(void)
{
fprintf(stderr, "Usage: dnet fw show\n"
... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 so... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* (C) 2004-2009 <NAME> <<EMAIL>>
*/
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <ctype.h>
#include <getopt.h>
#include "cpufreq.h"
#include "cpuidle.h"
#include "helpers/helpers.h"
#de... |
/**
* Copyright (C) NVIDIA Corporation. 2019. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "topo.h"
#include "string.h"
#include <ucs/datastruct/khash.h>
#include <ucs/type/spinlock.h>
#include <ucs/debug/assert.h>
#include <ucs/debug/log.h>
#inc... |
#include <assert.h>
#include <imports.h>
#include <exports.h>
void exports_test_imports() {
{
imports_option_float32_t a;
uint8_t r;
a.is_some = true;
a.val = 1;
assert(imports_roundtrip_option(&a, &r) && r == 1);
assert(r == 1);
a.is_some = false;
assert(!imports_roundtrip_option(&a,... |
/* -*- mode: c; c-basic-offset: 8; -*-
*
* vim: noexpandtab sw=8 ts=8 sts=0:
*
* Copyright (C) 2005 Oracle. 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... |
/* An example demonstrating different blending modes.
*/
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <stdio.h>
#include <stdarg.h>
#include <math.h>
#include "common.c"
/* A structure holding all variables of o... |
/*
* Copyright (c) 2008-2010 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publ... |
/*
* Copyright (C) 2019 <NAME>
*
* 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.
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "cc110x.h"
#include "... |
/*
* sinematrix port, much stolen from https://github.com/orithena/Arduino-LED-experiments/blob/master/MatrixDemo/MatrixDemo.ino
*
* This is an effect that basically paints a "base canvas" via a function and then defines a "camera" that
* moves, rotates and zooms seemingly randomly over that canvas, showing what th... |
// ------------------------------------------------------------------------------------------------
// pci/registry.h
// ------------------------------------------------------------------------------------------------
#pragma once
#include "stdlib/types.h"
const char *PciDeviceName(uint vendorId, uint deviceId);
con... |
// enums
typedef enum {
LISP_NIL = 0,
LISP_T = 1,
LISP_CONS = 2,
LISP_INTEGER = 3,
LISP_RATIONAL= 4 ,
LISP_STRING = 5,
LISP_SYMBOL = 6,
LISP_FUNCTION = 7,
LISP_FUNCTION_MACRO = 8,
LISP_FUNCTION_NATIVE = 9,
LISP_MACRO_BUILTIN = 10,
LISP_NATIVE_POINTER = 11,
LISP_ALIEN_FUNCTION = 12,
LISP_VECT... |
/*s: kernel/devices/screen/devdraw.h */
typedef struct Client Client;
typedef struct KDraw KDraw;
typedef struct DImage DImage;
typedef struct DName DName;
typedef struct DScreen DScreen;
typedef struct CScreen CScreen;
typedef struct FChar FChar;
typedef struct Refresh Refresh;
typedef struct Refx Refx;
/*s: constan... |
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
// Copyright (c) 2020 <NAME>
//
// Based on llcstat(8) from BCC by <NAME>.
// 29-Sep-2020 <NAME> Created this.
#include <argp.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/perf_event.h>
#include <asm/unistd.h>... |
/* Creation of subprocesses, communicating via pipes.
Copyright (C) 2001-2004, 2006-2014 Free Software Foundation, Inc.
Written by <NAME> <<EMAIL>>, 2001.
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 So... |
/*
* This file is part of Libsvgtiny
* Licensed under the MIT License,
* http://opensource.org/licenses/mit-license.php
* Copyright 2009-2010 <NAME> <<EMAIL>>
*/
/*
* This example loads an SVG using libsvgtiny and then displays it in an X11
* window using cairo.
*
* Functions of interest for li... |
/*-
* SPDX-License-Identifier: ISC
*
* Copyright (c) 2002-2008 <NAME>, <NAME>
* Copyright (c) 2002-2008 Atheros Communications, Inc.
*
* 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 p... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <sys/select.h>
#include <termios.h>
#define X_DIM 80
#define Y_DIM 25
enum pacman_keycode {
NONE,
KEY_UP,
KEY_LEFT,
KEY_RIGHT,
KEY_DO... |
/*
* FITS demuxer
* Copyright (c) 2017 <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... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2012 Advanced Micro Devices, Inc.
* Copyright (C) 2014 Sage Electronic Engineering, LLC
*
* 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 Sof... |
//2011B4A7680P and 2011B4A7658P
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/epoll.h>
#include <sys/msg.h>
#define LISTENQ 15
#define MAX_EVENTS 10
#define MAX_BUF 80
struct client_node {
int fd;
char name[80];
int stage;
char params[3][MAX... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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
*
* ... |
//
// mulle_objc_lldb.c
// mulle-objc-debug-universe
//
// Created by Nat! on 18.05.17.
// Copyright © 2017 <NAME>.
// Copyright © 2017 Codeon GmbH.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditi... |
//
// Created by xiaotian on 2021/4/30.
//
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include <arpa/inet.h>
#include "message_handler.h"
#define TRUE 1
#define FALSE 0
#define TEMP_SIZE 2048
/**
* read from socket file des... |
/*-
* Copyright (C) 2012, 2017 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list... |
// SPDX-License-Identifier: GPL-2.0+
#include <linux/dma-buf-map.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_gem_shmem_helper.h>
#include "vkms_drv.h"
static const u32 vk... |
/* $NetBSD: monop.h,v 1.19 2009/08/12 08:10:49 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
/*********************************************************************
*
* (C) Copyright Broadcom Corporation 2013-2017
*
* 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
*
* htt... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* TI CPUFreq/OPP hw-supported driver
*
* Copyright (C) 2016-2017 Texas Instruments, Inc.
* <NAME> <<EMAIL>>
*/
#include <linux/cpu.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/of.h>
#include <l... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* doublea.c :+: :+: :+: ... |
/*
* * Copyright (c) 2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list o... |
/* CAN Network Slave Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
/*
* The foll... |
/* Copyright (c) [2014 Baidu]. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... |
/* This file is 'renderer.c' in project files */
#include "raycast_renderer.h"
void draw_sprite(uint32_t* src_p, uint16_t src_w, uint16_t src_h, uint16_t dst_x, uint16_t dst_y) {
// Prodje kroz region na ekranu na kom treba biti iscrtano, i za svaki piksel nadje vrednost
for(uint16_t x = 0; x < src_w; x++){
... |
#include <stdbool.h>
#include <stdint.h>
#include "blackbox.h"
#include "config.h"
#include "drv_time.h"
#include "main.h" // HAL_UART_Transmit_DMA()
#ifdef BLACKBOX_LOGGING
// 100 bytes maximum at 2 Mbit/s UART speed and a logged data frame every 0.5 ms.
static uint8_t bb_buffer[ 93 ] = "FRAME"; // 98 bytes practica... |
/**
* Micro Kernel - Header File
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*
* @copyright (c) 2014 HES-SO/EIA-FR/TIC/T2a Groupe E
*
* @version 1.0.0
* @date 2014-06-01
*/
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "kernel.h"
#include "interrupt.h"
... |
// @(#) $Revision: 4.5 $ $Source: /judy/src/apps/demo/funhist.c $
//
// FUNCTION HISTOGRAM; JUDYL DEMO PROGRAM
//
// This program uses JudyL to create a histogram of data generated by the
// function random(3M). Other functions could be substituted in.
//
// The program generates n random numbers, stores them in a Jud... |
#include <stdio.h>
#include <string.h>
// The PotatoScript programming language is made by <NAME>. It is licensed under the Apache license.
// The official PotatoScript Classic GitHub repository is available at <https://github.com/benjidial/PotatoScript-Classic>.
enum os { LINUX32, LINUX64, MSDOS };
void expression... |
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "hardware/timer.h"
#include "hardware/irq.h"
#include "hardware/sync.h"
#include "hardware/claim.h"
check_hw_layout(timer_hw_t, ints, TIMER_INTS_OFFSET);
static hardware_alarm_callback_t alarm_callbacks[NUM_... |
/*
* Copyright 2017 International Business Machines
*
* 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 applicab... |
/**************************************************************************//**
* @file main.c
* @version V2.0
* $Revision: 2 $
* $Date: 16/10/25 4:27p $
* @brief Show Smartcard UART by connecting PA.0 and PA.1 pins.
* @note
* Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
****... |
/*
// RAND_MAT_MULT_C.C Computes A*B approximately
//
// C = RAND_MAT_MULT_C(A, B, Y, epsilon, S, P) returns an approximation
// of the product A*B computed via a bilinear computation defined by
// the factor matrices in Y, the adjustment factor epsilon, the
// realization of Rademacher random variables in S, and the... |
/******************************************************************************
* @section DESCRIPTION
*
* This routine contains routines for computing and saving VIC history files.
*****************************************************************************/
#include <vic_driver_shared_all.h>
/*****************... |
/* Copyright (c) (2016,2017,2019) Apple Inc. All rights reserved.
*
* corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
* is contained in the License.txt file distributed with corecrypto) and only to
* people who accept that license. IMPORTANT: Any license rights granted to you by
... |
/*
* Copyright (C) <NAME>
* Copyright (C) Zaver
*/
#include <strings.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include "http.h"
#include "http_parse.h"
#include "http_request.h"
#include "epoll.h"
#include "error.h"
#include "timer.h"
static cons... |
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/power.h>
#include "shift.h"
#define POT_ENABLE_PIN 2
#define POT_PIN 3 //ADCx, not PBx! (though here they match)
#define BUZZ_PIN 4
#define BTN_PIN 1
#define SHIFT_PIN 0
#define POT_FREQ 2 //check the pot every 2^n ticks of delay_ctr... |
#include <linux/types.h>
#include <linux/module.h>
#include <linux/uaccess.h>
#include "translation_table_helper.h"
#include "../../sysreg.h"
void *get_tbl_ent(struct mm_struct *mm, unsigned long addr, int type)
{
pgd_t *pgd = NULL;
pud_t *pud = NULL;
pmd_t *pmd = NULL;
pte_t *pte = NUL... |
/*
Copyright (c) 2005-2008, <NAME>
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 PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.