Rev 2927 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 4691 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | 34 | ||
35 | #ifndef LIBC_SYS_STAT_H_ |
35 | #ifndef LIBC_SYS_STAT_H_ |
36 | #define LIBC_SYS_STAT_H_ |
36 | #define LIBC_SYS_STAT_H_ |
37 | 37 | ||
38 | #include <sys/types.h> |
38 | #include <sys/types.h> |
- | 39 | #include <bool.h> |
|
- | 40 | #include <ipc/vfs.h> |
|
- | 41 | #include <ipc/devmap.h> |
|
39 | 42 | ||
- | 43 | struct stat { |
|
- | 44 | fs_handle_t fs_handle; |
|
- | 45 | dev_handle_t dev_handle; |
|
- | 46 | fs_index_t index; |
|
- | 47 | unsigned lnkcnt; |
|
- | 48 | bool is_file; |
|
- | 49 | off_t size; |
|
- | 50 | union { |
|
- | 51 | struct { |
|
- | 52 | dev_handle_t device; |
|
- | 53 | } devfs_stat; |
|
- | 54 | }; |
|
- | 55 | }; |
|
- | 56 | ||
- | 57 | extern int fstat(int, struct stat *); |
|
- | 58 | extern int stat(const char *, struct stat *); |
|
40 | extern int mkdir(const char *, mode_t); |
59 | extern int mkdir(const char *, mode_t); |
41 | 60 | ||
42 | #endif |
61 | #endif |
43 | 62 | ||
44 | /** @} |
63 | /** @} |