This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libresolv with getaddrinfo (With valid bug report?)


* Joshua Rogers:

> I found *A* problem, I think.
>
>                 if ((ret == 0) && (last_mtime != statbuf.st_mtime)) {
>

> (gdb) p statbuf
> $3 = {st_dev = 16, st_ino = 16508, st_nlink = 1, st_mode = 33188, st_uid
> = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 172, st_blksize =
> 4096, st_blocks = 8, st_atim = {tv_sec = 1426334408, tv_nsec = 449405094},
>   st_mtim = {tv_sec = 1426334407, tv_nsec = 73405066}, st_ctim = {tv_sec
> = 1426334407, tv_nsec = 73405066}, __glibc_reserved = {0, 0, 0}}
>
>
> There is no statbuf.st_mtime. It's st.mtim.

That's expected, see the header files. st_mtime is an alias for
st_mtim.tv_sec.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]