1999-01-07  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/i386/bits/select.h (__FD_ZERO): Remove early clobbers
	from c and D register output.

1999-01-07  Philip Blundell  <philb@gnu.org>

	* sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Fix bug in last change.

1999-01-07  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/alpha/bits/types.h: Correct type for
	__fsfilcnt_t.  Patch by Bruce Elliott <bde@nwlink.com>.

1999-01-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* manual/conf.texi: Remove pointers from first @node.  Move old
	@node spec inside comment.
	* manual/lang.texi: Likewise.
	* manual/libc-texinfo.sh: Also find `@node.*Top' in a comment.
	* manual/stdio.texi: Fix typo.

1999-01-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* wcsmbs/btowc.c: Accept all values in the range [SCHAR_MIN
	.. UCHAR_MAX].  Local var buf renamed to result and its type
	changed from char[] to wchar_t to get proper alignment.

	* posix/fnmatch.c: Also cast the arguments of the other ctype
	functions to unsigned char.

1999-01-07  Ulrich Drepper  <drepper@cygnus.com>

	* Rules: Add rules for empty.{o,os,op} back.
This commit is contained in:
Ulrich Drepper 1999-01-07 09:55:57 +00:00
parent 1686c45233
commit 3499233817
14 changed files with 88 additions and 36 deletions

View File

@ -1,3 +1,38 @@
1999-01-07 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/i386/bits/select.h (__FD_ZERO): Remove early clobbers
from c and D register output.
1999-01-07 Philip Blundell <philb@gnu.org>
* sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Fix bug in last change.
1999-01-07 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/alpha/bits/types.h: Correct type for
__fsfilcnt_t. Patch by Bruce Elliott <bde@nwlink.com>.
1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* manual/conf.texi: Remove pointers from first @node. Move old
@node spec inside comment.
* manual/lang.texi: Likewise.
* manual/libc-texinfo.sh: Also find `@node.*Top' in a comment.
* manual/stdio.texi: Fix typo.
1999-01-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* wcsmbs/btowc.c: Accept all values in the range [SCHAR_MIN
.. UCHAR_MAX]. Local var buf renamed to result and its type
changed from char[] to wchar_t to get proper alignment.
* posix/fnmatch.c: Also cast the arguments of the other ctype
functions to unsigned char.
1999-01-07 Ulrich Drepper <drepper@cygnus.com>
* Rules: Add rules for empty.{o,os,op} back.
1999-01-05 Ulrich Drepper <drepper@cygnus.com> 1999-01-05 Ulrich Drepper <drepper@cygnus.com>
* Makerules (common-mostlyclean): Add missing parentheses. * Makerules (common-mostlyclean): Add missing parentheses.

7
Rules
View File

@ -172,6 +172,13 @@ before-compile: $(before-compile)
$(common-objpfx)dummy.o: $(common-objpfx)dummy.c $(before-compile); $(common-objpfx)dummy.o: $(common-objpfx)dummy.c $(before-compile);
$(compile-command.c) $(compile-command.c)
define o-iterator-doit
$(common-objpfx)empty$o: $(common-objpfx)empty.c $(before-compile);
$$(compile-command.c)
endef
object-suffixes-left := $(object-suffixes)
include $(o-iterator)
# There's no good place to put this - here will do. # There's no good place to put this - here will do.
# The dependencies are wrong if it's run from the top level. # The dependencies are wrong if it's run from the top level.
ifeq ($(filter %posix, $(sysdirs)),) ifeq ($(filter %posix, $(sysdirs)),)

View File

@ -1,3 +1,8 @@
1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* linuxthreads.texi: Remove pointers from first @node. Move old
@node spec inside comment.
1998-12-31 Ulrich Drepper <drepper@cygnus.com> 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and

View File

@ -1,4 +1,5 @@
@node POSIX Threads, , Top, Top @node POSIX Threads
@c @node POSIX Threads, , Top, Top
@chapter POSIX Threads @chapter POSIX Threads
@c %MENU% The standard threads library @c %MENU% The standard threads library

View File

@ -1,5 +1,6 @@
@c This node must have no next pointer. @c This node must have no pointers.
@node System Configuration, , System Information, Top @node System Configuration
@c @node System Configuration, , System Information, Top
@c %MENU% Parameters describing operating system limits @c %MENU% Parameters describing operating system limits
@chapter System Configuration Parameters @chapter System Configuration Parameters

View File

@ -1,5 +1,6 @@
@c This node must not have a prev pointer. @c This node must have no pointers.
@node Language Features, Library Summary, , Top @node Language Features
@c @node Language Features, Library Summary, , Top
@c %MENU% C language features provided by the library @c %MENU% C language features provided by the library
@appendix C Language Facilities in the Library @appendix C Language Facilities in the Library

