From b47516084bfba8471da0bdb58641c0d27e6e48b5 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 29 Mar 1999 02:31:34 +0000 Subject: Updated. 1999-03-27 Andreas Jaeger * malloc/obstack.h (obstack_free): Explicitly convert __obj to char * to avoid C++ warning. Patch by yasushi@cs.washington.edu [PR libc/1035]. 1999-03-29 Andreas Jaeger * manual/filesys.texi (Temporary Files): mktemp and mkstemp are declared in stdlib.h, correct return value of mkstemp. Reported by Andries Brouwer . * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHDRD_FC*): New defines from Linux 2.2.5. * misc/regexp.h (compile): Cast some pointers to (char *) to avoid C++ warning. --- manual/filesys.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'manual') diff --git a/manual/filesys.texi b/manual/filesys.texi index b00ca66c92..d823674d47 100644 --- a/manual/filesys.texi +++ b/manual/filesys.texi @@ -2852,7 +2852,7 @@ String constants are normally in read-only storage, so your program would crash when @code{mktemp} or @code{mkstemp} tried to modify the string. -@comment unistd.h +@comment stdlib.h @comment Unix @deftypefun {char *} mktemp (char *@var{template}) The @code{mktemp} function generates a unique file name by modifying @@ -2870,7 +2870,7 @@ the file in any case should use the @code{O_EXCL} flag. Using @code{mkstemp} is a safe way to avoid this problem. @end deftypefun -@comment unistd.h +@comment stdlib.h @comment BSD @deftypefun int mkstemp (char *@var{template}) The @code{mkstemp} function generates a unique file name just as @@ -2878,9 +2878,9 @@ The @code{mkstemp} function generates a unique file name just as (@pxref{Opening and Closing Files}). If successful, it modifies @var{template} in place and returns a file descriptor open on that file for reading and writing. If @code{mkstemp} cannot create a -uniquely-named file, it makes @var{template} an empty string and returns -@code{-1}. If @var{template} does not end with @samp{XXXXXX}, -@code{mkstemp} returns @code{-1} and does not modify @var{template}. +uniquely-named file, it returns @code{-1}. If @var{template} does not +end with @samp{XXXXXX}, @code{mkstemp} returns @code{-1} and does not +modify @var{template}. The file is opened using mode @code{0600}. If the file is meant to be used by other users the mode must explicitly changed. -- cgit v1.2.3