diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-12 00:00:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-12 00:00:01 +0000 |
commit | 18fd611b537f1be6757c7872c682dc0e03220ed3 (patch) | |
tree | 417212e4eaaf75c15c3517c62199fc990eba89df | |
parent | 390955cbdeb674bead490fc3f74a8a0893ea83cf (diff) | |
download | glibc-18fd611b537f1be6757c7872c682dc0e03220ed3.tar glibc-18fd611b537f1be6757c7872c682dc0e03220ed3.tar.gz glibc-18fd611b537f1be6757c7872c682dc0e03220ed3.tar.bz2 glibc-18fd611b537f1be6757c7872c682dc0e03220ed3.zip |
Update.
* sysdeps/posix/tempname.c: Open files with mode 0600.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | manual/ctype.texi | 36 | ||||
-rw-r--r-- | sysdeps/posix/tempname.c | 6 |
3 files changed, 30 insertions, 14 deletions
@@ -1,5 +1,7 @@ 1999-01-11 Ulrich Drepper <drepper@cygnus.com> + * sysdeps/posix/tempname.c: Open files with mode 0600. + * ctype/Versions [GLIBC_2.0]: Export __ctype32_b. * include/wctype.h: Declare __iswctype. * stdio-common/vfscanf.c (__vfscanf): Use __iswspace instead of diff --git a/manual/ctype.texi b/manual/ctype.texi index de90acbe67..7f74c51386 100644 --- a/manual/ctype.texi +++ b/manual/ctype.texi @@ -362,7 +362,7 @@ iswctype (wc, wctype ("alnum")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex alphabetic character @@ -386,7 +386,7 @@ iswctype (wc, wctype ("alpha")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex control character @@ -404,7 +404,7 @@ iswctype (wc, wctype ("cntrl")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex digit character @@ -434,7 +434,7 @@ iswctype (wc, wctype ("digit")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex graphic character @@ -453,7 +453,7 @@ iswctype (wc, wctype ("graph")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex lower-case character @@ -471,7 +471,7 @@ iswctype (wc, wctype ("lower")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex printing character @@ -489,7 +489,7 @@ iswctype (wc, wctype ("print")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex punctuation character @@ -508,7 +508,7 @@ iswctype (wc, wctype ("punct")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex whitespace character @@ -547,7 +547,7 @@ iswctype (wc, wctype ("space")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex upper-case character @@ -565,7 +565,7 @@ iswctype (wc, wctype ("upper")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun @cindex hexadecimal digit character @@ -585,7 +585,7 @@ iswctype (wc, wctype ("xdigit")) @end smallexample @pindex wctype.h -This function is declared in @file{wctype.h}. +It is declared in @file{wctype.h}. @end deftypefun The GNu C library provides also a function which is not defined in the @@ -734,6 +734,13 @@ If @var{wc} is an upper-case letter, @code{towlower} returns the corresponding lower-case letter. If @var{wc} is not an upper-case letter, @var{wc} is returned unchanged. +@noindent +@code{towlower} can be implemented using + +@smallexample +towctrans (wc, wctrans ("tolower")) +@end smallexample + @pindex wctype.h @noindent This function is declared in @file{wctype.h}. @@ -745,6 +752,13 @@ This function is declared in @file{wctype.h}. If @var{wc} is a lower-case letter, @code{towupper} returns the corresponding upper-case letter. Otherwise @var{wc} is returned unchanged. +@noindent +@code{towupper} can be implemented using + +@smallexample +towctrans (wc, wctrans ("toupper")) +@end smallexample + @pindex wctype.h @noindent This function is declared in @file{wctype.h}. diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c index ed6db1a135..7689bb01e3 100644 --- a/sysdeps/posix/tempname.c +++ b/sysdeps/posix/tempname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,93,94,95,96,97,98,99 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 @@ -155,8 +155,8 @@ __gen_tempname (char *tmpl, int openit, int largefile) if (openit) { fd = (largefile - ? __open (tmpl, O_RDWR | O_CREAT | O_EXCL, 0666) - : __open64 (tmpl, O_RDWR | O_CREAT | O_EXCL, 0666)); + ? __open (tmpl, O_RDWR | O_CREAT | O_EXCL, 0600) + : __open64 (tmpl, O_RDWR | O_CREAT | O_EXCL, 0600)); if (fd >= 0) { __set_errno (save_errno); |