text stringlengths 5.8k 28.2k |
|---|
/*
* GStreamer
* Copyright (C) 2009 <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.
... |
/*
* DiskSim Storage Subsystem Simulation Environment (Version 4.0)
* Revision Authors: <NAME>, <NAME>
* Contributors: <NAME>, <NAME>, <NAME>
*
* Copyright (c) of Carnegie Mellon University, 2001-2008.
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, usin... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
// MACROS
//
// See Section 3.2 for definitions.
#define ROTLEFT(a,b) (((a) << (b)) | ((a) >> (32-(b))))
#define ROTRIGHT(a,b) (((a) >> (b)) | ((a) << (32-(b))))
// See Section 4.1.2 for definition... |
/*
CHIP8 assembler.
Mostly based on the syntax of "Cowgod's Chip-8 Technical Reference v1.0",
by <NAME>, http://devernay.free.fr/hacks/chip8/C8TECH10.HTM
Hexadecimal constants can be written as
*/
/* CHIP-8 Assembler. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
... |
#include "k_hashfs.h"
inline void hashfs_fill_root(struct super_block *sb, struct inode *inode,
struct hashfs_inode *h_inode) {
hashfs_trace("ino=%u %p %p\n", h_inode->ino, sb, inode);
inode->i_fop = &hashfs_dir_operations;
inode->i_mode = HASHFS_DEFAULT_MODE_DIR;
}
inline void h... |
/*++
/* NAME
/* master 8
/* SUMMARY
/* Postfix master process
/* SYNOPSIS
/* .fi
/* \fBmaster\fR [\fB-Dtv\fR] [\fB-c \fIconfig_dir\fR]
/* [\fB-e \fIexit_time\fR]
/* DESCRIPTION
/* The \fBmaster\fR daemon is the resident process that runs Postfix
/* daemons on demand: daemons to send or receive messages via the
/* netw... |
/*
* $Id: space_console.c 40539 2011-09-25 12:33:51Z ender79 $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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... |
/*---------------------------------------------------------------------------------
libBAG Copyright (C) 2010 - 2013
BassAceGold - <<EMAIL>>
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 so... |
/*-
* Copyright 2015 <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 condit... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#ifdef WIN64
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h> //strlen() etc.
#include <ctype.h> // isspace() etc.
#include <math.h>
#include "definitions.h"
#include "utils/general.... |
/* Copyright (c) 2011-2017, NVIDIA 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:
* * Redistributions of source code must retain the above copyright
* notice, this li... |
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#define NBSTARMAX 500
#define MAXLINE 500
#define CLIP 2.5
#define SYNTAX \
"box -i Picture1 -j outfile name -t image size \n\
options are: -s box size\n\
-n maximun number of stars in ... |
/* =============================================================================
____ ___ ____ ___ _ _ ___ __ __ ___ __ __ TM
| _ \ |_ _| / ___| / _ \ | \ | | / _ \ | \/ | |_ _| \ \/ /
| |_) | | | | | | | | | | \| | | | | | | |\/| | | | \ /
| __/ | | ... |
/*
Starfit.c - <NAME> 08-16-2011
Routine for photographic surveying.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#inclu... |
/*-------------- Telecommunications & Signal Processing Lab ---------------
McGill University
Routine:
AFILE *AFwrWVhead(FILE *fp, struct AF_write *AFw)
Purpose:
Write header information to a WAVE file
Description:
This routine writes header information to a WAVE format audio file.
... |
/*
* NAXSI, a web application firewall for NGINX
* Copyright (C) NBS System – All Rights Reserved
* Licensed under GNU GPL v3.0 – See the LICENSE notice for details
*/
#include "naxsi_config.h"
#include "naxsi.h"
#include "naxsi_macros.h"
/*
** TOP LEVEL configuration parsing code
*/
/*
** code to parse FLAGS and ... |
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <unistd.h>
#include <ctype.h>
#define URL_BUFF_SIZE 8182
#define RESPONSE_BUF_SIZE 4096
#define CHUNKED_MAX_LEN 8182
... |
/*
A simple graphics library for CSE 20211
Originally created by Prof. <NAME>.
Modified by Prof. <NAME>
Further Modified by <NAME> and <NAME> and <NAME>
*/
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include <unistd.h>
#include <stdio.h>
#include <... |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* ... |
/* errch.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__3 = 3;
static integer c__2 = 2;
/* $Procedure ERRCH ( Insert String into Error Message Text ) */
... |
/*
* Copyright: Copyright (c) 2020 Fuzhou Rockchip Electronic Co.,Ltd
*
* License: SPDX-License-Identifier: Apache-2.0
*
* @Author: Chad.ma
* @Date: 2020-05-15 15:59:11
* @Company: Rockchip
* @LastEditTime: 2020-06-16 15:21:24
* @LastEditors: Do not edit
* @Description:
*/
#include "pcba_app.h"
#include "pc... |
/*
* This file is part of the TREZOR project, https://trezor.io/
*
* Copyright (c) SatoshiLabs
*
* 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
* (at... |
/*
* Added some functionality to keep a clock based on ticks and seconds
*
* This file is based on FreeRTOS/Demo/WIN32-MSVC/main.c in the FreeRTOS V10.1.1
* package with the following license:
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted,... |
/* -*- Mode: C; c-basic-offset: 4 -*- */
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <NAME>
*
* autocad_pal.h: AutoCAD definitions for DXF Import
* Copyright (C) 2002 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gener... |
// BSPTestMain.c
// Runs on any computer
// Test the general board support package by calling its
// functions to perform some operation. To port this program
// to a different processor, re-write BSP.c for that processor.
// This file should contain nothing hardware specific and
// require no significant changes.
// ... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define MAX(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
#define MIN(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })
#define RIGHT_HEAVY(node) (node->r... |
#include "woverlay.h"
#include "drv_priv.h"
#include "gf_regs.h"
#define pRegs ((PGFREGS)HWData)
ULONG GF_HideVideo(void) {
if (!(pRegs->stop & 1)) {
WRITEREG(MMIO, NV_PVIDEO_STOP, 1);
pRegs->chipflags |= GF_NEED_RESETUP;
}
return RC_SUCCESS;
}
void GF_CalcTransform(void) {
float hue;
LONG sat... |
/*
* Copyright 2020 Makani Technologies LLC
*
* 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 ... |
/*
* Copyright (c) 2018 <NAME>
*
* Permission is hereby granted and free of charge.
* Published under the terms of the MIT license, see LICENSE file for further information.
*/
/**
* @brief Command shell interface
* @author <NAME>
* @date 2017-04-05
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.... |
// Jackimain.c
// Runs on MSP432
// Main program for the robot to complete a particular
// challenge where it navigates around a track while
// avoiding running into the walls.
// <NAME>
// July 11, 2019
/* This example accompanies the book
"Embedded Systems: Introduction to Robotics,
<NAME>, ISBN: 978107454430... |
/* clock.c:
*
* Copyright (C) 1999 <NAME> (<EMAIL>)
*
* This program used the Dallas Semi DS1302 RTC drivers to get and set
* the Linux Clock.
* Useage: clock No args = read RTC Chip
* clock --sys Update the Linux time to the RTC chip's time
* clock --set YY/MM/DD HH:MM 00-98 is 20xx, 24 Hr
* ... |
/*
* Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved
*
* This file is part of the Manage Applications
* Written by <NAME> <<EMAIL>>
*
* Author of this file:
* <NAME> <<EMAIL>>
*
* PROPRIETARY/CONFIDENTIAL
*
* This software is the confidential and proprietary information of
* SAMSU... |
#include "aap/aap.h"
#include "aap/aap_parser.h"
#include "aap/aap_serializer.h"
#include "agents/application_agent.h"
#include "bundle6/create.h"
#include "bundle7/create.h"
#include "cla/posix/cla_tcp_util.h"
#include "platform/hal_config.h"
#include "platform/hal_io.h"
#include "platform/hal_queue.h"
#include "p... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include "../test-lib.h"
int verbose;
int passes;
int failures;
static void test_char_literal_lexer() {
assert_int(0, '\0', "Char literal escapes \\0");
assert_int(39, '\'', "Char literal escapes \\'");
assert_int(34, '\"', "C... |
// MIT License
//
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merg... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <CNFG.h>
#include <stdio.h>
#include <unistd.h>
#include <os_generic.h>
#include <string.h>
#include <sys/ioctl.h>
#include <signal.h>
#include <errno.h>
#include "vlinterm.h"
int spawn_process_with_pts( const char * execparam, char * const argv[], int * pid );
#define... |
#include"tetris.h"
void fill_array(Remains_p remains, Remains_xy *rem_sizes, char ch)
{ /* Clean array. Copy character ch to all strings of the array. */
uint16_t local_line = 0, local_col = rem_sizes-> cols;
for(local_line = 0; local_line < rem_sizes-> lines; local_line++) {
memset(remains[local_line], ch,... |
/*
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
Free Software Foundation, Inc.
This file is part of GNU Inetutils.
GNU Inetutils is free software: you can redistribute it and/or modify
it under the terms of the GNU Gen... |
/**
Initial starting code based on examples from
Using SQLite by <NAME>. Copyright 2010 O'Reilly Media, Inc., 978-0-596-52118-9
*/
#define _XOPEN_SOURCE
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT1;
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <zlib.h>
#include <time.h>
#include <math.h>
/... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <lib/formats/gltf.h>
#include <lib/object.h>
#include <lib/linmath.h>
#include <lib/camera.h>
#include <lib/config.h>
#include <lib/event.h>
#include <render/pipeline.h>
#include <models/base.frag.h>
#include <models/base.vert.h>
#include <models/bas... |
#include "global.h"
#include "seq_reader.h"
#include "util.h"
#include "file_util.h"
#include "dna.h"
#include "seq_file/seq_file.h"
const char *MP_DIR_STRS[] = {"FF", "FR", "RF", "RR"};
// Load all reads from files into a read buffer and close the seq_files
// Returns the number of reads loaded
size_t seq_load_all_... |
#include <stdlib.h>
#include <screen.h>
#include <tweak.h>
#include <memalloc.h>
#include <random.h>
#include <level.h>
#include <tank.h>
#include <types.h>
#include <tanksprites.h>
#include <drawbuffer.h>
#include <gamelib.h>
typedef enum ScreenDrawMode {
SCREEN_DRAW_INVALID,
SCREEN_DRAW_LEVEL
} ScreenDrawMode;
... |
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h> /* PRIu64 */
#include <math.h>
#include <regex.h>
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <err.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <locale.h>
#include <unistd.h>
#include... |
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <errno.h>
#include <libgen.h>
#include <sys/stat.h>
#include <dirent.h>
#include <string.h>
#include "m2i.h"
#include "d64.h"
#include "bundle.h"
#include "binaries.h"
#include "cart.h"
#define mode_lo 0
#define mode_nm 1
#define mode_hi 2
#define b... |
/*-
* Copyright (c) 2018 <NAME>
* Copyright (c) 2017 Nuxi, https://nuxi.nl/
*
* 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... |
/*!
\file
\brief A parallel random walk program
\date Started 5/6/2013
\author <NAME>
*/
#include <GKlib.h>
#include <stdio.h>
#include <math.h>
#include <mpi.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
/*** RW.C in GKLib *******************/
/*********************... |
/* ###################################################################
** Filename : main.c
** Processor : S32K11x
** Abstract :
** Main module.
** This module contains user's application code.
** Settings :
** Contents :
** No public methods
**
** #############... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.