changeset 2938:2e1757f57ce6

[project @ 1997-05-06 06:03:49 by jwe]
author jwe
date Tue, 06 May 1997 06:04:57 +0000
parents 9d26524e2869
children f2feebf0eb7d
files NEWS liboctave/ChangeLog liboctave/Makefile.in liboctave/oct-env.cc
diffstat 4 files changed, 22 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,12 @@
 Summary of changes since version 2.0.5:
 --------------------------------------
 
+  * tmpnam now takes two optional arguments, DIR, and PREFIX.  For
+    example, tmpnam ("/foo", "bar-") returns a file name like
+    "/foo/bar-10773baa".  If DIR is omitted or empty, the value of the
+    environment variable TMPDIR, or /tmp is used.  If PREFIX is 
+    omitted, "oct-" is used.
+
   * The built-in variable PWD has been removed.  If you need to get
     the value of the current working directory, use the pwd() function
     instead.
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -1,3 +1,14 @@
+Tue May  6 00:52:02 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* file-ops.h, file-ops.cc (tempnam): Add DIR and PREFIX args.
+	Handle errors and missing functions consistently.
+
+	* oct-group.h, oct-group.cc: New files.
+
+	* oct-passwd.cc: Handle errors and missing functions consistently.
+
+	* str-vec.h, str-vec.cc (c_str_vec, delete_c_str_vec): New functions.
+
 Mon May  5 17:53:01 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* file-ops.cc: (file_ops::tilde_expand): Use new octave_passwd class.
--- a/liboctave/Makefile.in
+++ b/liboctave/Makefile.in
@@ -47,8 +47,8 @@
 	data-conv.h dir-ops.h file-ops.h file-stat.h getopt.h \
 	glob-match.h idx-vector.h lo-ieee.h lo-mappers.h lo-sysdep.h \
 	lo-utils.h mach-info.h oct-alloc.h oct-cmplx.h oct-env.h \
-	oct-math.h oct-group.h oct-passwd.h pathsearch.h prog-args.h \
-	statdefs.h str-vec.h sun-utils.h sysdir.h \
+	oct-math.h oct-group.h oct-passwd.h oct-syscalls.h pathsearch.h \
+	prog-args.h statdefs.h str-vec.h sun-utils.h sysdir.h \
 	$(MATRIX_INC) \
 	$(MX_OP_INC)
 
@@ -81,8 +81,9 @@
 	file-ops.cc file-stat.cc filemode.c gamma.c getopt.c getopt1.c \
 	glob-match.cc idx-vector.cc lgamma.c lo-ieee.cc lo-mappers.cc \
 	lo-sysdep.cc lo-utils.cc mach-info.cc mkdir.c oct-alloc.cc \
-	oct-env.cc oct-group.cc oct-passwd.cc pathsearch.cc \
-	prog-args.cc rename.c rmdir.c str-vec.cc tempname.c tempnam.c \
+	oct-env.cc oct-group.cc oct-passwd.cc oct-syscalls.cc \
+	pathsearch.cc prog-args.cc rename.c rmdir.c str-vec.cc \
+	tempname.c tempnam.c \
 	$(TEMPLATE_SRC) \
 	$(TI_SRC) \
 	$(MATRIX_SRC) \
--- a/liboctave/oct-env.cc
+++ b/liboctave/oct-env.cc
@@ -40,7 +40,6 @@
 #include <config.h>
 #endif
 
-#include <cerrno>
 #include <cstdlib>
 
 #ifdef HAVE_UNISTD_H