new libraries

Previous thread: new icon, math library fixes, libc fix by Charles Hedrick on Monday, February 24, 1992 - 3:09 am. (1 message)

Next thread: Bye bye symlinks? by I Reid on Monday, February 24, 1992 - 6:25 am. (1 message)
Subject: new libraries
Date: Monday, February 24, 1992 - 3:11 am

Good stuff.

Do we have a timetable for the rest of the GNU C standard library?
After encouragement from Bruce Evans and John Kohl I found that Chris
Torek's new stdio implementation from the BSD Networking Release 2
compiles with relatively few changes. This stdio is designed to be
ANSI and BSD compatible and is much better than the old BSD code.
If the GNU libc.a is going to be a long wait, we might want to use
this stdio.

In fact, enough of the BSD routines compile so that when combined with
what we already have in Linux to the best of my knowledge all that is
missing for a POSIX compatible libc.a is fpathconf, mkfifo, pathconf,
siglongjmp, sigsetjmp, strtod, tcdrain, tcflush and tcsendbreak. In
particular, the BSD code contains all the POSIX time functions and
works with the TZ environment variable.

About the new library: sysconf.c needs to be fixed to return the correct
answers for job control and saved ids. This is utterly trivial, but we
don't want to overlook it, even though I haven't seen a single application
that uses it. (The GNU utilities would use sysconf if any of the values
could change at runtime. In Linux, all these values are constants and
can be snarfed from <limits.h> at compile time.)

Several folks have (quite reasonably) complained about the error messages
in sys_errlist. Following is the error list I use. (Add errlist.o to
the objects in gen/Makefile.)

# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# errlist.c
# strerror.c
#
echo x - errlist.c
sed 's/^X//' >errlist.c << 'END-of-errlist.c'
Xchar * sys_errlist[] = {
X "Unknown error", /* 0 */
X "Operation not permitted", /* EPERM */
X "No such file or directory", /* ENOENT */
X "No such process", ...

Previous thread: new icon, math library fixes, libc fix by Charles Hedrick on Monday, February 24, 1992 - 3:09 am. (1 message)

Next thread: Bye bye symlinks? by I Reid on Monday, February 24, 1992 - 6:25 am. (1 message)