diff options
| author | Ulrich Drepper <drepper@redhat.com> | 1997-05-25 01:12:55 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 1997-05-25 01:12:55 +0000 |
| commit | cf29ffbef960c4c454d94919c6f27206f77961ff (patch) | |
| tree | 564fc08211b378cac2f8d830d497898d02893ad1 | |
| parent | a133e7a4d2fd162f67b1fa6eb34b490a710459e5 (diff) | |
| download | glibc-cf29ffbef960c4c454d94919c6f27206f77961ff.tar.xz glibc-cf29ffbef960c4c454d94919c6f27206f77961ff.zip | |
Update.cvs/libc-ud-970524
1997-05-25 03:00 Ulrich Drepper <drepper@cygnus.com>
* elf/dynamic-link.h (_dl_verbose): New variable, declare.
* elf/rtld.c (_dl_verbose): New variable, define.
(dl_main): Define _dl-verbose based on DL_WARN environment variable.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Print warning about
changed size in copy relocation only if symbol in shared object
is larger or _dl_verbose is nonzero.
* sysdeps/m68k/dl-machine.h (elf_machine_rel): Likewise.
* sysdeps/powerpc/dl-machine.h (elf_machine_rel): Likewise.
* sysdeps/sparc/dl-machine.h (elf_machine_rel): Likewise.
* nis/nss_nis/nis-ethers.c: Don't use relative include paths, use
<...>.
* nis/nss_nis/nis-grp.c: Likewise.
* nis/nss_nis/nis-hosts.c: Likewise.
* nis/nss_nis/nis-network.c: Likewise.
* nis/nss_nis/nis-proto.c: Likewise.
* nis/nss_nis/nis-pwd.c: Likewise.
* nis/nss_nis/nis-rpc.c: Likewise.
* nis/nss_nis/nis-spwd.c: Likewise.
* sysdeps/unix/sysv/sysd-stdio.c: Likewise.
* wcsmbs/wcscoll.c: Likewise.
* wcsmbs/wcstod.c: Likewise.
* wcsmbs/wcstof.c: Likewise.
* wcsmbs/wcstol.c: Likewise.
* wcsmbs/wcstold.c: Likewise.
* wcsmbs/wcsxfrm.c: Likewise.
Reported by Zack Weinberg <zack@rabi.phys.columbia.edu>.
* time/strftime.c: Implement # flag which changes case of output for
%a, %b, %B, %p, and %Z format.
When printing numbers, the given field width is always respected.
This means that padding happens only up to the given width.
Proposed by Stephen Gildea <gildea@intouchsys.com>.
1997-05-25 00:44 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/i386/fpu/__math.h (logb): Fix thinko, reverse output
values.
Reported by Andreas Jaeger <aj@arthur.rhein-neckar.de>.
1997-05-24 21:03 Philip Blundell <pjb27@cam.ac.uk>
* db/btree/bt_open.c (__bt_open): Only try to use st_blksize (from
struct stat) if it exists for this port.
1997-05-24 20:34 Philip Blundell <pjb27@cam.ac.uk>
* sysdeps/standalone/arm/errnos.h: Add EPERM.
1997-05-23 16:28 Philip Blundell <phil@kings-cross.london.uk.eu.org>
* linewrap.h: New file, needed to compile argp without libio.
1997-05-24 11:59 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* manual/stdio.texi (Formatted Messages): Corrected some typos.
1997-05-24 11:58 Philip Blundell <pjb27@cam.ac.uk>
* sysdeps/stub/start.c: Fix typo.
| -rw-r--r-- | ChangeLog | 63 | ||||
| -rw-r--r-- | db/btree/bt_open.c | 2 | ||||
| -rw-r--r-- | elf/dynamic-link.h | 5 | ||||
| -rw-r--r-- | elf/rtld.c | 10 | ||||
| -rw-r--r-- | linewrap.h | 1 | ||||
| -rw-r--r-- | manual/stdio.texi | 28 | ||||
| -rw-r--r-- | nis/nss_nis/nis-ethers.c | 2 | ||||
| -rw-r--r-- | nis/nss_nis/nis-grp.c | 4 | ||||
| -rw-r--r-- | nis/nss_nis/nis-hosts.c | 6 | ||||
| -rw-r--r-- | nis/nss_nis/nis-network.c | 4 | ||||
| -rw-r--r-- | nis/nss_nis/nis-proto.c | 24 | ||||
| -rw-r--r-- | nis/nss_nis/nis-pwd.c | 4 | ||||
| -rw-r--r-- | nis/nss_nis/nis-rpc.c | 20 | ||||
| -rw-r--r-- | nis/nss_nis/nis-spwd.c | 4 | ||||
| -rw-r--r-- | sysdeps/i386/dl-machine.h | 3 | ||||
| -rw-r--r-- | sysdeps/i386/fpu/__math.h | 2 | ||||
| -rw-r--r-- | sysdeps/m68k/dl-machine.h | 3 | ||||
| -rw-r--r-- | sysdeps/powerpc/dl-machine.h | 5 | ||||
| -rw-r--r-- | sysdeps/sparc/dl-machine.h | 3 | ||||
| -rw-r--r-- | sysdeps/standalone/arm/errnos.h | 27 | ||||
| -rw-r--r-- | sysdeps/stub/start.c | 2 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/sysd-stdio.c | 2 | ||||
| -rw-r--r-- | time/strftime.c | 36 | ||||
| -rw-r--r-- | wcsmbs/wcscoll.c | 2 | ||||
| -rw-r--r-- | wcsmbs/wcstod.c | 2 | ||||
| -rw-r--r-- | wcsmbs/wcstof.c | 2 | ||||
| -rw-r--r-- | wcsmbs/wcstol.c | 2 | ||||
| -rw-r--r-- | wcsmbs/wcstold.c | 2 | ||||
| -rw-r--r-- | wcsmbs/wcsxfrm.c | 2 |
29 files changed, 192 insertions, 80 deletions
@@ -1,3 +1,66 @@ +1997-05-25 03:00 Ulrich Drepper <drepper@cygnus.com> + + * elf/dynamic-link.h (_dl_verbose): New variable, declare. + * elf/rtld.c (_dl_verbose): New variable, define. + (dl_main): Define _dl-verbose based on DL_WARN environment variable. + * sysdeps/i386/dl-machine.h (elf_machine_rel): Print warning about + changed size in copy relocation only if symbol in shared object + is larger or _dl_verbose is nonzero. + * sysdeps/m68k/dl-machine.h (elf_machine_rel): Likewise. + * sysdeps/powerpc/dl-machine.h (elf_machine_rel): Likewise. + * sysdeps/sparc/dl-machine.h (elf_machine_rel): Likewise. + + * nis/nss_nis/nis-ethers.c: Don't use relative include paths, use + <...>. + * nis/nss_nis/nis-grp.c: Likewise. + * nis/nss_nis/nis-hosts.c: Likewise. + * nis/nss_nis/nis-network.c: Likewise. + * nis/nss_nis/nis-proto.c: Likewise. + * nis/nss_nis/nis-pwd.c: Likewise. + * nis/nss_nis/nis-rpc.c: Likewise. + * nis/nss_nis/nis-spwd.c: Likewise. + * sysdeps/unix/sysv/sysd-stdio.c: Likewise. + * wcsmbs/wcscoll.c: Likewise. + * wcsmbs/wcstod.c: Likewise. + * wcsmbs/wcstof.c: Likewise. + * wcsmbs/wcstol.c: Likewise. + * wcsmbs/wcstold.c: Likewise. + * wcsmbs/wcsxfrm.c: Likewise. + Reported by Zack Weinberg <zack@rabi.phys.columbia.edu>. + + * time/strftime.c: Implement # flag which changes case of output for + %a, %b, %B, %p, and %Z format. + When printing numbers, the given field width is always respected. + This means that padding happens only up to the given width. + Proposed by Stephen Gildea <gildea@intouchsys.com>. + +1997-05-25 00:44 Ulrich Drepper <drepper@cygnus.com> + + * sysdeps/i386/fpu/__math.h (logb): Fix thinko, reverse output + values. + Reported by Andreas Jaeger <aj@arthur.rhein-neckar.de>. + +1997-05-24 21:03 Philip Blundell <pjb27@cam.ac.uk> + + * db/btree/bt_open.c (__bt_open): Only try to use st_blksize (from + struct stat) if it exists for this port. + +1997-05-24 20:34 Philip Blundell <pjb27@cam.ac.uk> + + * sysdeps/standalone/arm/errnos.h: Add EPERM. + +1997-05-23 16:28 Philip Blundell <phil@kings-cross.london.uk.eu.org> + + * linewrap.h: New file, needed to compile argp without libio. + +1997-05-24 11:59 Andreas Jaeger <aj@arthur.rhein-neckar.de> + + * manual/stdio.texi (Formatted Messages): Corrected some typos. + +1997-05-24 11:58 Philip Blundell <pjb27@cam.ac.uk> + + * sysdeps/stub/start.c: Fix typo. + 1997-05-21 17:53 Miles Bader <miles@gnu.ai.mit.edu> * argp-help.c (hol_add_cluster): Initialize CL->depth. diff --git a/db/btree/bt_open.c b/db/btree/bt_open.c index 503db85274..1396f3a255 100644 --- a/db/btree/bt_open.c +++ b/db/btree/bt_open.c @@ -259,7 +259,9 @@ __bt_open(fname, flags, mode, openinfo, dflags) * Don't overflow the page offset type. */ if (b.psize == 0) { +#ifdef _STATBUF_ST_BLKSIZE b.psize = sb.st_blksize; +#endif if (b.psize < MINPSIZE) b.psize = MINPSIZE; if (b.psize > MAX_PAGE_OFFSET + 1) diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h index da63633361..3377ee7ff6 100644 --- a/elf/dynamic-link.h +++ b/elf/dynamic-link.h @@ -22,6 +22,11 @@ #include <assert.h> +/* Global read-only variable defined in rtld.c which is nonzero if we + shall give more warning messages. */ +extern int _dl_verbose __attribute__ ((unused)); + + /* Read the dynamic section at DYN and fill in INFO with indices DT_*. */ static inline void __attribute__ ((unused)) diff --git a/elf/rtld.c b/elf/rtld.c index bad01a8844..ffa569e729 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -56,6 +56,7 @@ static void print_missing_version (int errcode, const char *objname, int _dl_argc; char **_dl_argv; const char *_dl_rpath; +int _dl_verbose; /* Set nonzero during loading and initialization of executable and libraries, cleared before the executable's entry point runs. This @@ -206,12 +207,13 @@ dl_main (const ElfW(Phdr) *phdr, int has_interp = 0; mode = getenv ("LD_TRACE_LOADED_OBJECTS") != NULL ? trace : normal; + _dl_verbose = *(getenv ("LD_WARN") ?: "") == '\0' ? 0 : 1; - /* LAZY is determined by the parameters --datadeps and --function-deps - if we trace the binary. */ + /* LAZY is determined by the environment variable LD_WARN and + LD_BIND_NOW if we trace the binary. */ if (mode == trace) - lazy = (*(getenv ("LD_WARN") ?: "") == '\0' ? -1 - : (*(getenv ("LD_BIND_NOW") ?: "") == '\0' ? 1 : 0)); + lazy = (_dl_verbose + ? (*(getenv ("LD_BIND_NOW") ?: "") == '\0' ? 1 : 0) : -1); else lazy = !__libc_enable_secure && *(getenv ("LD_BIND_NOW") ?: "") == '\0'; diff --git a/linewrap.h b/linewrap.h new file mode 100644 index 0000000000..03ca090301 --- /dev/null +++ b/linewrap.h @@ -0,0 +1 @@ +#include "stdio/linewrap.h" diff --git a/manual/stdio.texi b/manual/stdio.texi index 3d6a6c1f2f..085a1c95a8 100644 --- a/manual/stdio.texi +++ b/manual/stdio.texi @@ -3825,7 +3825,7 @@ wait until the rest of the manual is more done and polished. On systems which are based on System V messages of programs (especially the system tools) are printed in a strict form using the @code{fmtmsg} function. The uniformity sometimes helps the user to interpret messages -and the strictness tests of the @code{fmtmsg} function ensures that the +and the strictness tests of the @code{fmtmsg} function ensure that the programmer follows some minimal requirements. @menu @@ -3839,7 +3839,7 @@ programmer follows some minimal requirements. @subsection Printing Formatted Messages Messages can be printed to standard error and/or to the console. To -select the destination the programmer can use the following to values, +select the destination the programmer can use the following two values, bitwise OR combined if wanted, for the @var{classification} parameter of @code{fmtmsg}: @@ -3850,7 +3850,7 @@ Display the message in standard error. Display the message on the system console. @end vtable -The errorneous piece of the system can be signal by exactly one of the +The errorneous piece of the system can be signalled by exactly one of the following values which also is bitwise ORed with the @var{classification} parameter to @code{fmtmsg}: @@ -3900,7 +3900,7 @@ reference to the online documentation where more information can be found. It should contain the @var{label} value and a unique identification number. -Each of the parameters can be of a special value which means this value +Each of the parameters can be a special value which means this value is to be omitted. The symbolic names for these values are: @vtable @code @@ -3919,7 +3919,7 @@ Ignore @var{action} parameter. Ignore @var{tag} parameter. @end vtable -There is another way certain fields can be omitted from the output the +There is another way certain fields can be omitted from the output to standard error. This is described below in the description of environment variables influencing the behaviour. @@ -3961,10 +3961,10 @@ ignored. This function is specified in the X/Open Portability Guide. It is also available on all system derived from System V. -The function return the value @code{MM_OK} if no error occurred. If +The function returns the value @code{MM_OK} if no error occurred. If only the printing to standard error failed, it returns @code{MM_NOMSG}. If printing to the console fails, it returns @code{MM_NOCON}. If -nothing is printed @code{MM_NOTOK} is returned. Among situation where +nothing is printed @code{MM_NOTOK} is returned. Among situations where all outputs fail this last value is also returned if a parameter value is incorrect. @end deftypefun @@ -3974,7 +3974,7 @@ There are two environment variables which influence the behaviour of output actually happening on standard error (@emph{not} the console output). Each of the five fields can explicitely be enabled. To do this the user has to put the @code{MSGVERB} variable with a format like -following in the environment before calling the @code{fmtmsg} function +the following in the environment before calling the @code{fmtmsg} function the first time: @smallexample @@ -3990,7 +3990,7 @@ The second environment variable which influences the behaviour of @code{fmtmsg} is @code{SEV_LEVEL}. This variable and the change in the behaviour of @code{fmtmsg} is not specified in the X/Open Portability Guide. It is available in System V systems, though. It can be used to -introduce no severity levels. By default, only the five severity levels +introduce new severity levels. By default, only the five severity levels described above are available. Any other numeric value would make @code{fmtmsg} print nothing. @@ -4026,7 +4026,7 @@ There is another possibility to introduce severity classes beside using the environment variable @code{SEV_LEVEL}. This simplifies the task of introducing new classes in a running program. One could use the @code{setenv} or @code{putenv} function to set the environment variable, -but this toilsome. +but this is toilsome. @deftypefun int addseverity (int @var{severity}, const char *@var{string}) This function allows to introduce new severity classes which can be @@ -4039,13 +4039,17 @@ value. If @var{string} is @code{NULL} the severity class with the numeric value according to @var{severity} is removed. +It is not possible to overwrite or remove one of the default severity +classes. All calls to @code{addseverity} with @var{severity} set to one +of the values for the default classes will fail. + The return value is @code{MM_OK} if the task was successfully performed. If the return value is @code{MM_NOTOK} something went wrong. This could mean that no more memory is available or a class is not available when it has to be removed. This function is not specified in the X/Open Portability Guide although -the @code{fmtsmg} is. It is available on System V systems. +the @code{fmtsmg} function is. It is available on System V systems. @end deftypefun @@ -4120,7 +4124,7 @@ TO FIX: action @noindent I.e., the output produced by the @var{text} and the @var{tag} parameters -to @code{fmtmsg} vanished. Please also note the now there is no colon +to @code{fmtmsg} vanished. Please also note that now there is no colon after the @code{NOTE} and @code{NOTE2} strings in the output. This is not necessary since there is no more output on this line since the text is missing. diff --git a/nis/nss_nis/nis-ethers.c b/nis/nss_nis/nis-ethers.c index 2d08be7967..a9730a3744 100644 --- a/nis/nss_nis/nis-ethers.c +++ b/nis/nss_nis/nis-ethers.c @@ -41,7 +41,7 @@ struct ether #define ENTNAME etherent #define STRUCTURE ether #define EXTERN_PARSER -#include "../nss/nss_files/files-parse.c" +#include <nss/nss_files/files-parse.c> struct response { diff --git a/nis/nss_nis/nis-grp.c b/nis/nss_nis/nis-grp.c index 139edf2dd8..cbe4d35555 100644 --- a/nis/nss_nis/nis-grp.c +++ b/nis/nss_nis/nis-grp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1996. @@ -32,7 +32,7 @@ #define ENTNAME grent #define STRUCTURE group #define EXTERN_PARSER -#include "../nss/nss_files/files-parse.c" +#include <nss/nss_files/files-parse.c> /* Protect global state against multiple changers */ __libc_lock_define_initialized (static, lock) diff --git a/nis/nss_nis/nis-hosts.c b/nis/nss_nis/nis-hosts.c index 42fc5aeac7..5ca24c7625 100644 --- a/nis/nss_nis/nis-hosts.c +++ b/nis/nss_nis/nis-hosts.c @@ -31,8 +31,8 @@ #include "nss-nis.h" /* Get implementation for some internal functions. */ -#include "../../resolv/mapv4v6addr.h" -#include "../../resolv/mapv4v6hostent.h" +#include <resolv/mapv4v6addr.h> +#include <resolv/mapv4v6hostent.h> #define ENTNAME hostent #define DATABASE "hosts" @@ -47,7 +47,7 @@ struct hostent_data #define TRAILING_LIST_MEMBER h_aliases #define TRAILING_LIST_SEPARATOR_P isspace -#include "../../nss/nss_files/files-parse.c" +#include <nss/nss_files/files-parse.c> LINE_PARSER ("#", { diff --git a/nis/nss_nis/nis-network.c b/nis/nss_nis/nis-network.c index 391f4c5895..0253ac8453 100644 --- a/nis/nss_nis/nis-network.c +++ b/nis/nss_nis/nis-network.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1996. @@ -33,7 +33,7 @@ /* Get the declaration of the parser function. */ #define ENTNAME netent #define EXTERN_PARSER -#include "../nss/nss_files/files-parse.c" +#include <nss/nss_files/files-parse.c> __libc_lock_define_initialized (static, lock) diff --git a/nis/nss_nis/nis-proto.c b/nis/nss_nis/nis-proto.c index 92ef1c0010..d939c9d5c7 100644 --- a/nis/nss_nis/nis-proto.c +++ b/nis/nss_nis/nis-proto.c @@ -31,7 +31,7 @@ /* Get the declaration of the parser function. */ #define ENTNAME protoent #define EXTERN_PARSER -#include "../nss/nss_files/files-parse.c" +#include <nss/nss_files/files-parse.c> __libc_lock_define_initialized (static, lock) @@ -45,7 +45,7 @@ static struct response *start = NULL; static struct response *next = NULL; static int -saveit (int instatus, char *inkey, int inkeylen, char *inval, +saveit (int instatus, char *inkey, int inkeylen, char *inval, int invallen, char *indata) { if (instatus != YP_TRUE) @@ -68,7 +68,7 @@ saveit (int instatus, char *inkey, int inkeylen, char *inval, strncpy (next->val, inval, invallen); next->val[invallen] = '\0'; } - + return 0; } @@ -78,9 +78,9 @@ internal_nis_setprotoent (void) char *domainname; struct ypall_callback ypcb; enum nss_status status; - + yp_get_default_domain (&domainname); - + while (start != NULL) { if (start->val != NULL) @@ -90,12 +90,12 @@ internal_nis_setprotoent (void) free (next); } start = NULL; - + ypcb.foreach = saveit; ypcb.data = NULL; status = yperr2nss (yp_all (domainname, "protocols.bynumber", &ypcb)); next = start; - + return status; } @@ -128,9 +128,9 @@ _nss_nis_endprotoent (void) } start = NULL; next = NULL; - + __libc_lock_unlock (lock); - + return NSS_STATUS_SUCCESS; } @@ -148,12 +148,12 @@ internal_nis_getprotoent_r (struct protoent *proto, do { char *p; - + if (next == NULL) return NSS_STATUS_NOTFOUND; p = strcpy (buffer, next->val); next = next->next; - + while (isspace (*p)) ++p; @@ -162,7 +162,7 @@ internal_nis_getprotoent_r (struct protoent *proto, return NSS_STATUS_TRYAGAIN; } while (!parse_res); - + return NSS_STATUS_SUCCESS; } diff --git a/nis/nss_nis/nis-p |
