author | Alberto Bertogli
<albertito@blitiri.com.ar> 2011-07-11 21:50:31 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2011-07-11 21:50:31 UTC |
parent | 3dcaa5ae908e27283381904891eecd55ff3a6bd1 |
preload/posix/modules/posix.io.mod | +25 | -20 |
diff --git a/preload/posix/modules/posix.io.mod b/preload/posix/modules/posix.io.mod index dd9bb2d..4d31077 100644 --- a/preload/posix/modules/posix.io.mod +++ b/preload/posix/modules/posix.io.mod @@ -111,26 +111,31 @@ int rename(const char *oldpath, const char *newpath); ENOENT ENOMEM ENOSPC ENOTDIR ENOTEMPTY EPERM EROFS EXDEV -fiu name base: posix/io/stat/ - -include: <sys/types.h> -include: <sys/stat.h> -include: <unistd.h> - -int stat(const char *path, struct stat *buf); - on error: -1 - valid errnos: EACCES EBADF EFAULT ELOOP ENAMETOOLONG ENOENT ENOMEM \ - ENOTDIR EOVERFLOW - -int fstat(int fd, struct stat *buf); - on error: -1 - valid errnos: EACCES EBADF EFAULT ELOOP ENAMETOOLONG ENOENT ENOMEM \ - ENOTDIR EOVERFLOW - -int lstat(const char *path, struct stat *buf); - on error: -1 - valid errnos: EACCES EBADF EFAULT ELOOP ENAMETOOLONG ENOENT ENOMEM \ - ENOTDIR EOVERFLOW +# NOTE: These are disabled because the stat family function is usually defined +# within one of the standard headers, which (besides being ugly) makes +# overriding them this way much harder. The definitions below are commented +# out for reference and testing purposes. +# +#fiu name base: posix/io/stat/ +# +#include: <sys/types.h> +#include: <sys/stat.h> +#include: <unistd.h> +# +#int stat(const char *path, struct stat *buf); +# on error: -1 +# valid errnos: EACCES EBADF EFAULT ELOOP ENAMETOOLONG ENOENT ENOMEM \ +# ENOTDIR EOVERFLOW +# +#int fstat(int fd, struct stat *buf); +# on error: -1 +# valid errnos: EACCES EBADF EFAULT ELOOP ENAMETOOLONG ENOENT ENOMEM \ +# ENOTDIR EOVERFLOW +# +#int lstat(const char *path, struct stat *buf); +# on error: -1 +# valid errnos: EACCES EBADF EFAULT ELOOP ENAMETOOLONG ENOENT ENOMEM \ +# ENOTDIR EOVERFLOW fiu name base: posix/io/net/