diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-05-31 12:22:13 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-06-01 13:23:16 -0300 |
commit | 6e7137f28c9d743d66b5a1cb8fa0d1717b96f853 (patch) | |
tree | 0fa89d8e4e150ea51af27836dc2882d340b8aa6e /sysdeps/posix | |
parent | 574ba60fc8a7fb35e6216e2fdecc521acab7ffd2 (diff) | |
download | glibc-6e7137f28c9d743d66b5a1cb8fa0d1717b96f853.tar.gz glibc-6e7137f28c9d743d66b5a1cb8fa0d1717b96f853.tar.xz glibc-6e7137f28c9d743d66b5a1cb8fa0d1717b96f853.zip |
posix: Use 64 bit stat for fpathconf (_PC_ASYNC_IO) (BZ# 29208)
This is a missing spot initially from 52a5fe70a2c77935. Checked on i686-linux-gnu.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/fpathconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c index 216f2a9c8d..4b215e0600 100644 --- a/sysdeps/posix/fpathconf.c +++ b/sysdeps/posix/fpathconf.c @@ -131,9 +131,9 @@ __fpathconf (int fd, int name) #ifdef _POSIX_ASYNC_IO { /* AIO is only allowed on regular files and block devices. */ - struct stat64 st; + struct __stat64_t64 st; - if (__fstat64 (fd, &st) < 0 + if (__fstat64_time64 (fd, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode))) return -1; else |