mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Use 64 bit time_t stat internally
For the legacy ABI with supports 32-bit time_t it calls the 64-bit time directly, since the LFS symbols calls the 64-bit time_t ones internally. Checked on i686-linux-gnu and x86_64-linux-gnu. Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
@ -58,8 +58,8 @@ fexecve (int fd, char *const argv[], char *const envp[])
|
||||
|
||||
/* We come here only if the 'execve' call fails. Determine whether
|
||||
/proc is mounted. If not we return ENOSYS. */
|
||||
struct stat64 st;
|
||||
if (__stat64 ("/proc/self/fd", &st) != 0 && errno == ENOENT)
|
||||
struct __stat64_t64 st;
|
||||
if (__stat64_time64 ("/proc/self/fd", &st) != 0 && errno == ENOENT)
|
||||
save = ENOSYS;
|
||||
|
||||
__set_errno (save);
|
||||
|
Reference in New Issue
Block a user