cynapses libc file functions
[cynapses libc API (internal)]

Collaboration diagram for cynapses libc file functions:


Defines

#define BUFFER_SIZE   (16 * 1024)

Functions

int c_copy (const char *src, const char *dst, mode_t mode)
int c_isfile (const char *path)


Define Documentation

#define BUFFER_SIZE   (16 * 1024)

Definition at line 40 of file c_file.h.


Function Documentation

int c_copy ( const char *  src,
const char *  dst,
mode_t  mode 
)

copy a file from source to destination.

Parameters:
src Path to the source file
dst Path to the destination file
mode File creation mode of the destination. If mode is 0 then the mode from the source will be used.
Returns:
0 on success, less then 0 on error with errno set. EISDIR if src or dst is a file.

int c_isfile ( const char *  path  ) 

Check if a path is a regular file or a link.

Parameters:
path The path to check.
Returns:
1 if the path is a file, 0 if the path doesn't exist, is a something else or can't be accessed.


Generated on Mon May 4 17:43:41 2009 for doc by  doxygen 1.5.6