Fix definitions to be in terms of a minimum number of constants by
using the SHIFT value as the basis for the other values, for example
instead of:
#define NBPG 4096
#define PGSHIFT 12
use:
#define PGSHIFT 12
#define NBPG (1 << PGSHIFT)
This saves three cycles per character, and reduces the size of the
function by eight bytes (the loop is unrolled eight times).
Thanks to davidg for pointing this out.
Since ints and longs are both 32 bits on a i386, we could alias abs()
and labs() together as mycroft did with memmove()/memcpy(), but I'm
waiting on an interpretation ruling to see if it is legal.
the __assert() helper function is declared once if <assert.h> is included
multiple times.
Don't support the _assert() macro, nothing uses it and it pollutes the
user's namespace.
needed a finger on that platform which grokked the office/phone # GCOS
info), I decided to put mail status in (as the solaris version has
that).
The attached patch adds:
- manual page typos fixed: finger doesn't scan .forward, contrary to
what the man page says (and really shouldn't either, IMHO - that's
what telnet host SMTP & VRFY are for :)
- added a mail check (printed between login info and the project).
three different messages possible:
- if you have no mail:
No Mail.
- if you have mail, but there's no unread mail:
Mail last read DDD MMM ## HH:MM (TZ)
- if you have new mail:
New mail received DDD MMM ## HH:MM (TZ)
Unread since DDD MMM ## HH:MM (TZ)
- fixed the manual page.
lm@yallara.cs.rmit.OZ.AU (Luke Mewburn)
Since perror is not permitted to change strerror()'s static buffer, I have
changed both functions to pass their own buffers to the new library-internal
function _strerror() that actually does the error message string look up.
Split strerror manpage into strerror and perror manpages.