2 * Acess2 POSIX Emulation Lib
3 * - By John Hodge (thePowersGang)
12 int stat(const char *path, struct stat *buf)
14 int fd = _SysOpen(path, 0);
16 // errno is set by _SysOpen
20 int rv = fstat(fd, buf);
25 int lstat(const char *path, struct stat *buf)
27 int fd = _SysOpen(path, OPENFLAG_NOLINK);
29 // errno is set by _SysOpen
33 int rv = fstat(fd, buf);
38 int fstat(int fd, struct stat *buf)
42 int rv = _SysFInfo(fd, &info, 0);
49 // memset(buf, 0, sizeof(*buf));