View File

@ -19,8 +19,8 @@ build_menu () {
} }
collect_nodes () { collect_nodes () {
grep '^@node.*Top' "$@" /dev/null | cut -d, -f-2 | egrep '^(@c )?@node.*Top' "$@" /dev/null | cut -d, -f-2 |
sed 's/, /:/; s/:@node /:/; s/ /_/g; s/:/ /g' | sed 's/@c //; s/, /:/; s/:@node /:/; s/ /_/g; s/:/ /g' |
$AWK '{ file[$2] = $1; nnode[$2] = $3 } $AWK '{ file[$2] = $1; nnode[$2] = $3 }
END { for (x in file) END { for (x in file)
if (file[x] != "") if (file[x] != "")
@ -34,8 +34,8 @@ if [ -n "$2" ]; then
{ echo; echo 'Add-ons'; echo; } >&4 { echo; echo 'Add-ons'; echo; } >&4
grep '^@node.*Top' `echo $2 /dev/null | tr ' ' '\n' | sort` | egrep '^(@c )?@node.*Top' `echo $2 /dev/null | tr ' ' '\n' | sort` |
cut -d, -f1 | sed 's/@node //' | build_menu cut -d, -f1 | sed 's/@c //;s/@node //' | build_menu
fi fi

View File

@ -1,5 +1,5 @@
@node I/O on Streams, Low-Level I/O, I/O Overview, Top @node I/O on Streams, Low-Level I/O, I/O Overview, Top
@c %MENU% Hign-level, portable I/O facilities @c %MENU% High-level, portable I/O facilities
@chapter Input/Output on Streams @chapter Input/Output on Streams
@c fix an overfull: @c fix an overfull:
@tex @tex

View File

@ -66,6 +66,7 @@ users.texi \
db.c.texi \ db.c.texi \
sysinfo.texi \ sysinfo.texi \
conf.texi \ conf.texi \
../crypt/crypt.texi \
../linuxthreads/linuxthreads.texi \ ../linuxthreads/linuxthreads.texi \
lang.texi \ lang.texi \
add.c.texi \ add.c.texi \

View File

@ -239,7 +239,7 @@ fnmatch (pattern, string, flags)
c = *p++; c = *p++;
for (;;) for (;;)
{ {
unsigned int fn = FOLD (*n); unsigned char fn = FOLD ((unsigned char) *n);
if (!(flags & FNM_NOESCAPE) && c == '\\') if (!(flags & FNM_NOESCAPE) && c == '\\')
{ {
@ -283,21 +283,21 @@ fnmatch (pattern, string, flags)
/* Invalid character class name. */ /* Invalid character class name. */
return FNM_NOMATCH; return FNM_NOMATCH;
if (__iswctype (__btowc (*n), wt)) if (__iswctype (__btowc ((unsigned char) *n), wt))
goto matched; goto matched;
# else # else
if ((STREQ (str, "alnum") && ISALNUM (*n)) if ((STREQ (str, "alnum") && ISALNUM ((unsigned char) *n))
|| (STREQ (str, "alpha") && ISALPHA (*n)) || (STREQ (str, "alpha") && ISALPHA ((unsigned char) *n))
|| (STREQ (str, "blank") && ISBLANK (*n)) || (STREQ (str, "blank") && ISBLANK ((unsigned char) *n))
|| (STREQ (str, "cntrl") && ISCNTRL (*n)) || (STREQ (str, "cntrl") && ISCNTRL ((unsigned char) *n))
|| (STREQ (str, "digit") && ISDIGIT (*n)) || (STREQ (str, "digit") && ISDIGIT ((unsigned char) *n))
|| (STREQ (str, "graph") && ISGRAPH (*n)) || (STREQ (str, "graph") && ISGRAPH ((unsigned char) *n))
|| (STREQ (str, "lower") && ISLOWER (*n)) || (STREQ (str, "lower") && ISLOWER ((unsigned char) *n))
|| (STREQ (str, "print") && ISPRINT (*n)) || (STREQ (str, "print") && ISPRINT ((unsigned char) *n))
|| (STREQ (str, "punct") && ISPUNCT (*n)) || (STREQ (str, "punct") && ISPUNCT ((unsigned char) *n))
|| (STREQ (str, "space") && ISSPACE (*n)) || (STREQ (str, "space") && ISSPACE ((unsigned char) *n))
|| (STREQ (str, "upper") && ISUPPER (*n)) || (STREQ (str, "upper") && ISUPPER ((unsigned char) *n))
|| (STREQ (str, "xdigit") && ISXDIGIT (*n))) || (STREQ (str, "xdigit") && ISXDIGIT ((unsigned char) *n)))
goto matched; goto matched;
# endif # endif
} }

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. /* Copyright (C) 1997, 1998, 1999 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
@ -28,7 +28,7 @@
int __d0, __d1; \ int __d0, __d1; \
__asm__ __volatile__ ("cld; rep; stosl" \ __asm__ __volatile__ ("cld; rep; stosl" \
: "=m" (__FDS_BITS (fdsp)[__FDELT (__FD_SETSIZE)]), \ : "=m" (__FDS_BITS (fdsp)[__FDELT (__FD_SETSIZE)]), \
"=&c" (__d0), "=&D" (__d1) \ "=c" (__d0), "=D" (__d1) \
: "a" (0), "1" (sizeof (__fd_set) \ : "a" (0), "1" (sizeof (__fd_set) \
/ sizeof (__fd_mask)), \ / sizeof (__fd_mask)), \
"2" (&__FDS_BITS (fdsp)[0]) \ "2" (&__FDS_BITS (fdsp)[0]) \

View File

@ -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,99 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
@ -63,7 +63,7 @@ typedef __int32_t __blkcnt_t; /* Type to count nr disk blocks. */
typedef __int64_t __blkcnt64_t; /* "" (LFS) */ typedef __int64_t __blkcnt64_t; /* "" (LFS) */
typedef __uint32_t __fsblkcnt_t; /* Type to count file system blocks. */ typedef __uint32_t __fsblkcnt_t; /* Type to count file system blocks. */
typedef __uint64_t __fsblkcnt64_t; /* "" (LFS) */ typedef __uint64_t __fsblkcnt64_t; /* "" (LFS) */
typedef __uint64_t __fsfilcnt_t; /* Type to count file system inodes. */ typedef __uint32_t __fsfilcnt_t; /* Type to count file system inodes. */
typedef __uint64_t __fsfilcnt64_t; /* "" (LFS) */ typedef __uint64_t __fsfilcnt64_t; /* "" (LFS) */
typedef __uint32_t __id_t; /* General type for IDs. */ typedef __uint32_t __id_t; /* General type for IDs. */

View File

@ -17,7 +17,7 @@
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. */
#define SIGCONTEXT int signal, int _a2, int _a3, int _a4, union k_sigcontext #define SIGCONTEXT int _a2, int _a3, int _a4, union k_sigcontext
#define GET_PC(ctx) ((void *)((ctx.v20.magic == SIGCONTEXT_2_0_MAGIC) ? \ #define GET_PC(ctx) ((void *)((ctx.v20.magic == SIGCONTEXT_2_0_MAGIC) ? \
ctx.v20.reg.ARM_pc : ctx.v21.arm_pc)) ctx.v20.reg.ARM_pc : ctx.v21.arm_pc))

View File

@ -1,6 +1,6 @@
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. /* Copyright (C) 1996, 1997, 1998, 1999 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@gnu.ai.mit.edu> Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
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
@ -22,13 +22,14 @@
#include <string.h> #include <string.h>
#include <wchar.h> #include <wchar.h>
#include <wcsmbsload.h> #include <wcsmbsload.h>
#include <limits.h>
wint_t wint_t
__btowc (c) __btowc (c)
int c; int c;
{ {
char buf[sizeof (wchar_t)]; wchar_t result;
struct gconv_step_data data; struct gconv_step_data data;
char inbuf[1]; char inbuf[1];
const char *inptr = inbuf; const char *inptr = inbuf;
@ -37,11 +38,11 @@ __btowc (c)
/* If the parameter does not fit into one byte or it is the EOF value /* If the parameter does not fit into one byte or it is the EOF value
we can give the answer now. */ we can give the answer now. */
if (c < -128 || c > 127 || c == EOF) if (c < SCHAR_MIN || c > UCHAR_MAX || c == EOF)
return WEOF; return WEOF;
/* Tell where we want the result. */ /* Tell where we want the result. */
data.outbuf = (char *) buf; data.outbuf = (char *) &result;
data.outbufend = data.outbuf + sizeof (wchar_t); data.outbufend = data.outbuf + sizeof (wchar_t);
data.invocation_counter = 0; data.invocation_counter = 0;
data.internal_use = 1; data.internal_use = 1;
@ -62,8 +63,8 @@ __btowc (c)
/* The conversion failed. */ /* The conversion failed. */
if (status != GCONV_OK && status != GCONV_FULL_OUTPUT if (status != GCONV_OK && status != GCONV_FULL_OUTPUT
&& status != GCONV_EMPTY_INPUT) && status != GCONV_EMPTY_INPUT)
return WEOF; result = WEOF;
return *(wchar_t *)buf; return result;
} }
weak_alias (__btowc, btowc) weak_alias (__btowc, btowc)