aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-11-16 12:02:08 +0000
committerUlrich Drepper <drepper@redhat.com>1998-11-16 12:02:08 +0000
commit8b7fb5883bf50ab866f785b9cb36c8167f7a3286 (patch)
tree4f4b8ccad0fec4529b7876a9a5c646f9b28691d1
parentbe1d9d95b122ee20f8217e9263e088dec652543a (diff)
downloadglibc-8b7fb5883bf50ab866f785b9cb36c8167f7a3286.tar.xz
glibc-8b7fb5883bf50ab866f785b9cb36c8167f7a3286.zip
Update.
1998-11-16 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/opendir.c: Use o_directory_works differently. Treat zero value as uninitialized so that variable can go into .bss. * dirent/opendir-tst1.c: Print error strings to stdout. * sysdeps/unix/sysv/linux/mmap64.c: New file. Empty. * sysdeps/unix/sysv/linux/syscalls.list: Add mmap with mmap64 alias. * sysdeps/unix/sysv/linux/arm/mmap.S: Add mmap64 alias. * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise. * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise. 1998-11-16 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * time/tzfile.c (__tzfile_read): Check that types[i].isdst is in range. 1998-11-16 Ulrich Drepper <drepper@cygnus.com> * libio/bits/stdio.h (fread_unlocked): Do handle zero size and number. (fwrite_unlocked): Likewise. 1998-11-16 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * libio/bits/stdio.h (fread_unlocked): Don't evaluate non-constant twice. Don't bother handling zero size. (frwite_unlocked): Likewise. 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * configure.in: Fix regex for makeinfo version string. 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * sunrpc/rpc_sample.c (write_sample_server): Avoid -Wparentheses warning. * sunrpc/rpc_svcout.c (write_program): Likewise. 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * time/Makefile (CFLAGS-test_time.c): Add -Wno-format. 1998-11-16 Ulrich Drepper <drepper@cygnus.com * misc/sys/mman.h: Pretty print prototypes. 1998-11-15 Ulrich Drepper <drepper@cygnus.com * misc/error.c (error): Don't use result of strerror_r call directly since at least DEC Unix has a wrong return type. Patch by Johan Danielsson <joda@pdc.kth.se>. 1998-11-16 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
-rw-r--r--ChangeLog55
-rw-r--r--configure.in2
-rw-r--r--dirent/opendir-tst1.c4
-rw-r--r--libio/bits/stdio.h53
-rw-r--r--linuxthreads/ChangeLog4
-rw-r--r--linuxthreads/linuxthreads.texi2
-rw-r--r--manual/arith.texi4
-rw-r--r--manual/filesys.texi9
-rw-r--r--manual/lang.texi4
-rw-r--r--manual/llio.texi2
-rw-r--r--manual/locale.texi6
-rw-r--r--manual/memory.texi2
-rw-r--r--manual/message.texi8
-rw-r--r--manual/pattern.texi2
-rw-r--r--manual/search.texi2
-rw-r--r--manual/signal.texi2
-rw-r--r--manual/startup.texi8
-rw-r--r--manual/stdio.texi6
-rw-r--r--manual/time.texi2
-rw-r--r--manual/users.texi10
-rw-r--r--misc/error.c5
-rw-r--r--misc/sys/mman.h8
-rw-r--r--sunrpc/rpc_sample.c10
-rw-r--r--sunrpc/rpc_svcout.c14
-rw-r--r--sysdeps/unix/opendir.c60
-rw-r--r--sysdeps/unix/sysv/linux/arm/mmap.S1
-rw-r--r--sysdeps/unix/sysv/linux/i386/mmap.S1
-rw-r--r--sysdeps/unix/sysv/linux/m68k/mmap.S1
-rw-r--r--sysdeps/unix/sysv/linux/mmap64.c3
-rw-r--r--sysdeps/unix/sysv/linux/syscalls.list1
-rw-r--r--time/Makefile3
-rw-r--r--time/tzfile.c2
32 files changed, 182 insertions, 114 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a2669dd16..7ff484ea5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,57 @@
-Mon Nov 16 11:17:31 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+1998-11-16 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/unix/opendir.c: Use o_directory_works differently. Treat
+ zero value as uninitialized so that variable can go into .bss.
+
+ * dirent/opendir-tst1.c: Print error strings to stdout.
+
+ * sysdeps/unix/sysv/linux/mmap64.c: New file. Empty.
+ * sysdeps/unix/sysv/linux/syscalls.list: Add mmap with mmap64 alias.
+ * sysdeps/unix/sysv/linux/arm/mmap.S: Add mmap64 alias.
+ * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
+ * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
+
+1998-11-16 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+
+ * time/tzfile.c (__tzfile_read): Check that types[i].isdst is in
+ range.
+
+1998-11-16 Ulrich Drepper <drepper@cygnus.com>
+
+ * libio/bits/stdio.h (fread_unlocked): Do handle zero size and number.
+ (fwrite_unlocked): Likewise.
+
+1998-11-16 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+
+ * libio/bits/stdio.h (fread_unlocked): Don't evaluate non-constant
+ twice. Don't bother handling zero size.
+ (frwite_unlocked): Likewise.
+
+1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+
+ * configure.in: Fix regex for makeinfo version string.
+
+1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+
+ * sunrpc/rpc_sample.c (write_sample_server): Avoid -Wparentheses
+ warning.
+ * sunrpc/rpc_svcout.c (write_program): Likewise.
+
+1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+
+ * time/Makefile (CFLAGS-test_time.c): Add -Wno-format.
+
+1998-11-16 Ulrich Drepper <drepper@cygnus.com
+
+ * misc/sys/mman.h: Pretty print prototypes.
+
+1998-11-15 Ulrich Drepper <drepper@cygnus.com
+
+ * misc/error.c (error): Don't use result of strerror_r call directly
+ since at least DEC Unix has a wrong return type.
+ Patch by Johan Danielsson <joda@pdc.kth.se>.
+
+1998-11-16 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Undo
last change.
diff --git a/configure.in b/configure.in
index 81d6a32cd3..c3a8e3a2b1 100644
--- a/configure.in
+++ b/configure.in
@@ -450,7 +450,7 @@ AC_CHECK_PROG_VER(MSGFMT, msgfmt gmsgfmt, --version,
[GNU gettext.* \([0-9]*\.[0-9.]*\)],
[0.[1-9][0-9].* | [1-9].*], MSGFMT=: aux_missing=t)
AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
- [GNU texinfo \([0-9][0-9.]*\)],
+ [GNU texinfo.* \([0-9][0-9.]*\)],
[3.1[1-9] | 3.[2-9][0-9]], MAKEINFO=: aux_missing=t)
if test -n "$critic_missing"; then
diff --git a/dirent/opendir-tst1.c b/dirent/opendir-tst1.c
index dfab1d9b3d..4ecd5ae446 100644
--- a/dirent/opendir-tst1.c
+++ b/dirent/opendir-tst1.c
@@ -41,14 +41,14 @@ real_test (void)
if (dirp != NULL)
{
/* Oh, oh, how can this work? */
- fputs ("`opendir' succeeded on a FIFO???\n", stderr);
+ fputs ("`opendir' succeeded on a FIFO???\n", stdout);
closedir (dirp);
return 1;
}
if (errno != ENOTDIR)
{
- fprintf (stderr, "`opendir' return error `%s' instead of `%s'\n",
+ fprintf (stdout, "`opendir' return error `%s' instead of `%s'\n",
strerror (errno), strerror (ENOTDIR));
return 1;
}
diff --git a/libio/bits/stdio.h b/libio/bits/stdio.h
index a3e3d6fc8d..8a15c6e6a6 100644
--- a/libio/bits/stdio.h
+++ b/libio/bits/stdio.h
@@ -127,48 +127,41 @@ ferror_unlocked (FILE *__stream) __THROW
#if defined __USE_MISC && defined __GNUC__ && defined __OPTIMIZE__
/* Perform some simple optimizations. */
# define fread_unlocked(ptr, size, n, stream) \
- (__extension__ ((((__builtin_constant_p (size) \
- && ((size) == 0 || __builtin_constant_p (n))) \
- || (__builtin_constant_p (n) && (n) == 0)) \
- && (size_t) ((size) * (n)) <= 8) \
+ (__extension__ ((__builtin_constant_p (size) && __builtin_constant_p (n) \
+ && (size_t) ((size) * (n)) <= 8 && (size) != 0) \
? ({ char *__ptr = (char *) (ptr); \
FILE *__stream = (stream); \
- size_t __size = (size); \
- size_t __n = (n); \
- size_t __readres = __n; \
- size_t __cnt = __size * __n + 1; \
- while (--__cnt > 0) \
+ size_t __cnt; \
+ for (__cnt = (size) * (n); __cnt > 0; --__cnt) \
{ \
int __c = _IO_getc_unlocked (__stream); \
if (__c == EOF) \
- { \
- __readres = (__size * __n - __cnt) / __size; \
- break; \
- } \
+ break; \
*__ptr++ = __c; \
} \
- __readres; }) \
- : fread_unlocked (ptr, size, n, stream)))
+ ((size_t) ((size) * (n)) - __cnt) / (size); }) \
+ : (((__builtin_constant_p (size) && (size) == 0) \
+ || (__builtin_constant_p (n) && (n) == 0)) \
+ /* Evaluate all parameters once. */ \
+ ? ((void) (ptr), (void) (stream), (void) (size), \
+ (void) n, 0) \
+ : fread_unlocked (ptr, size, n, stream))))
# define fwrite_unlocked(ptr, size, n, stream) \
- (__extension__ ((((__builtin_constant_p (size) \
- && ((size) == 0 || __builtin_constant_p (n))) \
- || (__builtin_constant_p (n) && (n) == 0)) \
- && (size_t) ((size) * (n)) <= 8) \
+ (__extension__ ((__builtin_constant_p (size) && __builtin_constant_p (n) \
+ && (size_t) ((size) * (n)) <= 8 && (size) != 0) \
? ({ const char *__ptr = (const char *) (ptr); \
FILE *__stream = (stream); \
- size_t __size = (size); \
- size_t __n = (n); \
- size_t __writeres = __n; \
- size_t __cnt = __size * __n + 1; \
- while (--__cnt > 0) \
+ size_t __cnt; \
+ for (__cnt = (size) * (n); __cnt > 0; --__cnt) \
if (_IO_putc_unlocked (*__ptr++, __stream) == EOF) \
- { \
- __writeres = (__size * __n - __cnt) / __size; \
- break; \
- } \
- __writeres; }) \
- : fwrite_unlocked (ptr, size, n, stream)))
+ break; \
+ ((size_t) ((size) * (n)) - __cnt) / (size); }) \
+ : (((__builtin_constant_p (size) && (size) == 0) \
+ || (__builtin_constant_p (n) && (n) == 0)) \
+ /* Evaluate all parameters once. */ \
+ ? ((void) (ptr), (void) (stream), (void) (size), n) \
+ : fwrite_unlocked (ptr, size, n, stream))))
#endif
/* Define helper macro. */
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index e09b59957a..a0790ceb43 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,7 @@
+1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
+
+ * linuxthreads.texi: Fix punctuation after xref.
+
1998-11-10 H.J. Lu <hjl@gnu.org>
* sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
diff --git a/linuxthreads/linuxthreads.texi b/linuxthreads/linuxthreads.texi
index dc1b14649a..5bab1a10d9 100644
--- a/linuxthreads/linuxthreads.texi
+++ b/linuxthreads/linuxthreads.texi
@@ -47,7 +47,7 @@ latter case is equivalent to calling @code{pthread_exit} with the result
returned by @var{start_routine} as exit code.
The @var{attr} argument specifies thread attributes to be applied to the
-new thread. @xref{Thread Attributes} for details. The @var{attr}
+new thread. @xref{Thread Attributes}, for details. The @var{attr}
argument can also be @code{NULL}, in which case default attributes are
used: the created thread is joinable (not detached) and has an ordinary
(not realtime) scheduling policy.
diff --git a/manual/arith.texi b/manual/arith.texi
index 79bbcfdce7..3f78c11d1e 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -239,7 +239,7 @@ exceptions happened.
Alternatively, you can enable @dfn{traps} for exceptions. In that case,
when an exception is raised, your program will receive the @code{SIGFPE}
signal. The default action for this signal is to terminate the
-program. @xref{Signal Handling} for how you can change the effect of
+program. @xref{Signal Handling}, for how you can change the effect of
the signal.
@findex matherr
@@ -851,7 +851,7 @@ sqrt (creal (@var{z}) * creal (@var{z}) + cimag (@var{z}) * cimag (@var{z}))
This function should always be used instead of the direct formula
because it takes special care to avoid losing precision. It may also
take advantage of hardware support for this operation. See @code{hypot}
-in @xref{Exponents and Logarithms}.
+in @ref{Exponents and Logarithms}.
@end deftypefun
@node Normalization Functions
diff --git a/manual/filesys.texi b/manual/filesys.texi
index 518b9e2f5a..a473560bf5 100644
--- a/manual/filesys.texi
+++ b/manual/filesys.texi
@@ -3,10 +3,9 @@
@chapter File System Interface
This chapter describes the GNU C library's functions for manipulating
-files. Unlike the input and output functions described in
-@ref{I/O on Streams} and @ref{Low-Level I/O}, these
-functions are concerned with operating on the files themselves, rather
-than on their contents.
+files. Unlike the input and output functions (@pxref{I/O on Streams};
+@pxref{Low-Level I/O}), these functions are concerned with operating
+on the files themselves, rather than on their contents.
Among the facilities described in this chapter are functions for
examining or modifying directories, functions for renaming and deleting
@@ -396,7 +395,7 @@ the current working directory:
The order in which files appear in a directory tends to be fairly
random. A more useful program would sort the entries (perhaps by
alphabetizing them) before printing them; see
-@ref{Scanning Directory Content} and @ref{Array Sort Function}.
+@ref{Scanning Directory Content}, and @ref{Array Sort Function}.
@node Random Access Directory
diff --git a/manual/lang.texi b/manual/lang.texi
index ff80e164a0..6e90bfd305 100644
--- a/manual/lang.texi
+++ b/manual/lang.texi
@@ -528,7 +528,7 @@ old-fashioned variadic facility is called @file{varargs.h}.
Using @file{varargs.h} is almost the same as using @file{stdarg.h}.
There is no difference in how you call a variadic function;
-@xref{Calling Variadics}. The only difference is in how you define
+see @ref{Calling Variadics}. The only difference is in how you define
them. First of all, you must use old-style non-prototype syntax, like
this:
@@ -572,7 +572,7 @@ function.
@end deftypefn
The other argument macros, @code{va_arg} and @code{va_end}, are the same
-in @file{varargs.h} as in @file{stdarg.h}; see @ref{Argument Macros} for
+in @file{varargs.h} as in @file{stdarg.h}; see @ref{Argument Macros}, for
details.
It does not work to include both @file{varargs.h} and @file{stdarg.h} in
diff --git a/manual/llio.texi b/manual/llio.texi
index cf3e1a7c89..eb78153af5 100644
--- a/manual/llio.texi
+++ b/manual/llio.texi
@@ -3625,4 +3625,4 @@ unknown device.
Most IOCTLs are OS-specific and/or only used in special system utilities,
and are thus beyond the scope of this document. For an example of the use
-of an IOCTL, @xref{Out-of-Band Data}.
+of an IOCTL, see @ref{Out-of-Band Data}.
diff --git a/manual/locale.texi b/manual/locale.texi
index b4b7f4b24f..8b6f3fc235 100644
--- a/manual/locale.texi
+++ b/manual/locale.texi
@@ -140,7 +140,7 @@ and @code{strxfrm}); see @ref{Collation Functions}.
@item LC_CTYPE
This category applies to classification and conversion of characters,
and to multibyte and wide characters;
-see @ref{Character Handling} and @ref{Extended Characters}.
+see @ref{Character Handling}, and @ref{Extended Characters}.
@comment locale.h
@comment ISO
@@ -163,8 +163,8 @@ This category applies to formatting date and time values; see
@comment XOPEN
@item LC_MESSAGES
This category applies to selecting the language used in the user
-interface for message translation (@ref{The Uniforum approach} and
-@ref{Message catalogs a la X/Open}).
+interface for message translation (@pxref{The Uniforum approach};
+@pxref{Message catalogs a la X/Open}).
@comment locale.h
@comment ISO
diff --git a/manual/memory.texi b/manual/memory.texi
index 563cd9c265..d55a4d4fc3 100644
--- a/manual/memory.texi
+++ b/manual/memory.texi
@@ -896,7 +896,7 @@ Allocate a block of @var{size} bytes, starting on an address that is a
multiple of @var{boundary}. @xref{Aligned Memory Blocks}.
@item int mallopt (int @var{param}, int @var{value})
-Adjust a tunable parameter. @xref{Malloc Tunable Parameters}
+Adjust a tunable parameter. @xref{Malloc Tunable Parameters}.
@item int mcheck (void (*@var{abortfn}) (void))
Tell @code{malloc} to perform occasional consistency checks on
diff --git a/manual/message.texi b/manual/message.texi
index c0ab28161c..bfc7d282d3 100644
--- a/manual/message.texi
+++ b/manual/message.texi
@@ -279,8 +279,8 @@ functions if no supporting functionality is available. Since each
set/message number tuple must be unique the programmer must keep lists
of the messages at the same time the code is written. And the work
between several people working on the same project must be coordinated.
-In @ref{Common Usage} we will see some how these problems can be relaxed
-a bit.
+We will see some how these problems can be relaxed a bit (@pxref{Common
+Usage}).
@deftypefun int catclose (nl_catd @var{catalog_desc})
The @code{catclose} function can be used to free the resources
@@ -817,8 +817,8 @@ be used.
Please note that above we wrote ``message catalogs'' (plural). This is
a speciality of the GNU implementation of these functions and we will
-say more about this in section @xref{Locating gettext catalog} when we
-talk about the ways message catalogs are selected.
+say more about this when we talk about the ways message catalogs are
+selected (@pxref{Locating gettext catalog}).
The @code{gettext} function does not modify the value of the global
@var{errno} variable. This is necessary to make it possible to write
diff --git a/manual/pattern.texi b/manual/pattern.texi
index ad0fe68db2..e06671d999 100644
--- a/manual/pattern.texi
+++ b/manual/pattern.texi
@@ -393,7 +393,7 @@ Instead of the using the using the normal functions for accessing the
filesystem the @code{glob} implementation uses the user-supplied
functions specified in the structure pointed to by @var{pglob}
parameter. For more information about the functions refer to the
-sections about directory handling @ref{Accessing Directories} and
+sections about directory handling see @ref{Accessing Directories}, and
@ref{Reading Attributes}.
@comment glob.h
diff --git a/manual/search.texi b/manual/search.texi
index ae6d5ef409..0bcbc9b4d3 100644
--- a/manual/search.texi
+++ b/manual/search.texi
@@ -429,7 +429,7 @@ extended or searched.
The @code{tsearch} funct