diff options
| author | Richard M. Stallman | 1999-05-19 01:30:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-05-19 01:30:15 +0000 |
| commit | b97771fc17f53e7b3e0e145fda14730abc9b1e4e (patch) | |
| tree | fa05c342d5c19578fd5040e10902008d80ca447a /src/coding.c | |
| parent | fc303b0a677aa4dcfed1e239b1cbca467ce0866c (diff) | |
| download | emacs-b97771fc17f53e7b3e0e145fda14730abc9b1e4e.tar.gz emacs-b97771fc17f53e7b3e0e145fda14730abc9b1e4e.zip | |
Fix performance bug on hosts with large
/var/adm/wtmp files with no boot records.
(boot_time_initialized): New var.
(init_filelock): Initialize it.
(get_boot_time): Use it, instead of nonzero boot_time,
to test whether boot_time is initialized.
Don't invoke utmp routines when dumping.
(get_boot_time): First, try to get the boot time from the
current utmp file, as this can be much faster. Don't try to
get the boot time from utmp and/or wtmp more than once.
(get_boot_time_1): When passed null pointer, don't invoke utmpname.
New arg LATEST. All uses changed.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions