Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
[glibc.git] / NEWS
blob21f0db5b16b6a860b2398a5e5532670be1a5f342
1 GNU C Library NEWS -- history of user-visible changes.  26 January 1995
3 Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
4 See the end for copying conditions.
6 Please send GNU C library bug reports to bug-glibc@prep.ai.mit.edu.
7 \f
8 Version 1.10
10 * The library has changed from using GNU ld symbol aliases to using weak
11   symbols where available.  The ELF object file format supports weak
12   symbols; GNU ld also supports weak symbols in the a.out format.  (There
13   is also now support for other GNU ld extensions in ELF.  Use the
14   `--with-elf' option to configure to indicate you have elf, and
15   `--with-gnu-ld' if using GNU ld.)  This changed resulted in the deletion
16   of many files which contained only symbol aliases, reducing the size of
17   the source and the compiled library; many other files were renamed to
18   less cryptic names previously occupied by the symbol alias files.
20 * The pgrp functions have been regularized, slightly incompatibly but much
21   less confusingly.  The core functions are now `getpgid' and `setpgid',
22   which take arguments for the PID to operate on; the POSIX.1 `getpgrp' (no
23   argument) and BSD `setpgrp' (identical to `setpgid') functions are
24   provided for compatibility.  There is no longer an incompatible `getpgrp'
25   with an argument declared under _BSD_SOURCE; no BSD code uses it.
27 * The new header file <fts.h> and suite of functions simplify programs that
28   operate on directory trees.  This code comes from 4.4 BSD.
30 * Converted to Autoconf version 2, so `configure' has more options.
31   Run `configure --help' to see the details.
33 * The resolver code has been updated from the BIND-4.9.3-BETA14 release.
35 * The new function `malloc_find_object_address' finds the starting address
36   of a malloc'd block, given any address within the block.  This can be
37   useful for debugging.
39 * The new functions `strtoq' and `strtouq' parse integer values from
40   strings, like `strtol' and `strtoul', but they return `long long int' and
41   `unsigned long long int' values, respectively (64-bit quantities).
43 * There is a new malloc debugging hook `__memalign_hook'.
45 * There are new typedefs `ushort' for `unsigned short int' and `uint' for
46   `unsigned int' in <sys/types.h>.  These are for compatibility only and
47   their use is discouraged.
49 * The `-lmcheck' library to enable standard malloc debugging hooks is now
50   done differently, so that it works even without GNU ld.
52 Version 1.09
54 * For cross-compilation you should now set `BUILD_CC' instead of `HOST_CC'.
56 * New header file <fstab.h> and new functions `getfsspec', `getfsent' and
57   friends, for parsing /etc/fstab.  This code comes from 4.4 BSD.
59 * The new function `daemon' from 4.4 BSD is useful for server programs that
60   want to put themselves in the background.
62 * Joel Sherrill has contributed support for several standalone boards that
63   run without an operating system.
65 * `printf', `scanf' and friends now accept a `q' type modifier for long
66   long int as well as `ll'.  Formats using these might be `%qu' or `%lld'.
68 * All of the code taken from BSD (notably most of the math and networking
69   routines) has been updated from the BSD 4.4-Lite release.
71 * The resolver code has been updated from the BIND-4.9.3-BETA9 release.
73 * The new functions `getdomainname' and `setdomainname' fetch or change the
74   YP/NIS domain name.  These are system calls which exist on systems which
75   have YP (aka NIS).
77 * The time zone data files have been updated for the latest international
78   conventions.
80 * The SunRPC programs `portmap' and `rpcinfo' are now installed in
81   $(sbindir) (usually /usr/local/sbin) instead of $(bindir).
83 Version 1.08
85 * The C library now includes support for Sun RPC, from Sun's free
86   RPCSRC-4.0 distribution.  The `portmap', `rpcinfo', and `rpcgen' programs
87   are included.  (There is still no support for YP.)
89 * Tom Quinn has contributed a port of the C library to SGI machines running
90   Irix 4 (mips-sgi-irix4).
92 * The new `lockf' function is a simplified interface to the locking
93   facilities of `fcntl', included for compatibility.
95 * New time functions `timegm', `timelocal', and `dysize' for compatibility.
97 * New header file <sys/timeb.h> and new function `ftime' for compatibility.
99 * New header files <poll.h> and <sys/poll.h> and new function `poll' for
100   compatibility.
102 * The error message printed by `assert' for a failed assertion now includes
103   the name of the program (if using GNU ld) and the name of the calling
104   function (with versions of GCC that support this).
106 * The `psignal' function is now declared in <signal.h>, not <stdio.h>.
108 * The library now includes the <sys/mman.h> header file and memory
109   management functions `mmap', `munmap', `mprotect', `msync', and
110   `madvise', on systems that support those facilities.
112 * The interface for `mcheck' has changed slightly: the function called to
113   abort the program when an allocation inconsistency is detected now takes
114   an argument that indicates the type of failure.  The new function
115   `mprobe' lets you request a consistency check for a particular block at
116   any time (checks are normally done only when you call `free' or `realloc'
117   on a block).
119 * It is now possible to easily cross-compile the C library, building on one
120   system a library to run on another machine and/or operating system.  All
121   you need to do is set the variable `HOST_CC' in `configparms' to the
122   native compiler for programs to run on the machine you are building on (a
123   few generator programs are used on Unix systems); set `CC' to the
124   cross-compiler.
126 * The new function `fexecve' (only implemented on the GNU system) executes
127   a program file given a file descriptor already open on the file.
129 Version 1.07
131 * Brendan Kehoe has contributed most of a port to the DEC Alpha
132   running OSF/1 (alpha-dec-osf1).  He says it is 75% complete.
134 * You can set the variable `libprefix' in `configparms' to specify a prefix
135   to be prepended to installed library files; this makes it easy to install
136   the GNU C library to be linked as `-lgnuc' or whatever.
138 * The new `stpncpy' is a cross between `stpcpy' and `strncpy': It
139   copies a limited number of characters from a string, and returns the
140   address of the last character written.
142 * You no longer need to check for whether the installed `stddef.h' is
143   compatible with the GNU C library.  configure now checks for you.
145 * You can now define a per-stream `fileno' function to convert the
146   stream's cookie into an integral file descriptor.
148 * ``malloc (0)'' no longer returns a null pointer.  Instead, it
149   allocates zero bytes of storage, and returns a unique pointer which
150   you can pass to `realloc' or `free'.  The behavior is undefined if
151   you dereference this pointer.
153 * The C library now runs on Sony NEWS m68k machines running either
154   NewsOS 3 or NewsOS 4.
156 * The new `syscall' function is a system-dependent primitive function
157   for invoking system calls.  It has the canonical behavior on Unix
158   systems, including unreliable return values for some calls (such as
159   `pipe', `fork' and `getppid').
161 * The error code `EWOULDBLOCK' is now obsolete; it is always defined
162   to `EAGAIN', which is the preferred name.  On systems whose kernels
163   use two distinct codes, the C library now translates EWOULDBLOCK to
164   EAGAIN in every system call function.
166 Version 1.06
168 * The GNU C Library Reference Manual is now distributed with the library.
169   `make dvi' will produce a DVI file of the printed manual.
170   `make info' will produce Info files that you can read on line using C-h i
171   in Emacs or the `info' program.
172   Please send comments on the manual to bug-glibc-manual@prep.ai.mit.edu.
174 * The library now supports SVR4 on i386s (i386-unknown-sysv4).
176 * Brendan Kehoe has contributed a port to Sun SPARCs running Solaris 2.
178 * Jason Merrill has contributed a port to the Sequent Symmetry running
179   Dynix version 3 (i386-sequent-dynix).
181 * The library has been ported to i386s running SCO 3.2.4 (also known as SCO
182   ODT 2.0; i386-unknown-sco3.2.4) or SCO 3.2 (i386-unknown-sco3.2).
184 * New function `memory_warnings' lets you arrange to get warnings when
185   malloc is running out of memory to allocate, like Emacs gives you.
187 * The C library now contains the relocating allocator used in Emacs 19 for
188   its editing buffers.  This allocator (ralloc) minimizes allocation
189   overhead and fragmentation by moving allocated regions around whenever it
190   needs to.  You always refer to a ralloc'd region with a "handle" (a
191   pointer to a pointer--an object of type `void **').
193 * There is a new `printf' format: `%m' gives you the string corresponding
194   to the error code in `errno'.
196 * In `scanf' formats, you can now use `%as' or `%a[' to do the normal `%s'
197   or `%[' conversion, but instead of filling in a fixed-sized buffer you
198   pass, the `a' modifier says to fill in a `char **' you pass with a
199   malloc'd string.
201 * The `fnmatch' function supports the new flag bits `FNM_LEADING_DIR' and
202   `FNM_CASEFOLD'.  `FNM_LEADING_DIR' lets a pattern like `foo*' match a
203   name like `foo/bar'.  `FNM_CASEFOLD' says to ignore case in matching.
205 * `mkstemp' is a traditional Unix function to atomically create and open a
206   uniquely-named temporary file.
208 Version 1.05
210 * The standard location for the file that says what the local timezone is
211   has changed again.  It is now `/usr/local/etc/localtime' (or more
212   precisely, `${prefix}/etc/localtime') rather than `/etc/localtime'.
214 * The distribution no longer contains any files with names longer than 14
215   characters.
217 * `struct ttyent' has two new flag bits: TTY_TRUSTED and TTY_CONSOLE.
218   These are set by the new `trusted' and `console' keywords in `/etc/ttys'.
220 * New functions `ttyslot' and `syslog' from 4.4 BSD.
222 Version 1.04
224 * The configuration process has changed quite a bit.  The `configure'
225   script is now used just like the configuration scripts for other GNU
226   packages.  The `sysdeps' directory hierarchy is much rearranged.
227   The file `INSTALL' explains the new scheme in detail.
229 * The header files no longer need to be processed into ANSI C and
230   traditional C versions.  There is just one set of files to install, and
231   it will work with ANSI or old C compilers (including `gcc -traditional').
233 * Brendan Kehoe and Ian Lance Taylor have ported the library to the
234   MIPS DECStation running Ultrix 4.
236 * The Sun 4 startup code (crt0) can now properly load SunOS 4 shared libraries.
237   Tom Quinn contributed the initial code.  The GNU C library can NOT yet be
238   made itself into a shared library.
240 * Yet further improved support for the i386, running 4.3 BSD-like systems
241   (such as Mach 3 with the Unix single-server), or System V.
243 * New function `strncasecmp' to do case-insensitive string comparison
244   with limited length.
246 * New function `strsep' is a reentrant alternative to `strtok'.
248 * New functions `scandir' and `alphasort' for searching directories.
250 * New function `setenv' is a better interface to `putenv'.
252 * Ian Lance Taylor has contributed an implementation of the SVID `ftw'
253   function for traversing a directory tree.
255 * The GNU obstack package is now also part of the C library.
256   The new function `open_obstack_stream' creates a stdio stream that
257   writes onto an obstack; `obstack_printf' and `obstack_vprintf' do
258   formatted output directly to an obstack.
260 * Miscellaneous new functions: reboot, nice, sigaltstack (4.4 BSD only),
261   cfmakeraw, getusershell, getpass, swab, getttyent, seteuid, setegid.
263 * `FNM_FILE_NAME' is another name for `FNM_PATHNAME', used with `fnmatch'.
265 * The new functions `strfry' and `memfrob' do mysterious and wonderful
266   things to your strings.
268 * There are some new test programs: test-fseek, testmb, and testrand.
270 * Some work has been done to begin porting the library to 4.4 BSD and Linux.
271   These ports are not finished, but are a good starting place for really
272   supporting those systems.
274 * `/etc/localtime' is now the standard location for the file that says what
275   the local timezone is, rather than `/usr/local/lib/zoneinfo/localtime'.
276   This follows the general principle that `/etc' is the place for all local
277   configuration files.
279 * The C library header files now use `extern "C"' when used by the C++
280   compiler, so the C library should now work with C++ code.
282 * The header file <bstring.h> is gone.  <string.h> now declares bcopy,
283   bcmp, bzero, and ffs.  
285 * Mike Haertel (of GNU e?grep and malloc fame) has written a new sorting
286   function which uses the `merge sort' algorithm, and is said to be
287   significantly faster than the old GNU `qsort' function.  Merge sort is
288   now the standard `qsort' function.  The new algorithm can require a lot
289   of temporary storage; so, the old sorting function is called when the
290   required storage is not available.
292 * The C library now includes Michael Glad's Ultra Fast Crypt, which
293   provides the Unix `crypt' function, plus some other entry points.
294   Because of the United States export restriction on DES implementations,
295   we are distributing this code separately from the rest of the C library.
296   There is an extra distribution tar file just for crypt; it is called
297   `glibc-VERSION-crypt.tar.Z', e.g. `glibc-1.04-crypt.tar.Z'.  You can just
298   unpack the crypt distribution along with the rest of the C library and
299   build; you can also build the library without getting crypt.  Users
300   outside the USA can get the crypt distribution via anonymous FTP from
301   ftp.uni-c.dk [129.142.6.74], or another archive site outside the U.S.
303 * The code and header files taken from 4.4 BSD have been updated with the
304   latest files released from Berkeley.
306 ----------------------------------------------------------------------
307 Copyright information:
309 Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
311    Permission is granted to anyone to make or distribute verbatim copies
312    of this document as received, in any medium, provided that the
313    copyright notice and this permission notice are preserved,
314    thus giving the recipient permission to redistribute in turn.
316    Permission is granted to distribute modified versions
317    of this document, or of portions of it,
318    under the above conditions, provided also that they
319    carry prominent notices stating who last changed them.
321 Local variables:
322 version-control: never
323 end: