text
stringlengths
3.08k
10.5k
/* * Duktape 1.4.0 (and unpatched previous versions) had a bug in refcount * finalizer handling: when the rescued object was queued back into the * heap_allocated list, the "prev" pointer of the previous list head (which * becomes the "next" of the inserted object) was not updated. * * The "prev" pointer wil...
/*- * BSD LICENSE * * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. * 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 cod...
/* * Copyright 2014-2016 Nippon Telegraph and Telephone Corporation. * * 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 requi...
/* Copyright (c) 2011 <NAME>, <NAME>, and contributors 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, pub...
// // Created by XiaoBai on 16/1/24. // #include <stdio.h> #include <stdlib.h> #include <string.h> // hello world void hello_word() { printf("Hello World!"); } // 1.变量类型 void type_demo() { printf("%s\n", "变量类型"); // 变量声明 int v1; // 变量赋值 v1 = 0; // 变量声明并初始化 float v2 = 2.333; //...
#include "SHARDS.h" #include "memcached.h" #include "shards_monitor.h" static SHARDS *shards_array[MAX_NUMBER_OF_SLAB_CLASSES]; static unsigned int item_sizes[MAX_NUMBER_OF_SLAB_CLASSES]; static int NUMBER_OF_SHARDS =0; int number_of_objects=0; int OBJECT_LIMIT= 100; unsigned int epoch =1; char* mrc_path = "./Results...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/poll.h> #include <linux/if.h> #include <linux/if_tun.h> #include "util.h" #include "net.h" #includ...
//%LICENSE//////////////////////////////////////////////////////////////////// // // Copyright (c) 2015 <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>) // // Distributed under the MIT License (See accompanying file LICENSE) // ////////////////////////////////////////////////////////////////////////// // //%///////////////////...
#include "geminc.h" #include "gemprm.h" #include "app.h" int apptabFindIcon ( char *result, const char *icon_file ); apptab *apps_bp; /************************************************************************ * apptab.c * * ...
#include <unistd.h> #include <termios.h> #include <stdio.h> #include <bcm2835.h> // ************************************************************************************ // Test program to control steering servo and throttle ESC (electronic speed control) // via hardware pwm of raspberry pi. // Steering servo has to be...
/* * Copyright (C) 2015-2016 Texas Instruments Incorporated * * All rights reserved. Property of Texas Instruments Incorporated. * Restricted rights to use, duplicate or disclose this code are * granted through contract. * * The program may not be used without the written permission of * Texas Instr...
/* * Copyright (c) 2020-21, Kalopa Robotics 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: * * 1. Redistributions of source code must retain the above copyright * notice, thi...
// // fh_linked.c // LinkedListDemo // // Created by imac on 2017/9/27. // Copyright © 2017年 com.GodL.github. All rights reserved. // #include "fh_linked.h" #include <stdlib.h> linkNode *linkNodeify(void *value) { linkNode *node; if ((node = malloc(sizeof(*node))) == NULL) return NULL; node->value = v...
/* * 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...
/* ETAPE 9 : Tubes simples */ #include <stdio.h> /* E/S comme printf */ #include <stdbool.h> /* Booléens */ #include <stdlib.h> /* exit */ #include <errno.h> ...
#define NWALK 16384 #define NLIST 40000000 #include<stdlib.h> #include<stdio.h> #include<math.h> #include <sys/mta_task.h> #include <machine/mtaops.h> #include <machine/runtime.h> int list[NLIST+1], rank[NLIST+1]; double time1, time2, time3, time4, time5, time6; double timer() { return((double)mta_get_clock(0)...
/* * Copyright (C) <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 rights to use, copy, modify, merge, publish...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> void cls(void) { int c; do { c = getchar(); } while (c != '\n' && c != EOF); } struct char_b { const char c[8];}; int encode(const char *input, char *txt, const char *output) { if (input == NULL || txt == NULL || ou...
#include <stdio.h> #include <ctype.h> #include "httpd.h" #include "http_config.h" #include "http_log.h" #include "apr_strings.h" #include "common.h" #include "util_md5.h" /* The MIT License (MIT) Copyright (c)2014 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this softwa...
#include <stdio.h> #include <dlfcn.h> #include <string.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #include "liblicense.h" const char *licenseDirPath = "../../register/"; const char *productNameString = "switch-directory-chain"; const char *libshardPath = "../../../linklib/plugin/liblicense.so";...
/* * Filename: main.c * Part of lab 10 * Created by <NAME>(gabwatso) and <NAME> (sijlee) * Created on 3/25/2016 * Last modified by gabwatso and <NAME> (sijlee) * Last Modified on 3/31/2016 */ /* Code: */ #include <stm32f30x.h> // Pull in include files for F30x standard drivers #include <f3d_led.h> #include <f3d...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include <stdio.h> #include <stdbool.h> #include <math.h> #include <stdlib.h> #include "defines.h" // 输出当前数据 void printGame(int row, int col, int gameDatas[row][col]) { for (int i = -1; i < col; i++) { if (i == -1) { printf(" "); } else { printf("%x ", i); } } ...
/* $Id: xml.c,v 1.3 2017/12/01 17:26:02 root Exp root $ $Log: xml.c,v $ Revision 1.3 2017/12/01 17:26:02 root Redmine version Revision 1.2 2017/11/28 13:07:01 fjl Almost fixed / bug Revision 1.1 2017/11/27 19:09:06 fjl Initial revision */ #include <stdio.h> #include <string.h> typedef struct { ch...
/* thready - A lightweight and fast scheduling simulator Written in 2019 by <NAME> <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have...
/* * Copyright (c) 2004-2006 <NAME> <<EMAIL>> * Copyright (c) 2006-2007 Sippy Software, Inc., http://www.sippysoft.com * 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. Redistribution...
/* * * Copyright (c) International Business Machines Corp., 2001 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
/* $OpenBSD$ */ /* * Copyright (c) 2007 <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...
#include "ui-util.h" #include "config.h" #include "pixel.h" #include "util.h" #include "xalloc.h" #include <string.h> void color_map_init(struct color_map *map) { map->pair_num = 0; memset(map->pixel2pair, 0, sizeof(map->pixel2pair)); } int color_map_add_pair(struct color_map *map, d3d_pixel pix) { if (pix >= size...
/* ode-initval/rk4imp.c * * Copyright (C) 1996, 1997, 1998, 1999, 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; either version 2 of the License, or (at * your option) an...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <unistd.h> #include <fcntl.h> #include <sys/epoll.h> #include <errno.h> #include <stdbool.h> #define BACKLOG 10 #define SERVICE "echo" #define BUF_SIZE 4096 /** for log e...
/* $Id: pidfile.c,v 1.3 2006/06/23 11:01:50 kamada Exp $ */ /* * Copyright (C) 2006 WIDE Project. * 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 ...
#include <stdlib.h> #include "../singlezone.h" #include "../mdf.h" #include "../utils.h" #include "../stats.h" #include "mdf.h" /* * Setup the metallicity distribution functions. This does nothing more and * nothing less than give each abundance and ratio distribution an array of * zeroes representing the value i...
/** * \file * unit tests for getdns_dict helper routines, these should be used to * perform regression tests, output must be unchanged from canonical output * stored with the sources */ /* * Copyright (c) 2013, NLNet Labs, Verisign, Inc. * All rights reserved. * * Redistribution and use in source and binary f...
/*************************************************************************\ * Copyright (C) <NAME>, 2018. * * * * This program is free software. You may use, modify, and redistribute it * * under the terms of the ...
/* task.c task copying (aka continuation) for lightweight processes (symmetric coroutines) */ #include "julia.h" // Workaround for JuliaLang/julia#32812 jl_task_t *vanilla_get_current_task(void) { jl_ptls_t ptls = jl_get_ptls_states(); return (jl_task_t*)ptls->current_task; } jl_task_t *jl_enable_stack_c...
/* * * Copyright (c) 2016-2020 <NAME> * * This is hyx version 2020.12.24. * Check for newer versions at https://yx7.cc/code. * Please report bugs to <EMAIL>. * * Contributors: * 2018, anonymous Faster search algorithm. * 2020, <NAME> Suspend on ^Z. File information on ^G. * * This progra...
#if !defined(APPLE) #include <omp.h> #endif #include <TH/TH.h> #include "transducer.h" inline float log_sum_exp(float a, float b) { if (!isfinite(a)) return b; if (!isfinite(b)) return a; if (a > b) return log1p(exp(b-a)) + a; else return log1p(exp(a-b)) + b; } inline int idx3(int t...
/* * Copyright (C) Mellanox Technologies Ltd. 2021. ALL RIGHTS RESERVED. * See file LICENSE for terms. */ #include "config.h" #include "ucc_topo.h" #include "ucc_context.h" #include "utils/ucc_malloc.h" #include "utils/ucc_math.h" #include <string.h> #include <limits.h> static int ucc_topo_compare_proc_info(const...
/* $OpenBSD: disksubr.c,v 1.77 2015/09/29 20:24:25 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* * Copyright (c) 1996 <NAME> * Copyright (c) 1982, 1986, 1988 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms,...
/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */ /* * Copyright (C) 2014 <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 restrict...
/* Copyright (c) 2015, Plume Design Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* * Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. 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,...
#include "obj.h" #include "io.h" int isDebug = 0; int32_t load(uint32_t addr, enum BaseType type) { if (addr < MMAX) { if (type = i8) return *(int8_t*)&m[addr]; if (type = u8) return *(uint8_t*)&m[addr]; if (type = i16) return *(int16_t*)&m[addr]; if (type = u16) return *(uint16_t*)&m[addr]; i...
/* * disk/ubi_soft.c * * Custom format as used by Jupiter's Masterdrive and Celtic Legends from Ubi Soft: * * Written in 2022 by <NAME> * * RAW TRACK LAYOUT: * 23 sectors: * u32 0x44894489 :: Sync * u16 pad :: 0x2aaa * u16 pad :: 0xa888 * u32 data[260] :: Even blocks (252 + 8 bytes for header and check...
#include "ogl_shader.h" #include "../../../memory/mmemory.h" #include <memory.h> #include <malloc.h> #include "../../../core/logger.h" #define UNIMPLEMENTED_DATA_SIZE 6553 typedef struct { u32 id; }internal_memory; #include <stddef.h> #include <glad/glad.h> #include <stdlib.h> #include <stdio.h> const char * G...
/*- * Copyright (c) 2018 <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...
/* * ngtcp2 * * Copyright (c) 2019 ngtcp2 contributors * * 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, m...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2008, 2007, 2006, 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 Ge...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Tor<NAME> Permission is hereby granted, free of charge, to any person obtaining a copy o...
/*------------------------------------------------------------------------------ * rtklib unit test driver : norad two line element function *-----------------------------------------------------------------------------*/ #include <stdio.h> #include <assert.h> #include "../../src/rtklib.h" #define OUT stdout /* dump ...
/* * API tests for duk_get_heapptr(), duk_require_heapptr(), duk_push_heapptr(). */ /*=== *** test_basic (duk_safe_call) top: 7 idx 0: type 1, duk_get_heapptr() -> NULL idx 0: type 1, duk_require_heapptr() -> TypeError: heapobject required, found undefined (stack index 0) top: 7 idx 1: type 2, duk_get_heapptr() -> ...
/* rng/r250.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 <NAME>, <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 ...
//**********************************************************************; // Copyright (c) 2017, Intel Corporation // 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 s...
/* Machine description file for Motorola System V/88 machines Copyright (C) 1985 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs 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...
#include "cache.h" #include "dir.h" #include "iterator.h" #include "dir-iterator.h" struct dir_iterator_level { int initialized; DIR *dir; /* * The length of the directory part of path at this level * (including a trailing '/'): */ size_t prefix_len; /* * The last action that has been taken with the cu...
/* * Copyrighted, Research Foundation of SUNY, 1998 */ /* * data.c - this file contains all the routines to initialize and * maintain information regarding the input data and the adjacency * tree of point v */ #include "stdafx.h" #include "data.h" #include "lkc_prototype.h" #include "ma_prototype.h" /* INIT...
/*============================================================================ * Autor: <NAME> * Fecha: 2017-04-03 Ejemplo 1: Semáforo Estados: - 1-rojo - 2-rojo-amarillo - 3-verde - 4-amarillo Cambio de estados por tiempo: - Rojo: 2seg - Rojo-amarillo: 1seg ...
/* * Copyright (c) 2009-2011 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2004-2006 The University of Tennessee and The University * of Tennessee Research Foundation. ...
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <strings.h> #include <time.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/sysinfo.h> #include <arpa/inet.h> #include <net/if.h...
/* qmark.c -- quote 'dangerous' filenames Copyright (C) 2005 Free Software Foundation, Inc. Derived from courutils' ls.c: Copyright (C) 85, 88, 90, 91, 1995-2005 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General...
/* * Copyright (c) 2009 Public Software Group e. V., Berlin, Germany * * 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 right...
/* * Copyright (c) 1983, 1988, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above...
#include <stdio.h> unsigned char jpeg0[] = { 0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0xFF, 0xDB, 0x00, 0x43, 0x00, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2...
#include "logger.h" #include "logger_defs.h" #include "handler.h" #include "database.h" #include "view/view.h" #include "utils.h" #include "filter/filter.h" #include <stdlib.h> #include <string.h> #include <stdio.h> enum format_item_type { INSTRING, INT, ULONG, STRING, BUFFER }; struct format_item { enum format...
/* Copyright (c) 2016, Appiko * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions a...
#include "tables.h" #include "../library/domoticaTi.h" #include <mariadb/mysql.h> int validateArduino(struct arduino); void createInsertQueryArduino(char*, struct arduino); void createUpdateQueryArduino(char*, struct arduino); struct arduino readArduinoJSON(); int CONTENT_SIZE = 0; int main(int argc, const char* ar...
/* * AppArmor security module * * This file contains AppArmor /proc/<pid>/attr/ interface functions * * Copyright (C) 1998-2008 Novell/SUSE * Copyright 2009-2010 Canonical Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * ...
/* * MicroDVD subtitle demuxer * Copyright (c) 2010 <NAME> <<EMAIL>> * Copyright (c) 2012 <NAME> <u pkh me> * * 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 Fou...
/*========================================================================= | (c) 2003-2007 Total Phase, Inc. |-------------------------------------------------------------------------- | Project : Aardvark Sample Code | File : aai2c_eeprom.c |------------------------------------------------------------------------...
/* * (C) Copyright 2016-2020 Intel Corporation. * * 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 o...
/* * Copyright (c) 2013, Institute for Pervasive Computing, ETH Zurich * 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 ...
/* Test file for mpfr_set_z. Copyright 1999, 2001-2016 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. The GNU MPFR Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Licens...
// SPDX-License-Identifier: GPL-2.0 // Copyright (c) 2020 Intel Corporation /* * sof_sdw_rt1308 - Helpers to handle RT1308 from generic machine driver */ #include <linux/device.h> #include <linux/errno.h> #include <sound/soc.h> #include <sound/soc-acpi.h> #include "sof_sdw_common.h" #include "../../codecs/rt1308.h...
/* import binascii import os from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.backends import default_backend key = b'k' * 16 iv = b'\x00' * 16 backend = default_backend() cipher = Cipher(algorithms.AES(key), modes.CBC(iv), backend=backend) encryptor = cipher.encry...
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2010 <NAME> 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.1 of the License, or (at your option) ...
// SPDX-License-Identifier: GPL-2.0-only /* * Junction temperature thermal driver for Maxim Max77620. * * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. * * Author: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <linux/irq.h> #include <linux/interrupt.h> #include <linux/mfd/max77620.h> #inclu...
/* * $Id: appdservice.c 3.0 2016-08-04 12:22:17 cmayer $ * * * Copyright 2016 AppDynamics, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
#include <yed/plugin.h> #include <yed/syntax.h> static yed_syntax syn; #define _CHECK(x, r) \ do { \ if (x) { \ LOG_FN_ENT...
/* cairo - a vector graphics library with display and print output * * Copyright © 2002 University of Southern California * Copyright © 2005 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public * License version 2.1 as...
/* Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ #include <zephyr.h> #include <sys/atomic.h> #include "event_manager.h" #include "motion_event.h" #include "power_event.h" #include "hid_event.h" #include <shell/shell.h> #include <shell/shell_rtt.h> #def...
/* * ngene-i2c.c: nGene PCIe bridge driver i2c functions * * Copyright (C) 2005-2007 Micronas * * Copyright (C) 2008-2009 <NAME> <<EMAIL>> * Modifications for new nGene firmware, * support for EEPROM-copying, * support for new dual DVB-S2 c...
#include "minunit.h" #include <io.h> #include <connection.h> #include <register.h> #include <assert.h> #include <mem/halloc.h> #include <fcntl.h> Connection *fake_conn(const char *file, int mode) { Connection *conn = calloc(sizeof(Connection), 1); assert(conn && "Failed to create connection."); int fd = ...
#include <stdio.h> #include <string.h> #include <gmp.h> #include <ak_hash.h> const static ak_uint8 prime[32] = { 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233 }; /* ----------------------------...
/*====================================================================* - Copyright (C) 2001 Leptonica. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of so...
/* Copyright (C) 1995 by Prentice-Hall, Inc. Permission is hereby granted * to redistribute the binary and source programs of this system for * educational or research purposes. For other use, written permission from * Prentice-Hall is required. */ #define EXTERN extern /* used in *.h files */ #define P...
#include "bitfield.h" #include "kmain.h" #include "lib/malloc.h" #include "lib/printf.h" #include "lib/types.h" #include "x86/multiboot.h" #include "page_frame.h" void page_frame_init(multiboot_info_t *mbi) { multiboot_memory_map_t *mmap = NULL; uint32 mem_upper = 0, mem_lower = 0, page_frame_table_size = 0...
// // Book: OpenGL(R) ES 2.0 Programming Guide // Authors: <NAME>, <NAME>, <NAME> // ISBN-10: 0321502795 // ISBN-13: 9780321502797 // Publisher: Addison-Wesley Professional // URLs: http://safari.informit.com/9780321563835 // http://www.opengles-book.com // // Simple_TextureCubemap.c // // ...
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB 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 ve...
/*- * Copyright (c) 2017, <NAME> <<EMAIL>> * Copyright (c) 2017, <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://www.apache.org/licenses/LICENSE-2.0 * ...
#include <vm.h> #include <proc.h> #include <kalloc.h> #include <klib.h> #include <lib/string.h> #include <lib/stdio.h> #include <system.h> #include <types.h> struct Process process_table[PROCESS_COUNT_MAX]; __attribute__((__aligned__(SECTION_TABLE_ALIGNMENT))) struct SectionTableEntry process_vm[PROCESS_COUNT_MAX][409...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2015 <NAME> <<EMAIL>> */ #include <common.h> #include <clk.h> #include <dm/ofnode.h> #include <generic-phy.h> #include <reset.h> #include <asm/io.h> #include <dm.h> #include "ehci.h" #include <power/regulator.h> /* * Even though here we don't explicitly use "...
/* # <<BEGIN-copyright>> # Copyright 2019, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: MIT # <<END-copyright>> */ #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <nfut_utilities.h> #i...
#define _GNU_SOURCE #include <unistd.h> #include <stdlib.h> #include <inttypes.h> #include <stdarg.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <signal.h> #include <sys/socket.h> #include <u2f-server/u2f-server.h> #include "openvpn-plugin.h" #include "../comm-2fserver.h" #include "2fserver-http...
/* Copyright (c) 2007 x86 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, distribute, sublic...
#include "common.h" #include <assert.h> /* Test using array binding */ static const char *test_query = NULL; static int trunc = 0; static int record_bind = 0; typedef struct { SQLUINTEGER id; SQLLEN id_len; SQLLEN desc_len; } Record; static void query_test(const char* expected, const char *expected_status) { #de...
/* * libid3tag - ID3 tag manipulation library * Copyright (C) 2000-2004 Underbit Technologies, 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 2 of the License, or *...
/* * Copyright (c) 2020 Fuzhou Rockchip Electronic Co.,Ltd * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-03-04 <NAME> First version * */ #include "setting_page.h" #include "setting_backlight.h" #include "setting_rec_seglen.h" #define DBG_SECTION_...
/****************************************************************************** * * (c) Copyright 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software with...