From e918a7feebf850a139d894db559f0bd5b5fec32d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 9 Jul 1998 13:58:47 +0000 Subject: Update. 1998-07-09 13:34 Ulrich Drepper * grp/grp.h: Define gid_t also for __USE_XOPEN. * io/fcntl.h: Include also for __USE_XOPEN. * io/utime.h: Define time_t also for __USE_XOPEN. * io/sys/stat.h: Define time_t also for __USE_XOPEN. Define *_t types except for pid_t also for __USE_XOPEN. Define S_* macros also for __USE_XOPEN. * locale/langinfo.h: Define CODESET, CRNCYSTR, RADIXCHAR, and THOUSEP also for __USE_XOPEN. * math/math.c: Define M_* macros also for __USE_XOPEN. * math/bits/mathcalls.h: Declare hypot also for __USE_XOPEN. * posix/fnmatch.h: Define FNM_NOSYS and for if _XOPEN_SOURCE is defined. * posix/glob.h: Likewise for GLOB_NOSYS. * posix/regex.h: Likewise for REG_NOSYS. * posix/wordexp.h: Likewise for WRDE_NOSYS. * posix/unistd.h: Define *_t types also for __USE_XOPEN. * posix/sys/wait.h: Define pid_t for __USE_XOPEN. * pwd/pwd.h: Define gid_t and pid_t also for __USE_XOPEN. * signal/signal.h: Define pid_t also fir __USE_XOPEN. * sysdeps/unix/sysv/linux/bits/fcntl.h: Define _RSYNC and O_DSYNC also for __USE_POSIX199309. * sysdeps/unix/sysv/linux/bits/termios.h: Define the various B* constants also for __USE_XOPEN. * wcsmbs/wchar.h: For XPG4 include wctype.h. * intl/dcgettext.c (find_msg): Initialize act to prevent warning. * locale/setlocale.c (new_composite_name): Likewise for last_len. * libio/stdio.h: Don't declare fclose_unlocked. * sysdeps/posix/fpathconf.c: Handle _PC_FILESIZEBITS. 1998-07-08 Mark Kettenis * stdio/stdio.h: Add prototypes for fflush_unlocked, getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked, fgets_unlocked, fread_unlocked, fwrite_unlocked, clearerr_unlocked, feof_unlocked, ferror_unlocked, fileno_unlocked, flockfile, ftrylockfile, funlockfile. [__USE_XOPEN && !__USE_GNU] Declare optarg, optind, opterr. Add prototype for getopt. * stdio/clearerr.c (clearerr_unlocked): Weak alias for clearerr. * stdio/feof.c (feof_unlocked): Weak alias for feof. * stdio/ferror.c (ferror_unlocked): Weak alias for ferror. * stdio/fflush.c (fflush_unlocked): Weak alias for fflush. * stdio/fgets.c (fgets_unlocked): Weak alias for fgets. * stdio/fileno.c (fileno_unlocked): Weak alias for fileno. * stdio/fputc.c (fputc_unlocked): Weak alias for fputc. * stdio/fread.c (fread_unlocked): Weak alias for fread. * stdio/fwrite.c (fwrite_unlocked): Weak alias for fwrite. * stdio/getc.c (getchar_unlocked): Weak alias for getc. * stdio/getchar.c (getchar_unlocked): Weak alias for getchar. * stdio/putc.c (putc_unlocked): Weak alias for putc. * stdio/putchar.c (putchar_unlocked): Weak alias for putchar. * stdio/Versions [GLIBC_2.1]: Add clearerr_unlocked, feof_unlocked, ferror_unlocked, fflush_unlocked, fgets_unlocked, fileno_unlocked, fputc_unlocked, fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked, putc_unlocked and putchar_unlocked. * libio/Versions: Move flockfile, ftrylockfile and funlockfile from here ... * stdio-common/Versions: ... to here. 1998-07-09 Andreas Jaeger * Makerules (versioning): Correct typo. --- locale/langinfo.h | 10 +++++----- locale/setlocale.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'locale') diff --git a/locale/langinfo.h b/locale/langinfo.h index 10e8dd249e..31fae92fe2 100644 --- a/locale/langinfo.h +++ b/locale/langinfo.h @@ -1,5 +1,5 @@ /* Access to locale-dependent parameters. - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -207,7 +207,7 @@ enum _NL_CTYPE_WIDTH, _NL_CTYPE_MB_CUR_MAX, _NL_CTYPE_CODESET_NAME, -#ifdef __USE_UNIX98 +#ifdef __USE_XOPEN CODESET = _NL_CTYPE_CODESET_NAME, #endif _NL_NUM_LC_CTYPE, @@ -219,7 +219,7 @@ enum #define INT_CURR_SYMBOL INT_CURR_SYMBOL CURRENCY_SYMBOL, #define CURRENCY_SYMBOL CURRENCY_SYMBOL -#ifdef __USE_UNIX98 +#ifdef __USE_XOPEN CRNCYSTR = CURRENCY_SYMBOL, # define CRNCYSTR CRNCYSTR #endif @@ -255,13 +255,13 @@ enum These also correspond to members of `struct lconv'; see . */ DECIMAL_POINT = _NL_ITEM (LC_NUMERIC, 0), #define DECIMAL_POINT DECIMAL_POINT -#ifdef __USE_UNIX98 +#ifdef __USE_XOPEN RADIXCHAR = DECIMAL_POINT, # define RADIXCHAR RADIXCHAR #endif THOUSANDS_SEP, #define THOUSANDS_SEP THOUSANDS_SEP -#ifdef __USE_UNIX98 +#ifdef __USE_XOPEN THOUSEP = THOUSANDS_SEP, #define THOUSANDS_SEP THOUSANDS_SEP #endif diff --git a/locale/setlocale.c b/locale/setlocale.c index 54ca416887..cde5b6a4fc 100644 --- a/locale/setlocale.c +++ b/locale/setlocale.c @@ -133,7 +133,7 @@ __libc_lock_define_initialized (, __libc_setlocale_lock) static inline char * new_composite_name (int category, const char *newnames[LC_ALL]) { - size_t last_len; + size_t last_len = 0; size_t cumlen = 0; int i; char *new, *p; -- cgit v1.2.3