~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to chirp/src/chirp_hdfs.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2008- The University of Notre Dame
 
3
This software is distributed under the GNU General Public License.
 
4
See the file COPYING for details.
 
5
*/
 
6
 
 
7
#ifndef CHIRP_HDFS_H
 
8
#define CHIRP_HDFS_H
 
9
 
 
10
#include "chirp_client.h"
 
11
#include "link.h"
 
12
 
 
13
#include <sys/types.h>
 
14
#include <stdio.h>
 
15
 
 
16
INT64_T chirp_hdfs_open( const char *path, INT64_T flags, INT64_T mode );
 
17
INT64_T chirp_hdfs_close( int fd );
 
18
INT64_T chirp_hdfs_pread( int fd, void *buffer, INT64_T length, INT64_T offset );
 
19
INT64_T chirp_hdfs_pwrite( int fd, const void *buffer, INT64_T length, INT64_T offset );
 
20
INT64_T chirp_hdfs_sread( int fd, void *buffer, INT64_T length, INT64_T stride_length, INT64_T stride_skip, INT64_T offset );
 
21
INT64_T chirp_hdfs_swrite( int fd, const void *buffer, INT64_T length, INT64_T stride_length, INT64_T stride_skip, INT64_T offset );
 
22
INT64_T chirp_hdfs_fstat( int fd, struct chirp_stat *buf );
 
23
INT64_T chirp_hdfs_fstatfs( int fd, struct chirp_statfs *buf );
 
24
INT64_T chirp_hdfs_fchown( int fd, INT64_T uid, INT64_T gid );
 
25
INT64_T chirp_hdfs_fchmod( int fd, INT64_T mode );
 
26
INT64_T chirp_hdfs_ftruncate( int fd, INT64_T length );
 
27
INT64_T chirp_hdfs_fsync( int fd );
 
28
 
 
29
void *  chirp_hdfs_opendir( const char *path );
 
30
char *  chirp_hdfs_readdir( void *dir );
 
31
void    chirp_hdfs_closedir( void *dir );
 
32
 
 
33
INT64_T chirp_hdfs_getfile( const char *path, struct link *link, time_t stoptime );
 
34
INT64_T chirp_hdfs_putfile( const char *path, struct link *link, INT64_T length, INT64_T mode, time_t stoptime );
 
35
 
 
36
INT64_T chirp_hdfs_mkfifo( const char *path );
 
37
INT64_T chirp_hdfs_unlink( const char *path );
 
38
INT64_T chirp_hdfs_rename( const char *path, const char *newpath );
 
39
INT64_T chirp_hdfs_link( const char *path, const char *newpath );
 
40
INT64_T chirp_hdfs_symlink( const char *path, const char *newpath );
 
41
INT64_T chirp_hdfs_readlink( const char *path, char *buf, INT64_T length );
 
42
INT64_T chirp_hdfs_mkdir( const char *path, INT64_T mode );
 
43
INT64_T chirp_hdfs_rmdir( const char *path );
 
44
INT64_T chirp_hdfs_stat( const char *path, struct chirp_stat *buf );
 
45
INT64_T chirp_hdfs_lstat( const char *path, struct chirp_stat *buf );
 
46
INT64_T chirp_hdfs_statfs( const char *path, struct chirp_statfs *buf );
 
47
INT64_T chirp_hdfs_access( const char *path, INT64_T mode );
 
48
INT64_T chirp_hdfs_chmod( const char *path, INT64_T mode );
 
49
INT64_T chirp_hdfs_chown( const char *path, INT64_T uid, INT64_T gid );
 
50
INT64_T chirp_hdfs_lchown( const char *path, INT64_T uid, INT64_T gid );
 
51
INT64_T chirp_hdfs_truncate( const char *path, INT64_T length );
 
52
INT64_T chirp_hdfs_utime( const char *path, time_t actime, time_t modtime );
 
53
INT64_T chirp_hdfs_md5( const char *path, unsigned char digest[16] );
 
54
 
 
55
INT64_T chirp_hdfs_lsalloc( const char *path, char *alloc_path, INT64_T *total, INT64_T *inuse );
 
56
INT64_T chirp_hdfs_mkalloc( const char *path, INT64_T size, INT64_T mode );
 
57
 
 
58
INT64_T chirp_hdfs_file_size( const char *path );
 
59
INT64_T chirp_hdfs_fd_size( int fd );
 
60
 
 
61
INT64_T chirp_hdfs_chdir (const char *path);
 
62
 
 
63
void chirp_hdfs_bandwidth_limit_set( int bytes_per_second );
 
64
 
 
65
extern struct chirp_filesystem chirp_hdfs_fs;
 
66
 
 
67
extern char *chirp_hdfs_hostname;
 
68
extern UINT16_T chirp_hdfs_port;
 
69
 
 
70
#endif