|
|
|
|
int access (const char *fn, int how) { |
|
_export long fsize (FILE * f) |
_export long fn_size (const char *fn) |
_export long fn_copy (const char *src, const char *dst, long limit) |
|
|
static int
fn_extend (const char *fn, long size)
{
FILE *f;
int result;
f = fopen (fn, |
|
int truncate (const char *path, long length) { char tfn[L_tmpnam]; long len; tmpnam (tfn); len = fn_copy (path, tfn, length); if (len == length && _pfe_remove (path) == 0) { return fn_move (tfn, path); }else{ _pfe_remove (tfn); return 0; } } |
|
|
|