libresolv with getaddrinfo (With valid bug report?)
Florian Weimer
fw@deneb.enyo.de
Mon Mar 16 20:49:00 GMT 2015
* 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.
More information about the Libc-help
mailing list