Skip to content

Commit

Permalink
Update from main archive 961219
Browse files Browse the repository at this point in the history
Thu Dec 19 23:28:33 1996  Ulrich Drepper  <drepper@cygnus.com>

	* resolv/resolv.h: Update from BIND 4.9.5-P1.
	* resolv/res_comp.c: Likewise.
	* resolv/res_debug.c: Likewise.
	* resolv/Banner: Update version number.

Thu Dec 19 20:58:53 1996  Ulrich Drepper  <drepper@cygnus.com>

	* elf/dlfcn.h: Add extern "C" wrapper.

	* io/utime.h: Don't define NULL since this isn't allowed in POSIX.
	* io/sys/stat.h: Declare `lstat' only if __USE_BSD ||
	__USE_XOPEN_EXTENDED.
	* locale/locale.h: Define NULL.
	* math/math.c: Don't include <errno.h> to define math errors.
	* stdlib/stdlib.h: Likewise.
	* posix/unistd.h: Don't declare environ.
	* posix/sys/utsname.h (struct utsname): Declare member domainname
	as __domainname is !__USE_GNU.
	* signal/signal.h: Declare size_t only if __USE_BSD ||
	__USE_XOPEN_EXTENDED.
	* stdio/stdio.h: Don't declare cuserid when __USE_POSIX, but
	instead when __USE_XOPEN.
	* string/string.h: Define strndup only if __USE_GNU.
	* sysdeps/unix/sysv/linux/clock.c: New file.
	* sysdeps/unix/sysv/linux/timebits.h: Define CLOCKS_PER_SEC as
	1000000 per X/Open standard.
	* features.h: Add code to recognize _POSIX_C_SOURCE value 199309.
	Define __USE_POSIX199309.
	* posix/unistd.h: Declare fdatasync only if __USE_POSIX199309.
	* time/time.c: Declare nanosleep only if __USE_POSIX199309.
	Patches by Rüdiger Helsch <rh@unifix.de>.

	* locale/locale.h: Add declaration of newlocale and freelocale.

	* new-malloc/Makefile (distibute): Add mtrace.awk.
	(dist-routines): Add mcheck and mtrace.
	(install-lib, non-lib.a): Define as libmcheck.a.
	* new-malloc/malloc.h: Add declaration of __malloc_initialized.
	* new-malloc/mcheck.c: New file.
	* new-malloc/mcheck.h: New file.
	* new-malloc/mtrace.c: New file.
	* new-malloc/mtrace.awk: New file.

	* posix/unistd.h: Correct prototype for usleep.
	* sysdeps/unix/bsd/usleep.c: De-ANSI-declfy.  Correct return type.
	* sysdeps/unix/sysv/linux/usleep.c: Real implementation based on
	nanosleep.

	* signal/signal.h: Change protoype of __sigpause to take two
	arguments.  Remove prototype for sigpause.  Add two different
	macros named sigpause selected when __USE_BSD or __USE_XOPEN
	are defined.  This is necessary since the old BSD definition
	of theis function collides with the X/Open definition.
	* sysdeps/posix/sigpause.c: Change function definition to also
	fit X/Open definition.

	* sysdeps/libm-i387/e_exp.S: Make sure stack is empty when the
	function is left.
	* sysdeps/libm-i387/e_expl.S: Likewise.
	Patch by HJ Lu.

1996-12-17  Paul Eggert  <eggert@twinsun.com>

	* many, many files: Spelling corrections.
	* catgets/catgetsinfo.h (mmapped):
	Renamed from mmaped (in struct catalog_info.status).
	* mach/err_kern.sub (err_codes_unix), string/stratcliff.c (main):
	Fix spelling in message.
	* po/libc.pot: Fix spelling in message for `zic'; this anticipates
	a fix in the tzcode distribution.

