repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
cctools | cctools-master/dttools/src/daemon.c | /*
* Copyright (C) 2022 The University of Notre Dame
* This software is distributed under the GNU General Public License.
* See the file COPYING for details.
*/
#include "daemon.h"
#include "debug.h"
#include "fd.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h... | 1,808 | 21.060976 | 74 | c |
cctools | cctools-master/dttools/src/hdfs_library.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "buffer.h"
#include "debug.h"
#include "hdfs_library.h"
#include "path.h"
#include <dlfcn.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#i... | 5,192 | 24.581281 | 95 | c |
cctools | cctools-master/dttools/src/daemon.h | /*
* Copyright (C) 2022 The University of Notre Dame
* This software is distributed under the GNU General Public License.
* See the file COPYING for details.
*/
#ifndef DAEMON_H
#define DAEMON_H
/** Daemonize the current process.
*
* This involves creating a new process in a new session. The current
* directory... | 744 | 27.653846 | 69 | h |
cctools | cctools-master/dttools/src/shell.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "buffer.h"
#include "catch.h"
#include "debug.h"
#include <fcntl.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <unistd.h>
#include <errno.h>
#i... | 3,242 | 20.62 | 132 | c |
cctools | cctools-master/dttools/src/bucketing.h | #ifndef BUCKETING_H
#define BUCKETING_H
#include "list.h"
/* all modes of bucketing */
typedef enum {
BUCKETING_MODE_GREEDY,
BUCKETING_MODE_EXHAUSTIVE
} bucketing_mode_t;
/* Bucketing has two operations, add and predict */
typedef enum {
BUCKETING_OP_ADD = 0,
BUCKETING_OP_PREDICT,
BUCKETING_OP_NU... | 5,391 | 31.481928 | 95 | h |
cctools | cctools-master/dttools/src/jx_pretty_print.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "jx_print.h"
#include "jx_pretty_print.h"
#include <ctype.h>
#define SPACES 2
static void jx_pretty_print_buffer( struct jx *j, buffer_t *b, int level )... | 1,830 | 22.474359 | 79 | c |
cctools | cctools-master/dttools/src/hash_table.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef HASH_TABLE_H
#define HASH_TABLE_H
/** @file hash_table.h A general purpose hash table... | 4,138 | 27.743056 | 128 | h |
cctools | cctools-master/dttools/src/create_dir.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CREATE_DIR_H
#define CREATE_DIR_H
/** @file create_dir.h Create a new directory recur... | 987 | 28.058824 | 103 | h |
cctools | cctools-master/dttools/src/getopt_int.h | /* Internal declarations for getopt.
Copyright (C) 1989-1994,1996-1999,2001,2003,2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | 4,765 | 35.381679 | 76 | h |
cctools | cctools-master/dttools/src/domain_name.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef DOMAIN_NAME_H
#define DOMAIN_NAME_H
/** @file domain_name.h
Look up domain names and ... | 1,118 | 29.243243 | 69 | h |
cctools | cctools-master/dttools/src/bucketing_exhaust.c | #include <stdlib.h>
#include <math.h>
#include "bucketing_exhaust.h"
#include "list.h"
#include "xxmalloc.h"
#include "debug.h"
/** Begin: internals **/
/* Convert a list of bucketing_bucket_t to an array of those
* @param bucket_list list of bucketing_bucket_t
* @return pointer to array of bucketing_bucket_t
* @r... | 10,909 | 26.481108 | 100 | c |
cctools | cctools-master/dttools/src/disk_alloc.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <stdint.h>
#ifndef DISK_ALLOC_H
#define DISK_ALLOC_H
/* The disk_alloc_create function instantiates
* a virtual device and creates a file system
* gener... | 879 | 27.387097 | 66 | h |
cctools | cctools-master/dttools/src/domain_name_cache.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef DOMAIN_NAME_CACHE_H
#define DOMAIN_NAME_CACHE_H
#include "domain_name.h"
/** @file d... | 2,349 | 34.606061 | 82 | h |
cctools | cctools-master/dttools/src/path_disk_size_info.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CWD_INFO_H
#define CWD_INFO_H
#include "int_sizes.h"
#include "list.h"
struct path_disk_size_info {
int complete_measurement;
int64_t last_byte_size... | 1,730 | 33.62 | 132 | h |
cctools | cctools-master/parrot/src/parrot_setacl.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "parrot_client.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
int main( int argc, char *argv[] )
{
... | 919 | 22 | 88 | c |
cctools | cctools-master/parrot/src/ptrace.h | /* `ptrace' debugger support interface. Linux version.
Copyright (C) 1996-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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... | 6,555 | 29.073394 | 78 | h |
cctools | cctools-master/parrot/src/pfs_channel.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_CHANNEL_H
#define PFS_CHANNEL_H
#include "pfs_types.h"
#ifdef __cplusplus
extern... | 789 | 22.235294 | 83 | h |
cctools | cctools-master/parrot/src/pfs_service.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_SERVICE_H
#define PFS_SERVICE_H
#include "pfs_name.h"
#include "pfs_file.h"
#incl... | 4,122 | 41.947917 | 117 | h |
cctools | cctools-master/parrot/src/parrot_helper.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
/*
This helper library works alongside the main parrot code in
order to avoid operations that are complex or unsupported by Parrot.
Parrot locates the helper librar... | 4,795 | 32.075862 | 78 | c |
cctools | cctools-master/parrot/src/parrot_client.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "parrot_client.h"
#include "tracer.... | 6,324 | 22.168498 | 100 | c |
cctools | cctools-master/parrot/src/parrot_client.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PARROTCLIENT_H
#define PARROTCLIENT_H
#include "pfs_search.h"
#include <stdint.h>
#include <stdlib.h>
int parrot_whoami( const char *path, char *buf, int... | 1,298 | 37.205882 | 89 | h |
cctools | cctools-master/parrot/src/pfs_sysdeps64.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_SYSDEPS_H
#define PFS_SYSDEPS_H
#define ALIGN(type,size) ((size+((sizeof(type))-... | 3,578 | 20.823171 | 75 | h |
cctools | cctools-master/parrot/src/pfs_channel.c | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "linux-version.h"
#include "pfs_channel.h"
#include "debug.h"
#include "memfdexe.h"
... | 6,425 | 20.563758 | 131 | c |
cctools | cctools-master/parrot/src/pfs_resolve.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_RESOLVE
#define PFS_RESOLVE
#include <time.h>
#include "pfs_types.h"
typedef enu... | 1,254 | 25.702128 | 105 | h |
cctools | cctools-master/parrot/src/parrot_mount.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "cctools.h"
#include "debug.h"
#include "getopt.h"
#include "parrot_client.h"
#include "path.h"
#include "stringtools.h"
#include <stdio.h>
#include <errn... | 2,970 | 21.507576 | 98 | c |
cctools | cctools-master/parrot/src/pfs_paranoia.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <sys/types.h>
/*
* Setup paranoia mode. Launch an external watchdog process, share a process
* table with it.
* Returns the PID of the watchdog proces... | 985 | 20.434783 | 77 | h |
cctools | cctools-master/parrot/src/parrot_lsalloc.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "int_sizes.h"
#include "stringtools.h"
#include "parrot_client.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <... | 1,105 | 20.686275 | 85 | c |
cctools | cctools-master/parrot/src/pfs_critical.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_CRITICAL_H
#define PFS_CRITICAL_H
#include <signal.h>
#define CRITICAL_BEGIN {\
... | 643 | 20.466667 | 69 | h |
cctools | cctools-master/parrot/src/pfs_time.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_TIME_H
#define PFS_TIME_H
#include <time.h>
#include <sys/time.h>
typedef enum {
PFS_TIME_MODE_NORMAL,
PFS_TIME_MODE_STOP,
PFS_TIME_MODE_WARP
} pfs... | 572 | 21.038462 | 75 | h |
cctools | cctools-master/parrot/src/pfs_dir.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_DIR_H
#define PFS_DIR_H
#include "pfs_sysdeps.h"
#include "pfs_types.h"
#include ... | 941 | 21.97561 | 79 | h |
cctools | cctools-master/parrot/src/pfs_sysdeps.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_SYSDEPS_H
#define PFS_SYSDEPS_H
#define ALIGN(type,size) ((size+((sizeof(type))-... | 6,263 | 21.056338 | 75 | h |
cctools | cctools-master/parrot/src/pfs_types.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_TYPES_H
#define PFS_TYPES_H
#include "int_sizes.h"
#include <sys/wait.h>
#includ... | 4,667 | 22.575758 | 69 | h |
cctools | cctools-master/parrot/src/pfs_process.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_PROCESS_H
#define PFS_PROCESS_H
#include "pfs_types.h"
#include "pfs_table.h"
#in... | 3,435 | 27.396694 | 110 | h |
cctools | cctools-master/parrot/src/pfs_mountfile.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "pfs_mountfile.h"
#include "pfs_resolve.h"
#include "xxmalloc.h"
#include "debug.h"
#include "stringtools.h"
#include <assert.h>
#include <stdio.h>
#incl... | 2,532 | 23.12381 | 115 | c |
cctools | cctools-master/parrot/src/irods_reli.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef IRODS_RELI_H
#define IRODS_RELI_H
#include "pfs_types.h"
extern "C" {
struct irods_... | 1,663 | 41.666667 | 126 | h |
cctools | cctools-master/parrot/src/parrot_namespace.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "cctools.h"
#include "debug.h"
#include "getopt.h"
#include "parrot_client.h"
#include "path.h"
#include "stringtools.h"
#include "xxmalloc.h"
#include "pf... | 3,058 | 25.833333 | 102 | c |
cctools | cctools-master/parrot/src/pfs_sys.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_SYS_H
#define PFS_SYS_H
#include "pfs_types.h"
#include "pfs_search.h"
#include ... | 6,040 | 45.469231 | 114 | h |
cctools | cctools-master/parrot/src/pfs_file.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef PFS_FILE_H
#define PFS_FILE_H
#include "pfs_name.h"
#include "pfs_types.h"
#include "... | 1,867 | 29.129032 | 94 | h |
cctools | cctools-master/parrot/src/ibox_acl.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef IBOX_ACL_H
#define IBOX_ACL_H
#include <stdio.h>
#define IBOX_ACL_BASE_NAME ".__acl"
#define IBOX_ACL_BASE_LENGTH (strlen(IBOX_ACL_BASE_NAME))
#define IB... | 1,562 | 30.897959 | 76 | h |
cctools | cctools-master/parrot/src/parrot_test_dir.c | #if defined(__linux__) && !defined(_GNU_SOURCE)
#define _GNU_SOURCE
#endif
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CATCHUNIX(expr) \
do {\
if ((expr) == -1) {\
perror(#expr);\
ex... | 2,141 | 22.8 | 112 | c |
cctools | cctools-master/parrot/src/parrot_cp.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "full_io.h"
#include "getopt.h"
#include "parrot_client.h"
#include "pfs_types.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <syscall.h>
#include <... | 6,655 | 20.680782 | 104 | c |
cctools | cctools-master/parrot/src/tracer.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef TRACER_H
#define TRACER_H
#include <sys/types.h>
#include "int_sizes.h"
#define TRAC... | 1,788 | 32.754717 | 110 | h |
cctools | cctools-master/ftp_lite/src/ftp_lite_copy.c | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "ftp_lite.h"
#include "copy_stream.h"
#include "debug.h"
#include "getopt.h"
#inclu... | 4,201 | 22.875 | 90 | c |
cctools | cctools-master/ftp_lite/src/ftp_lite_test.c | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "copy_... | 7,478 | 22.518868 | 82 | c |
cctools | cctools-master/ftp_lite/src/network.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef NETWORK_H
#define NETWORK_H
/* The maximum number of chars in a domain name */
#defin... | 1,658 | 32.857143 | 87 | h |
cctools | cctools-master/deltadb/src/deltadb_reduction.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef DELTADB_REDUCTION_H
#define DELTADB_REDUCTION_H
#include "jx.h"
#include "hash_table.h"
typedef enum {
COUNT,
SUM,
FIRST,
LAST,
MIN,
AVERAGE,
MAX,
... | 1,198 | 21.622642 | 119 | h |
cctools | cctools-master/deltadb/src/deltadb_query_main.c |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdarg.h>
#include <ctype.h>
#include "getopt.h"
#include "cctools.h"
#include "jx_parse.h"
#include "jx_print.h"
#include "stringtools.h"
#include "b64.h"
#include "... | 8,320 | 24.922118 | 123 | c |
cctools | cctools-master/deltadb/src/deltadb_query.h | #ifndef DELTADB_QUERY_H
#define DELTADB_QUERY_H
#include <stdio.h>
#include <time.h>
#include "deltadb_reduction.h"
#include "hash_table.h"
#include "jx.h"
#include "list.h"
typedef enum {
DELTADB_DISPLAY_STREAM,
DELTADB_DISPLAY_OBJECTS,
DELTADB_DISPLAY_EXPRS,
DELTADB_DISPLAY_REDUCE
} deltadb_display_mode_t;... | 1,280 | 33.621622 | 109 | h |
cctools | cctools-master/deltadb/src/deltadb_reduction.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "deltadb_reduction.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "stringtools.h"
#include "jx_print.h"
struct deltadb_reduction... | 4,313 | 23.651429 | 123 | c |
cctools | cctools-master/chirp/src/chirp_stream_files.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include "chirp_client.h"
#include "chirp_reli.h"
#include "chirp_stream.h"
#include... | 6,075 | 26.87156 | 116 | c |
cctools | cctools-master/chirp/src/chirp_alloc.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "chirp_alloc.h"
#include "chirp_filesystem.h"
#include "chirp_protocol.h"
#include "debug.h"
#include "hash_table.h"
#include "int_sizes.h"
#include "itab... | 11,809 | 21.241055 | 114 | c |
cctools | cctools-master/chirp/src/chirp_job.h | /*
* Copyright (C) 2022 The University of Notre Dame
* This software is distributed under the GNU General Public License.
* See the file COPYING for details.
*/
#ifndef CHIRP_JOB_H
#define CHIRP_JOB_H
#include "json.h"
#include "chirp_types.h"
extern unsigned chirp_job_concurrency;
extern int chirp_job_ena... | 940 | 22.525 | 89 | h |
cctools | cctools-master/chirp/src/chirp_get.c | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <dirent... | 3,325 | 23.637037 | 112 | c |
cctools | cctools-master/chirp/src/chirp_audit.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
/*
chirp_audit scans a local path using the chirp_local module,
counting up the files, directo... | 809 | 26.931034 | 69 | h |
cctools | cctools-master/chirp/src/ioprio.h | #ifndef IOPRIO_H
#define IOPRIO_H
/*
* Gives us 8 prio classes with 13-bits of data for each class
*/
#define IOPRIO_BITS (16)
#define IOPRIO_CLASS_SHIFT (13)
#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
#define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)
#define IOPRIO_PRIO_DATA(mask) ((m... | 1,096 | 22.340426 | 79 | h |
cctools | cctools-master/chirp/src/chirp_stats.h | /**
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CHIRP_STATS_H
#define CHIRP_STATS_H
#include "jx.h"
#include "int_sizes.h"
void chirp_stats_collect( const char *addr, const char *subject, UINT64_T ops,... | 664 | 27.913043 | 125 | h |
cctools | cctools-master/chirp/src/chirp_recursive.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CHIRP_RECURSIVE_H
#define CHIRP_RECURSIVE_H
#include "int_sizes.h"
#include <time.h>
/** @file chirp_recursive.h
A high level interface to put and get lar... | 1,702 | 37.704545 | 128 | h |
cctools | cctools-master/chirp/src/confuga_gc.c | #include "confuga.h"
#include "confuga_fs.h"
#include "catch.h"
#include "chirp_sqlite.h"
#include "compat-at.h"
#include "debug.h"
#include <dirent.h>
#include <fcntl.h>
#include <sys/file.h>
#include <unistd.h>
#include <assert.h>
#ifndef O_CLOEXEC
# define O_CLOEXEC 0
#endif
#ifndef O_DIRECTORY
# define O_DIRECT... | 4,883 | 22.708738 | 118 | c |
cctools | cctools-master/chirp/src/chirp_put.c | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <dirent... | 4,977 | 24.659794 | 117 | c |
cctools | cctools-master/chirp/src/chirp_group.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "chirp_group.h"
#include "chirp_types.h"
#include "debug.h"
#include "stringtools.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include ... | 2,265 | 22.360825 | 98 | c |
cctools | cctools-master/chirp/src/confuga_adm.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "confuga.h"
#include "catch.h"
#include "cctools.h"
#include "debug.h"
#include "getopt.h"
#include "random.h"
#include <errno.h>
#include <limits.h>
#in... | 4,640 | 23.68617 | 118 | c |
cctools | cctools-master/chirp/src/chirp_matrix_benchmark.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "chirp_matrix.h"
#include "auth_all.h"
#include "debug.h"
#include "timestamp.h"
#include "macros.h"
#include "random.h"
#include <time.h>
#include <stdi... | 3,974 | 26.992958 | 125 | c |
cctools | cctools-master/chirp/src/chirp_status.c | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "catalog_query.h"
#include "jx_table.h"
#include "jx_print.h"
#include "jx_parse.h"
#... | 8,354 | 25.693291 | 127 | c |
cctools | cctools-master/chirp/src/chirp_ticket.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CHIRP_TICKET_H
#define CHIRP_TICKET_H
#include <time.h>
#include <string.h>
struct c... | 1,194 | 28.875 | 98 | h |
cctools | cctools-master/chirp/src/chirp_filesystem.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CHIRP_FILESYSTEM_H
#define CHIRP_FILESYSTEM_H
#include "chirp_job.h"
#include "chirp_sqlite.h"
#include "chirp_types.h"
#include "buffer.h"
#include "link... | 7,863 | 45.809524 | 130 | h |
cctools | cctools-master/chirp/src/chirp_alloc.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CHIRP_ALLOC_H
#define CHIRP_ALLOC_H
#include "chirp_types.h"
#include "link.h"
#include <sys/types.h>
int chirp_alloc_init(INT64_T size);
void chirp... | 932 | 28.15625 | 98 | h |
cctools | cctools-master/chirp/src/json.h |
/* vim: set et ts=3 sw=3 ft=c:
*
* Copyright (C) 2012 James McLaughlin et al. All rights reserved.
* https://github.com/udp/json-parser
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions... | 6,066 | 21.553903 | 80 | h |
cctools | cctools-master/chirp/src/chirp_sqlite.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "buffer.h"
#include "catch.h"
#include "debug.h"
#include "json.h"
#include "json_aux.h"
#include "sqlite3.h"
#include <errno.h>
#include <float.h>
#incl... | 1,535 | 21.26087 | 88 | c |
cctools | cctools-master/chirp/src/chirp_swig_wrap.h | #include "chirp_reli.h"
struct chirp_stat *chirp_wrap_stat(const char *hostname, const char *path, time_t stoptime);
char *chirp_wrap_listacl(const char *hostname, const char *path, time_t stoptime);
char *chirp_wrap_whoami(const char *hostname, time_t stoptime);
char *chirp_wrap_hash(const char *hostname, const ch... | 893 | 51.588235 | 102 | h |
cctools | cctools-master/chirp/src/chirp_protocol.h | /*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef CHIRP_PROTOCOL_H
#define CHIRP_PROTOCOL_H
/** @file chirp_protocol.h
This file define... | 3,463 | 31.679245 | 121 | h |
cctools | cctools-master/work_queue/src/work_queue_watcher.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef WORK_QUEUE_WATCH_H
#define WORK_QUEUE_WATCH_H
#include "work_queue_process.h"
#include "link.h"
struct work_queue_watcher * work_queue_watcher_create();
v... | 763 | 33.727273 | 107 | h |
cctools | cctools-master/work_queue/src/work_queue_protocol.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
/** @file work_queue_protocol.h
This file describes a handful of constants that are necessary for
a common implementation of the work queue protocol between the man... | 1,344 | 37.428571 | 104 | h |
cctools | cctools-master/work_queue/src/work_queue_test.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "work_queue.h"
#include "cctools.h"
#include "debug.h"
#include "stringtools.h"
#include "xxmalloc.h"
#include "itable.h"
#include "list.h"
#include "get_... | 3,290 | 26.425 | 113 | c |
cctools | cctools-master/work_queue/src/work_queue_test_main.c | #include "work_queue.h"
#include "debug.h"
#include "cctools.h"
#include "path.h"
#include "errno.h"
#include "unlink_recursive.h"
#include <getopt.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
extern int work_queue_mainloop( struct work_queue *q );
void show_help( const char *cmd )
{
printf("Usage:... | 2,393 | 22.019231 | 87 | c |
cctools | cctools-master/work_queue/src/work_queue_process.c |
#include "work_queue_process.h"
#include "work_queue.h"
#include "work_queue_internal.h"
#include "work_queue_gpus.h"
#include "work_queue_protocol.h"
#include "work_queue_coprocess.h"
#include "debug.h"
#include "errno.h"
#include "macros.h"
#include "stringtools.h"
#include "create_dir.h"
#include "list.h"
#include... | 10,726 | 26.020151 | 118 | c |
cctools | cctools-master/work_queue/src/work_queue_process.h | #ifndef WORK_QUEUE_PROCESS_H
#define WORK_QUEUE_PROCESS_H
#include "work_queue.h"
#include "timestamp.h"
#include "path_disk_size_info.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/resource.h>
#define MAX_BUFFER_SIZE 4096
/*
work_queue_process is a running instance of a work_queue_task.
This object is... | 1,795 | 28.442623 | 107 | h |
cctools | cctools-master/work_queue/src/work_queue_watcher.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "work_queue_watcher.h"
#include "work_queue_process.h"
#include "work_queue_internal.h"
#include "list.h"
#include "debug.h"
#include "link.h"
#include "s... | 5,333 | 24.768116 | 131 | c |
cctools | cctools-master/work_queue/src/work_queue_resources.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef WORK_QUEUE_RESOURCES_H
#define WORK_QUEUE_RESOURCES_H
#include "link.h"
#include "jx.h"
struct work_queue_resource {
int64_t inuse;
int64_t total;
int6... | 1,416 | 34.425 | 114 | h |
cctools | cctools-master/work_queue/src/work_queue_catalog.h | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef WORK_QUEUE_CATALOG_H
#define WORK_QUEUE_CATALOG_H
#include "list.h"
int work_queue_catalog_parse( char *server_string, char **host, int *port );
struct li... | 552 | 31.529412 | 119 | h |
cctools | cctools-master/work_queue/src/work_queue_catalog.c | /*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "work_queue_catalog.h"
#include "catalog_query.h"
#include "jx.h"
#include "list.h"
#include "debug.h"
#include "stringtools.h"
#include "xxmalloc.h"
#inc... | 3,191 | 23 | 117 | c |
cctools | cctools-master/work_queue/src/work_queue_priority_test.c | /*
* Copyright (C) 2022 The University of Notre Dame
* This software is distributed under the GNU General Public License.
* See the file COPYING for details.
* */
/*
* This program is a very simple example of how to use the Work Queue.
* It accepts a list of files on the command line.
* Each file is compressed ... | 2,407 | 25.461538 | 91 | c |
cctools | cctools-master/taskvine/src/tools/vine_api_proxy.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
/*
This is a work in progress, and is not yet complete.
To facilitate binding to languages and situations that are not
well supported by SWIG, the vine_api_proxy ... | 6,073 | 24.20332 | 93 | c |
cctools | cctools-master/taskvine/src/tools/vine_benchmark.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "taskvine.h"
#include "debug.h"
#include "cctools.h"
#include "path.h"
#include "errno.h"
#include "unlink_recursive.h"
#include "stringtools.h"
#include... | 5,079 | 23.423077 | 115 | c |
cctools | cctools-master/taskvine/src/worker/vine_watcher.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_WATCH_H
#define VINE_WATCH_H
#include "vine_process.h"
#include "link.h"
struct vine_watcher * vine_watcher_create();
void vine_watcher_delete( stru... | 662 | 29.136364 | 95 | h |
cctools | cctools-master/taskvine/src/worker/vine_process.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_process.h"
#include "vine_manager.h"
#include "vine_gpus.h"
#include "vine_protocol.h"
#include "vine_coprocess.h"
#include "vine_sandbox.h"
#inclu... | 11,167 | 24.324263 | 119 | c |
cctools | cctools-master/taskvine/src/worker/vine_process.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_PROCESS_H
#define VINE_PROCESS_H
#include "vine_manager.h"
#include "vine_task.h"
#include "vine_cache.h"
#include "timestamp.h"
#include "path_disk... | 2,032 | 27.236111 | 108 | h |
cctools | cctools-master/taskvine/src/worker/vine_transfer_server.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_TRANSFER_SERVER_H
#define VINE_TRANSFER_SERVER_H
#include "vine_cache.h"
#include "link.h"
#define VINE_TRANSFER_PROC_MAX_CHILD 8
void vine_transfe... | 505 | 22 | 66 | h |
cctools | cctools-master/taskvine/src/worker/vine_cache.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_CACHE_H
#define VINE_CACHE_H
/*
The cache module keeps track of the intention and state of objects
in the worker cache. This includes plain files wh... | 1,761 | 36.489362 | 128 | h |
cctools | cctools-master/taskvine/src/worker/vine_transfer_server.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_transfer_server.h"
#include "vine_protocol.h"
#include "vine_transfer.h"
#include "vine_worker.h"
#include "link.h"
#include "link_auth.h"
#include... | 3,750 | 24.174497 | 98 | c |
cctools | cctools-master/taskvine/src/worker/vine_watcher.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_watcher.h"
#include "vine_process.h"
#include "vine_file.h"
#include "vine_mount.h"
#include "list.h"
#include "debug.h"
#include "link.h"
#include... | 5,105 | 23.786408 | 133 | c |
cctools | cctools-master/taskvine/src/manager/taskvine_json.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef TASKVINE_JSON_H
#define TASKVINE_JSON_H
/** @file taskvine_json.h Provides a higher-level JSON-oriented abstraction
on top of the standard C interface in ... | 5,100 | 38.542636 | 119 | h |
cctools | cctools-master/taskvine/src/manager/vine_factory_info.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_manager.h"
#include "vine_factory_info.h"
#include "xxmalloc.h"
#include "debug.h"
struct vine_factory_info *vine_factory_info_create( const char ... | 1,169 | 21.5 | 92 | c |
cctools | cctools-master/taskvine/src/manager/vine_runtime_dir.h | /*
Copyright (C) 2023- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_manager.h"
/*
This module creates the directory hierarchy for logs and staging files.
This module is private to the manager and should not be invok... | 934 | 28.21875 | 80 | h |
cctools | cctools-master/taskvine/src/manager/vine_task.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_manager.h"
#include "vine_task.h"
#include "vine_worker_info.h"
#include "vine_file.h"
#include "vine_mount.h"
#include "list.h"
#include "rmsummar... | 21,779 | 23.919908 | 134 | c |
cctools | cctools-master/taskvine/src/manager/vine_worker_info.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_WORKER_INFO_H
#define VINE_WORKER_INFO_H
#include "taskvine.h"
#include "vine_resources.h"
#include "hash_table.h"
#include "link.h"
#include "itabl... | 2,768 | 32.361446 | 128 | h |
cctools | cctools-master/taskvine/src/manager/vine_file_replica.c | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_file_replica.h"
struct vine_file_replica * vine_file_replica_create( int64_t size, time_t mtime )
{
struct vine_file_replica *rinfo = malloc(sizeo... | 527 | 21 | 81 | c |
cctools | cctools-master/taskvine/src/manager/vine_schedule.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_SCHEDULE_H
#define VINE_SCHEDULE_H
/*
Implementation of the manager's scheduling algorithm.
A single entry point maps a given task to the best availa... | 823 | 30.692308 | 101 | h |
cctools | cctools-master/taskvine/src/manager/vine_task_info.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_TASK_INFO_H
#define VINE_TASK_INFO_H
/*
Store a report summarizing the performance of a completed task.
Keep a list of reports equal to the number of... | 915 | 24.444444 | 89 | h |
cctools | cctools-master/taskvine/src/manager/vine_taskgraph_log.h | /*
Copyright (C) 2022- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef VINE_TASKGRAPH_LOG_H
#define VINE_TASKGRAPH_LOG_H
/*
Implementation of the manager's graph log, which records numbers
of tasks, workers, etc present over ... | 741 | 28.68 | 82 | h |
cctools | cctools-master/taskvine/src/manager/vine_fair.c | /*
Copyright (C) 2023- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include "vine_runtime_dir.h"
#include "debug.h"
#include "jx_pretty_print.h"
#include "rmonitor.h"
#include "rmonitor_poll.h"
#include "xxmalloc.h"
void vine_fa... | 1,826 | 26.681818 | 107 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.