mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +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:
@@ -185,7 +185,7 @@ _dl_start_profile (void)
|
||||
{
|
||||
char *filename;
|
||||
int fd;
|
||||
struct stat64 st;
|
||||
struct __stat64_t64 st;
|
||||
const ElfW(Phdr) *ph;
|
||||
ElfW(Addr) mapstart = ~((ElfW(Addr)) 0);
|
||||
ElfW(Addr) mapend = 0;
|
||||
@@ -342,7 +342,7 @@ _dl_start_profile (void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (__fstat64 (fd, &st) < 0 || !S_ISREG (st.st_mode))
|
||||
if (__fstat64_time64 (fd, &st) < 0 || !S_ISREG (st.st_mode))
|
||||
{
|
||||
/* Not stat'able or not a regular file => don't use it. */
|
||||
errstr = "%s: cannot stat file: %s\n";
|
||||
|
Reference in New Issue
Block a user