Wed Dec 18 15:48:02 1996  Ulrich Drepper  <drepper@cygnus.com>

	* time/strftime.c: Implement ^ flag to cause output be converted
	to use upper case characters.

	* time/zic.c: Update from ADO tzcode1996n.

Wed Dec 18 14:29:24 1996  Erik Naggum  <erik@naggum.no>

	* time/strftime.c (add): Don't change global `i' until all is over.
	Define NULL is not already defined.

Tue Dec 17 09:49:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* libio/iovsprintf.c (_IO_vsprintf): Change `&sf' to `&sf._sbf._f'
	to avoid the need for a cast.
	* libio/iovsscanf.c (_IO_vsscanf): Likewise.

	* sunrpc/rpc/xdr.h: Add prototype for xdr_free.
  • Loading branch information
Ulrich Drepper committed Dec 20, 1996
1 parent 10dc2a9 commit 6d52618
Show file tree
Hide file tree
Showing 262 changed files with 2,870 additions and 1,991 deletions.
93 changes: 92 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,94 @@
Thu Dec 19 23:28:33 1996 Ulrich Drepper <drepper@cygnus.com>

* resolv/resolv.h: Update from BIND 4.9.5-P1.
* resolv/res_comp.c: Likewise.
* resolv/res_debug.c: Likewise.
* resolv/Banner: Update version number.

Thu Dec 19 20:58:53 1996 Ulrich Drepper <drepper@cygnus.com>

* elf/dlfcn.h: Add extern "C" wrapper.

* io/utime.h: Don't define NULL since this isn't allowed in POSIX.
* io/sys/stat.h: Declare `lstat' only if __USE_BSD ||
__USE_XOPEN_EXTENDED.
* locale/locale.h: Define NULL.
* math/math.c: Don't include <errno.h> to define math errors.
* stdlib/stdlib.h: Likewise.
* posix/unistd.h: Don't declare environ.
* posix/sys/utsname.h (struct utsname): Declare member domainname
as __domainname is !__USE_GNU.
* signal/signal.h: Declare size_t only if __USE_BSD ||
__USE_XOPEN_EXTENDED.
* stdio/stdio.h: Don't declare cuserid when __USE_POSIX, but
instead when __USE_XOPEN.
* string/string.h: Define strndup only if __USE_GNU.
* sysdeps/unix/sysv/linux/clock.c: New file.
* sysdeps/unix/sysv/linux/timebits.h: Define CLOCKS_PER_SEC as
1000000 per X/Open standard.
* features.h: Add code to recognize _POSIX_C_SOURCE value 199309.
Define __USE_POSIX199309.
* posix/unistd.h: Declare fdatasync only if __USE_POSIX199309.
* time/time.c: Declare nanosleep only if __USE_POSIX199309.
Patches by R�diger Helsch <rh@unifix.de>.

* locale/locale.h: Add declaration of newlocale and freelocale.

* new-malloc/Makefile (distibute): Add mtrace.awk.
(dist-routines): Add mcheck and mtrace.
(install-lib, non-lib.a): Define as libmcheck.a.
* new-malloc/malloc.h: Add declaration of __malloc_initialized.
* new-malloc/mcheck.c: New file.
* new-malloc/mcheck.h: New file.
* new-malloc/mtrace.c: New file.
* new-malloc/mtrace.awk: New file.

* posix/unistd.h: Correct prototype for usleep.
* sysdeps/unix/bsd/usleep.c: De-ANSI-declfy. Correct return type.
* sysdeps/unix/sysv/linux/usleep.c: Real implementation based on
nanosleep.

* signal/signal.h: Change protoype of __sigpause to take two
arguments. Remove prototype for sigpause. Add two different
macros named sigpause selected when __USE_BSD or __USE_XOPEN
are defined. This is necessary since the old BSD definition
of theis function collides with the X/Open definition.
* sysdeps/posix/sigpause.c: Change function definition to also
fit X/Open definition.

* sysdeps/libm-i387/e_exp.S: Make sure stack is empty when the
function is left.
* sysdeps/libm-i387/e_expl.S: Likewise.
Patch by HJ Lu.

1996-12-17 Paul Eggert <eggert@twinsun.com>

* many, many files: Spelling corrections.
* catgets/catgetsinfo.h (mmapped):
Renamed from mmaped (in struct catalog_info.status).
* mach/err_kern.sub (err_codes_unix), string/stratcliff.c (main):
Fix spelling in message.
* po/libc.pot: Fix spelling in message for `zic'; this anticipates
a fix in the tzcode distribution.

