2005-02-18 21:15:37 +00:00
|
|
|
#ifndef MC_VFS_UTILVFS_H
|
|
|
|
#define MC_VFS_UTILVFS_H
|
2003-10-16 16:50:09 +00:00
|
|
|
|
2005-02-19 16:36:38 +00:00
|
|
|
#include <sys/stat.h>
|
2003-10-16 16:50:09 +00:00
|
|
|
|
|
|
|
/* Flags for vfs_split_url() */
|
|
|
|
#define URL_ALLOW_ANON 1
|
|
|
|
#define URL_NOSLASH 2
|
|
|
|
|
2004-08-17 09:48:15 +00:00
|
|
|
int vfs_finduid (const char *name);
|
|
|
|
int vfs_findgid (const char *name);
|
2003-11-05 06:08:16 +00:00
|
|
|
|
2003-10-16 16:50:09 +00:00
|
|
|
char *vfs_split_url (const char *path, char **host, char **user, int *port,
|
|
|
|
char **pass, int default_port, int flags);
|
2003-11-05 06:08:16 +00:00
|
|
|
int vfs_split_text (char *p);
|
2003-10-16 16:50:09 +00:00
|
|
|
|
2003-10-29 00:50:36 +00:00
|
|
|
int vfs_mkstemps (char **pname, const char *prefix, const char *basename);
|
2003-11-05 06:08:16 +00:00
|
|
|
void vfs_die (const char *msg);
|
2004-08-16 15:45:05 +00:00
|
|
|
char *vfs_get_password (const char *msg);
|
2003-11-05 06:08:16 +00: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 16:50:09 +00:00
|
|
|
|
2005-02-18 21:15:37 +00:00
|
|
|
#endif
|