libaegis/glue.h File Reference

#include <common/ac/stdio.h>
#include <common/main.h>
#include <common/config.h>

Go to the source code of this file.

Defines

#define glue_access   access
#define glue_catfile   catfile
#define glue_chmod   chmod
#define glue_chown   chown
#define glue_close   ::close
#define glue_creat   creat
#define glue_copyfile   copyfile
#define glue_fclose   fclose
#define glue_fcntl   fcntl
#define glue_ferror   ferror
#define glue_fflush   fflush
#define glue_fgetc   getc
#define glue_file_compare   file_compare
#define glue_file_fingerprint   file_fingerprint
#define glue_fopen   fopen
#define glue_fputc   putc
#define glue_getcwd   getcwd
#define glue_link   link
#define glue_lstat   lstat
#define glue_mkdir   mkdir
#define glue_open   ::open
#define glue_pathconf   pathconf
#define glue_read   ::read
#define glue_readlink   readlink
#define glue_read_whole_dir   read_whole_dir
#define glue_rename   rename
#define glue_rmdir   rmdir
#define glue_rmdir_bg   rmdir_bg
#define glue_rmdir_tree   rmdir_tree
#define glue_stat   stat
#define glue_symlink   symlink
#define glue_ungetc   ungetc
#define glue_unlink   unlink
#define glue_utime   utime
#define glue_lutime   lutime
#define glue_write   ::write
#define glue_fwrite   fwrite

Functions

int copyfile (const char *src, const char *dst)
int catfile (const char *path)
int read_whole_dir (const char *path, char **data, long *datalen)
int read_whole_dir__wl (const char *path, struct string_list_ty *wl)
int read_whole_dir__wl (const nstring &path, nstring_list &wl)
int read_whole_dir__wla (const char *path, struct string_list_ty *wl)
int read_whole_dir__wla (const nstring &path, nstring_list &wl)
int file_compare (const char *, const char *)
int file_fingerprint (const char *path, char *buf, int max)
int rmdir_bg (const char *path)
int rmdir_tree (const char *path)
int glue_access (const char *path, int mode)
int glue_catfile (const char *path)
int glue_chmod (const char *path, int mode)
int glue_chown (const char *path, int uid, int gid)
int glue_close (int fd)
int glue_creat (const char *path, int mode)
int glue_copyfile (const char *src, const char *dst)
int glue_fclose (FILE *)
int glue_file_compare (const char *, const char *)
int glue_file_fingerprint (const char *path, char *buf, int max)
int glue_fcntl (int fd, int cmd, struct flock *)
int glue_ferror (FILE *)
int glue_fflush (FILE *)
int glue_fgetc (FILE *)
FILE * glue_fopen (const char *path, const char *mode)
int glue_fputc (int, FILE *)
char * glue_getcwd (char *buf, int max)
int glue_link (const char *p1, const char *p2)
int glue_lstat (const char *path, struct stat *st)
int glue_mkdir (const char *path, int mode)
int glue_open (const char *path, int mode, int perm)
long glue_pathconf (const char *path, int mode)
long glue_read (int fd, void *data, size_t len)
int glue_readlink (const char *path, char *buf, int max)
int glue_read_whole_dir (const char *path, char **data, long *datalen)
int glue_rename (const char *p1, const char *p2)
int glue_rmdir (const char *path)
int glue_rmdir_bg (const char *path)
int glue_rmdir_tree (const char *path)
int glue_stat (const char *path, struct stat *st)
int glue_symlink (const char *name1, const char *name2)
int glue_ungetc (int, FILE *)
int glue_unlink (const char *path)
int glue_utime (const char *path, struct utimbuf *)
int glue_lutime (const char *path, struct utimbuf *)
int glue_write (int fd, const void *data, long len)
int glue_fwrite (char *, long, long, FILE *)


Define Documentation

#define glue_access   access

Definition at line 154 of file glue.h.

#define glue_catfile   catfile

Definition at line 155 of file glue.h.

#define glue_chmod   chmod

Definition at line 156 of file glue.h.

#define glue_chown   chown

Definition at line 157 of file glue.h.

#define glue_close   ::close

Definition at line 158 of file glue.h.

#define glue_copyfile   copyfile

Definition at line 160 of file glue.h.

#define glue_creat   creat

Definition at line 159 of file glue.h.

#define glue_fclose   fclose

Definition at line 161 of file glue.h.

#define glue_fcntl   fcntl

Definition at line 162 of file glue.h.

#define glue_ferror   ferror

Definition at line 163 of file glue.h.

#define glue_fflush   fflush

Definition at line 164 of file glue.h.

#define glue_fgetc   getc

Definition at line 165 of file glue.h.

#define glue_file_compare   file_compare

Definition at line 166 of file glue.h.

#define glue_file_fingerprint   file_fingerprint

Definition at line 167 of file glue.h.

#define glue_fopen   fopen

Definition at line 168 of file glue.h.

#define glue_fputc   putc

Definition at line 169 of file glue.h.

#define glue_fwrite   fwrite

Definition at line 190 of file glue.h.

#define glue_getcwd   getcwd

Definition at line 170 of file glue.h.

#define glue_link   link

Definition at line 171 of file glue.h.

#define glue_lstat   lstat

Definition at line 172 of file glue.h.

#define glue_lutime   lutime

Definition at line 188 of file glue.h.

#define glue_mkdir   mkdir

Definition at line 173 of file glue.h.