Wed Dec 18 15:48:02 1996 Ulrich Drepper <drepper@cygnus.com>

* time/strftime.c: Implement ^ flag to cause output be converted
to use upper case characters.

* time/zic.c: Update from ADO tzcode1996n.

Wed Dec 18 14:29:24 1996 Erik Naggum <erik@naggum.no>

* time/strftime.c (add): Don't change global `i' until all is over.
Define NULL is not already defined.

Tue Dec 17 09:49:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>

* libio/iovsprintf.c (_IO_vsprintf): Change `&sf' to `&sf._sbf._f'
to avoid the need for a cast.
* libio/iovsscanf.c (_IO_vsscanf): Likewise.

Wed Dec 18 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com>

* dirent/scandir.c: Undo change from Mon Dec 2 15:32:15 1996.
Expand All @@ -21,7 +112,7 @@ Wed Dec 18 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com>
* new-malloc/malloc.h: Likewise.

* nis/ypclnt.c: Remove prototype for xdr_free.
* snrpc/rpc/xdr.h: Add prototype for xdr_free.
* sunrpc/rpc/xdr.h: Add prototype for xdr_free.

* manual/nss.texi: Correct description of default values and don't
meantion NSS as an add-on.
Expand Down
2 changes: 1 addition & 1 deletion Makeconfig
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ M4 = m4
.NOEXPORT:

# We want to echo the commands we're running without
# umpteem zillion filenames along with it (we use `...' instead)
# umpteen zillion filenames along with it (we use `...' instead)
# but we don't want this echoing done when the user has said
# he doesn't want to see commands echoed by using -s.
ifneq "$(findstring s,$(MAKEFLAGS))" "" # if -s
Expand Down
4 changes: 2 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Version 2.0
`struct sockaddr *' type, does not generate a type-clash warning.

* New function `error' declared in header file <error.h> is a convenient
function for printing error messages and optionally exitting; this is the
function for printing error messages and optionally exiting; this is the
canonical function used in GNU programs. The new functions `err', `warn',
and friends in header file <err.h> are the canonical 4.4 BSD interface for
doing the same thing.
Expand All @@ -205,7 +205,7 @@ Version 2.0
* We have incorporated the 4.4 BSD `db' library (version 1.85). New header
files <db.h> and <mpool.h> provide a rich set of functions for several
types of simple databases stored in memory and in files, and <ndbm.h> is
an old `ndbm'-compatbile interface using the `db' functions. Link with
an old `ndbm'-compatible interface using the `db' functions. Link with
`-ldb' to get these functions.

* New macro `strdupa' copies a string like `strdup', but uses local stack
Expand Down
17 changes: 2 additions & 15 deletions PROJECTS
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,13 @@ contact <bug-glibc@prep.ai.mit.edu>
It is planed to do a complete rewrite.


[10] Add mmap() support to malloc().
Doug Lea's malloc implementation might give some ideas. Perhaps
switching completly to his implementation is an option if it
a) can work without mmap() support (not all system GNU libc
is running on have mmap)
b) is without mmap support at least as fast as the current
implementation
c) will be extended with the current hooks and additional functions

Please contact bug-glibc@prep.ai.mit.edu before starting to avoid
duplicated work.


[11] Write access function for netmasks, bootparams, and automount
[10] Write access function for netmasks, bootparams, and automount
databases for nss_files and nss_db module.
The functions should be embedded in the nss scheme. This is not
hard and not all services must be supported at once.


