mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
290b842c86
vfs_parse_filemode): Rewrote the functions to parse Unix file modes. * utilvfs.c: Likewise. * fish.c: Using the new parsing functions.
33 lines
963 B
C
33 lines
963 B
C
#ifndef MC_VFS_UTILVFS_H
|
|
#define MC_VFS_UTILVFS_H
|
|
|
|
#include <sys/stat.h>
|
|
|
|
/* Flags for vfs_split_url() */
|
|
#define URL_ALLOW_ANON 1
|
|
#define URL_NOSLASH 2
|
|
|
|
int vfs_finduid (const char *name);
|
|
int vfs_findgid (const char *name);
|
|
|
|
char *vfs_split_url (const char *path, char **host, char **user, int *port,
|
|
char **pass, int default_port, int flags);
|
|
int vfs_split_text (char *p);
|
|
|
|
int vfs_mkstemps (char **pname, const char *prefix, const char *basename);
|
|
void vfs_die (const char *msg);
|
|
char *vfs_get_password (const char *msg);
|
|
|
|
gboolean vfs_parse_filetype (const char *s, size_t *ret_skipped,
|
|
mode_t *ret_type);
|
|
gboolean vfs_parse_fileperms (const char *s, size_t *ret_skipped,
|
|
mode_t *ret_perms);
|
|
gboolean vfs_parse_filemode (const char *s, size_t *ret_skipped,
|
|
mode_t *ret_mode);
|
|
|
|
int vfs_parse_ls_lga (const char *p, struct stat *s, char **filename,
|
|
char **linkname);
|
|
int vfs_parse_filedate (int idx, time_t *t);
|
|
|
|
#endif
|