Mercurial > emacs
view src/=sol2-2.h @ 24744:0e99bc70cf07
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.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 19 May 1999 01:30:15 +0000 |
parents | 85b1ac7f1caa |
children |
line wrap: on
line source
/* casper@fwi.uva.nl says this file is not needed and sol2.h should work. */ #include "sol2.h" /* Take care of libucb.a as well as X Windows. */ #undef LD_SWITCH_SYSTEM #ifndef __GNUC__ #define LD_SWITCH_SYSTEM -R/usr/openwin/lib:/usr/ucblib #else /* GCC */ #define LD_SWITCH_SYSTEM -Xlinker -R/usr/openwin/lib:/usr/ucblib #endif /* GCC */ /* Link with libucb.a. */ #ifdef LIB_STANDARD #undef LIB_STANDARD #define LIB_STANDARD -lc -L/usr/ucblib -lucb #endif