2003-10-16 20:50:09 +04:00
|
|
|
#ifndef __UTILVFS_H
|
|
|
|
#define __UTILVFS_H
|
|
|
|
|
1999-01-27 03:49:11 +03:00
|
|
|
#include "../src/global.h"
|
1999-01-19 05:23:30 +03:00
|
|
|
|
|
|
|
#include "../src/tty.h" /* enable/disable interrupt key */
|
2003-10-26 07:47:20 +03:00
|
|
|
#include "../src/wtools.h" /* message() */
|
2002-11-14 10:26:32 +03:00
|
|
|
#include "../src/main.h" /* print_vfs_message */
|
2003-10-16 20:50:09 +04:00
|
|
|
|
|
|
|
/* Flags for vfs_split_url() */
|
|
|
|
#define URL_ALLOW_ANON 1
|
|
|
|
#define URL_NOSLASH 2
|
|
|
|
|
2003-11-05 09:08:16 +03:00
|
|
|
int vfs_finduid (char *name);
|
|
|
|
int vfs_findgid (char *name);
|
|
|
|
|
2003-10-16 20:50:09 +04:00
|
|
|
char *vfs_split_url (const char *path, char **host, char **user, int *port,
|
|
|
|
char **pass, int default_port, int flags);
|
2003-11-05 09:08:16 +03:00
|
|
|
int vfs_split_text (char *p);
|
2003-10-16 20:50:09 +04:00
|
|
|
|
2003-10-29 03:50:36 +03:00
|
|
|
int vfs_mkstemps (char **pname, const char *prefix, const char *basename);
|
2003-11-05 09:08:16 +03:00
|
|
|
void vfs_die (const char *msg);
|
2004-08-16 19:45:05 +04:00
|
|
|
char *vfs_get_password (const char *msg);
|
2003-11-05 09:08:16 +03:00
|
|
|
|
|
|
|
int vfs_parse_ls_lga (const char *p, struct stat *s, char **filename,
|
|
|
|
char **linkname);
|
|
|
|
int vfs_parse_filetype (char c);
|
|
|
|
int vfs_parse_filemode (const char *p);
|
|
|
|
int vfs_parse_filedate (int idx, time_t *t);
|
2003-10-16 20:50:09 +04:00
|
|
|
|
|
|
|
#endif /* !__UTILVFS_H */
|