#define glue_open   ::open

Definition at line 174 of file glue.h.

#define glue_pathconf   pathconf

Definition at line 175 of file glue.h.

#define glue_read   ::read

Definition at line 176 of file glue.h.

#define glue_read_whole_dir   read_whole_dir

Definition at line 178 of file glue.h.

#define glue_readlink   readlink

Definition at line 177 of file glue.h.

#define glue_rename   rename

Definition at line 179 of file glue.h.

#define glue_rmdir   rmdir

Definition at line 180 of file glue.h.

#define glue_rmdir_bg   rmdir_bg

Definition at line 181 of file glue.h.

#define glue_rmdir_tree   rmdir_tree

Definition at line 182 of file glue.h.

#define glue_stat   stat

Definition at line 183 of file glue.h.

#define glue_symlink   symlink

Definition at line 184 of file glue.h.

#define glue_ungetc   ungetc

Definition at line 185 of file glue.h.

#define glue_unlink   unlink

Definition at line 186 of file glue.h.

#define glue_utime   utime

Definition at line 187 of file glue.h.

#define glue_write   ::write

Definition at line 189 of file glue.h.


Function Documentation

int catfile ( const char *  path  ) 

int copyfile ( const char *  src,
const char *  dst 
)

int file_compare ( const char *  ,
const char *   
)

int file_fingerprint ( const char *  path,
char *  buf,
int  max 
)

int glue_access ( const char *  path,
int  mode 
)

int glue_catfile ( const char *  path  ) 

int glue_chmod ( const char *  path,
int  mode 
)

int glue_chown ( const char *  path,
int  uid,
int  gid 
)

int glue_close ( int  fd  ) 

int glue_copyfile ( const char *  src,
const char *  dst 
)

int glue_creat ( const char *  path,
int  mode 
)

int glue_fclose ( FILE *   ) 

int glue_fcntl ( int  fd,
int  cmd,
struct flock *   
)

int glue_ferror ( FILE *   ) 

int glue_fflush ( FILE *   ) 

int glue_fgetc ( FILE *   ) 

int glue_file_compare ( const char *  ,
const char *   
)

int glue_file_fingerprint ( const char *  path,
char *  buf,
int  max 
)

FILE* glue_fopen ( const char *  path,
const char *  mode 
)

int glue_fputc ( int  ,
FILE *   
)

int glue_fwrite ( char *  ,
long  ,
long  ,
FILE *   
)

char* glue_getcwd ( char *  buf,
int  max 
)

int glue_link ( const char *  p1,
const char *  p2 
)

int glue_lstat ( const char *  path,
struct stat *  st 
)

int glue_lutime ( const char *  path,
struct utimbuf *   
)

int glue_mkdir ( const char *  path,
int  mode 
)

int glue_open ( const char *  path,
int  mode,
int  perm 
)

long glue_pathconf ( const char *  path,
int  mode 
)

long glue_read ( int  fd,
void *  data,
size_t  len 
)

int glue_read_whole_dir ( const char *  path,
char **  data,
long *  datalen 
)

int glue_readlink ( const char *  path,
char *  buf,
int  max 
)

int glue_rename ( const char *  p1,
const char *  p2 
)

int glue_rmdir ( const char *  path  ) 

int glue_rmdir_bg ( const char *  path  ) 

int glue_rmdir_tree ( const char *  path  ) 

int glue_stat ( const char *  path,
struct stat *  st 
)

int glue_symlink ( const char *  name1,
const char *  name2 
)

int glue_ungetc ( int  ,
FILE *   
)

int glue_unlink ( const char *  path  ) 

int glue_utime ( const char *  path,
struct utimbuf *   
)

int glue_write ( int  fd,
const void *  data,
long  len 
)

int read_whole_dir ( const char *  path,
char **  data,
long *  datalen 
)

int read_whole_dir__wl ( const nstring path,
nstring_list wl 
)

The read_whole_dir__wl function may be used to read the list of file names contained in a directory. It is returned as a nstring_list.

Parameters:
path The path to read the directory entries of.
wl The string list to hold the answers. It is clear()ed first.
Returns:
-1 on error, 0 on success

int read_whole_dir__wl ( const char *  path,
struct string_list_ty wl 
)

The read_whole_dir__wl function may be used to read the list of file names contained in a directory. It is returned as a string_list_ty. The string list is initialized (via string_list_constructor) before the results are appended.

Parameters:
path The path to read the directory entries of.
wl The string list to hold the answers. It is clear()ed first.
Returns:
-1 on error, 0 on success

int read_whole_dir__wla ( const nstring path,
nstring_list wl 
)

The read_whole_dir__wla function may be used to read the list of file names contained in a directory and append them to the given string list. It is returned as a string_list_ty.

Parameters:
path The path to read the directory entries of.
wl The string list to hold the answers. It is NOT clear()ed first.
Returns:
-1 on error, 0 on success

int read_whole_dir__wla ( const char *  path,
struct string_list_ty wl 
)

The read_whole_dir__wla function may be used to read the list of file names contained in a directory and append them to the given string list. It is returned as a string_list_ty.

Parameters:
path The path to read the directory entries of.
wl The string list to hold the answers. It is NOT clear()ed first.
Returns:
-1 on error, 0 on success

int rmdir_bg ( const char *  path  ) 

int rmdir_tree ( const char *  path  ) 


Generated on Wed Mar 12 23:37:37 2008 for Aegis by  doxygen 1.5.5