1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef _SYS_STAT_H_
- #define _SYS_STAT_H_
- #include <kern/stat.h>
- #include <kern/stattypes.h>
- #define S_ISDIR(mode) ((mode & _S_IFMT) == _S_IFDIR)
- #define S_ISREG(mode) ((mode & _S_IFMT) == _S_IFREG)
- #define S_ISDIR(mode) ((mode & _S_IFMT) == _S_IFDIR)
- #define S_ISLNK(mode) ((mode & _S_IFMT) == _S_IFLNK)
- #define S_ISIFO(mode) ((mode & _S_IFMT) == _S_IFIFO)
- #define S_ISSOCK(mode) ((mode & _S_IFMT) ==_S_IFSOCK)
- #define S_ISCHR(mode) ((mode & _S_IFMT) == _S_IFCHR)
- #define S_ISBLK(mode) ((mode & _S_IFMT) == _S_IFBLK)
- #define S_IFMT _S_IFMT
- #define S_IFREG _S_IFREG
- #define S_IFDIR _S_IFDIR
- #define S_IFLNK _S_IFLNK
- #define S_IFIFO _S_IFIFO
- #define S_IFSOCK _S_IFSOCK
- #define S_IFCHR _S_IFCHR
- #define S_IFBLK _S_IFBLK
- int fstat(int filehandle, struct stat *buf)
- int stat(const char *path, struct stat *buf)
- int lstat(const char *path, struct stat *buf)
- int mkdir(const char *dirname, int ignore)
- #endif
|