[12] Rewrite utmp/wtmp functions to use database functions. This is much
[11] Rewrite utmp/wtmp functions to use database functions. This is much
better than the normal flat file format.

Please contact bug-glibc@prep.ai.mit.edu before starting to avoid
Expand Down
2 changes: 1 addition & 1 deletion Rules
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $(common-objpfx)empty.c:
cp -f /dev/null $@
common-generated := $(common-generated) dummy.o dummy.c empty.c empty.o

# This makes all the auxilliary and test programs.
# This makes all the auxiliary and test programs.

.PHONY: others tests
others: $(addprefix $(objpfx),$(others) $(extra-objs))
Expand Down
2 changes: 1 addition & 1 deletion catgets/catgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ catclose (nl_catd catalog_desc)

catalog = (__nl_catd) catalog_desc;

if (catalog->status == mmaped)
if (catalog->status == mmapped)
munmap ((void *) catalog->file_ptr, catalog->file_size);
else if (catalog->status == malloced)
free ((void *) catalog->file_ptr);
Expand Down
30 changes: 15 additions & 15 deletions catgets/catgetsinfo.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/* Copyright (C) 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */

#include <sys/types.h>

Expand All @@ -34,7 +34,7 @@ struct catalog_obj
/* This structure will be filled after loading the catalog. */
typedef struct catalog_info
{
enum { closed, nonexisting, mmaped, malloced } status;
enum { closed, nonexisting, mmapped, malloced } status;

const char *cat_name;
const char *env_var;
Expand Down
4 changes: 2 additions & 2 deletions catgets/gencat.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ read_input_file (struct catalog *current, const char *fname)
}
else
{
/* We have found seomthing which looks like a
/* We have found seomthing that looks like a
correct identifier. */
struct set_list *runp;

Expand Down Expand Up @@ -980,7 +980,7 @@ read_old (struct catalog *catalog, const char *file_name)
/* Try to open catalog, but don't look through the NLSPATH. */
__open_catalog (&old_cat_obj, 0);

if (old_cat_obj.status != mmaped && old_cat_obj.status != malloced)
if (old_cat_obj.status != mmapped && old_cat_obj.status != malloced)
if (errno == ENOENT)
/* No problem, the catalog simply does not exist. */
return;
Expand Down
4 changes: 2 additions & 2 deletions catgets/open_catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ __open_catalog (__nl_catd catalog, int with_path)
MAP_FILE|MAP_COPY|MAP_INHERIT, fd, 0);
if (catalog->file_ptr != (struct catalog_obj *) -1)
/* Tell the world we managed to mmap the file. */
catalog->status = mmaped;
catalog->status = mmapped;
else
{
/* mmap failed perhaps because the system call is not
Expand Down Expand Up @@ -229,7 +229,7 @@ __open_catalog (__nl_catd catalog, int with_path)
{
/* Illegal file. Free he resources and mark catalog as not
usable. */
if (catalog->status == mmaped)
if (catalog->status == mmapped)
__munmap ((void *) catalog->file_ptr, catalog->file_size);
else
free (catalog->file_ptr);
Expand Down
9 changes: 4 additions & 5 deletions csu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# Library General Public License for more details.

# You should have received a copy of the GNU Library General Public
# License along with the GNU C Library; see the file COPYING.LIB. If
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
# Cambridge, MA 02139, USA.
# License along with the GNU C Library; see the file COPYING.LIB. If not,
# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

# This directory contains the C startup code (that which calls main). This
# consists of the startfile, built from start.c and installed as crt0.o
Expand Down Expand Up @@ -71,7 +71,7 @@ generated += $(crtstuff:=.s)
omit-deps += $(crtstuff)

# Compile initfini.c to assembly code, which contains embedded shell
# commands that prodice crti.s-new and crtn.s-new when run. We need to
# commands that produce crti.s-new and crtn.s-new when run. We need to
# disable emission of .size directives and debugging information, since
# they will get confused by the splitting of the output we do.
$(objpfx)cr%i.s $(objpfx)cr%n.s: initfini.c; $(initfini)
Expand Down Expand Up @@ -113,4 +113,3 @@ $(addprefix $(objpfx),$(filter-out $(start-installed-name),$(csu-dummies))):
cp /dev/null $(@:.o=.c)
$(COMPILE.c) $(@:.o=.c) $(OUTPUT_OPTION)
rm -f $(@:.o=.c)

30 changes: 15 additions & 15 deletions csu/gmon-start.c
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/* Code to enable profiling at program startup.
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */

#include <sys/types.h>
#include <sys/gmon.h>
Expand Down Expand Up @@ -52,7 +52,7 @@ __gmon_start__ (void)
/* Start keeping profiling records. */
monstartup ((u_long) &_start, (u_long) &etext);

/* Call _mcleanup before exitting; it will write out gmon.out from the
/* Call _mcleanup before exiting; it will write out gmon.out from the
collected data. */
atexit (&_mcleanup);
}
2 changes: 1 addition & 1 deletion csu/initfini.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
License, the Free Software Foundation gives you unlimited
permission to link the compiled version of this file with other
programs, and to distribute those programs without any restriction
coming from the use of this file. (The Libraty General Public
coming from the use of this file. (The Library General Public
License restrictions do apply in other respects; for example, they
cover modification of the file, and distribution when not linked
into another program.)
Expand Down
4 changes: 2 additions & 2 deletions db/btree/bt_seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ __bt_seq(dbp, key, data, flags)
}

