Subversion Repositories HelenOS

Rev

Rev 4420 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4420 Rev 4537
Line 34... Line 34...
34
 
34
 
35
#ifndef LIBC_VFS_H_
35
#ifndef LIBC_VFS_H_
36
#define LIBC_VFS_H_
36
#define LIBC_VFS_H_
37
 
37
 
38
#include <sys/types.h>
38
#include <sys/types.h>
-
 
39
#include <ipc/vfs.h>
-
 
40
#include <ipc/devmap.h>
-
 
41
#include <stdio.h>
-
 
42
 
-
 
43
/**
-
 
44
 * This type is a libc version of the VFS triplet.
-
 
45
 * It uniquelly identifies a file system node within a file system instance.
-
 
46
 */
-
 
47
typedef struct {
-
 
48
    fs_handle_t fs_handle;
-
 
49
    dev_handle_t dev_handle;
-
 
50
    fs_index_t index;
-
 
51
} fdi_node_t;
39
 
52
 
40
extern char *absolutize(const char *, size_t *);
53
extern char *absolutize(const char *, size_t *);
41
 
54
 
42
extern int mount(const char *, const char *, const char *, const char *,
55
extern int mount(const char *, const char *, const char *, const char *,
43
    unsigned int flags);
56
    unsigned int);
-
 
57
 
-
 
58
extern void stdio_init(int filc, fdi_node_t *filv[]);
-
 
59
extern void stdio_done(void);
-
 
60
 
-
 
61
extern int open_node(fdi_node_t *, int);
-
 
62
extern int fd_phone(int);
-
 
63
extern int fd_node(int, fdi_node_t *);
-
 
64
 
-
 
65
extern FILE *fopen_node(fdi_node_t *, const char *);
-
 
66
extern int fphone(FILE *);
-
 
67
extern int fnode(FILE *, fdi_node_t *);
44
 
68
 
45
#endif
69
#endif
46
 
70
 
47
/** @}
71
/** @}
48
 */
72
 */