version 1.5, 2001/04/15 08:43:46 |
version 1.6, 2001/06/23 15:12:20 |
|
|
int fd_out; |
int fd_out; |
} cur; |
} cur; |
|
|
void *fudge_opendir(const char *path) |
static void * |
|
fudge_opendir(const char *path) |
{ |
{ |
struct SFTP_OPENDIR *r; |
struct SFTP_OPENDIR *r; |
|
|
|
|
return((void*)r); |
return((void*)r); |
} |
} |
|
|
struct dirent *fudge_readdir(struct SFTP_OPENDIR *od) |
static struct dirent * |
|
fudge_readdir(struct SFTP_OPENDIR *od) |
{ |
{ |
static struct dirent ret; |
static struct dirent ret; |
|
|
|
|
return(&ret); |
return(&ret); |
} |
} |
|
|
void fudge_closedir(struct SFTP_OPENDIR *od) |
static void |
|
fudge_closedir(struct SFTP_OPENDIR *od) |
{ |
{ |
free_sftp_dirents(od->dir); |
free_sftp_dirents(od->dir); |
xfree(od); |
xfree(od); |
} |
} |
|
|
void attrib_to_stat(Attrib *a, struct stat *st) |
static void |
|
attrib_to_stat(Attrib *a, struct stat *st) |
{ |
{ |
memset(st, 0, sizeof(*st)); |
memset(st, 0, sizeof(*st)); |
|
|
|
|
} |
} |
} |
} |
|
|
int fudge_lstat(const char *path, struct stat *st) |
static int |
|
fudge_lstat(const char *path, struct stat *st) |
{ |
{ |
Attrib *a; |
Attrib *a; |
|
|
|
|
return(0); |
return(0); |
} |
} |
|
|
int fudge_stat(const char *path, struct stat *st) |
static int |
|
fudge_stat(const char *path, struct stat *st) |
{ |
{ |
Attrib *a; |
Attrib *a; |
|
|