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

chirp_global.h

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 
00008 #ifndef CHIRP_GLOBAL_H
00009 #define CHIRP_GLOBAL_H
00010 
00011 #include "chirp_client.h"
00012 
00013 #include <sys/types.h>
00014 #include <stdio.h>
00015 
00016 struct chirp_file * chirp_global_open( const char *host, const char *path, INT64_T flags, INT64_T mode, time_t stoptime );
00017 INT64_T chirp_global_close( struct chirp_file *file, time_t stoptime );
00018 INT64_T chirp_global_pread( struct chirp_file *file, void *buffer, INT64_T length, INT64_T offset, time_t stoptime );
00019 INT64_T chirp_global_pwrite( struct chirp_file *file, const void *buffer, INT64_T length, INT64_T offset, time_t stoptime );
00020 INT64_T chirp_global_sread( struct chirp_file *file, void *buffer, INT64_T length, INT64_T stride_length, INT64_T stride_skip, INT64_T offset, time_t stoptime );
00021 INT64_T chirp_global_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 );
00022 INT64_T chirp_global_fstat( struct chirp_file *file, struct chirp_stat *buf, time_t stoptime );
00023 INT64_T chirp_global_fstatfs( struct chirp_file *file, struct chirp_statfs *buf, time_t stoptime );
00024 INT64_T chirp_global_fchown( struct chirp_file *file, INT64_T uid, INT64_T gid, time_t stoptime );
00025 INT64_T chirp_global_fchmod( struct chirp_file *file, INT64_T mode, time_t stoptime );
00026 INT64_T chirp_global_ftruncate( struct chirp_file *file, INT64_T length, time_t stoptime );
00027 INT64_T chirp_global_flush( struct chirp_file *file, time_t stoptime );
00028 
00029 INT64_T chirp_global_getfile( const char *host, const char *path, FILE *stream, time_t stoptime );
00030 INT64_T chirp_global_getfile_buffer( const char *host, const char *path, char **buffer, time_t stoptime );
00031 INT64_T chirp_global_putfile( const char *host, const char *path, FILE *stream, INT64_T mode, INT64_T length, time_t stoptime );
00032 INT64_T chirp_global_putfile_buffer( const char *host, const char *path, const char *buffer, INT64_T mode, INT64_T length, time_t stoptime );
00033 INT64_T chirp_global_whoami( const char *host, const char *path, char *buf, INT64_T length, time_t stoptime );
00034 INT64_T chirp_global_getlongdir( const char *host, const char *path, chirp_longdir_t callback, void *arg, time_t stoptime );
00035 INT64_T chirp_global_getdir( const char *host, const char *path, chirp_dir_t callback, void *arg, time_t stoptime );
00036 INT64_T chirp_global_getacl( const char *host, const char *path, chirp_dir_t callback, void *arg, time_t stoptime );
00037 INT64_T chirp_global_setacl( const char *host, const char *path, const char *subject, const char *rights, time_t stoptime );
00038 INT64_T chirp_global_unlink( const char *host, const char *path, time_t stoptime );
00039 INT64_T chirp_global_rename( const char *host, const char *path, const char *newpath, time_t stoptime );
00040 INT64_T chirp_global_link( const char *host, const char *path, const char *newpath, time_t stoptime );
00041 INT64_T chirp_global_symlink( const char *host, const char *path, const char *newpath, time_t stoptime );
00042 INT64_T chirp_global_readlink( const char *host, const char *path, char *buf, INT64_T length, time_t stoptime );
00043 INT64_T chirp_global_mkdir( const char *host, const char *path, INT64_T mode, time_t stoptime );
00044 INT64_T chirp_global_rmdir( const char *host, const char *path, time_t stoptime );
00045 INT64_T chirp_global_rmall( const char *host, const char *path, time_t stoptime );
00046 INT64_T chirp_global_stat( const char *host, const char *path, struct chirp_stat *buf, time_t stoptime );
00047 INT64_T chirp_global_lstat( const char *host, const char *path, struct chirp_stat *buf, time_t stoptime );
00048 INT64_T chirp_global_statfs( const char *host, const char *path, struct chirp_statfs *buf, time_t stoptime );
00049 INT64_T chirp_global_access( const char *host, const char *path, INT64_T mode, time_t stoptime );
00050 INT64_T chirp_global_chmod( const char *host, const char *path, INT64_T mode, time_t stoptime );
00051 INT64_T chirp_global_chown( const char *host, const char *path, INT64_T uid, INT64_T gid, time_t stoptime );
00052 INT64_T chirp_global_lchown( const char *host, const char *path, INT64_T uid, INT64_T gid, time_t stoptime );
00053 INT64_T chirp_global_truncate( const char *host, const char *path, INT64_T length, time_t stoptime );
00054 INT64_T chirp_global_utime( const char *host, const char *path, time_t actime, time_t modtime, time_t stoptime );
00055 INT64_T chirp_global_thirdput( const char *host, const char *path, const char *thirdhost, const char *thirdpath, time_t stoptime );
00056 INT64_T chirp_global_md5( const char *host, const char *path, unsigned char *digest, time_t stoptime );
00057 INT64_T chirp_global_mkalloc( const char *host, const char *path, INT64_T size, INT64_T mode, time_t stoptime );
00058 INT64_T chirp_global_lsalloc( const char *host, const char *path, char *alloc_path, INT64_T *size, INT64_T *inuse , time_t stoptime );
00059 
00060 void chirp_global_inhibit_catalog( int onoff );
00061 
00062 #endif

Generated on Mon Oct 19 10:11:27 2009 for cctools by  doxygen 1.3.9.1