diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2013-06-18 22:14:27 -0500 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2013-06-24 22:09:54 -0500 |
commit | aae0d8cbc4749440a4b5321ac7cd1ae9fe69baca (patch) | |
tree | 66d6bd971024f8d1d7f1bd6c6586836f88a3be99 /system | |
parent | 8025e367a87d7273abdfb77892f8e00db0fbc66f (diff) |
Fix prototypes for stat64, fstat64, lstat64.
Diffstat (limited to 'system')
-rw-r--r-- | system/include/libc/sys/stat.h | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/system/include/libc/sys/stat.h b/system/include/libc/sys/stat.h index b31dc079..e2b20187 100644 --- a/system/include/libc/sys/stat.h +++ b/system/include/libc/sys/stat.h @@ -58,6 +58,42 @@ struct stat #endif }; +struct stat64 +{ + dev_t st_dev; + ino_t st_ino; + mode_t st_mode; + nlink_t st_nlink; + uid_t st_uid; + gid_t st_gid; + dev_t st_rdev; + off_t st_size; +#if defined(__rtems__) + struct timespec st_atim; + struct timespec st_mtim; + struct timespec st_ctim; + blksize_t st_blksize; + blkcnt_t st_blocks; +#else + /* SysV/sco doesn't have the rest... But Solaris, eabi does. */ +#if defined(__svr4__) && !defined(__PPC__) && !defined(__sun__) + time_t st_atime; + time_t st_mtime; + time_t st_ctime; +#else + time_t st_atime; + long st_spare1; + time_t st_mtime; + long st_spare2; + time_t st_ctime; + long st_spare3; + long st_blksize; + long st_blocks; + long st_spare4[2]; +#endif +#endif +}; + #if defined(__rtems__) #define st_atime st_atim.tv_sec #define st_ctime st_ctim.tv_sec @@ -145,16 +181,16 @@ struct stat int _EXFUN(chmod,( const char *__path, mode_t __mode )); int _EXFUN(fchmod,(int __fd, mode_t __mode)); int _EXFUN(fstat,( int __fd, struct stat *__sbuf )); -int _EXFUN(fstat64,( int __fd, struct stat *__sbuf )); /* XXX Emscripten */ +int _EXFUN(fstat64,( int __fd, struct stat64 *__sbuf )); /* XXX Emscripten */ int _EXFUN(mkdir,( const char *_path, mode_t __mode )); int _EXFUN(mkfifo,( const char *__path, mode_t __mode )); int _EXFUN(stat,( const char *__path, struct stat *__sbuf )); -int _EXFUN(stat64,( const char *__path, struct stat *__sbuf )); /* XXX Emscripten */ +int _EXFUN(stat64,( const char *__path, struct stat64 *__sbuf )); /* XXX Emscripten */ mode_t _EXFUN(umask,( mode_t __mask )); #if defined(EMSCRIPTEN) || defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__) int _EXFUN(lstat,( const char *__path, struct stat *__buf )); -int _EXFUN(lstat64,( const char *__path, struct stat *__buf )); /* XXX Emscripten */ +int _EXFUN(lstat64,( const char *__path, struct stat64 *__buf )); /* XXX Emscripten */ int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev )); #endif |