Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

chirp_reli.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
00003 Copyright (C) 2005- The University of Notre Dame
00004 This software is distributed under a BSD-style license.
00005 See the file COPYING for details.
00006 */
00007 
00061 #ifndef CHIRP_RELI_H
00062 #define CHIRP_RELI_H
00063 
00064 #include "chirp_types.h"
00065 
00066 #include <sys/types.h>
00067 #include <stdio.h>
00068 
00087 struct chirp_file * chirp_reli_open( const char *host, const char *path, INT64_T flags, INT64_T mode, time_t stoptime );
00088 
00097 INT64_T chirp_reli_close( struct chirp_file *file, time_t stoptime );
00098 
00109 INT64_T chirp_reli_pread( struct chirp_file *file, void *buffer, INT64_T length, INT64_T offset, time_t stoptime );
00110 
00122 INT64_T chirp_reli_pwrite( struct chirp_file *file, const void *buffer, INT64_T length, INT64_T offset, time_t stoptime );
00123 
00134 INT64_T chirp_reli_pread_unbuffered( struct chirp_file *file, void *buffer, INT64_T length, INT64_T offset, time_t stoptime );
00135 
00146 INT64_T chirp_reli_pwrite_unbuffered( struct chirp_file *file, const void *buffer, INT64_T length, INT64_T offset, time_t stoptime );
00147 
00162 INT64_T chirp_reli_sread( struct chirp_file *file, void *buffer, INT64_T length, INT64_T stride_length, INT64_T stride_skip, INT64_T offset, time_t stoptime );
00163 
00178 INT64_T chirp_reli_swrite( struct chirp_file *file, const void *buffer, INT64_T length, INT64_T stride_length, INT64_T stride_skip, INT64_T offset, time_t stoptime );
00179 
00188 INT64_T chirp_reli_fstat( struct chirp_file *file, struct chirp_stat *info, time_t stoptime );
00189 
00198 INT64_T chirp_reli_fstatfs( struct chirp_file *file, struct chirp_statfs *info, time_t stoptime );
00199 
00209 INT64_T chirp_reli_fchown( struct chirp_file *file, INT64_T uid, INT64_T gid, time_t stoptime );
00210 
00220 INT64_T chirp_reli_fchmod( struct chirp_file *file, INT64_T mode, time_t stoptime );
00221 
00229 INT64_T chirp_reli_ftruncate( struct chirp_file *file, INT64_T length, time_t stoptime );
00230 
00240 INT64_T chirp_reli_flush( struct chirp_file *file, time_t stoptime );
00241 
00253 INT64_T chirp_reli_getfile( const char *host, const char *path, FILE *stream, time_t stoptime );
00254 
00265 INT64_T chirp_reli_getfile_buffer( const char *host, const char *path, char **buffer, time_t stoptime );
00266 
00279 INT64_T chirp_reli_putfile( const char *host, const char *path, FILE *stream, INT64_T mode, INT64_T length, time_t stoptime );
00280 
00292 INT64_T chirp_reli_putfile_buffer( const char *host, const char *path, const char *buffer, INT64_T mode, INT64_T length, time_t stoptime );
00293 
00304 INT64_T chirp_reli_getlongdir( const char *host, const char *path, chirp_longdir_t callback, void *arg, time_t stoptime );
00305 
00316 INT64_T chirp_reli_getdir( const char *host, const char *path, chirp_dir_t callback, void *arg, time_t stoptime );
00317 
00328 INT64_T chirp_reli_getacl( const char *host, const char *path, chirp_dir_t callback, void *arg, time_t stoptime );
00329 
00339 INT64_T chirp_reli_setacl( const char *host, const char *path, const char *subject, const char *rights, time_t stoptime );
00340 
00349 INT64_T chirp_reli_whoami( const char *host, char *subject, INT64_T length, time_t stoptime );
00350 
00361 INT64_T chirp_reli_whoareyou( const char *host, const char *rhost, char *subject, INT64_T length, time_t stoptime  );
00362 
00372 INT64_T chirp_reli_mkfifo( const char *host, const char *path, time_t stoptime );
00373 
00381 INT64_T chirp_reli_unlink( const char *host, const char *path, time_t stoptime );
00382 
00391 INT64_T chirp_reli_rename( const char *host, const char *path, const char *newpath, time_t stoptime );
00392 
00401 INT64_T chirp_reli_link( const char *host, const char *path, const char *newpath, time_t stoptime );
00402 
00411 INT64_T chirp_reli_symlink( const char *host, const char *path, const char *newpath, time_t stoptime );
00412 
00422 INT64_T chirp_reli_readlink( const char *host, const char *path, char *buf, INT64_T length, time_t stoptime );
00423 
00424 
00433 INT64_T chirp_reli_mkdir( const char *host, const char *path, INT64_T mode, time_t stoptime );
00434 
00443 INT64_T chirp_reli_rmdir( const char *host, const char *path, time_t stoptime );
00444 
00455 INT64_T chirp_reli_rmall( const char *host, const char *path, time_t stoptime );
00456 
00466 INT64_T chirp_reli_stat( const char *host, const char *path, struct chirp_stat *info, time_t stoptime );
00467 
00478 INT64_T chirp_reli_lstat( const char *host, const char *path, struct chirp_stat *info, time_t stoptime );
00479 
00488 INT64_T chirp_reli_statfs( const char *host, const char *path, struct chirp_statfs *info, time_t stoptime );
00489 
00501 INT64_T chirp_reli_access( const char *host, const char *path, INT64_T flags, time_t stoptime );
00502 
00514 INT64_T chirp_reli_chmod( const char *host, const char *path, INT64_T mode, time_t stoptime );
00515 
00526 INT64_T chirp_reli_chown( const char *host, const char *path, INT64_T uid, INT64_T gid, time_t stoptime );
00527 
00538 INT64_T chirp_reli_lchown( const char *host, const char *path, INT64_T uid, INT64_T gid, time_t stoptime );
00539 
00548 INT64_T chirp_reli_truncate( const char *host, const char *path, INT64_T length, time_t stoptime );
00549 
00559 INT64_T chirp_reli_utime( const char *host, const char *path, time_t actime, time_t modtime, time_t stoptime );
00560 
00574 INT64_T chirp_reli_md5( const char *host, const char *path, unsigned char digest[16], time_t stoptime );
00575 
00587 INT64_T chirp_reli_audit( const char *host, const char *path, struct chirp_audit **list, time_t stoptime );
00588 
00601 INT64_T chirp_reli_thirdput( const char *host, const char *path, const char *thirdhost, const char *thirdpath, time_t stoptime );
00602 
00614 INT64_T chirp_reli_mkalloc( const char *host, const char *path, INT64_T size, INT64_T mode, time_t stoptime );
00615 
00627 INT64_T chirp_reli_lsalloc( const char *host, const char *path, char *allocpath, INT64_T *total, INT64_T *inuse, time_t stoptime );
00628 
00637 INT64_T chirp_reli_group_create( const char *host, char *group, time_t stoptime );
00638 
00648 INT64_T chirp_reli_group_list( const char *host, const char *group, chirp_dir_t callback, void *arg, time_t stoptime );
00649 
00658 INT64_T chirp_reli_group_add( const char *host, char *group, char *user, time_t stoptime );
00659 
00668 INT64_T chirp_reli_group_remove( const char *host, char *group, char *user, time_t stoptime );
00669 
00677 INT64_T chirp_reli_group_lookup( const char *host, const char *group, const char *user, time_t stoptime );
00678 
00679 /* Note that these functions are not documented because they are only used for inter-server communications. */
00680 INT64_T chirp_reli_group_cache_update( const char *host, const char *group, time_t mod_time, time_t stoptime );
00681 INT64_T chirp_reli_group_policy_set( const char *host, char *group, unsigned long int file_duration, unsigned long int dec_duration, time_t stoptime );
00682 INT64_T chirp_reli_group_policy_get( const char *host, const char *group, int *policy, int *file_duration, int *dec_duration, time_t stoptime );
00683 
00698 INT64_T chirp_reli_job_begin( const char *host, const char *cwd, const char *input, const char *output, const char *error, const char *cmdline, time_t stoptime );
00699 
00711 INT64_T chirp_reli_job_commit( const char *host, INT64_T jobid, time_t stoptime );
00712 
00728 INT64_T chirp_reli_job_wait( const char *host, INT64_T jobid, struct chirp_job_state *state, int wait_time, time_t stoptime );
00729 
00741 INT64_T chirp_reli_job_kill( const char *host, INT64_T jobid, time_t stoptime );
00742 
00754 INT64_T chirp_reli_job_remove( const char *host, INT64_T jobid, time_t stoptime );
00755 
00766 INT64_T chirp_reli_job_list( const char *host, chirp_joblist_t callback, void *arg, time_t stoptime );
00767 
00775 INT64_T chirp_reli_blocksize_get();
00776 
00784 void    chirp_reli_blocksize_set( INT64_T bs );
00785 
00786 #endif

Generated on Wed Jun 11 10:05:15 2008 for cctools by  doxygen 1.3.9.1