text
stringlengths
3.08k
10.5k
/* * Copyright (c) 2017, NXP * * SPDX-License-Identifier: Apache-2.0 */ #include <errno.h> #include <adc.h> #include <soc.h> #include <fsl_adc16.h> struct mcux_adc16_config { ADC_Type *base; void (*irq_config_func)(struct device *dev); }; struct mcux_adc16_data { struct k_sem sync; u32_t channel_group; u32_...
/*****************************************************************************\ pcardext - Python extension for HP photocard services (c) Copyright 2003-2015 HP Development Company, L.P. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
#include <stdlib.h> #include <string.h> #include "gamemaps_parser.h" #include "gamemaps_parser_internal.h" gamemaps_parser_error_t parse_map_header( uint8_t *header, size_t length, uint32_t **level_pointers, size_t *level_pointers_length ) { const size_t min_length = 402; if (length < min_lengt...
#include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <sys/stat.h> // I could not use it, but use fseek() instead of stat(). But who cares? #include "../libsdb.h" #define eprintf(...) fprintf (stderr, __VA_ARGS__) // KANONI4NO #define WORKING_D...
/*************************************************************************** * apps/graphics/nxglyphs/include/cursor-grab-25x30.h * * 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 reg...
/* Copyright 2016 Vanderbilt University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
/* * bsp.c * * Created on: Nov 12, 2021 * Author: baram */ #include "bsp.h" static void SystemClock_Config(void); static void mpuInit(void); extern void usbDeInit(void); bool bspInit(void) { HAL_Init(); SystemClock_Config(); //SCB_DisableICache(); //SCB_DisableDCache(); __HAL_RCC_G...
#include "sha1.h" #include <stdint.h> #include <string.h> #include <assert.h> #include <stdio.h> #include "util.h" void bsp_sha1_init(struct bsp_sha1_state *state) { state->length = 0; state->chunk_used = 0; state->h[0] = 0x67452301; state->h[1] = 0xefcdab89; state->h[2] = 0x98badcfe; state->h[3] = 0x10325476...
/**************************************************************************//** * @file main.c * @version V1.00 * @brief Demonstrate how to use FMC CRC32 ISP command to calculate the * CRC32 checksum of APROM, LDROM, and SPROM. * * * @copyright (C) 2021 Nuvoton Technology Corp. All rights reser...
/** * Compress wasted space from multi-ISA binary emitted by Popcorn compiler. * * Author: <NAME> <<EMAIL>> * Date: 6/13/2018 */ #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <unistd.h> #include "definitions.h" #include "bin.h" #include "util.h" static const char *file; bool verbose = fal...
/* Copyright (c) 2013-2016, The Linux Foundation. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
#include uniforms /*color*/ vec4 blend(vec4 color1, vec4 color2) { vec3 mixColor = mix(color1.rgb, color2.rgb, color2.a); return vec4(mixColor.rgb, color2.a); } vec4 srgb(vec4 color) { return pow(max(color, 0.0), vec4(1.0 / 2.2)); } /*conversion*/ float toPixelPerfectFloat(float value) { return flo...
/* SPDX-License-Identifier: MIT */ #include <errno.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <assert.h> #include <pthread.h> #include <sys/socket.h> #include <netinet/tcp.h> #include <netinet/in.h> #include <poll.h> #include "liburing.h" pthread_mute...
#include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xos.h> #include <X11/SM/SMlib.h> #include <stdlib.h> #include <stdio.h> #include <locale.h> #include <assert.h> #include <syslog.h> #include <gio/gio.h> Display *dpy; Window win; int scr; //compile : //eval gcc example.c -lX11 (pkg-config --cflags --libs glib-2...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include "kiss_fftr.h" #include "_kiss_fft_guts.h" #include <stdio.h> #include <string.h> #define CELT_C #include "../libcelt/stack_alloc.h" #include "../libcelt/kiss_fft.c" #include "../libcelt/kiss_fftr.c" #ifdef FIXED_DEBUG long long celt_mips=0; #endif int ret=0; ...
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
/* * Copyright (c) 2007 <NAME> University. * All rights reserved. * Permission to use this software and its documentation for any purpose is hereby granted, * provided that the above copyright notice appear and that both that copyright notice and * this permission notice appear in supporting documentation, and th...
#include "zlib.h" // --- BEGIN ZRES HELPER --- typedef struct { int len; char* bytes; } ZBytes; typedef struct { int which; union { int err; ZBytes* out; }; } ZRes; #define ZRES_OK 0 #define ZRES_ERR 1 bool ZRes_is_ok(ZRes* r) { return r->which == ZRES_OK; } ZBytes ZRes_bytes(ZRes r) { assert...
/* Definitions of target machine for GNU compiler, for MCore using COFF/PE. Copyright (C) 1994, 1999, 2000, 2002 Free Software Foundation, Inc. Contributed by <NAME> (<EMAIL>). This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Publi...
/* NetHack 3.7 rnd.c $NHDT-Date: 1596498205 2020/08/03 23:43:25 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.30 $ */ /* Copyright (c) 2004 by <NAME> */ /* NetHack may be freely redistributed. See license for details. */ #include "hack.h" #ifdef USE_ISAAC64 #include "isaac64.h" static int whic...
/* =========================================================================== * bas55, an implementation of the Minimal BASIC programming language. * * main(), handling of command line options. * =========================================================================== */ #include <config.h> #include "ecma55.h...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #define OFFSET_BITS 8 #define PAGE_BITS 8 #define FRAME_BITS 7 // the physical memory is smaller than the virtual one #define PAGE_SIZE (1 << OFFSET_BITS) #define FRAME_SIZE PAGE_SIZE #define TLB_SIZE 16 #define NUMBER_OF_PAGES (1 << P...
///////////////////////////////////////////////////////////// /// Digilog.mihanblog.com /////////////////////////// /// /////////////////////////// /// MFRC522 RFID module /////////////////////////// /// DEVELOPED BY MiladShiri /////////////////////////// /// Ordibehesht 1393 ...
/* * kernel/xui/xui-colorpicker.c * * Copyright(c) 2007-2022 <NAME> <<EMAIL>> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
#include <stdio.h> #define MOD 1000000007 long long inv(long long x); void add(int l, int r, int c, int a, int b, long long u); long long qsum(int l, int r, int c, int a, int b); long long qsqu(int l, int r, int c, int a, int b); void prtsqu(int n); int main(void) { int n, m, i, op, c, l, r; long long x, s, a; #if...
/** * BSD-2-Clause * * Copyright (c) 2020 Tristan * 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 ...
/* Copyright (c) 2009-2010 <NAME> * * TERMS * * 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 f...
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <kernel/debug.h> #include <kernel/acpi.h> #include <kernel/clock.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <sys/io.h> #define CMOS_ADDRESS 0x70 #define CMOS_DATA 0x71 #define CMOS_SECONDS...
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <string.h> #include <pthread.h> #include <ucontext.h> #define MAX_THREADS 255 #define MAX_STACK_DEPTH 64 typedef struct { pid_t thread_id; int stack_depth; void* func_addr[MAX_STACK_DEPTH]; } threadEntry; static pthread_mutex_t stack_mut...
/*================================================================ * Copyright: 2020 <NAME> * simple_texture The purpose of this example is to demonstrate how to create a dynamic texture and explicitly construct GPU resources to use for your application. Included: * Constructing tex...
/* * Copyright (C), 2000-2004 by the monit project group. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) a...
/*********************************************************************** Copyright (c) 2006-2011, Skype Limited. 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 retai...
/* * (C) Copyright 2005- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/* cocoajoystick.c: routines for dealing with the Cocoa joystick Copyright (c) 2006 <NAME> $Id$ 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 ...
#include "corange.h" static void corange_signal(int sig) { switch(sig) { case SIGABRT: error("Program Aborted"); case SIGFPE: error("Division by Zero"); case SIGILL: error("Illegal Instruction"); case SIGINT: error("Program Interrupted"); case SIGSEGV: error("Segmentation fault"); case SIGTER...
/* This file is part of RECBIS: A library for parallel computation of medians and for parallel data distribution using recursive bisection. Written by <NAME> at the Lawrence Livermore National Laboratory. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "ksta...
#include <dirent.h> #include <errno.h> #include <fcntl.h> #include <mqueue.h> #include <poll.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #include "mqhelper.h" #define MAX_LISTENERS 1024 #define READ_SIZE 1024 #define MAX_PIPE_NAME_LEN 32 ...
#include <kipr/botball.h> typedef int bool; #define true 1 #define false 0 //enumerated scanner positions typedef enum scanner { left = 20, left_mid = 520, mid = 1020, mid_right = 1520, right = 2020, true_mid = 1080 } Scanner; //enumerated wheel positions typedef enum wheels ...
/* $Id: keywords.h,v 1.19 2001/07/14 11:48:42 sandro Exp $ */ /* * Copyright (c) 1995-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 ...
/* * A lot of this code was written by https://github.com/inonprince * Permission was granted to use it in SimonRemote. */ #include "airplay.h" #include "common.h" #include "util.h" #define MAX_AP_DEVICES 30 #define TOKEN '|' static void send_request(char * command); static void window_load(Window *window); stat...
#define _GNU_SOURCE #include <errno.h> #include <fcntl.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/prctl.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <termios.h> #include <unistd.h> void __attribute__((noreturn)...
/* * Universidade Federal do Rio de Janeiro * Escola Politecnica * Departamento de Eletronica e de Computacao * Prof. <NAME> * EEL 270 - Computacao II - Turma 2017/2 * * $Author: gabriel.tavora $ * $Date: 2017/12/21 22:04:50 $ * $Log: gmtUmlWebUserInterface.c,v $ * Revision 1.1 2017/12/21 22:04:50 gabriel.t...
/* ======================================================================== * Copyright 1988-2006 University of Washington * * 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:...
/** * Seccomp Library utility code for tests * * Copyright (c) 2012 Red Hat <<EMAIL>> * Author: <NAME> <<EMAIL>> */ /* * This library is free software; you can redistribute it and/or modify it * under the terms of version 2.1 of the GNU Lesser General Public License as * published by the Free Software Foundati...
// Lab10_Debugmain.c // Runs on MSP432 // Student version to Debug lab // Daniel and <NAME> // July 2, 2017 // Interrupt interface for QTR-8RC reflectance sensor array // Pololu part number 961. // Debugging dump, and Flash black box recorder /* This example accompanies the books "Embedded Systems: Introduction to ...
#include <stdio.h> #include "unif01.h" #include "bbattery.h" static int state[4827], c = 1234; static int lcg = 123456789, xors = 987654321; static int s1, s2, ast, stream; static int j = 4827, k = 1024; static int spread[1024], table[1024]; void fill(){ for(int i = 0; i < 4827; i++){ lcg = 69069 * lcg +...
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ISFB project. Version 2.13.24.1 // // module: av.c // $Revision: 434 $ // $Date: 2014-12-08 14:47:26 +0300 (Пн, 08 дек 2014) $ // description: // ISFB client installer. // This module implemets som...
// See LICENSE for license details. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "stdatomic.h" #include "n22/drivers/n22_func.h" #include "soc/drivers/soc.h" #include "soc/drivers/board.h" #include "n22/drivers/riscv_encoding.h" #include "n22/drivers/n22_tmr.h" #include "n22...
/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU...
/*! @file * * @brief Routines for controlling the Real Time Clock (RTC) on the TWR-K70F120M. * * This contains the functions for operating the real time clock (RTC). * * @author <NAME> & <NAME> * @date 2017-04-26 */ /*! ** @addtogroup RTC_module RTC module documentation ** @{ */ #include "RTC.h" #inclu...
#include <unistd.h> // sbrk #include "stdio.h" // printf int has_initialized = 0; void *managed_memory_start; void *last_valid_address; void malloc_init() { last_valid_address = sbrk(0); managed_memory_start = last_valid_address; has_initialized = 1; } struct mem_control_block { int is_available; ...
#include "../h/param.h" #include "../h/systm.h" /* * This table is the switch used to transfer * to the appropriate routine for processing a system call. * Each row contains the number of arguments expected * and a pointer to the routine. */ int alarm(); int mpxchan(); int chdir(); int chmod(); int chown(); int c...
/* vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <aio.h> #include <signal.h> #define BUF_SIZE 20 /* Size of buffers for read operations */ #define errExit(msg) do { perror...
/* * Copyright 2019-present Open Networking Foundation * Copyright (c) 2019, Infosys Ltd. * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd. * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> #include <unis...
#include <stdio.h> #include <stdlib.h> #include <math.h> const char *shades = ".:!*oe&#%@"; void vsub(double *v1, double *v2, double *s) { s[0] = v1[0] - v2[0]; s[1] = v1[1] - v2[1]; s[2] = v1[2] - v2[2]; } double normalize(double * v) { double len = sqrt(v[0]*v[0] + v[1]*v[1] + v[2]*v[2]); v[0] /...
// Copyright (C) Microsoft Corporation. All rights reserved. // // This program is free software; you can redistribute it // and/or modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. #i...
/** <> INSERTION OF DOUBLY LINKEDLIST <> 1. Insert at Beginning 2. Insert at End 3. Insert at Specific Position 4. Insert at After Specific Position */ #include<stdio.h> #include<stdlib.h> struct node { int data; struct node *next; struct node *prev; }; struct node *he...
#include "callbacks.h" #include "config.h" #include "log.h" #include "netw.h" #include "sys.h" #include <signal.h> static volatile int running = 1; void ctrlc(int dummy) { running = 0; } void sighup(int dummy) {} static void print_usage_and_exit(int err) { void* io = err ? stderr : stdout; fprintf( ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Application: Distributed Algorithm for Simulation of Delta Networks * * * * File Name...
#include "dvd.h" #include <stdio.h> void inizializza(struct Monitor * m) { pthread_mutex_init( &(m->mutex), NULL ); pthread_cond_init( &(m->cv[0]), NULL ); pthread_cond_init( &(m->cv[1]), NULL ); pthread_cond_init( &(m->cv[2]), NULL ); m->dvd[0].identificativo_film = 1; m->dvd[0].identificativo_copia = 1; ...
#include "libc.h" #define MAGIC 0xdecafbad void memtest(const char* tn, uint32_t addr, char* str, const char* msg) { int id = fork(); if (id < 0) { printf("*** [%s] fork failed\n", tn); } else if (id == 0) { *((char**) addr) = str; printf("*** [%s] %s at 0x%lx\n", tn, msg, addr); exit(MAGIC...
#include <stdio.h> #include <stdlib.h> #include <time.h> // method to read the first, second and fourth input files int read_input_one_two_four(int** input, char* filepath) { FILE* fp = fopen(filepath, "r"); if (!fp) return fprintf(stderr, "Couldn't open file for reading\n"); int file_length; fscanf(f...
// Copyright (c) 2017, <NAME>. All rights reserved. // Use of this source code is governed by a MIT-style license // that can be found in the LICENSE file. #include <curses.h> #include <stdio.h> #include <string.h> /// All editor data. typedef struct { WINDOW *window; /// File path specified at startup. char *...
// // General-purpose Photovoltaic Device Model gpvdm.com - a drift diffusion // base/Shockley-Read-Hall model for 1st, 2nd and 3rd generation solarcells. // The model can simulate OLEDs, Perovskite cells, and OFETs. // // Copyright 2008-2022 <NAME> https://www.gpvdm.com // r.c.i.mackenzie at googlemail.com // // Per...
/** \file test-ddb.c * \author Copyright (C) 2006 <NAME> * * \note * This 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 Foundation; either * version 2 of the License, or (at your option) any later ...
/************************************************************************************************** Phyplus Microelectronics Limited confidential and proprietary. All rights reserved. IMPORTANT: All rights of this software belong to Phyplus Microelectronics Limited ("Phyplus"). Your use of this Software is...
#include <stdio.h> #include <stdlib.h> #include "scanner.h" #include "compiler.h" /* <NAME> This file contains the recursive descent parser */ /* hProgrami ::= hStmtListi . hStmtListi ::= hStmti ; hStmtListi |  hStmti ::= hAssigni | hPrinti hAssigni ::= hIdi = hExpr i hPrinti ::= ! hIdi hExpr i ::= + hE...
#include <math.h> #include <stdlib.h> #include <string.h> #include "kml.h" #include "utils.h" static void kml_add_point(KMLFile *kml, float lat, float lon, float alt); static void kml_temp_close(KMLFile *kml); int kml_init(KMLFile *kml, const char *fname, int live_update) { FILE *tmpfd; char live_fname[256]; if (...
/******************************************************************************* * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only * intended for use with Renesas products. No other uses are authorized. This * software is owned by Renesas Electronics Corporation and is protecte...
/* * Copyright (c) 1993-1997, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the copyright notice * and this permission...
// (C) Copyright 2016-2021 Xilinx, Inc. // All Rights Reserved. // // 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 yo...
// // ATGlobalMacro.h // apptemplate // // Created by linzhiman on 4/30/15. // Copyright (c) 2015 apptemplate. All rights reserved. // #import <UIKit/UIKit.h> #import "ATNotificationUtils.h" #import "ATLogHelper.h" #define ATStringFromObjectName(atName) @#atName //NSString #define ATConstStringDefine(atName, at...
/* FreeRTOS V6.1.0 - Copyright (C) 2010 Real Time Engineers Ltd. This file is part of the FreeRTOS distribution. This is example #8 from the book Using the FreeRTOS Real Time Kernel - A Practical Guide FreeRTOS is free software; you can redistribute it and/or modify it under the terms of ...
// dynamic_arr.c -- Demostrate dynamic memory management with C. // This program exemplifies how to manage memory dynamically in C. This // program allows you to add numbers to a list, print the list, get the // average, remove a specific number from the list, and clear the list // completely. // C++ allows handling t...
/* * GStreamer * Copyright (C) 2008 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. *...
/* * Copyright (c) 2007, 2008 University of Tsukuba * 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 ...
#include <unistd.h> #include "wish_term.h" #include "wish_buffer.h" static int wish_cmp_chattr(wish_unicode u1, wish_unicode u2, wish_attr a1, wish_attr a2) { if (u1 != u2) return 0; if (a1.has_color != a2.has_color) return 0; if (a1.has_bcolor != a2.has_bcolor) return 0; if (a1...
#define _POSIX_C_SOURCE 200809L #include "heap.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define TAM_INI 16 #define MIN_CANT 4 #define FACT_REDI_ABJ 2 #define FACT_REDI_ARB 2 /*----------- ESTRUCTURA HEAP -----------*/ struct heap{ void** datos; size_t cant; s...
typedef float v4sf[4]; typedef double v2df[2]; typedef int v4si[4]; typedef short v8hi[8]; typedef float a4sf[4] __attribute__((aligned(16))); typedef double a2df[4] __attribute__((aligned(16))); typedef int a4si[4] __attribute__((aligned(16))); typedef int a8hi[8] __attribute__((aligned(16))); /* SIMD.c */ void SIMD_...
/* -*- c-basic-offset: 8 -*- rdesktop: A Remote Desktop Protocol client. Sound Channel Process Functions - libao-driver Copyright (C) <NAME> <<EMAIL>> 2003-2008 Copyright (C) GuoJunBo <<EMAIL>> 2003 Copyright (C) <NAME> <<EMAIL>> 2005-2008 Copyright (C) 2013 <NAME> This program is free software: y...
/* * warpd - A modal keyboard-driven pointing system. * * © 2019 <NAME> (see: LICENSE). */ #include "warpd.h" struct cfg *cfg; static int dragging = 0; void toggle_drag() { dragging = !dragging; if (dragging) mouse_down(1); else mouse_up(1); } static int oneshot_mode; static void activation_loop(int mo...
// Copyright 2016 measurement-lab // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
#include "cilo/editor/row.h" #include <ctype.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <cilo/common.h> #include <cilo/editor/highlight.h> #include <cilo/editor/state.h> #include <cilo/editor/syntax.h> #include <cilo/error.h> #include <cilo/utils.h> void er_store_lin...
/* * Copyright (c) 2018 Qualcomm Technologies, Inc. * All Rights Reserved. */ // Copyright (c) 2018 Qualcomm Technologies, Inc. // All rights reserved. // Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) // provided t...
/* * MySTM32_IR_API.c * Universidade Federal de Minas Gerais * Created on: Jan 2021 * Author: <NAME>, <NAME> * Version: 1.0 * License: MIT * * Esta API foi desenvolvida como trabalho da disciplina * de Programação de Sistemas Embarcados da UFMG * – Prof. <NAME> – Departamento de * Engenharia Ele...
/******************** (C) COPYRIGHT 2013 ************************************** * File Name : p1_PC_monitor_can.c * Author : deh * Date First Issued : 03/26/2013 * Board : Olimex CO, (USART2) * Description : Output current CAN data to PC ('n' and 'm' commands) *****************...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/inotify.h> #include <unistd.h> #include <dirent.h> #include <syslog.h> #include <errno.h> #define RESOLV_SYM_PATH "/run/resolvconf/resolv.conf" #define RESOLV_PATH "/etc/resolv.conf" #define RESOLV_P...
/* * This file is part of the flashrom project. * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your o...
/* ** Copyright 2005-2018 Solarflare Communications Inc. ** 7505 Irvine Center Drive, Irvine, CA 92618, USA ** Copyright 2002-2005 Level 5 Networks Inc. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of version 2.1 of the GNU Lesser General Public...
/* Utilities to generate a proper C stack. * * Author: <NAME>. */ #define _MINIX_SYSTEM #include <sys/cdefs.h> #include "namespace.h" #include <lib.h> #include <unistd.h> #include <string.h> #include <stddef.h> #include <sys/exec_elf.h> #include <sys/exec.h> /* Create a stack image that only needs to be patched...
/** \file uicmdline.c * \brief Dialog to display command line options * * \author <NAME> <<EMAIL>> */ /* * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the...
/* Demonstrates one way to chain together a number of data sources so they play back seamlessly without gaps. This example uses the chaining system built into the `ma_data_source` API. It will take every sound passed onto the command line in order, and then loop back and start again. When looping a chain of data sourc...
#define Q_SZ 64 #include <stdio.h> #include "shell.h" #include "msg.h" #include "thread.h" #include "net/gnrc.h" #include "net/gnrc/netif.h" #include "net/gnrc/netreg.h" #include "net/gnrc/ipv6.h" #define MAIN_QUEUE_SIZE (8) extern int udp_cmd(int argc, char **argv); extern void start_server(char *port_str); ...
/* Copyright (c) 2003 <NAME>, All rights reserved. This 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 Foundation; either version 2 of the License, or (at your option) any later version. */ #i...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define INT_UNDEF -12345 #define FLT_UNDEF -12345.0 #define DEGREE 176 #define HKM(hr) 6338.0*(hr) + 33.0 int sindex(char *, char *); int r_iss_epic(char *s, int *mo, int *dy, int *hr, int *mn, int *sc, float *y, float *x, float *z, int...
/* A GUI client program to allow for friendly control of the motorcontrol network system. Uses SDL2 and SDL2_ttf. TODO: - Actual networking (duh...) - ... */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <garbaz/netlib.h> // https://github.com/g...
/* The MIT License (MIT) Copyright (c) 2017-2020 oarplayer(qingkouwei) 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, ...
#include <terminal.h> #include <bootboot.h> #include <stdfun.h> extern BOOTBOOT bootboot; extern uint32_t fb; // first pixel of screen frame-buffer uint32_t *const screen_buffer = &fb; uint32_t screen_width; uint32_t screen_height; uint32_t scanline_size; // in pixels uint32_t cursor_x = 0; uint32_t cursor_y = 0; ...
#include <glib.h> #include <glib/gprintf.h> #include <locale.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include "layerapi2.h" #include "util.h" static gboolean debug_mode = FALSE; static gchar *layers = NULL; static gboolean empty = FALSE; static gboolean cwd = FALSE; static gboolean empty_env = ...
/* ** bm.c - Boyer-Moore string search ** ** Copyright (c) 2002-2020, <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...