mirror of git://sourceware.org/git/glibc.git
Update.
* posix/regex.c (gettext): Use correct translation domain for glibc. * argp/argp-parse.c: Use __dcgettext instead of dcgettext for glibc. * argp/argp-help.c: Likewise. * inet/getnameinfo.c (getnameinfo): Use __snprintf instead of snprintf. * inet/rexec.c (rexec_af): Use __snprintf instead of snprintf. * misc/regexp.c (__step): Use __regexec instead of regexec. (__advance): Likewise. * nss/digits_dots.c: Use __inet_aton instead of inet_aton. * misc/daemon.c (daemon): Use __fork instead of fork.
This commit is contained in:
parent
9f6c1fc494
commit
0bb258e350
11
ChangeLog
11
ChangeLog
|
@ -1,5 +1,16 @@
|
||||||
2000-10-27 Ulrich Drepper <drepper@redhat.com>
|
2000-10-27 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* posix/regex.c (gettext): Use correct translation domain for glibc.
|
||||||
|
|
||||||
|
* argp/argp-parse.c: Use __dcgettext instead of dcgettext for glibc.
|
||||||
|
* argp/argp-help.c: Likewise.
|
||||||
|
* inet/getnameinfo.c (getnameinfo): Use __snprintf instead of snprintf.
|
||||||
|
* inet/rexec.c (rexec_af): Use __snprintf instead of snprintf.
|
||||||
|
* misc/regexp.c (__step): Use __regexec instead of regexec.
|
||||||
|
(__advance): Likewise.
|
||||||
|
* nss/digits_dots.c: Use __inet_aton instead of inet_aton.
|
||||||
|
* misc/daemon.c (daemon): Use __fork instead of fork.
|
||||||
|
|
||||||
* stdlib/fmtmsg.c (fmtmsg): Change output format slightly to make
|
* stdlib/fmtmsg.c (fmtmsg): Change output format slightly to make
|
||||||
it look better and bring it closer to SysV behavior.
|
it look better and bring it closer to SysV behavior.
|
||||||
* stdlib/Makefile (distribute): Add tst-fmtmsg.sh.
|
* stdlib/Makefile (distribute): Add tst-fmtmsg.sh.
|
||||||
|
|
|
@ -57,6 +57,10 @@ char *alloca ();
|
||||||
/* This is for other GNU distributions with internationalized messages. */
|
/* This is for other GNU distributions with internationalized messages. */
|
||||||
# if defined HAVE_LIBINTL_H || defined _LIBC
|
# if defined HAVE_LIBINTL_H || defined _LIBC
|
||||||
# include <libintl.h>
|
# include <libintl.h>
|
||||||
|
# ifdef _LIBC
|
||||||
|
# undef dgettext
|
||||||
|
# define dgettext(domain, msgid) __dcgettext (domain, msgid, LC_MESSAGES)
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# define dgettext(domain, msgid) (msgid)
|
# define dgettext(domain, msgid) (msgid)
|
||||||
# endif
|
# endif
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
When compiling libc, the _ macro is predefined. */
|
When compiling libc, the _ macro is predefined. */
|
||||||
# if defined HAVE_LIBINTL_H || defined _LIBC
|
# if defined HAVE_LIBINTL_H || defined _LIBC
|
||||||
# include <libintl.h>
|
# include <libintl.h>
|
||||||
|
# ifdef _LIBC
|
||||||
|
# undef dgettext
|
||||||
|
# define dgettext(domain, msgid) __dcgettext (domain, msgid, LC_MESSAGES)
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# define dgettext(domain, msgid) (msgid)
|
# define dgettext(domain, msgid) (msgid)
|
||||||
# define gettext(msgid) (msgid)
|
# define gettext(msgid) (msgid)
|
||||||
|
|
|
@ -318,7 +318,7 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
|
||||||
size_t scopelen;
|
size_t scopelen;
|
||||||
|
|
||||||
scopebuf[0] = SCOPE_DELIMITER;
|
scopebuf[0] = SCOPE_DELIMITER;
|
||||||
scopelen = 1 + snprintf (scopeptr,
|
scopelen = 1 + __snprintf (scopeptr,
|
||||||
(scopebuf
|
(scopebuf
|
||||||
+ sizeof scopebuf
|
+ sizeof scopebuf
|
||||||
- scopeptr),
|
- scopeptr),
|
||||||
|
|
|
@ -65,7 +65,7 @@ rexec_af(ahost, rport, name, pass, cmd, fd2p, af)
|
||||||
int gai;
|
int gai;
|
||||||
char servbuff[NI_MAXSERV];
|
char servbuff[NI_MAXSERV];
|
||||||
|
|
||||||
snprintf(servbuff, sizeof(servbuff), "%d", ntohs(rport));
|
__snprintf(servbuff, sizeof(servbuff), "%d", ntohs(rport));
|
||||||
servbuff[sizeof(servbuff) - 1] = '\0';
|
servbuff[sizeof(servbuff) - 1] = '\0';
|
||||||
|
|
||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
|
|
|
@ -44,7 +44,7 @@ daemon(nochdir, noclose)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
switch (fork()) {
|
switch (__fork()) {
|
||||||
case -1:
|
case -1:
|
||||||
return (-1);
|
return (-1);
|
||||||
case 0:
|
case 0:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Define function and variables for the obsolete <regexp.h> interface.
|
/* Define function and variables for the obsolete <regexp.h> interface.
|
||||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
Copyright (C) 1996, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ __step (const char *string, const char *expbuf)
|
||||||
expbuf += __alignof (regex_t *);
|
expbuf += __alignof (regex_t *);
|
||||||
expbuf -= (expbuf - ((const char *) 0)) % __alignof__ (regex_t *);
|
expbuf -= (expbuf - ((const char *) 0)) % __alignof__ (regex_t *);
|
||||||
|
|
||||||
if (regexec ((regex_t *) expbuf, string, 1, &match, REG_NOTEOL)
|
if (__regexec ((regex_t *) expbuf, string, 1, &match, REG_NOTEOL)
|
||||||
== REG_NOMATCH)
|
== REG_NOMATCH)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ __advance (const char *string, const char *expbuf)
|
||||||
expbuf += __alignof__ (regex_t *);
|
expbuf += __alignof__ (regex_t *);
|
||||||
expbuf -= (expbuf - ((const char *) 0)) % __alignof__ (regex_t *);
|
expbuf -= (expbuf - ((const char *) 0)) % __alignof__ (regex_t *);
|
||||||
|
|
||||||
if (regexec ((regex_t *) expbuf, string, 1, &match, REG_NOTEOL)
|
if (__regexec ((regex_t *) expbuf, string, 1, &match, REG_NOTEOL)
|
||||||
== REG_NOMATCH
|
== REG_NOMATCH
|
||||||
/* We have to check whether the check is at the beginning of the
|
/* We have to check whether the check is at the beginning of the
|
||||||
buffer. */
|
buffer. */
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
255.255.255.255? The test below will succeed
|
255.255.255.255? The test below will succeed
|
||||||
spuriously... ??? */
|
spuriously... ??? */
|
||||||
if (af == AF_INET)
|
if (af == AF_INET)
|
||||||
ok = inet_aton (name, (struct in_addr *) host_addr);
|
ok = __inet_aton (name, (struct in_addr *) host_addr);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
assert (af == AF_INET6);
|
assert (af == AF_INET6);
|
||||||
|
|
|
@ -89,6 +89,10 @@
|
||||||
/* This is for other GNU distributions with internationalized messages. */
|
/* This is for other GNU distributions with internationalized messages. */
|
||||||
#if HAVE_LIBINTL_H || defined _LIBC
|
#if HAVE_LIBINTL_H || defined _LIBC
|
||||||
# include <libintl.h>
|
# include <libintl.h>
|
||||||
|
# ifdef _LIBC
|
||||||
|
# undef gettext
|
||||||
|
# define gettext(msgid) __dcgettext ("libc", msgid, LC_MESSAGES)
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define gettext(msgid) (msgid)
|
# define gettext(msgid) (msgid)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue