Ticket #1396: Fixed logic of processing '--with-search-engine' configure option.
[midnight-commander.git] / vfs / utilvfs.h
blob60b7a1a602a4a4f109821028a63b7fb4c349df1e
2 /**
3 * \file
4 * \brief Header: Utilities for VFS modules
5 * \author Miguel de Icaza
6 * \date 1995, 1996
7 */
9 #ifndef MC_VFS_UTILVFS_H
10 #define MC_VFS_UTILVFS_H
12 #include <sys/stat.h>
14 #include "../src/global.h"
16 /* Flags for vfs_split_url() */
17 #define URL_ALLOW_ANON 1
18 #define URL_NOSLASH 2
20 int vfs_finduid (const char *name);
21 int vfs_findgid (const char *name);
23 char *vfs_split_url (const char *path, char **host, char **user, int *port,
24 char **pass, int default_port, int flags);
25 int vfs_split_text (char *p);
27 int vfs_mkstemps (char **pname, const char *prefix, const char *basename);
28 void vfs_die (const char *msg);
29 char *vfs_get_password (const char *msg);
31 gboolean vfs_parse_filetype (const char *s, size_t *ret_skipped,
32 mode_t *ret_type);
33 gboolean vfs_parse_fileperms (const char *s, size_t *ret_skipped,
34 mode_t *ret_perms);
35 gboolean vfs_parse_filemode (const char *s, size_t *ret_skipped,
36 mode_t *ret_mode);
37 gboolean vfs_parse_raw_filemode (const char *s, size_t *ret_skipped,
38 mode_t *ret_mode);
40 int vfs_parse_ls_lga (const char *p, struct stat *s, char **filename,
41 char **linkname);
42 int vfs_parse_filedate (int idx, time_t *t);
44 #endif