text
stringlengths
3.08k
10.5k
// seq_ops.c-- operations on nucleotide sequences #include <stdlib.h> #define true 1 #define false 0 #include <stdio.h> #include <string.h> #include <ctype.h> #include <limits.h> #include <inttypes.h> #include <math.h> #include <float.h> #define seq_ops_owner // (make this the owner of its globals) #include "se...
/* * Copyright 2017 People Power Company * * This code was developed with funding from People Power Company * * 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.a...
/* Copyright (c) <NAME>, 1996. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ #include <stdlib.h> #include <stdio.h> #include <GL/glut.h> #define MAX_SPLATS 100 extern int ...
#include <assert.h> #include <stdio.h> #include <malloc.h> #include <string.h> #include <unistd.h> #include <sysutil/video.h> #include <rsx/gcm_sys.h> #include <rsx/rsx.h> #include <rsx/mm.h> #include "commands.h" #include "rsxutil.h" gcmContextData *context; // Context to keep track of the RSX buffer. videoResolut...
/** * @file status.c Status module * * Copyright (C) 2010 Creytiv.com */ #include <string.h> #include <time.h> #include <re.h> #include <restund.h> #include "httpd.h" enum { CHUNK_SIZE = 1024, }; static struct { struct udp_sock *us; struct httpd *httpd; time_t start; } stg; static void server_info(struc...
/* * This file is part of the coreboot project. * * Copyright (C) 2007-2010 coresystems GmbH * Copyright (C) 2011 Google 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 ...
/* Spaceball demo * * Written by <NAME> <<EMAIL>> * (converted from the libspnav cube example) * * Use the spaceball to move and rotate the colored cube. * Pressing any button will reset the cube at its original location. * * Press escape or q to exit. */ #include <stdio.h> #include <stdlib.h> #i...
/*! \file main.c \brief comparator watchdog window \version 2014-12-26, V1.0.0, platform GD32F1x0(x=3,5) \version 2016-01-15, V2.0.0, platform GD32F1x0(x=3,5,7,9) \version 2016-04-30, V3.0.0, firmware update for GD32F1x0(x=3,5,7,9) \version 2017-06-19, V3.1.0, firmware update for GD32F1x0(...
/* * Copyright (C) 2018 ETH Zurich and University of Bologna * * 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...
/* structs.h */ /* Part of YAPS - abc to PostScript converter */ /* Copyright <NAME> 2000 */ /* May be copied under the terms of the GNU public license */ /* definitions of structures used to hold abc tune data */ /* The voice data structure also holds various state variables */ ...
/* File: tmsort.c Compile: gcc tmort.c -o tmsort -lpthread Use: tmsort N [N is the number of elements in random list to be sorted] Uses one thread to do merge sort or: tmsort N P [N is the number of elements in random list to be sorted] [P is the number of threads, must be...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include <limits.h> #include <inttypes.h> /* * PoC By <NAME> * Bug found by derrek */ static const char *dev = "/dev/qce"; #define QCEDEV_MAX_KE...
/* xZTL: Zone Translation Layer User-space Library * * Copyright 2019 Samsung Electronics * * Written by <NAME> <<EMAIL>> * * 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...
/* Selectively compare two ar archives. * Usage: * ardiff [-ni] [-t name] ar1 ar2 * Options: * -c compare member content. (This implies -s) * -n compare member name. * -i compare member mtime. * -l compare archive length (member count). * -s compare member size. * -t specify the test name. * * By default...
/* * Copyright (C) 2009 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU Lesser General Public License v.2.1. * * You should have receiv...
/** ****************************************************************************** * @file BLE_HighSpeedDataLog.c * @author System Research & Applications Team - Agrate/Catania Lab. * @version 1.2.0 * @date 28-Feb-2022 * @brief Add High Speed Data Log info services using vendor specific * ...
/* ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the gradunwarp package for the # copyright and license terms. # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## */ #include "Python.h" #include "numpy/arrayobj...
/* * The MIT License (MIT) * * Copyright (c) 2016 <NAME>. "Chip" Pearson (aka CmdrZin) * * 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 limitati...
/* * fiwix/kernel/syscalls/select.c * * Copyright 2018, <NAME>. All rights reserved. * Distributed under the terms of the Fiwix License. */ #include <fiwix/types.h> #include <fiwix/fs.h> #include <fiwix/process.h> #include <fiwix/timer.h> #include <fiwix/sched.h> #include <fiwix/sleep.h> #include <fiwix/errno.h> ...
#include "GroveI2C.h" #include <unistd.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include "GroveUART.h" //////////////////////////////////////////////////////////////////////////////// // SC18IM700 static void wait_for_i2cState_ok(int fd) { uint8_t i2cState; SC18IM700_ReadReg(fd, 0x0A, &i2cSta...
#include <unistd.h> #include <sys/select.h> #include <sys/wait.h> #include <stdio.h> #include <pty.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> #include <fcntl.h> extern char **environ; struct termios orig_termios; static void set_fds(fd_set *reads, int pttyno) { FD_ZERO(reads); FD...
/* * Copyright (c)2013-2021, <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...
/* $Id: callback_test.c 530 2010-10-25 14:43:42Z roca $ */ /* * OpenFEC.org AL-FEC Library. * (c) Copyright 2009 INRIA - All rights reserved * Main authors: <NAME> (INRIA) * <NAME> (INRIA) * <NAME> (INRIA) * <NAME> (INRIA) * <NAME> (INRIA) * Contact: <EMAIL> * * This software is governed by the CeCILL...
/** Hermite interpolation of order 3 for Phi, dPhi, and d2Phi. When xinterp is sorted (increasing), computations can be reused. On the other hand, for a randomly called value, the routine is not much slower than a routine optimised for this case. The more sorted the vector, the faster the execution time...
#include "tree_heap.h" typedef struct Tree_Node_ { void *key; void *value; struct Tree_Node_ *left; struct Tree_Node_ *right; } Tree_Node; struct Tree_Heap_ { int size; Tree_Node *root; const comp_ctx *comp_ctx; const destroy_ctx *destroy_key_ctx; const destroy_ctx *destroy_value_c...
#include <lib.h> #define debug 0 #define PIPEBUFSIZ 32 // small to provoke races struct Pipe { off_t p_rpos; // read position off_t p_wpos; // write position uint8_t p_buf[PIPEBUFSIZ]; // data buffer }; int pipe(int pfd[2]) { int ret; struct Fd *fd0, *fd1; void *va; // allocate the file descriptor tabl...
/* ** Copyright (c) 1990 The Turing Institute ** ** Disclaimer: No guarantees of performance accompany this software, ** nor is any responsibility assumed on the part of the authors. All the ** software has been tested extensively and every effort has been made to ** insure its reliability. ** */ /* ** ...
#include <string.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <malloc.h> #include <math.h> #include "AL/al.h" #include "AL/alc.h" #include "AL/alext.h" #include "alhelpers.h" #include "apu.h" #if WINDOWS_BUILD #include <windows.h> #else #include <unistd.h> #endif static LPALBUFFERSAMPLESSOFT...
/* * usbhsfs_utils.h * * Copyright (c) 2020, DarkMatterCore <<EMAIL>>. * Copyright (c) 2020, XorTroll. * * This file is part of libusbhsfs (https://github.com/DarkMatterCore/libusbhsfs). */ #include "usbhsfs_utils.h" /* Function prototypes. */ static bool usbHsFsUtilsCheckRunningServiceByName(const char *name...
// Simple UDP-to-HTTPS DNS Proxy // // (C) 2016 <NAME> // // Intended for use with Google's Public-DNS over HTTPS service // (https://developers.google.com/speed/public-dns/docs/dns-over-https) #include <sys/socket.h> #include <sys/types.h> #include <ares.h> #include <arpa/inet.h> #include <curl/curl.h> #include <errn...
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
#include<stdio.h> #include<stdlib.h> int** takeEdgeInput(int v) { int i,j=0; int **edge = (int **)malloc(v * sizeof(int *)); printf("Enter 1 if edge exists between the present Vertex and the corresponding vertex \n"); printf("\nEnter 0 if edge does not exists and also if it is same as the present vertex\n"); ...
/** * \file * * \brief Unit tests for WDT driver. * * Copyright (c) 2011 - 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met...
/* nextstep.h System dependencies for NEXTSTEP 3 & 4 (tested on 4.2PR2)... */ /* * Copyright (c) 1996-1999 Internet Software Consortium. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met...
#include <stdlib.h> #include <fcntl.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include "../miui_inter.h" #include "../miui.h" #include "../../../miui_intent.h" #include "../libs/miui_screen.h" static STATUS brightness_menu_show(struct _menuUnit *p) { switch(p->result) { ca...
#include <common_app.h> //********************************************************************* // // COMMON APP // // This file contains most of the function used to to initialize // peripherals' clock and GPIO port accoring to the pin description // of the CC3200 // //******************...
// SPDX-License-Identifier: GPL-2.0 // Copyright 2015 Texas Instruments // Copyright 2018 <NAME> // Copyright 2018 <NAME> <<EMAIL>> // TI LMU LED common framework, based on previous work from // <NAME> <<EMAIL>> #include <linux/bitops.h> #include <linux/err.h> #include <linux/of_device.h> #include <linux/leds-ti-lmu-...
/* * grid.c * * Created on: Feb 26, 2016 * Author: abauville */ #include "stokes.h" void Grid_Memory_allocate(Grid* Grid) { // Init grid and particles // ================================= Grid->nCTot = Grid->nxC*Grid->nyC; Grid->nxEC = Grid->nxC+2; Grid->nyEC = Grid->nyC+2; Grid->nECTot = Grid->nx...
#include "trip.h" double trip_score(trip t, vertex *v) { // calculates and returns the score associated to a given trip. double score = 0.0; for (uint i = 0; i < t.route.len; ++i) score += v[t.route.items[i]].score; return score; } double tour_score(uint trips_n, trip *t, vertex *v) { // ca...
#include <stdlib.h> #include <string.h> #include <math.h> #include "ladspa.h" #define RAND_STRIDE 16 #define DITHER_PORT_INPUT 0 #define DITHER_PORT_OUTPUT 1 #define DITHER_PORT_PRECISION 2 #define DITHER_UNIQUEID 5341 struct handle { unsigned rand_state_a[RAND_STRIDE]; unsigned rand_state_b[RAND_STRIDE]; ...
/* * Copyright (C) 2017 Collabora Inc. * Author: <NAME> <<EMAIL>> * Factored out from gstv4l2mpeg4enc by <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; eith...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any ...
#include "TestLink.h" #include "../../Test.h" #include <stdio.h> bool_t fnLinkPredicate(void* item, size_t index, void* args) { LinkStudent* stu =(LinkStudent*) ((char*)item - sizeof(Link)); TLogger_trace(0,"Link.predicate","in predicate,index=%d,args=%p\n",index,args); return stu->age == (int)args; } void testLink...
/* * A simple server that accepts clients over TCP and serves raw disk access * data from a KVM guest. * * (c) 2015 Massachusetts Institute of Technology */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include ...
/* dims.c,v 2.1 1992/10/14 23:33:39 drach Rel dims.c,v * Revision 2.1 1992/10/14 23:33:39 drach * 1) Access unequally-spaced dimension fields from the dimension variable. * 2) Added setdim function to modify name and units of a dimension. * This supports the SET command * * Revision 2.0 1992/03/02 23:1...
/** * @example monitor.c * * Simple monitor example which uses the monitor to capture the velocity curve * when the motion is started. */ #include <stdio.h> #include <ingenialink/ingenialink.h> /** Enable timeout. */ #define ENABLE_TIMEOUT 2000 /** Sampling period (us). */ #define T_S 1000 /** Maximum number ...
/* Copyright (c) 2009 <NAME> and <NAME>, University of Geneva 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 ...
/* -*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*- */ /* vim: set filetype=c tabstop=8 shiftwidth=4 expandtab: */ /* cs.h -- C stack manipulation. */ /* Copyright (c) 1990, <NAME>. ECoLisp is free software; you can redistribute it and/or modify it under the terms of the GNU Library General P...
/* * Copyright (c) 2018-2019, The Linux Foundation. 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 that the following conditions are met: * * * Redistributions of source ...
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/mount.h> #include <sys/prctl.h> #include <sys/types.h> #include <sys/wait.h> #include <sched.h> #include <unistd.h> #include <getopt.h> /* simple logging helpers */ static str...
/** * @section License * * The MIT License (MIT) * * Copyright (c) 2017, <NAME>, barth-dev.de * * 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 with...
/******************************************************************************/ /* Funcao : Transformar expressoes na forma infixa em pos-fixa (polonesa)*/ /* Programador : <NAME> - Arquivo : inf_pos.c */ /* Data : 09/07/2002 - Ultima atualizacao : 09/07/2002 */ /******...
/** * \file * \brief Local memory allocator for init till mem_serv is ready to use */ #include "mem_alloc.h" #include <mm/mm.h> #include <aos/threads.h> static errval_t aos_slab_refill(struct slab_allocator *slabs){ static int refill = 0; SLAB_DEBUG_OUT("[0x%08x:%s] aos_slab_refill", (int)slabs, slab...
#include <assert.h> #include <elf.h> #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define IMAGE_FILE "./image" #define ARGS "[--extended] [--vm] <bootblock> <executable-file> ..." #define OS_SIZE_LOC 0x1f8 /* structure to store command line options */ static struc...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include "kvs_net.h" #include "kvs_common.h" kvs_client_t *kvs_client_new(int fd) { kvs_client_t *c = calloc(1, sizeof(kvs_client_t)); if (c == NULL) { return NULL; } kvs_buf_null(&c->rbuf); ...
/* Copyright (c) 2003-2006 <NAME> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial...
/* * BSD 3-Clause License * * Copyright (c) 2017-2018, plures * 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, * thi...
/****************************************************************************** * @file HIDTransfer_Main.c * @brief Nano1xx Touch Key configuration sample code (UART interface) * @version 1.0.1 * @date 04, December, 2012 * * @note * Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights r...
/* Copyright (C) 2008 by <NAME> <<EMAIL>> 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; using version 2 of the License. This program is distributed in...
// Standard C libraries #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> #include "Morse.h" #include "Buttons.h" #include "Common.h" #include "Tree.h" #include "Oled.h" Node *morse_tree; uint8_t button_states; bool morse_init = false; MorseEvent current_morse_event; Node *pointer; char ...
/*!============================================================================= ============================================================================== \ingroup SLmotor \file SL_motor_servo_xeno.c \author <NAME> \date 1999 ==================================================================...
/* * This is a steganography file in C for PPM files. * The main method requires 3 arguments: requires as a first argument ‘e’ or ‘d’ to either encode or decode, * for encoding it needs two more arguments, the input file and output file, for decode it just needs the encoded file. * The program starts by asking ...
/* * The MIT License (MIT) * * Copyright (c) 2016 <NAME>. "Chip" Pearson (aka CmdrZin) * * 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 limitati...
#include "renderer.h" #include "SDL.h" #include <string.h> /* * Structs */ typedef struct s_renderer { SDL_Window *win; SDL_Renderer *renderer; SDL_Texture *tex; SDL_Rect tex_pos; int32_t hires_w; int32_t hires_h; SDL_Rect lores; } renderer_t; typedef enum e_color_type { RDR_CT_BAC...
/*- * Copyright (c) 2018 <NAME>, W8BSD * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following ...
//--------------------------------------------------------------------------- // Copyright (C) 2000 Dallas Semiconductor Corporation, 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 dea...
/* Copyright (c) 2003-2018, Xively All rights reserved. * * This is part of the Xively C Client library, * it is licensed under the BSD 3-Clause license. */ #include "xi_timed_task.h" #include "xi_handle.h" #define XI_MAX_TIMED_EVENT 64 typedef enum { XI_TTS_SCHEDULED, XI_TTS_RUNNING, XI_TTS_DELETABLE } xi_timed...
/******************************************************************************* * utils.c : General utilities ******************************************************************************/ #include "log.h" #include "utils.h" #include <ctype.h> #include <errno.h> #include <linux/limits.h> #include <stdio.h> #inc...
/** * Copyright (c) 2014, Analog Devices, 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 that the following conditions are met: * * - Redistributions of source code mus...
#include "queue.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" /* * Create empty queue. * Return NULL if could not allocate space. */ queue_t *q_new() { queue_t *q = malloc(sizeof(queue_t)); if (!q) return NULL; q->head = NULL; q->tail...
#include "tree.h" #include "stdio.h" #include "string.h" #include "malloc.h" Operand *makeOperandConst(int _const) { _Operand *data = malloc(sizeof(_Operand)); data->_const = _const; Operand *operand = malloc(sizeof(Operand)); *operand = (Operand) {1, data}; return operand; } Operand *makeOperandI...
/* Copyright (C) 2008-2011, <NAME> <<EMAIL>> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of co...
/* The MIT License * * Copyright (C) 2009 <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, modif...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include "include/decklink_c.h" bool abort_loop = false; uint8_t next_blue = 0; long width = 1920; long height = 1080; DecklinkTimeValue scheduled = 0; cdecklink_video_frame_t *generate_next_frame(cdecklink_output_t *output) { cdeckli...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <inttypes.h> #include <time.h> #include <math.h> struct Page{ int page_num; int modification; }; int lru_accu_reg = 0; int lru_write_count = 0; void lru_operation_in_refer(char* binary, int* modification_flag){ char operation...
/* * matrix.c * * Created on: Apr 22, 2020 * Author: yoda */ #include "matrix.h" matrix make_matrix(uint32_t n_rows, uint32_t n_cols) { matrix m; // set dimensions m.rows = n_rows; m.cols = n_cols; memset(m.data, 0, N_0 * R_0 * sizeof(poly)); return m; } void copy_matrix(matrix *result, matrix *t...
/* * hisi_coul_imonitor.c * * define the imonitor report interface for coul * * Copyright (c) 2012-2018 Huawei Technologies Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and ...
/* MDH WCET BENCHMARK SUITE. File version $Id: fft1.c,v 1.1 2005/11/11 10:15:38 ael01 Exp $ */ /*************************************************************************/ /* */ /* SNU-RT Benchmark Suite for Worst Case Timing Analysis ...
/****************************************************************************** * libobus - linux interprocess objects synchronization protocol. * * @file obus_utils.c * * @brief obus utilities * * @author <EMAIL> * * Copyright (c) 2013 Parrot S.A. * All rights reserved. * * Redistribution and use in source...
/* Final Datateknik Project - Minesweeper Project written by <NAME> File written in February 2021 Last modified March 2021 */ #include <stdbool.h> #include <stdlib.h> #include <pic32mx.h> #include "game.h" #include "../chipkitfuncs/timerhandler.h" #include "../config.h" void* stdout = (void*)0; // Config variables ...
/* Copyright (C) 2004 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distribut...
/* * Copyright 2017-2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/***************************************************************************//** * @file * @brief NCP host application module without threading. ******************************************************************************* * # License * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b> ************...
// example 10 // // textures and shaders #ifdef OS_WINDOWS # include "../lib/glew-2.0.0/include/GL/glew.h" # include "../lib/glew-2.0.0/src/wglew.c" #else # include "../lib/glew-2.0.0/include/GL/glew.h" # include "../lib/glew-2.0.0/src/glew.c" #endif #include "../world.h" const unsigned int numPoly = 50; float p...
//This snippet displays the numbers "1", "2" and "3" on 3 chained MAX7219 LED matrix displays. // //Connect VCC to 5V, GND to GND, and DIN, CS and CLK to GPIO pins (I used digital pin 2, 3 and 4) // //Chain the LED matrixes by connecting the 5 LED matrix output pins to the next LED matrix input pins. //The first data s...
/* * Copyright 2021-2022 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <limits.h> #include <pthread.h> #include <signal.h> #include <string.h> /* for strerror */ #include <sys/param.h> #include <unistd.h> #include <stdlib....
/* ** Copyright 1998-2003 University of Illinois Board of Trustees ** Copyright 1998-2003 <NAME> ** All rights reserved. ** ** util.c - miscellaneous utility code for libtar ** ** <NAME> <<EMAIL>> ** Campus Information Technologies and Educational Services ** University of Illinois at Urbana-Champaign */ #inclu...
/** * AES ECB routines supporting the Power 7+ Nest Accelerators driver * * Copyright (C) 2011-2012 International Business Machines 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; ...
/* * GeekOS C code entry point * Copyright (c) 2001,2003,2004 <NAME> <<EMAIL>> * Copyright (c) 2004, <NAME> <<EMAIL>> * Copyright (c) 2003,2013,2014 <NAME> <<EMAIL>> * * All rights reserved. * * This code may not be resdistributed without the permission of the copyright holders. * Any student solutions using a...
/***************************************************************************** * Copyright (c) 2019 FrontISTR Commons * This software is released under the MIT License, see LICENSE.txt *****************************************************************************/ #include "hecmw_repart.h" extern struct hecmwST_loc...
/* Copyright (C) <NAME> * See /doc/license/NOTICE.Plan9-9k.txt for details about the licensing. */ typedef struct Mii Mii; typedef struct MiiPhy MiiPhy; enum { /* registers */ Bmcr = 0x00, /* Basic Mode Control */ Bmsr = 0x01, /* Basic Mode Status */ Phyidr1 = 0x02, /* PHY Identifier #1 */ Phyidr2 = 0...
/* * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <command.h> #include <mach/sfax8.h> #include <asm/io.h> #include <errno.h> #define I2C_BASE_ADDR (0xB8100000) #define I2C_CON (0x00 + I2C_BASE_ADDR) // I2C Control register #define I2C_TAR (0x04 + I2C_BASE_ADDR) // I2C Targer address register #d...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/************************************************************************************************** * Instituto Superior Técnico - LEIC-A/2006 - Sistemas Operativos * * Ano Letivo 2016/2017 - 1o. Semestre - Projeto - Exercício 2. * * ...
/* ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support * ---------------------------------------------------------------------------- * Copyright (c) 2008, Atmel Corporation * * All rights reserved. * * Redistribution and use in so...
/* * eChronos Real-Time Operating System * Copyright (c) 2017, Commonwealth Scientific and Industrial Research * Organisation (CSIRO) ABN 41 687 119 230. * * All rights reserved. CSIRO is willing to grant you a licence to the eChronos * real-time operating system under the terms of the CSIRO_BSD_MIT license. See ...
/* * Copyright (c) 2010 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributin...
/* * filter registration * Copyright (c) 2008 <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...