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

« back to all changes in this revision

Viewing changes to chirp/src/chirp_alloc.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_ALLOC_H
 
8
#define CHIRP_ALLOC_H
 
9
 
 
10
#include "chirp_types.h"
 
11
#include "link.h"
 
12
 
 
13
#include <sys/types.h>
 
14
#include <stdio.h>
 
15
 
 
16
void    chirp_alloc_init( const char *rootpath, INT64_T size );
 
17
void    chirp_alloc_flush();
 
18
int     chirp_alloc_flush_needed();
 
19
time_t  chirp_alloc_last_flush_time();
 
20
 
 
21
INT64_T chirp_alloc_open( const char *path, INT64_T flags, INT64_T mode );
 
22
INT64_T chirp_alloc_close( int fd );
 
23
INT64_T chirp_alloc_pread( int fd, void *buffer, INT64_T length, INT64_T offset );
 
24
INT64_T chirp_alloc_pwrite( int fd, const void *buffer, INT64_T length, INT64_T offset );
 
25
INT64_T chirp_alloc_sread( int fd, void *buffer, INT64_T length, INT64_T stride_length, INT64_T stride_skip, INT64_T offset );
 
26
INT64_T chirp_alloc_swrite( int fd, const void *buffer, INT64_T length, INT64_T stride_length, INT64_T stride_skip, INT64_T offset );
 
27
INT64_T chirp_alloc_fstat( int fd, struct chirp_stat *buf );
 
28
INT64_T chirp_alloc_fstatfs( int fd, struct chirp_statfs *buf );
 
29
INT64_T chirp_alloc_fchown( int fd, INT64_T uid, INT64_T gid );
 
30
INT64_T chirp_alloc_fchmod( int fd, INT64_T mode );
 
31
INT64_T chirp_alloc_ftruncate( int fd, INT64_T length );
 
32
INT64_T chirp_alloc_fsync( int fd );
 
33
 
 
34
void *  chirp_alloc_opendir( const char *path );
 
35
char *  chirp_alloc_readdir( void *dir );
 
36
void    chirp_alloc_closedir( void *dir );
 
37
 
 
38
INT64_T chirp_alloc_getfile( const char *path, struct link *link, time_t stoptime );
 
39
INT64_T chirp_alloc_putfile( const char *path, struct link *link, INT64_T length, INT64_T mode, time_t stoptime );
 
40
 
 
41
INT64_T chirp_alloc_getstream( const char *path, struct link *link, time_t stoptime );
 
42
INT64_T chirp_alloc_putstream( const char *path, struct link *link, time_t stoptime );
 
43
 
 
44
INT64_T chirp_alloc_mkfifo( const char *path );
 
45
INT64_T chirp_alloc_unlink( const char *path );
 
46
INT64_T chirp_alloc_rename( const char *path, const char *newpath );
 
47
INT64_T chirp_alloc_link( const char *path, const char *newpath );
 
48
INT64_T chirp_alloc_symlink( const char *path, const char *newpath );
 
49
INT64_T chirp_alloc_readlink( const char *path, char *buf, INT64_T length );
 
50
INT64_T chirp_alloc_mkdir( const char *path, INT64_T mode );
 
51
INT64_T chirp_alloc_rmdir( const char *path );
 
52
INT64_T chirp_alloc_rmall( const char *path );
 
53
INT64_T chirp_alloc_stat( const char *path, struct chirp_stat *buf );
 
54
INT64_T chirp_alloc_lstat( const char *path, struct chirp_stat *buf );
 
55
INT64_T chirp_alloc_statfs( const char *path, struct chirp_statfs *buf );
 
56
INT64_T chirp_alloc_access( const char *path, INT64_T mode );
 
57
INT64_T chirp_alloc_chmod( const char *path, INT64_T mode );
 
58
INT64_T chirp_alloc_chown( const char *path, INT64_T uid, INT64_T gid );
 
59
INT64_T chirp_alloc_lchown( const char *path, INT64_T uid, INT64_T gid );
 
60
INT64_T chirp_alloc_truncate( const char *path, INT64_T length );
 
61
INT64_T chirp_alloc_utime( const char *path, time_t actime, time_t modtime );
 
62
INT64_T chirp_alloc_md5( const char *path, unsigned char digest[16] );
 
63
 
 
64
INT64_T chirp_alloc_lsalloc( const char *path, char *alloc_path, INT64_T *total, INT64_T *inuse );
 
65
INT64_T chirp_alloc_mkalloc( const char *path, INT64_T size, INT64_T mode );
 
66
 
 
67
INT64_T chirp_alloc_file_size( const char *path );
 
68
INT64_T chirp_alloc_fd_size( int fd );
 
69
 
 
70
#endif