/*
* If scan unitialized as yet, or starting at a specific record, set
* If scan uninitialized as yet, or starting at a specific record, set
* the scan to a specific key. Both __bt_seqset and __bt_seqadv pin
* the page the cursor references if they're successful.
*/
Expand Down Expand Up @@ -364,7 +364,7 @@ __bt_first(t, key, erval, exactp)
*erval = *ep;
return (RET_SUCCESS);
}

/*
* Walk backwards, as long as the entry matches and there are
* keys left in the tree. Save a copy of each match in case
Expand Down
2 changes: 1 addition & 1 deletion db/btree/bt_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ __bt_ret(t, e, key, rkey, data, rdata, copy)
bl = GETBLEAF(e->page, e->index);

/*
* We must copy big keys/data to make them contigous. Otherwise,
* We must copy big keys/data to make them contiguous. Otherwise,
* leave the page pinned and don't copy unless the user specified
* concurrent access.
*/
Expand Down
2 changes: 1 addition & 1 deletion db/btree/btree.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ typedef struct _rinternal {
#define NRINTERNAL \
LALIGN(sizeof(recno_t) + sizeof(pgno_t))

/* Copy a RINTERAL entry to the page. */
/* Copy a RINTERNAL entry to the page. */
#define WR_RINTERNAL(p, nrecs, pgno) { \
*(recno_t *)p = nrecs; \
p += sizeof(recno_t); \
Expand Down
2 changes: 1 addition & 1 deletion db/hash/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ typedef struct htab { /* Memory resident data structure */
int cbucket; /* Current bucket */
int cndx; /* Index of next item on cpage */
int errnum; /* Error Number -- for DBM
* compatability */
* compatibility */
int new_file; /* Indicates if fd is backing store
* or no */
int save_file; /* Indicates whether we need to flush
Expand Down
2 changes: 1 addition & 1 deletion db/recno/rec_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ __rec_ret(t, e, nrec, key, data)
return (RET_SUCCESS);

/*
* We must copy big keys/data to make them contigous. Otherwise,
* We must copy big keys/data to make them contiguous. Otherwise,
* leave the page pinned and don't copy unless the user specified
* concurrent access.
*/
Expand Down
Loading

0 comments on commit 6d52618

Please sign in to comment.