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