text
stringlengths
5.8k
28.2k
/**************************************************************************** * * * ardop_setup.c -- Routines used to set up the parameters for a run * * Copyright (c) 2004, Geophysical Institute, University of Alaska Fairbanks * * ...
/* Library libcerf: * Compute complex error functions, based on a new implementation of * Faddeeva's w_of_z. Also provide Dawson and Voigt functions. * * File err_fcts.c: * Computate Dawson, Voigt, and several error functions, * based on erfcx, im_w_of_x, w_of_z as implemented in separate files. * * G...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998 <NAME> * * GRAFCET chart support * Copyright(C) 2000 <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; eit...
/* * Copyright 2015 Rockchip Electronics Co. LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/****************************************************************************** Copyright (C) 2013 by <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...
/* This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, propaga...
//Schlumberger 2012 - written by <NAME> (<EMAIL>) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <mex.h> #include "matrix_toolbox_ag.h" FILE *f1; int estimate_steering_parameters(double *C00, double *C01, double *C11, double *sigma_1_mat, double *sigma_2_ma...
/****************************************************************************** * Filename: uart.c * Description: Contains UART hardware functions. Perfoms data transmission * and reception, handles ISRs to everything in the background. ******************************************************************...
/* $OpenBSD: aztech.c,v 1.1 2001/10/04 20:15:42 gluk Exp $ */ /* $RuOBSD: aztech.c,v 1.8 2001/10/04 18:51:50 pva Exp $ */ /* * Copyright (c) 2001 <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, a...
/* exynos_drm_crtc.c * * Copyright (c) 2011 Samsung Electronics Co., Ltd. * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in th...
#include "libs/bitmap.h" #include <getopt.h> #include <mpi.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define uchar unsigned char // Convolutional Kernel Examples, each with dimension 3, // gaussian kernel with dimension 5 // If you apply another kernel, remem...
/* + This is a wrapper for matlab std I/O functions + Supported Types (LOAD): mxCELL_CLASS mxSTRUCT_CLASS mxLOGICAL_CLASS mxCHAR_CLASS Y mxDOUBLE_CLASS Y mxSINGLE_CLASS Y mxINT8_CLASS Y mxUINT8_CLASS Y mxINT16_C...
#include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <assert.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #include "common.h" #include "vram.h" static uint16_t clutatlas[VRAM_NUM_CLUT_PAGES][VRAM_CLUT_PAGE_SIZE]; static int clutptr[VRAM_NUM_CLUT_PAGES]; static vram_rect_t cl...
/***************************************************************************** * sink_udp.c * this file is part of https://github.com/ouistiti-project/putv ***************************************************************************** * Copyright (C) 2016-2017 * * Authors: <NAME> <<EMAIL>> * * Permission is here...
#include <stdio.h> #include <rand.h> #include "tile.h" /* マップ情報(10x9) */ const int MAP_WIDTH = 10; const int MAP_HEIGHT = 9; // マップ配列 unsigned int map[9][10]; // 初期化用デフォルトマップ unsigned int default_map[9][10] = { {1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,1}, {1,0,...
/* Copyright (c) IBM Corporation 2000, 2018 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 in writing, softw...
// // depak.c // silm-depack // // Silmarils resource files depacker // Dumb-reversed from Atari ST version // No clue about what decompression algorithm this is :( // #include "depack.h" void depak_2(void); void depak_6(void); void depak_11(void); void get_moar_data(void) {} uint8_t * p_depak = NULL; uint8_t *...
/* lsb2rcconf - prints configuration for openrc's rc.conf based on LSB Copyright (c) 2014-2016, <NAME> <<EMAIL>> 0x8E30679C 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 sou...
/* * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application * Copyright (C) 2005-2014, <NAME> <<EMAIL>> * * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Li...
/***************************************************************************//** * @file main.c ******************************************************************************** * Copyright 2013(c) Analog Devices, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or with...
#line 1 "src/gdb_parser.rl" #include <stdio.h> #include <stdint.h> #include <string.h> #include <assert.h> #include "pdbgproxy.h" #line 105 "src/gdb_parser.rl" static enum gdb_command cmd = NONE; static uint64_t stack[10], *data = stack; static char *rsp; static uint8_t crc; static int cs; command_cb *command_ca...
/************************************************* * pcregrep program * *************************************************/ /* This is a grep program that uses the PCRE regular expression library to do its pattern matching. On a Unix or Win32 system it can recurse into directories. ...
/* Copyright 2021 <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 agreed to in writing...
/* Copyright 2018 The Chromium OS 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 "console.h" #include "cryptoc/util.h" #include "dcrypto.h" #include "internal.h" #include "trng.h" /* V = HMAC(K, V) */ static void updat...
// // audio.h // Where all the real work is done // // Licensed under the BSD license. See LICENSE for details. // Copyright (c) 2006 <NAME> <<EMAIL>> // #include "audio.h" #include "utility.h" #include <pspaudio.h> #include <pspkernel.h> #include <pspdebug.h> #include <pspdisplay.h> #include <psppower.h> #include...
#if defined(__linux__) || defined(linux) || defined(__unix__) || defined(unix) || defined(__CYGWIN__) || defined(__MACH__) #define UNIX_LIKE 1 #endif #if defined(__MSDOS__) || defined(_MSDOS) || defined(__DOS__) #ifndef MSDOS #define MSDOS 1 #endif #endif #if defined(_M_I86) #define __16BIT__ 1 #endif typedef unsign...
/* * This file was part of the libopencm3 project, but highly modifyed. * * Copyright (C) 2013 <NAME> <<EMAIL>> * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 o...
/* GStreamer * Cradioacyright (C) <2009> <NAME> <<EMAIL>> * * EffecTV - Realtime Digital Video Effector * Cradioacyright (C) 2001-2006 <NAME> * * RadioacTV - motion-enlightment effect. * Cradioacyright (C) 2001-2002 <NAME> * * EffecTV is free software. This library is free software; * you can redistribute it ...
/** ****************************************************************************** * File Name : main.c * Date : 21/10/2014 09:21:14 * Description : Main program body ****************************************************************************** * * COPYRIGHT(c) 2014 STMicroe...
/* * (C) Copyright 2005 * <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 of the GNU General Public License as * published by the Free Software Foundation; either version 2 o...
/***************************************************************************** * * \file * * \brief Control Panel local time module. * * The local time module is in charge of the Control Panel local time management. * * - Supported boards: EVK1100 * * * Copyright (c) 2009-2014 Atmel Corporation. All rights...
/** * @file main.c * - The sprite insertion tool cui interface main source */ #include <bolib.h> #include <stdio.h> #include <string.h> #include "compiler.h" #include "common/defaults.h" #include "common/strres.h" #include "common/version.h" #include <assert.h> #include <setjmp.h> #if isWindows # include <windows...
/* mv -- move or rename files Copyright (C) 1986, 1989-1991, 1995-2011 Free Software Foundation, 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, either version 3 of the License, or ...
/*** Copyight (c) 1996 xTech Ltd. Russia ***/ /* Lexical analizier for CTRout(CityRout) - Compiler Testing Routine Den: 9-Aug-96 */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <limits.h> #include <string.h> #include "ct...
/*************************************************************************** * * Copyright (C) 1998 by mbritton <NAME> * Licensed under the Academic Free License version 2.1 * ***************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <string.h>...
/****************************************************************************** Copyright (C) 2011-2012 by <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restri...
/* * * Copyright 2017 gRPC authors. * * 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 agree...
#include "f2c.h" /* Subroutine */ int dpptrf_(char *uplo, integer *n, doublereal *ap, integer * info) { /* -- LAPACK routine (version 2.0) -- Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., Courant Institute, Argonne National Lab, and Rice University March 31, 1993 ...
/*!****************************************************************** * \file fxos8700.h * \brief Acceleromter & Magnetometer * \author Sens'it Team * \copyright Copyright (c) 2018 Sigfox, All Rights Reserved. * * This file provide sample code to use Light sensor (ref: FXOS8700CQ).<BR> * If you want to use other...
/* HTTP Restful API Server 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. */ #include <string....
/* Little Smalltalk version 3 Written by <NAME>, Oregon State University, July 1988 bytecode interpreter module given a process object, execute bytecodes in a tight loop. performs subroutine calls for a) finding a non-cached method b) executing a primitive otherwise simply lo...
/****************************************************************************** Copyright (c) 1995, 1996 Xerox Corporation. All rights reserved. Portions of this code were written by <NAME>, aka ghond. Use and copying of this software and preparation of derivative works based upon this software are permitted. ...
#include "init.h" /*********User editable variables*********/ //these constants are ordered by: // 0 - right coronal ankle // 1 - right sagittal ankle // 2 - right sagittal knee // 3 - right sagittal hip // 4 - right coronal hip // 5 - left coronal ankle // 6 - left sagittal ankle // 7 - left sagittal knee ...
// Copyright 2011-2021 <NAME> <<EMAIL>> // SPDX-License-Identifier: ISC #undef NDEBUG #include "exess/exess.h" #include <assert.h> #include <stdbool.h> static inline bool less(const int cmp) { return cmp < 0; } static inline bool equal(const int cmp) { return cmp == 0; } static inline bool greater(const int c...
#include "heap.h" #include "paging.h" #include "kstdio.h" void heap_init() { kp("Heap Initializing"); kheap = heap_create(KHEAP_START, KHEAP_START+KHEAP_INITIAL_SIZE, KHEAP_START+KHEAP_MAX_ADDRESS, 0, 0); } uint32_t physical_address(void* virt) { page_t *page = get_page((uint32_t)virt, 0, kernel_directory); retur...
#include "../debug.h" #include "pte_types.h" #include "pte_osal.h" #include <nautilus/libccompat.h> #include <nautilus/scheduler.h> #include <nautilus/semaphore.h> #include <nautilus/waitqueue.h> #define BOGUS_FUN_ERR() ERROR_PRINT("Function (%s) is BOGUS\n", __func__) #define BOGUS() BOGUS_FUN_ERR() #define STATE_U...
/* * Acess2 Native Kernel * - Acess kernel emulation on another OS using SDL and UDP * * Syscall Server */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <SDL/SDL.h> #ifdef __WIN32__ # define _WIN32_WINNT 0x0501 # include <windows.h> # include <winsock2.h> # include <ws2tc...
/* * ----------------------------------------------------------------- * $Revision: 4173 $ * $Date: 2014-07-20 22:11:56 -0700 (Sun, 20 Jul 2014) $ * ----------------------------------------------------------------- * Programmer(s): <NAME>. * Based on cvRoberts_dns.c and modified to use KLU. * --------------...
#include <u.h> #include <libc.h> #include <ctype.h> /* * This routine will convert to arbitrary precision * floating point entirely in multi-precision fixed. * The answer is the closest floating point number to * the given decimal number. Exactly half way are * rounded ala ieee rules. * Method is to scale input ...
/* * QuickJS libuv bindings * * Copyright (c) 2019-present <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
#include <string.h> #include "rsa.h" #include "xci.h" /* This RSA-PKCS1 public key is only accessible to the gamecard controller. */ /* However, it (and other XCI keys) can be dumped with a GCD attack on two signatures. */ /* Contact SciresM for details, if curious. */ static const unsigned char xci_header_pubk[0x100]...
/* * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved. * Copyright (c) 2011 Mellanox Technologies LTD. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, ...
/**************************************************************************** * * Copyright (c) 2015 PX4 Development Team. All rights reserved. * Author: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or witho...
/* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. *******************************************************************************/ #ifdef HAVE...
/* seq.c -- procedures for reading a file of DNA sequences */ static const char rcsid[] = "$Id: seq.c 142 2008-11-12 18:55:23Z rico $"; #include "util.h" #include "seq.h" #include "nib.h" #include "charvec.h" #include <stdarg.h> #include <stdio.h> #include <errno.h> #define _ (-1) int KEEP_SEQ = 0; extern cons...
/* s390-mkopc.c -- Generates opcode table out of s390-opc.txt Copyright (C) 2000-2020 Free Software Foundation, Inc. Contributed by <NAME> (<EMAIL>). This file is part of the GNU opcodes library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General ...
//////////////////////////////////////////////////////////////////////////////// // // File : block_sim.c // Description : This is the main program for the CMPSC311 programming // assignment #2 (beginning of BLOCK interface). // // Author : <NAME> // // Include Files #include...
/*------------------------------------------------------------------------- * * ftsfilerep.c * Implementation of interface for FireRep-specific segment state machine * and transitions * * Copyright (c) 2005-2010, Greenplum Inc. * Copyright (c) 2011, EMC Corp. * *--------------------------------------------...
/* * Copyright 2009 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * on the rights to use, copy, modify, merge, pub...
#if !defined(lint) && !defined(DOS) static char rcsid[] = "$Id: signal.c 138 2006-09-22 22:12:03Z <EMAIL> $"; #endif /* ======================================================================== * Copyright 2006-2007 University of Washington * Copyright 2013-2016 <NAME> * * Licensed under the Apache License, Version...
/* * Copyright (c) 2000 <NAME> * Copyright (c) 2000 Massachusetts Institute of Technology * * 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 ...
/* * Copyright (c) 2006 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of condi...
/* 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. *************************************************************************** * ...
/* * Copyright (c) 2008 - 2012, <NAME>, All Rights Reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specifi...
#include <string.h> #include <stdlib.h> #include <stdint.h> #include <sodium.h> #include "telehash.h" #include "telehash.h" #include "telehash.h" // undefine the void* aliases so we can define them locally #undef local_t #undef remote_t #undef ephemeral_t typedef struct local_struct { uint8_t secret[crypto_box_SEC...
/******************************************************************************* Intel PRO/10GbE Linux driver Copyright(c) 1999 - 2008 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, version 2, as pu...
// // ctohtml.c // // Convert C source files to HTML // // Copyright (C) 2011 <NAME>. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the a...
/* x86_64 fat binary initializers. Contributed to the GNU project by <NAME> (original x86_32 code) and <NAME> (port to x86_64) THE FUNCTIONS AND VARIABLES IN THIS FILE ARE FOR INTERNAL USE ONLY. THEY'RE ALMOST CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN FUTURE GNU MP RELEAS...
/* * 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...
/* $XConsortium: Command.c,v 1.79 94/04/17 20:11:58 kaleb Exp $ */ /*********************************************************** Copyright (c) 1987, 1988, 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
/* * Copyright (c) 1998-2016 Carnegie Mellon University. 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...
/* SEAREP.C handles input for Search and Replace */ #include <stdio.h> #include <allegro.h> #include "fpge.h" #include "searep.h" #include "drawmap.h" #include "undo.h" char srTTStr[8]="0"; char srRDStr[8]="0"; char srTNStr[8]="0"; char srGLNStr[8]="0"; char srSDStr[8]="0"; char srrTTStr[8]="0"; char srrRDStr[8]="0";...
//<NAME> //clang 120mainCamera.c 000pixel.o -lglfw -framework OpenGL; ./a.out #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdarg.h> #include "000pixel.h" #include "110depth.c" #include "100vector.c" #include "100matrix.c" #include "040texture.c" #include "120renderer.c" //Defining bounds #define...
#include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <stdarg.h> #include <string.h> #include <fcntl.h> #include <getopt.h> #include <iptables.h> #include <xtables.h> #include <netinet/ether.h> #include <linux/netfilter_bridge.h> #include <linux/netfilter/nf_tables...
/* * 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...
/* Copyright (C) 2013-2014 <NAME> */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <pthread.h> #include <poll.h> #include <sys/syscall.h> #ifdef __GLIBC__ #define gettid() syscall( __NR_gettid ) #endif #define FREE(p) (ngx_free(p), p = NULL) #define BEAN_MAX_CONNECTIONS 1 ...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2017-2018 HUAWEI, Inc. * https://www.huawei.com/ * Copyright (C) 2021, Alibaba Cloud */ #include "xattr.h" #include <trace/events/erofs.h> /* * if inode is successfully read, return its inode page (or sometimes * the inode payload page if i...
/* * Copyright (c) 2018-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2020 <NAME>. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #in...
/* Copyright (c) 2016, Google 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 permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
/* ========================================================================== ** * * MD4.c * * Copyright: * Copyright (C) 2003-2005 by <NAME> * * Email: <EMAIL> * * $Id: MD4.c,v 0.11 2005/06/08 18:35:05 crh Exp $ * * --------------------------------------------------------...
/* * standby driver for allwinnertech * * Copyright (C) 2015 allwinnertech Ltd. * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include "stand...
/*- * Copyright (c) 2013 <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 of co...
#include "bndstruct.h" void bnd_eigcha(double * eig_hk, int * ndegen, dcomplex *** p2sym_chas, dcomplex *** p2sym_eigs, smallgroup * sgrp, double lattice[3][3], double rotations[][3][3], double translations[][3], int TR[], double rots_kd[][3][3], int nsymm, wannorb * orb_info, int flag_...
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
/***************************************************************************** * message_test.c: HTTP request/response test ***************************************************************************** * Copyright (C) 2015 <NAME> * * This program is free software; you can redistribute it and/or modify * it under ...
/* * Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2011 The University of Tennessee and The University * of Tennessee Resea...
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
// ------------------------------------------------------------------------------ // TLS_CLIENT // // - Cliente TLS 1.2. // // - Comprueba si el certificado del servidor es válido y, en caso de que falle // la verificación, el handshake TLS es abortado al no poder autenticarse el // servidor. // // - Permite añadir...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> char* load_text_file(const char* path) { FILE* file = fopen(path, "rb"); if (!file) return NULL; fseek(file, 0, SEEK_END); int file_size = ftell(file); fseek(file, 0, SEEK_SET); char* contents = (char*)malloc(file_size + 1); fread...
/* Non pre-empting synchronization kernel, machine-independent portion */ #if defined(PROCLOG) || defined(PROCTRACE) #include <stdio.h> #endif #include <dos.h> #include <setjmp.h> #include "global.h" #include "mbuf.h" #include "proc.h" #include "timer.h" #include "socket.h" #include "daemon.h" #include "h...
/* * Copyright (c) 2002-2006 MontaVista Software, Inc. * Copyright (c) 2006-2009 Red Hat, Inc. * * All rights reserved. * * Author: <NAME> (<EMAIL>) * * This software licensed under BSD license, the text of which follows: * * Redistribution and use in source and binary forms, with or without * modification, ...
#pragma once #include "../comms/i2c.h" // GENERAL #define MPU6050_ADDRESS 0x68 #define MPU6050_ADDRESS_AD0_LOW 0x68 // addr pin low (GND) [default] #define MPU6050_ADDRESS_AD0_HIGH 0x69 // addr pin high (VCC) // REGISTER ADDRESSES #define MPU6050_REG_XG_OFFS_TC 0x00 #define MPU6050_REG_YG_OFFS_TC 0x01 #define MPU60...
#include "kernel/types.h" #include "user/user.h" #include "user/tsh.h" #include "kernel/fcntl.h" #define YES 1 #define NO 0 #define EOF -1 static char *default_prompt = "tsh> "; typedef struct BufferedLine { int len; // number of items (chars) in the buffer char bu...
/* * This file is part of fastq-tools. * * Copyright (c) 2012 by <NAME> <<EMAIL>> * * fastq-sort: * Sort fastq files efficiently. * */ #include <assert.h> #include <ctype.h> #include <getopt.h> #include <string.h> #include <time.h> #include <unistd.h> #include "common.h" #include "parse.h" /* User compariso...
/* mrwlock.c implements a multiple-read/write lock, as described by mrwlock.h. * * Naturally, being seriously multi-threaded, this code is incredibly difficult * to read/write/debug. Consider yourself warned. * * The purpose of this lock is to limit the number of active readers and * writers to a resource. Op...
#include "source.h" #include "error.h" #include <libavcodec/avcodec.h> #include <libavcodec/avfft.h> #include <libavformat/avformat.h> #include <libavutil/avutil.h> #include <libswscale/swscale.h> // Changes for ffmpeg 3.0 #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57,24,0) # include <libavutil/imgutils.h> # defin...
/* * Copyright (C) 2017 BlueKitchen GmbH * * 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 follo...
/* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
/* * Most of the websocket code comes from this unfinished fork: * * https://github.com/zerotao/libevhtp/tree/libevhtp2 * * It was reintegrated into libevhtp by the authors of Rampart * with sooooo much gratitude for not having to do this from scratch * -ajf * * Changes and additions, Copyright (c) 2021 <...