# HG changeset patch # User jwe # Date 1106079473 0 # Node ID 1e36493572a0eaa432c0314d7670f91d9343f483 # Parent 10004c9625c379f87c647a9f0a6efd78da7eb7a4 [project @ 2005-01-18 20:17:53 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-01-18 John W. Eaton + + * file-io.cc (Fmkstemp): Fix doc string. Error message belongs in + third output value. From Mats Jansson . + 2005-01-12 John W. Eaton * DLD-FUNCTIONS/find.cc (Ffind): Make it work for character strings. diff --git a/src/file-io.cc b/src/file-io.cc --- a/src/file-io.cc +++ b/src/file-io.cc @@ -1797,7 +1797,7 @@ DEFUN (mkstemp, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {[@var{fid}, @var{name}, @var{msg}] =} tmpfile (@var{template}, @var{delete})\n\ +@deftypefn {Built-in Function} {[@var{fid}, @var{name}, @var{msg}] =} mkstemp (@var{template}, @var{delete})\n\ Return the file ID corresponding to a new temporary file with a unique\n\ name created from @var{template}. The last six characters of @var{template}\n\ must be @code{XXXXXX} and these are replaced with a string that makes the\n\ @@ -1841,7 +1841,7 @@ if (fd < 0) { using namespace std; - retval(1) = ::strerror (errno); + retval(2) = ::strerror (errno); retval(0) = fd; } else @@ -1872,7 +1872,7 @@ else { using namespace std; - retval(1) = ::strerror (errno); + retval(2) = ::strerror (errno); retval(0) = -1; } }