mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
Update.
* argp/argp-help.c: Unify use of function aliases to make more compact PLT. * include/libintl.h: Likewise. * inet/rcmd.c: Likewise. * intl/dcigettext.c: Likewise. * libio/iofputws.c: Likewise. * libio/iofputws_u.c: Likewise. * libio/iogetwline.c: Likewise. * libio/swprintf.c: Likewise. * malloc/malloc.c: Likewise. * nss/digits_dots.c: Likewise. * posix/fnmatch.c: Likewise. * posix/spawn_faction_addclose.c: Likewise. * posix/spawn_faction_adddup2.c: Likewise. * posix/spawn_faction_addopen.c: Likewise. * posix/spawni.c: Likewise. * posix/wordexp.c: Likewise. * posix/spawni.c: Likewise. * resolv/res_hconf.c: Likewise. * resolv/res_init.c: Likewise. * shadow/lckpwdf.c: Likewise. * signal/sighold.c: Likewise. * signal/sigrelse.c: Likewise. * stdio-common/printf-parse.h: Likewise. * stdio-common/printf-prs.c: Likewise. * stdio-common/printf_fp.c: Likewise. * stdio-common/vfprintf.c: Likewise. * stdio-common/vfscanf.c: Likewise. * stdlib/rpmatch.c: Likewise. * sunrpc/create_xid.c: Likewise. * sunrpc/key_call.c: Likewise. * sysdeps/generic/setrlimit64.c: Likewise. * sysdeps/generic/utmp_file.c: Likewise. * sysdeps/generic/vlimit.c: Likewise. * sysdeps/posix/posix_fallocate.c: Likewise. * sysdeps/posix/posix_fallocate64.c: Likewise. * sysdeps/posix/sigpause.c: Likewise. * sysdeps/posix/sigset.c: Likewise. * sysdeps/unix/grantpt.c: Likewise. * sysdeps/unix/bsd/ualarm.c: Likewise. * sysdeps/unix/sysv/linux/dl-origin.c: Likewise. * sysdeps/unix/sysv/linux/getloadavg.c: Likewise. * sysdeps/unix/sysv/linux/ttyname.c: Likewise. * sysdeps/unix/sysv/linux/ulimit.c: Likewise. * time/strftime.c: Likewise. * wcsmbs/wcscoll.c: Likewise. * wcsmbs/wcsxfrm.c: Likewise. * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate postinc/predec instruction.
This commit is contained in:
parent
a785f6c56e
commit
4aebaa6bd9
52
ChangeLog
52
ChangeLog
@ -1,9 +1,57 @@
|
|||||||
2000-08-20 Ulrich Drepper <drepper@redhat.com>
|
2000-08-20 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* argp/argp-help.c: Unify use of function aliases to make more compact
|
||||||
|
PLT.
|
||||||
|
* include/libintl.h: Likewise.
|
||||||
|
* inet/rcmd.c: Likewise.
|
||||||
|
* intl/dcigettext.c: Likewise.
|
||||||
|
* libio/iofputws.c: Likewise.
|
||||||
|
* libio/iofputws_u.c: Likewise.
|
||||||
|
* libio/iogetwline.c: Likewise.
|
||||||
|
* libio/swprintf.c: Likewise.
|
||||||
|
* malloc/malloc.c: Likewise.
|
||||||
|
* nss/digits_dots.c: Likewise.
|
||||||
|
* posix/fnmatch.c: Likewise.
|
||||||
|
* posix/spawn_faction_addclose.c: Likewise.
|
||||||
|
* posix/spawn_faction_adddup2.c: Likewise.
|
||||||
|
* posix/spawn_faction_addopen.c: Likewise.
|
||||||
|
* posix/spawni.c: Likewise.
|
||||||
|
* posix/wordexp.c: Likewise.
|
||||||
|
* posix/spawni.c: Likewise.
|
||||||
|
* resolv/res_hconf.c: Likewise.
|
||||||
|
* resolv/res_init.c: Likewise.
|
||||||
|
* shadow/lckpwdf.c: Likewise.
|
||||||
|
* signal/sighold.c: Likewise.
|
||||||
|
* signal/sigrelse.c: Likewise.
|
||||||
|
* stdio-common/printf-parse.h: Likewise.
|
||||||
|
* stdio-common/printf-prs.c: Likewise.
|
||||||
|
* stdio-common/printf_fp.c: Likewise.
|
||||||
|
* stdio-common/vfprintf.c: Likewise.
|
||||||
|
* stdio-common/vfscanf.c: Likewise.
|
||||||
|
* stdlib/rpmatch.c: Likewise.
|
||||||
|
* sunrpc/create_xid.c: Likewise.
|
||||||
|
* sunrpc/key_call.c: Likewise.
|
||||||
|
* sysdeps/generic/setrlimit64.c: Likewise.
|
||||||
|
* sysdeps/generic/utmp_file.c: Likewise.
|
||||||
|
* sysdeps/generic/vlimit.c: Likewise.
|
||||||
|
* sysdeps/posix/posix_fallocate.c: Likewise.
|
||||||
|
* sysdeps/posix/posix_fallocate64.c: Likewise.
|
||||||
|
* sysdeps/posix/sigpause.c: Likewise.
|
||||||
|
* sysdeps/posix/sigset.c: Likewise.
|
||||||
|
* sysdeps/unix/grantpt.c: Likewise.
|
||||||
|
* sysdeps/unix/bsd/ualarm.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ttyname.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ulimit.c: Likewise.
|
||||||
|
* time/strftime.c: Likewise.
|
||||||
|
* wcsmbs/wcscoll.c: Likewise.
|
||||||
|
* wcsmbs/wcsxfrm.c: Likewise.
|
||||||
|
|
||||||
* time/tst-getdate.c (main): Make error messages more human readable.
|
* time/tst-getdate.c (main): Make error messages more human readable.
|
||||||
|
|
||||||
* sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generic
|
* sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
|
||||||
postinc/postdec instruction.
|
postinc/predec instruction.
|
||||||
(_FPU_SETCW): Likewise.
|
(_FPU_SETCW): Likewise.
|
||||||
Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
|
Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Hierarchial argument parsing help output
|
/* Hierarchial argument parsing help output
|
||||||
Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1995,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Written by Miles Bader <miles@gnu.ai.mit.edu>.
|
Written by Miles Bader <miles@gnu.ai.mit.edu>.
|
||||||
|
|
||||||
@ -1521,7 +1521,7 @@ _help (const struct argp *argp, const struct argp_state *state, FILE *stream,
|
|||||||
if (! stream)
|
if (! stream)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
flockfile (stream);
|
__flockfile (stream);
|
||||||
|
|
||||||
if (! uparams.valid)
|
if (! uparams.valid)
|
||||||
fill_in_uparams (state);
|
fill_in_uparams (state);
|
||||||
@ -1529,7 +1529,7 @@ _help (const struct argp *argp, const struct argp_state *state, FILE *stream,
|
|||||||
fs = __argp_make_fmtstream (stream, 0, uparams.rmargin, 0);
|
fs = __argp_make_fmtstream (stream, 0, uparams.rmargin, 0);
|
||||||
if (! fs)
|
if (! fs)
|
||||||
{
|
{
|
||||||
funlockfile (stream);
|
__funlockfile (stream);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1637,7 +1637,7 @@ Try `%s --help' or `%s --usage' for more information.\n"),
|
|||||||
anything = 1;
|
anything = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
funlockfile (stream);
|
__funlockfile (stream);
|
||||||
|
|
||||||
if (hol)
|
if (hol)
|
||||||
hol_free (hol);
|
hol_free (hol);
|
||||||
@ -1696,7 +1696,7 @@ __argp_error (const struct argp_state *state, const char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
flockfile (stream);
|
__flockfile (stream);
|
||||||
|
|
||||||
fputs_unlocked (state ? state->name : program_invocation_short_name,
|
fputs_unlocked (state ? state->name : program_invocation_short_name,
|
||||||
stream);
|
stream);
|
||||||
@ -1711,7 +1711,7 @@ __argp_error (const struct argp_state *state, const char *fmt, ...)
|
|||||||
|
|
||||||
__argp_state_help (state, stream, ARGP_HELP_STD_ERR);
|
__argp_state_help (state, stream, ARGP_HELP_STD_ERR);
|
||||||
|
|
||||||
funlockfile (stream);
|
__funlockfile (stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1737,7 +1737,7 @@ __argp_failure (const struct argp_state *state, int status, int errnum,
|
|||||||
|
|
||||||
if (stream)
|
if (stream)
|
||||||
{
|
{
|
||||||
flockfile (stream);
|
__flockfile (stream);
|
||||||
|
|
||||||
fputs_unlocked (state ? state->name : program_invocation_short_name,
|
fputs_unlocked (state ? state->name : program_invocation_short_name,
|
||||||
stream);
|
stream);
|
||||||
@ -1763,7 +1763,7 @@ __argp_failure (const struct argp_state *state, int status, int errnum,
|
|||||||
|
|
||||||
putc_unlocked ('\n', stream);
|
putc_unlocked ('\n', stream);
|
||||||
|
|
||||||
funlockfile (stream);
|
__funlockfile (stream);
|
||||||
|
|
||||||
if (status && (!state || !(state->flags & ARGP_NO_EXIT)))
|
if (status && (!state || !(state->flags & ARGP_NO_EXIT)))
|
||||||
exit (status);
|
exit (status);
|
||||||
|
@ -22,13 +22,7 @@ extern const char _libc_intl_domainname[];
|
|||||||
# define N_(msgid) msgid
|
# define N_(msgid) msgid
|
||||||
|
|
||||||
# undef _
|
# undef _
|
||||||
# ifdef dgettext
|
|
||||||
/* This is defined as an optimizing macro, so use it. */
|
/* This is defined as an optimizing macro, so use it. */
|
||||||
# define _(msgid) dgettext (_libc_intl_domainname, (msgid))
|
# define _(msgid) __dcgettext (_libc_intl_domainname, (msgid), LC_MESSAGES)
|
||||||
# else
|
|
||||||
/* Be sure to use only the __ name when `dgettext' is a plain function
|
|
||||||
instead of an optimizing macro. */
|
|
||||||
# define _(msgid) __dgettext (_libc_intl_domainname, (msgid))
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -129,7 +129,7 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af)
|
|||||||
hints.ai_flags = AI_CANONNAME;
|
hints.ai_flags = AI_CANONNAME;
|
||||||
hints.ai_family = af;
|
hints.ai_family = af;
|
||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
(void)snprintf(num, sizeof(num), "%d", ntohs(rport));
|
(void)__snprintf(num, sizeof(num), "%d", ntohs(rport));
|
||||||
error = getaddrinfo(*ahost, num, &hints, &res);
|
error = getaddrinfo(*ahost, num, &hints, &res);
|
||||||
if (error) {
|
if (error) {
|
||||||
fprintf(stderr, "rcmd: getaddrinfo: %s\n",
|
fprintf(stderr, "rcmd: getaddrinfo: %s\n",
|
||||||
@ -191,7 +191,7 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (refused && timo <= 16) {
|
if (refused && timo <= 16) {
|
||||||
(void)sleep(timo);
|
(void)__sleep(timo);
|
||||||
timo *= 2;
|
timo *= 2;
|
||||||
ai = res;
|
ai = res;
|
||||||
refused = 0;
|
refused = 0;
|
||||||
@ -327,7 +327,7 @@ rresvport_af(alport, family)
|
|||||||
__set_errno (EAFNOSUPPORT);
|
__set_errno (EAFNOSUPPORT);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
s = socket(family, SOCK_STREAM, 0);
|
s = __socket(family, SOCK_STREAM, 0);
|
||||||
if (s < 0)
|
if (s < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
@ -129,6 +129,7 @@ void free ();
|
|||||||
# ifndef stpcpy
|
# ifndef stpcpy
|
||||||
# define stpcpy __stpcpy
|
# define stpcpy __stpcpy
|
||||||
# endif
|
# endif
|
||||||
|
# define tfind __tfind
|
||||||
#else
|
#else
|
||||||
# if !defined HAVE_GETCWD
|
# if !defined HAVE_GETCWD
|
||||||
char *getwd ();
|
char *getwd ();
|
||||||
|
@ -39,16 +39,15 @@
|
|||||||
#include "gettext.h"
|
#include "gettext.h"
|
||||||
#include "gettextP.h"
|
#include "gettextP.h"
|
||||||
|
|
||||||
#define YYDEBUG 1
|
|
||||||
#define YYLEX_PARAM &((struct parse_args *) arg)->cp
|
#define YYLEX_PARAM &((struct parse_args *) arg)->cp
|
||||||
#define YYPARSE_PARAM arg
|
#define YYPARSE_PARAM arg
|
||||||
|
|
||||||
#line 33 "plural.y"
|
#line 32 "plural.y"
|
||||||
typedef union {
|
typedef union {
|
||||||
unsigned long int num;
|
unsigned long int num;
|
||||||
struct expression *exp;
|
struct expression *exp;
|
||||||
} YYSTYPE;
|
} YYSTYPE;
|
||||||
#line 38 "plural.y"
|
#line 37 "plural.y"
|
||||||
|
|
||||||
/* Prototypes for local functions. */
|
/* Prototypes for local functions. */
|
||||||
static struct expression *new_exp (enum operator op, int n, ...);
|
static struct expression *new_exp (enum operator op, int n, ...);
|
||||||
@ -118,8 +117,8 @@ static const short yyrhs[] = { 19,
|
|||||||
|
|
||||||
#if YYDEBUG != 0
|
#if YYDEBUG != 0
|
||||||
static const short yyrline[] = { 0,
|
static const short yyrline[] = { 0,
|
||||||
56, 62, 67, 72, 77, 82, 87, 92, 97, 102,
|
55, 61, 66, 71, 76, 81, 86, 91, 96, 101,
|
||||||
107, 112, 117, 123
|
106, 111, 116, 122
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -735,90 +734,90 @@ yyreduce:
|
|||||||
switch (yyn) {
|
switch (yyn) {
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
#line 57 "plural.y"
|
#line 56 "plural.y"
|
||||||
{
|
{
|
||||||
((struct parse_args *) arg)->res = yyvsp[0].exp;
|
((struct parse_args *) arg)->res = yyvsp[0].exp;
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 2:
|
case 2:
|
||||||
#line 63 "plural.y"
|
#line 62 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (qmop, 3, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (qmop, 3, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 3:
|
case 3:
|
||||||
#line 68 "plural.y"
|
#line 67 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (lor, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (lor, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 4:
|
case 4:
|
||||||
#line 73 "plural.y"
|
#line 72 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (land, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (land, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 5:
|
case 5:
|
||||||
#line 78 "plural.y"
|
#line 77 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (equal, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (equal, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 6:
|
case 6:
|
||||||
#line 83 "plural.y"
|
#line 82 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (not_equal, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (not_equal, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 7:
|
case 7:
|
||||||
#line 88 "plural.y"
|
#line 87 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (plus, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (plus, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 8:
|
case 8:
|
||||||
#line 93 "plural.y"
|
#line 92 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (minus, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (minus, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 9:
|
case 9:
|
||||||
#line 98 "plural.y"
|
#line 97 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (mult, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (mult, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 10:
|
case 10:
|
||||||
#line 103 "plural.y"
|
#line 102 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (divide, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (divide, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 11:
|
case 11:
|
||||||
#line 108 "plural.y"
|
#line 107 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (module, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
if ((yyval.exp = new_exp (module, 2, yyvsp[-2].exp, yyvsp[0].exp)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 12:
|
case 12:
|
||||||
#line 113 "plural.y"
|
#line 112 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (var, 0)) == NULL)
|
if ((yyval.exp = new_exp (var, 0)) == NULL)
|
||||||
YYABORT
|
YYABORT
|
||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 13:
|
case 13:
|
||||||
#line 118 "plural.y"
|
#line 117 "plural.y"
|
||||||
{
|
{
|
||||||
if ((yyval.exp = new_exp (num, 0)) == NULL)
|
if ((yyval.exp = new_exp (num, 0)) == NULL)
|
||||||
YYABORT;
|
YYABORT;
|
||||||
@ -826,7 +825,7 @@ case 13:
|
|||||||
;
|
;
|
||||||
break;}
|
break;}
|
||||||
case 14:
|
case 14:
|
||||||
#line 124 "plural.y"
|
#line 123 "plural.y"
|
||||||
{
|
{
|
||||||
yyval.exp = yyvsp[-1].exp
|
yyval.exp = yyvsp[-1].exp
|
||||||
;
|
;
|
||||||
@ -1053,7 +1052,7 @@ yyerrhandle:
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#line 129 "plural.y"
|
#line 128 "plural.y"
|
||||||
|
|
||||||
|
|
||||||
static struct expression *
|
static struct expression *
|
||||||
@ -1134,8 +1133,6 @@ yylex (YYSTYPE *lval, const char **pexp)
|
|||||||
const char *exp = *pexp;
|
const char *exp = *pexp;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
yydebug = 1;
|
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
if (exp[0] == '\\' && exp[1] == '\n')
|
if (exp[0] == '\\' && exp[1] == '\n')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1993,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU IO Library.
|
This file is part of the GNU IO Library.
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This library is free software; you can redistribute it and/or
|
||||||
@ -31,7 +31,7 @@ fputws (str, fp)
|
|||||||
const wchar_t *str;
|
const wchar_t *str;
|
||||||
_IO_FILE *fp;
|
_IO_FILE *fp;
|
||||||
{
|
{
|
||||||
_IO_size_t len = wcslen (str);
|
_IO_size_t len = __wcslen (str);
|
||||||
int result = EOF;
|
int result = EOF;
|
||||||
CHECK_FILE (fp, EOF);
|
CHECK_FILE (fp, EOF);
|
||||||
_IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
|
_IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1993,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU IO Library.
|
This file is part of the GNU IO Library.
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This library is free software; you can redistribute it and/or
|
||||||
@ -32,7 +32,7 @@ fputws_unlocked (str, fp)
|
|||||||
const wchar_t *str;
|
const wchar_t *str;
|
||||||
_IO_FILE *fp;
|
_IO_FILE *fp;
|
||||||
{
|
{
|
||||||
_IO_size_t len = wcslen (str);
|
_IO_size_t len = __wcslen (str);
|
||||||
int result = EOF;
|
int result = EOF;
|
||||||
CHECK_FILE (fp, EOF);
|
CHECK_FILE (fp, EOF);
|
||||||
if (_IO_fwide (fp, 1) == 1
|
if (_IO_fwide (fp, 1) == 1
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
|
#ifdef _LIBC
|
||||||
|
# define wmemcpy __wmemcpy
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined _LIBC || !_G_HAVE_IO_GETLINE_INFO
|
#if defined _LIBC || !_G_HAVE_IO_GETLINE_INFO
|
||||||
|
|
||||||
_IO_size_t
|
_IO_size_t
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -31,7 +31,7 @@ swprintf (s, n, format)
|
|||||||
int done;
|
int done;
|
||||||
|
|
||||||
va_start (arg, format);
|
va_start (arg, format);
|
||||||
done = vswprintf (s, n, format, arg);
|
done = __vswprintf (s, n, format, arg);
|
||||||
va_end (arg);
|
va_end (arg);
|
||||||
|
|
||||||
return done;
|
return done;
|
||||||
|
@ -889,6 +889,7 @@ Void_t *(*__morecore)() = __default_morecore;
|
|||||||
|
|
||||||
static size_t __libc_pagesize;
|
static size_t __libc_pagesize;
|
||||||
|
|
||||||
|
#define access __access
|
||||||
#define mmap __mmap
|
#define mmap __mmap
|
||||||
#define munmap __munmap
|
#define munmap __munmap
|
||||||
#define mremap __mremap
|
#define mremap __mremap
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#ifdef USE_NSCD
|
||||||
|
# define inet_aton __inet_aton
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* disallow names consisting only of digits/dots, unless
|
* disallow names consisting only of digits/dots, unless
|
||||||
* they end in a dot.
|
* they end in a dot.
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
# include "../locale/elem-hash.h"
|
# include "../locale/elem-hash.h"
|
||||||
|
|
||||||
# define CONCAT(a,b) __CONCAT(a,b)
|
# define CONCAT(a,b) __CONCAT(a,b)
|
||||||
|
# define mbsinit __mbsinit
|
||||||
|
# define mbsrtowcs __mbsrtowcs
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Comment out all this code if we are using the GNU C Library, and are not
|
/* Comment out all this code if we are using the GNU C Library, and are not
|
||||||
|
@ -28,7 +28,7 @@ int
|
|||||||
posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *file_actions,
|
posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *file_actions,
|
||||||
int fd)
|
int fd)
|
||||||
{
|
{
|
||||||
int maxfd = sysconf (_SC_OPEN_MAX);
|
int maxfd = __sysconf (_SC_OPEN_MAX);
|
||||||
struct __spawn_action *rec;
|
struct __spawn_action *rec;
|
||||||
|
|
||||||
/* Test for the validity of the file descriptor. */
|
/* Test for the validity of the file descriptor. */
|
||||||
|
@ -28,7 +28,7 @@ int
|
|||||||
posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *file_actions,
|
posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *file_actions,
|
||||||
int fd, int newfd)
|
int fd, int newfd)
|
||||||
{
|
{
|
||||||
int maxfd = sysconf (_SC_OPEN_MAX);
|
int maxfd = __sysconf (_SC_OPEN_MAX);
|
||||||
struct __spawn_action *rec;
|
struct __spawn_action *rec;
|
||||||
|
|
||||||
/* Test for the validity of the file descriptor. */
|
/* Test for the validity of the file descriptor. */
|
||||||
|
@ -29,7 +29,7 @@ posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *file_actions,
|
|||||||
int fd, const char *path, int oflag,
|
int fd, const char *path, int oflag,
|
||||||
mode_t mode)
|
mode_t mode)
|
||||||
{
|
{
|
||||||
int maxfd = sysconf (_SC_OPEN_MAX);
|
int maxfd = __sysconf (_SC_OPEN_MAX);
|
||||||
struct __spawn_action *rec;
|
struct __spawn_action *rec;
|
||||||
|
|
||||||
/* Test for the validity of the file descriptor. */
|
/* Test for the validity of the file descriptor. */
|
||||||
|
@ -77,7 +77,7 @@ __spawni (pid_t *pid, const char *file,
|
|||||||
short int flags;
|
short int flags;
|
||||||
|
|
||||||
/* Generate the new process. */
|
/* Generate the new process. */
|
||||||
new_pid = fork ();
|
new_pid = __fork ();
|
||||||
if (new_pid != 0)
|
if (new_pid != 0)
|
||||||
{
|
{
|
||||||
if (new_pid < 0)
|
if (new_pid < 0)
|
||||||
@ -157,14 +157,14 @@ __spawni (pid_t *pid, const char *file,
|
|||||||
switch (action->tag)
|
switch (action->tag)
|
||||||
{
|
{
|
||||||
case spawn_do_close:
|
case spawn_do_close:
|
||||||
if (close (action->action.close_action.fd) != 0)
|
if (__close (action->action.close_action.fd) != 0)
|
||||||
/* Signal the error. */
|
/* Signal the error. */
|
||||||
_exit (SPAWN_ERROR);
|
_exit (SPAWN_ERROR);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case spawn_do_open:
|
case spawn_do_open:
|
||||||
{
|
{
|
||||||
int new_fd = open (action->action.open_action.path,
|
int new_fd = __open (action->action.open_action.path,
|
||||||
action->action.open_action.oflag,
|
action->action.open_action.oflag,
|
||||||
action->action.open_action.mode);
|
action->action.open_action.mode);
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ __spawni (pid_t *pid, const char *file,
|
|||||||
/* The `dup2' call failed. */
|
/* The `dup2' call failed. */
|
||||||
_exit (SPAWN_ERROR);
|
_exit (SPAWN_ERROR);
|
||||||
|
|
||||||
if (close (new_fd) != 0)
|
if (__close (new_fd) != 0)
|
||||||
/* The `close' call failed. */
|
/* The `close' call failed. */
|
||||||
_exit (SPAWN_ERROR);
|
_exit (SPAWN_ERROR);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* POSIX.2 wordexp implementation.
|
/* POSIX.2 wordexp implementation.
|
||||||
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1997, 1998, 1999, 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 Tim Waugh <tim@cyberelk.demon.co.uk>.
|
Contributed by Tim Waugh <tim@cyberelk.demon.co.uk>.
|
||||||
|
|
||||||
@ -851,7 +851,7 @@ exec_comm_child (char *comm, int *fildes, int showerr, int noexec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure the subshell doesn't field-split on our behalf. */
|
/* Make sure the subshell doesn't field-split on our behalf. */
|
||||||
unsetenv ("IFS");
|
__unsetenv ("IFS");
|
||||||
|
|
||||||
__close (fildes[0]);
|
__close (fildes[0]);
|
||||||
__execve (_PATH_BSHELL, (char *const *) args, __environ);
|
__execve (_PATH_BSHELL, (char *const *) args, __environ);
|
||||||
@ -1847,7 +1847,7 @@ envsubst:
|
|||||||
if (pattern && !value)
|
if (pattern && !value)
|
||||||
goto no_space;
|
goto no_space;
|
||||||
|
|
||||||
setenv (env, value, 1);
|
__setenv (env, value, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
|
/* Copyright (C) 1993, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
Contributed by David Mosberger (davidm@azstarnet.com).
|
Contributed by David Mosberger (davidm@azstarnet.com).
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -278,7 +278,7 @@ parse_line (const char *fname, int line_num, const char *str)
|
|||||||
|
|
||||||
for (i = 0; i < sizeof (cmd) / sizeof (cmd[0]); ++i)
|
for (i = 0; i < sizeof (cmd) / sizeof (cmd[0]); ++i)
|
||||||
{
|
{
|
||||||
if (strncasecmp (start, cmd[i].name, len) == 0
|
if (__strncasecmp (start, cmd[i].name, len) == 0
|
||||||
&& strlen (cmd[i].name) == len)
|
&& strlen (cmd[i].name) == len)
|
||||||
{
|
{
|
||||||
c = &cmd[i];
|
c = &cmd[i];
|
||||||
@ -475,7 +475,7 @@ _res_hconf_reorder_addrs (struct hostent *hp)
|
|||||||
/* Release lock, preserve error value, and close socket. */
|
/* Release lock, preserve error value, and close socket. */
|
||||||
save = errno;
|
save = errno;
|
||||||
__libc_lock_unlock (lock);
|
__libc_lock_unlock (lock);
|
||||||
close (sd);
|
__close (sd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (num_ifs == 0)
|
if (num_ifs == 0)
|
||||||
|
@ -294,7 +294,8 @@ __res_vinit(res_state statp, int preinit) {
|
|||||||
cp = buf + sizeof("nameserver") - 1;
|
cp = buf + sizeof("nameserver") - 1;
|
||||||
while (*cp == ' ' || *cp == '\t')
|
while (*cp == ' ' || *cp == '\t')
|
||||||
cp++;
|
cp++;
|
||||||
if ((*cp != '\0') && (*cp != '\n') && inet_aton(cp, &a)) {
|
if ((*cp != '\0') && (*cp != '\n')
|
||||||
|
&& __inet_aton(cp, &a)) {
|
||||||
statp->nsaddr_list[nserv].sin_addr = a;
|
statp->nsaddr_list[nserv].sin_addr = a;
|
||||||
statp->nsaddr_list[nserv].sin_family = AF_INET;
|
statp->nsaddr_list[nserv].sin_family = AF_INET;
|
||||||
statp->nsaddr_list[nserv].sin_port =
|
statp->nsaddr_list[nserv].sin_port =
|
||||||
@ -343,7 +344,7 @@ __res_vinit(res_state statp, int preinit) {
|
|||||||
cp++;
|
cp++;
|
||||||
n = *cp;
|
n = *cp;
|
||||||
*cp = 0;
|
*cp = 0;
|
||||||
if (inet_aton(net, &a)) {
|
if (__inet_aton(net, &a)) {
|
||||||
statp->sort_list[nsort].addr = a;
|
statp->sort_list[nsort].addr = a;
|
||||||
if (ISSORTMASK(n)) {
|
if (ISSORTMASK(n)) {
|
||||||
*cp++ = n;
|
*cp++ = n;
|
||||||
@ -353,7 +354,7 @@ __res_vinit(res_state statp, int preinit) {
|
|||||||
cp++;
|
cp++;
|
||||||
n = *cp;
|
n = *cp;
|
||||||
*cp = 0;
|
*cp = 0;
|
||||||
if (inet_aton(net, &a)) {
|
if (__inet_aton(net, &a)) {
|
||||||
statp->sort_list[nsort].mask = a.s_addr;
|
statp->sort_list[nsort].mask = a.s_addr;
|
||||||
} else {
|
} else {
|
||||||
statp->sort_list[nsort].mask =
|
statp->sort_list[nsort].mask =
|
||||||
@ -527,7 +528,7 @@ res_nclose(res_state statp) {
|
|||||||
int ns;
|
int ns;
|
||||||
|
|
||||||
if (statp->_vcsock >= 0) {
|
if (statp->_vcsock >= 0) {
|
||||||
(void) close(statp->_vcsock);
|
(void) __close(statp->_vcsock);
|
||||||
statp->_vcsock = -1;
|
statp->_vcsock = -1;
|
||||||
statp->_flags &= ~(RES_F_VC | RES_F_CONN);
|
statp->_flags &= ~(RES_F_VC | RES_F_CONN);
|
||||||
}
|
}
|
||||||
@ -539,7 +540,7 @@ res_nclose(res_state statp) {
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (statp->_u._ext.nssocks[ns] != -1) {
|
if (statp->_u._ext.nssocks[ns] != -1) {
|
||||||
(void) close(statp->_u._ext.nssocks[ns]);
|
(void) __close(statp->_u._ext.nssocks[ns]);
|
||||||
statp->_u._ext.nssocks[ns] = -1;
|
statp->_u._ext.nssocks[ns] = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ __lckpwdf (void)
|
|||||||
|
|
||||||
/* Now make sure the alarm signal is not blocked. */
|
/* Now make sure the alarm signal is not blocked. */
|
||||||
sigemptyset (&new_set);
|
sigemptyset (&new_set);
|
||||||
sigaddset (&new_set, SIGALRM);
|
__sigaddset (&new_set, SIGALRM);
|
||||||
if (__sigprocmask (SIG_UNBLOCK, &new_set, &saved_set) < 0)
|
if (__sigprocmask (SIG_UNBLOCK, &new_set, &saved_set) < 0)
|
||||||
RETURN_RESTORE_HANDLER (-1);
|
RETURN_RESTORE_HANDLER (-1);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Add SIG to the calling process' signal mask.
|
/* Add SIG to the calling process' signal mask.
|
||||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
Copyright (C) 1998, 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>, 1998.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ sighold (sig)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Add the specified signal. */
|
/* Add the specified signal. */
|
||||||
if (sigaddset (&set, sig) < 0)
|
if (__sigaddset (&set, sig) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Set the new mask. */
|
/* Set the new mask. */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Remove SIG from the calling process' signal mask.
|
/* Remove SIG from the calling process' signal mask.
|
||||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
Copyright (C) 1998, 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>, 1998.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ sigrelse (sig)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Remove the specified signal. */
|
/* Remove the specified signal. */
|
||||||
if (sigdelset (&set, sig) < 0)
|
if (__sigdelset (&set, sig) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Set the new mask. */
|
/* Set the new mask. */
|
||||||
|
@ -106,7 +106,7 @@ find_spec (const UCHAR_T *format, mbstate_t *ps)
|
|||||||
|
|
||||||
/* Remove any hints of a wrong encoding. */
|
/* Remove any hints of a wrong encoding. */
|
||||||
ps->__count = 0;
|
ps->__count = 0;
|
||||||
if (! isascii (*format) && (len = mbrlen (format, MB_CUR_MAX, ps)) > 0)
|
if (! isascii (*format) && (len = __mbrlen (format, MB_CUR_MAX, ps)) > 0)
|
||||||
format += len;
|
format += len;
|
||||||
else
|
else
|
||||||
++format;
|
++format;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1992, 1995, 1996, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,1992,1995,1996,1999,2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -30,7 +30,7 @@
|
|||||||
# define L_(Str) Str
|
# define L_(Str) Str
|
||||||
# define ISDIGIT(Ch) isdigit (Ch)
|
# define ISDIGIT(Ch) isdigit (Ch)
|
||||||
# define ISASCII(Ch) isascii (Ch)
|
# define ISASCII(Ch) isascii (Ch)
|
||||||
# define MBRLEN(Cp, L, St) mbrlen (Cp, L, St)
|
# define MBRLEN(Cp, L, St) __mbrlen (Cp, L, St)
|
||||||
|
|
||||||
# ifdef USE_IN_LIBIO
|
# ifdef USE_IN_LIBIO
|
||||||
# define PUT(F, S, N) _IO_sputn (F, S, N)
|
# define PUT(F, S, N) _IO_sputn (F, S, N)
|
||||||
|
@ -1186,7 +1186,7 @@ group_number (wchar_t *buf, wchar_t *bufend, unsigned int intdig_no,
|
|||||||
return bufend;
|
return bufend;
|
||||||
|
|
||||||
/* Move the fractional part down. */
|
/* Move the fractional part down. */
|
||||||
wmemmove (buf + intdig_no + ngroups, buf + intdig_no,
|
__wmemmove (buf + intdig_no + ngroups, buf + intdig_no,
|
||||||
bufend - (buf + intdig_no));
|
bufend - (buf + intdig_no));
|
||||||
|
|
||||||
p = buf + intdig_no + ngroups - 1;
|
p = buf + intdig_no + ngroups - 1;
|
||||||
|
@ -969,9 +969,10 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
|
|||||||
if (!left) \
|
if (!left) \
|
||||||
PAD (L' '); \
|
PAD (L' '); \
|
||||||
if (fspec == NULL) \
|
if (fspec == NULL) \
|
||||||
outchar (btowc ((unsigned char) va_arg (ap, int))); /* Promoted. */ \
|
outchar (__btowc ((unsigned char) va_arg (ap, int))); /* Promoted. */ \
|
||||||
else \
|
else \
|
||||||
outchar (btowc ((unsigned char) args_value[fspec->data_arg].pa_char));\
|
outchar (__btowc ((unsigned char) \
|
||||||
|
args_value[fspec->data_arg].pa_char)); \
|
||||||
if (left) \
|
if (left) \
|
||||||
PAD (L' '); \
|
PAD (L' '); \
|
||||||
break; \
|
break; \
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
: ((c = _IO_getwc_unlocked (s)), \
|
: ((c = _IO_getwc_unlocked (s)), \
|
||||||
(void) (c != WEOF && ++read_in), c))
|
(void) (c != WEOF && ++read_in), c))
|
||||||
|
|
||||||
# define MEMCPY(d, s, n) wmemcpy (d, s, n)
|
# define MEMCPY(d, s, n) __wmemcpy (d, s, n)
|
||||||
# define ISSPACE(Ch) iswspace (Ch)
|
# define ISSPACE(Ch) iswspace (Ch)
|
||||||
# define ISDIGIT(Ch) iswdigit (Ch)
|
# define ISDIGIT(Ch) iswdigit (Ch)
|
||||||
# define ISXDIGIT(Ch) iswxdigit (Ch)
|
# define ISXDIGIT(Ch) iswxdigit (Ch)
|
||||||
@ -696,7 +696,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
|
|||||||
{
|
{
|
||||||
size_t n;
|
size_t n;
|
||||||
|
|
||||||
n = wcrtomb (!(flags & SUPPRESS) ? str : NULL, c, &state);
|
n = __wcrtomb (!(flags & SUPPRESS) ? str : NULL, c, &state);
|
||||||
if (n == (size_t) -1)
|
if (n == (size_t) -1)
|
||||||
/* No valid wide character. */
|
/* No valid wide character. */
|
||||||
input_error ();
|
input_error ();
|
||||||
@ -883,7 +883,8 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
n = wcrtomb (!(flags & SUPPRESS) ? str : NULL, c, &state);
|
n = __wcrtomb (!(flags & SUPPRESS) ? str : NULL, c,
|
||||||
|
&state);
|
||||||
if (n == (size_t) -1)
|
if (n == (size_t) -1)
|
||||||
encode_error ();
|
encode_error ();
|
||||||
|
|
||||||
@ -939,7 +940,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
|
|||||||
/* We have to emit the code to get into the intial
|
/* We have to emit the code to get into the intial
|
||||||
state. */
|
state. */
|
||||||
char buf[MB_LEN_MAX];
|
char buf[MB_LEN_MAX];
|
||||||
size_t n = wcrtomb (buf, L'\0', &state);
|
size_t n = __wcrtomb (buf, L'\0', &state);
|
||||||
if (n > 0 && (flags & MALLOC)
|
if (n > 0 && (flags & MALLOC)
|
||||||
&& str + n >= *strptr + strsize)
|
&& str + n >= *strptr + strsize)
|
||||||
{
|
{
|
||||||
@ -2251,7 +2252,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
n = wcrtomb (!(flags & SUPPRESS) ? str : NULL, c, &state);
|
n = __wcrtomb (!(flags & SUPPRESS) ? str : NULL, c, &state);
|
||||||
if (n == (size_t) -1)
|
if (n == (size_t) -1)
|
||||||
encode_error ();
|
encode_error ();
|
||||||
|
|
||||||
@ -2324,7 +2325,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
|
|||||||
/* We have to emit the code to get into the intial
|
/* We have to emit the code to get into the intial
|
||||||
state. */
|
state. */
|
||||||
char buf[MB_LEN_MAX];
|
char buf[MB_LEN_MAX];
|
||||||
size_t n = wcrtomb (buf, L'\0', &state);
|
size_t n = __wcrtomb (buf, L'\0', &state);
|
||||||
if (n > 0 && (flags & MALLOC)
|
if (n > 0 && (flags & MALLOC)
|
||||||
&& str + n >= *strptr + strsize)
|
&& str + n >= *strptr + strsize)
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* Determine whether string value is affirmation or negative response
|
/* Determine whether string value is affirmation or negative response
|
||||||
according to current locale's data.
|
according to current locale's data.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
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
|
modify it under the terms of the GNU Library General Public License as
|
||||||
@ -39,17 +39,17 @@ rpmatch (response)
|
|||||||
if (*lastp)
|
if (*lastp)
|
||||||
{
|
{
|
||||||
/* Free the old compiled pattern. */
|
/* Free the old compiled pattern. */
|
||||||
regfree (re);
|
__regfree (re);
|
||||||
*lastp = NULL;
|
*lastp = NULL;
|
||||||
}
|
}
|
||||||
/* Compile the pattern and cache it for future runs. */
|
/* Compile the pattern and cache it for future runs. */
|
||||||
if (regcomp (re, pattern, REG_EXTENDED) != 0)
|
if (__regcomp (re, pattern, REG_EXTENDED) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
*lastp = pattern;
|
*lastp = pattern;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try the pattern. */
|
/* Try the pattern. */
|
||||||
return regexec (re, response, 0, NULL, 0) == 0 ? match : nomatch;
|
return __regexec (re, response, 0, NULL, 0) == 0 ? match : nomatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We cache the response patterns and compiled regexps here. */
|
/* We cache the response patterns and compiled regexps here. */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (c) 1998 Free Software Foundation, Inc.
|
/* Copyright (c) 1998, 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 Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
|
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ _create_xid (void)
|
|||||||
struct timeval now;
|
struct timeval now;
|
||||||
|
|
||||||
__gettimeofday (&now, (struct timezone *) 0);
|
__gettimeofday (&now, (struct timezone *) 0);
|
||||||
srand48_r (now.tv_sec ^ now.tv_usec, &__rpc_lrand48_data);
|
__srand48_r (now.tv_sec ^ now.tv_usec, &__rpc_lrand48_data);
|
||||||
is_initialized = 1;
|
is_initialized = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ getkeyserv_handle (int vers)
|
|||||||
{
|
{
|
||||||
/* if other side closed socket, build handle again */
|
/* if other side closed socket, build handle again */
|
||||||
clnt_control (kcp->client, CLGET_FD, (char *)&fd);
|
clnt_control (kcp->client, CLGET_FD, (char *)&fd);
|
||||||
if (getpeername (fd,(struct sockaddr *)&name,&namelen) == -1)
|
if (__getpeername (fd,(struct sockaddr *)&name,&namelen) == -1)
|
||||||
{
|
{
|
||||||
auth_destroy (kcp->client->cl_auth);
|
auth_destroy (kcp->client->cl_auth);
|
||||||
clnt_destroy (kcp->client);
|
clnt_destroy (kcp->client);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,1995,1996,1997,1998,2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -39,5 +39,5 @@ setrlimit64 (resource, rlimits)
|
|||||||
else
|
else
|
||||||
rlimits32.rlim_max = rlimits->rlim_max;
|
rlimits32.rlim_max = rlimits->rlim_max;
|
||||||
|
|
||||||
return setrlimit (resource, &rlimits32);
|
return __setrlimit (resource, &rlimits32);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1998, 1999, 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>
|
Contributed by Ulrich Drepper <drepper@cygnus.com>
|
||||||
and Paul Janzen <pcj@primenet.com>, 1996.
|
and Paul Janzen <pcj@primenet.com>, 1996.
|
||||||
@ -133,7 +133,7 @@ setutent_file (void)
|
|||||||
result = __fcntl (file_fd, F_SETFD, result | FD_CLOEXEC);
|
result = __fcntl (file_fd, F_SETFD, result | FD_CLOEXEC);
|
||||||
if (result == -1)
|
if (result == -1)
|
||||||
{
|
{
|
||||||
close (file_fd);
|
__close (file_fd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1996, 1997, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -43,7 +43,7 @@ vlimit (resource, value)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
lims.rlim_cur = value;
|
lims.rlim_cur = value;
|
||||||
return setrlimit (rlimit_res, &lims);
|
return __setrlimit (rlimit_res, &lims);
|
||||||
}
|
}
|
||||||
|
|
||||||
__set_errno (EINVAL);
|
__set_errno (EINVAL);
|
||||||
|
@ -61,7 +61,7 @@ posix_fallocate (int fd, __off_t offset, size_t len)
|
|||||||
{
|
{
|
||||||
len -= step;
|
len -= step;
|
||||||
|
|
||||||
if (pwrite (fd, "", 1, offset) != 1)
|
if (__pwrite (fd, "", 1, offset) != 1)
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
offset += step;
|
offset += step;
|
||||||
|
@ -61,7 +61,7 @@ posix_fallocate64 (int fd, __off64_t offset, size_t len)
|
|||||||
{
|
{
|
||||||
len -= step;
|
len -= step;
|
||||||
|
|
||||||
if (pwrite64 (fd, "", 1, offset) != 1)
|
if (__pwrite64 (fd, "", 1, offset) != 1)
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
offset += step;
|
offset += step;
|
||||||
|
@ -35,7 +35,7 @@ __sigpause (sig_or_mask, is_sig)
|
|||||||
/* The modern X/Open implementation is requested. */
|
/* The modern X/Open implementation is requested. */
|
||||||
if (__sigprocmask (0, NULL, &set) < 0
|
if (__sigprocmask (0, NULL, &set) < 0
|
||||||
/* Yes, we call `sigdelset' and not `__sigdelset'. */
|
/* Yes, we call `sigdelset' and not `__sigdelset'. */
|
||||||
|| sigdelset (&set, sig_or_mask) < 0)
|
|| __sigdelset (&set, sig_or_mask) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -40,7 +40,7 @@ sigset (sig, disp)
|
|||||||
return SIG_ERR;
|
return SIG_ERR;
|
||||||
|
|
||||||
/* Add the specified signal. */
|
/* Add the specified signal. */
|
||||||
if (sigaddset (&set, sig) < 0)
|
if (__sigaddset (&set, sig) < 0)
|
||||||
return SIG_ERR;
|
return SIG_ERR;
|
||||||
|
|
||||||
/* Add the signal set to the current signal mask. */
|
/* Add the signal set to the current signal mask. */
|
||||||
@ -70,7 +70,7 @@ sigset (sig, disp)
|
|||||||
return SIG_ERR;
|
return SIG_ERR;
|
||||||
|
|
||||||
/* Add the specified signal. */
|
/* Add the specified signal. */
|
||||||
if (sigaddset (&set, sig) < 0)
|
if (__sigaddset (&set, sig) < 0)
|
||||||
return SIG_ERR;
|
return SIG_ERR;
|
||||||
|
|
||||||
/* Remove the signal set from the current signal mask. */
|
/* Remove the signal set from the current signal mask. */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1997, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1997, 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -36,7 +36,7 @@ ualarm (value, interval)
|
|||||||
timer.it_interval.tv_sec = 0;
|
timer.it_interval.tv_sec = 0;
|
||||||
timer.it_interval.tv_usec = interval;
|
timer.it_interval.tv_usec = interval;
|
||||||
|
|
||||||
if (setitimer (ITIMER_REAL, &timer, &otimer) < 0)
|
if (__setitimer (ITIMER_REAL, &timer, &otimer) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return (otimer.it_value.tv_sec * 1000000) + otimer.it_value.tv_usec;
|
return (otimer.it_value.tv_sec * 1000000) + otimer.it_value.tv_usec;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1998, 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 Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
|
Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ pts_name (int fd, char **pts, size_t buf_len)
|
|||||||
|
|
||||||
if (buf_len)
|
if (buf_len)
|
||||||
{
|
{
|
||||||
rv = ptsname_r (fd, buf, buf_len);
|
rv = __ptsname_r (fd, buf, buf_len);
|
||||||
|
|
||||||
if (rv != 0 || memchr (buf, '\0', buf_len))
|
if (rv != 0 || memchr (buf, '\0', buf_len))
|
||||||
/* We either got an error, or we succeeded and the
|
/* We either got an error, or we succeeded and the
|
||||||
@ -126,7 +126,7 @@ grantpt (int fd)
|
|||||||
Try a moderate value. */
|
Try a moderate value. */
|
||||||
grbuflen = 1024;
|
grbuflen = 1024;
|
||||||
grtmpbuf = (char *) __alloca (grbuflen);
|
grtmpbuf = (char *) __alloca (grbuflen);
|
||||||
getgrnam_r (TTY_GROUP, &grbuf, grtmpbuf, grbuflen, &p);
|
__getgrnam_r (TTY_GROUP, &grbuf, grtmpbuf, grbuflen, &p);
|
||||||
gid = p ? p->gr_gid : __getgid ();
|
gid = p ? p->gr_gid : __getgid ();
|
||||||
|
|
||||||
/* Make sure the group of the device is that special group. */
|
/* Make sure the group of the device is that special group. */
|
||||||
@ -157,7 +157,7 @@ grantpt (int fd)
|
|||||||
{
|
{
|
||||||
/* Disable core dumps. */
|
/* Disable core dumps. */
|
||||||
struct rlimit rl = { 0, 0 };
|
struct rlimit rl = { 0, 0 };
|
||||||
setrlimit (RLIMIT_CORE, &rl);
|
__setrlimit (RLIMIT_CORE, &rl);
|
||||||
|
|
||||||
/* We pase the master pseudo terminal as file descriptor PTY_FILENO. */
|
/* We pase the master pseudo terminal as file descriptor PTY_FILENO. */
|
||||||
if (fd != PTY_FILENO)
|
if (fd != PTY_FILENO)
|
||||||
|
@ -37,7 +37,7 @@ _dl_get_origin (void)
|
|||||||
char linkval[PATH_MAX];
|
char linkval[PATH_MAX];
|
||||||
char *result;
|
char *result;
|
||||||
|
|
||||||
if (readlink ("/proc/self/exe", linkval, PATH_MAX) != -1
|
if (__readlink ("/proc/self/exe", linkval, PATH_MAX) != -1
|
||||||
&& linkval[0] != '[')
|
&& linkval[0] != '[')
|
||||||
{
|
{
|
||||||
/* We can use this value. */
|
/* We can use this value. */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Get system load averages. Linux (/proc/loadavg) version.
|
/* Get system load averages. Linux (/proc/loadavg) version.
|
||||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -42,7 +42,7 @@ getloadavg (double loadavg[], int nelem)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
nread = __read (fd, buf, sizeof buf - 1);
|
nread = __read (fd, buf, sizeof buf - 1);
|
||||||
close (fd);
|
__close (fd);
|
||||||
if (nread < 0)
|
if (nread < 0)
|
||||||
return -1;
|
return -1;
|
||||||
buf[nread - 1] = '\0';
|
buf[nread - 1] = '\0';
|
||||||
|
@ -47,14 +47,14 @@ getttyname (const char *dev, dev_t mydev, ino_t myino, int save, int *dostat)
|
|||||||
struct dirent *d;
|
struct dirent *d;
|
||||||
size_t devlen = strlen (dev) + 1;
|
size_t devlen = strlen (dev) + 1;
|
||||||
|
|
||||||
dirstream = opendir (dev);
|
dirstream = __opendir (dev);
|
||||||
if (dirstream == NULL)
|
if (dirstream == NULL)
|
||||||
{
|
{
|
||||||
*dostat = -1;
|
*dostat = -1;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((d = readdir (dirstream)) != NULL)
|
while ((d = __readdir (dirstream)) != NULL)
|
||||||
if (((ino_t) d->d_fileno == myino || *dostat)
|
if (((ino_t) d->d_fileno == myino || *dostat)
|
||||||
&& strcmp (d->d_name, "stdin")
|
&& strcmp (d->d_name, "stdin")
|
||||||
&& strcmp (d->d_name, "stdout")
|
&& strcmp (d->d_name, "stdout")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 92, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,92,94,95,96,97,98,2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -58,7 +58,7 @@ __ulimit (int cmd, ...)
|
|||||||
limit.rlim_cur = newlimit * 512;
|
limit.rlim_cur = newlimit * 512;
|
||||||
limit.rlim_max = newlimit * 512;
|
limit.rlim_max = newlimit * 512;
|
||||||
|
|
||||||
result = setrlimit (RLIMIT_FSIZE, &limit);
|
result = __setrlimit (RLIMIT_FSIZE, &limit);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -92,8 +92,8 @@ extern char *tzname[];
|
|||||||
# define L_(Str) L##Str
|
# define L_(Str) L##Str
|
||||||
# define NLW(Sym) _NL_W##Sym
|
# define NLW(Sym) _NL_W##Sym
|
||||||
|
|
||||||
# define MEMCPY(d, s, n) wmemcpy (d, s, n)
|
# define MEMCPY(d, s, n) __wmemcpy (d, s, n)
|
||||||
# define STRLEN(s) wcslen (s)
|
# define STRLEN(s) __wcslen (s)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# define CHAR_T char
|
# define CHAR_T char
|
||||||
@ -834,7 +834,7 @@ my_strftime (s, maxsize, format, tp ut_argument)
|
|||||||
if (era)
|
if (era)
|
||||||
{
|
{
|
||||||
# ifdef COMPILE_WIDE
|
# ifdef COMPILE_WIDE
|
||||||
size_t len = wcslen (era->era_wname);
|
size_t len = __wcslen (era->era_wname);
|
||||||
cpy (len, era->era_wname);
|
cpy (len, era->era_wname);
|
||||||
# else
|
# else
|
||||||
size_t len = strlen (era->era_name);
|
size_t len = strlen (era->era_name);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1999, 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.
|
||||||
|
|
||||||
@ -27,7 +27,7 @@
|
|||||||
# define STRCOLL wcscoll
|
# define STRCOLL wcscoll
|
||||||
#endif
|
#endif
|
||||||
#define STRCMP wcscmp
|
#define STRCMP wcscmp
|
||||||
#define STRLEN wcslen
|
#define STRLEN __wcslen
|
||||||
#define WEIGHT_H "../locale/weightwc.h"
|
#define WEIGHT_H "../locale/weightwc.h"
|
||||||
#define SUFFIX WC
|
#define SUFFIX WC
|
||||||
#define L(arg) L##arg
|
#define L(arg) L##arg
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1998, 1999, 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.
|
||||||
|
|
||||||
@ -27,7 +27,7 @@
|
|||||||
# define STRXFRM wcsxfrm
|
# define STRXFRM wcsxfrm
|
||||||
#endif
|
#endif
|
||||||
#define STRCMP wcscmp
|
#define STRCMP wcscmp
|
||||||
#define STRLEN wcslen
|
#define STRLEN __wcslen
|
||||||
#define STPNCPY __wcpncpy
|
#define STPNCPY __wcpncpy
|
||||||
#define WEIGHT_H "../locale/weightwc.h"
|
#define WEIGHT_H "../locale/weightwc.h"
|
||||||
#define SUFFIX WC
|
#define SUFFIX WC
|
||||||
|
Loading…
Reference in New Issue
Block a user