On Tue, 09 Apr 2002 18:43:26 -0700
Brian Pane <[EMAIL PROTECTED]> wrote:
[...]
> >read(10, "GET /test.txt HTTP/1.0\r\nUser-Age"..., 8000) = 92
> >gettimeofday({1018386426, 197988}, NULL) = 0
> >gettimeofday({1018386426, 198146}, NULL) = 0
> >stat("/iVision/users/i-vision/main/htdocs/test.txt", {st_mode=S_IFREG|0644,
> >st_size=13924, ...}) = 0
> >open("/iVision/users/i-vision/main/htdocs/test.txt", O_RDONLY) = 11
> >open("/etc/localtime", O_RDONLY) = 12
> >read(12, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\n\0\0\0\n\0"..., 44) =
> >44
> >read(12, "\230DI\200\233\f%p\233\325\332\360\234\331\256\220\235"..., 925) =
> >925
> >fstat(12, {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
> >old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> >= 0x40043000
> >read(12, "\0\0\0\0\0\0\0\0\16\20\0\4\0\0\34 \1\10\0\0\16\20\0\4\0"..., 4096)
> >= 98
> >close(12) = 0
> >munmap(0x40043000, 4096) = 0
> >brk(0x81b7000) = 0x81b700
> >
>
> What's it doing opening /etc/localtime? Especially in
> between reading the request and sending the response?
> Can anyone tell what module this is from?
AFAIK /etc/localtime points to glibc timezone file ($TZ). When clock is set to GMT,
but system (through localtime()) needs to know exact local time -- glibc library opens
that file to get the idea what offset needs to be applied to GMT time to have exact
local time as a result. This happens with every software on such configured system (i
just tried strace with /bin/date and /usr/bin/cal just to be sure) -- IMHO nothing to
worry about in terms of performance.
--
regards,
Jacek Prucia