changeset 2457:5be3f6f5986a

[project @ 1996-11-03 02:54:44 by jwe]
author jwe
date Sun, 03 Nov 1996 02:55:21 +0000
parents fd838110e6ca
children d07a5d0b57e2
files configure.in src/ChangeLog src/Makefile.in src/ov-typeinfo.cc src/syscalls.cc src/time.cc
diffstat 6 files changed, 46 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in
+++ b/configure.in
@@ -20,7 +20,7 @@
 ### along with Octave; see the file COPYING.  If not, write to the Free
 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-AC_REVISION($Revision: 1.222 $)
+AC_REVISION($Revision: 1.223 $)
 AC_PREREQ(2.9)
 AC_INIT(src/octave.cc)
 AC_CONFIG_HEADER(config.h)
@@ -691,11 +691,12 @@
 
 ### Checks for functions and variables.
 
-AC_CHECK_FUNCS(atexit bcopy bzero dup2 execvp fcntl fork getcwd \
-	       gethostname getpgrp getpid getppid lstat memmove \
-	       mkdir mkfifo on_exit pipe putenv rename rindex rmdir \
-	       setvbuf sigaction sigpending sigprocmask sigsuspend \
-	       stat strcasecmp strdup strerror stricmp strncasecmp \
+AC_CHECK_FUNCS(atexit bcopy bzero dup2 endpwent execvp fcntl fork \
+	       getcwd gethostname getpgrp getpid getppid getpwent \
+	       getpwnam getpwuid lstat memmove mkdir mkfifo on_exit \
+	       pipe putenv rename rindex rmdir setpwent setvbuf \
+	       sigaction sigpending sigprocmask sigsuspend stat \
+	       strcasecmp strdup strerror stricmp strncasecmp \
 	       strnicmp tempnam umask unlink vfprintf vsprintf \
 	       waitpid)
 
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,15 @@
+Sat Nov  2 20:44:55 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from
+	SOURCES.  Add getpwent.cc.
+
+	* getrusage.cc: Rename from resource.cc.  Make getrusage a
+	loadable function.
+
+	* time.cc: Rename from timefns.cc.  Make time functions loadable.
+
+	* getpwent.cc: New file.
+
 Wed Oct 30 01:06:19 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* Version 1.90.
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -62,10 +62,10 @@
 
 DLD_SRC := balance.cc chol.cc colloc.cc dassl.cc det.cc eig.cc \
 	   expm.cc fft.cc fft2.cc filter.cc find.cc fsolve.cc \
-	   fsqp.cc givens.cc hess.cc ifft.cc ifft2.cc inv.cc log.cc \
-	   lpsolve.cc lsode.cc lu.cc minmax.cc npsol.cc pinv.cc \
-	   qpsol.cc qr.cc quad.cc qzval.cc rand.cc schur.cc sort.cc \
-	   svd.cc syl.cc
+	   fsqp.cc getpwent.cc getrusage.cc givens.cc hess.cc \
+	   ifft.cc ifft2.cc inv.cc log.cc lpsolve.cc lsode.cc \
+	   lu.cc minmax.cc npsol.cc pinv.cc qpsol.cc qr.cc quad.cc \
+	   qzval.cc rand.cc schur.cc sort.cc svd.cc syl.cc time.cc 
 
 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_SRC))
 
@@ -119,17 +119,17 @@
   endif
 endif
 
-SOURCES := data.cc defaults.cc dirfns.cc dynamic-ld.cc \
-	error.cc file-io.cc fn-cache.cc gripes.cc help.cc input.cc \
-	lex.l load-save.cc mappers.cc oct-fstrm.cc oct-hist.cc \
-	oct-iostrm.cc oct-map.cc oct-obj.cc oct-prcstrm.cc \
+SOURCES := data.cc defaults.cc dirfns.cc dynamic-ld.cc error.cc \
+	file-io.cc fn-cache.cc gripes.cc \
+	help.cc input.cc lex.l load-save.cc mappers.cc oct-fstrm.cc \
+	oct-hist.cc oct-iostrm.cc oct-map.cc oct-obj.cc oct-prcstrm.cc \
 	oct-procbuf.cc oct-stdstrm.cc oct-stream.cc oct-strstrm.cc \
-	pager.cc parse.y pr-output.cc procstream.cc \
-	pt-base.cc pt-cmd.cc pt-const.cc pt-exp-base.cc pt-exp.cc \
-	pt-fcn.cc pt-fvc-base.cc pt-fvc.cc pt-mat.cc pt-misc.cc \
-	pt-mvr-base.cc pt-mvr.cc pt-plot.cc pt-pr-code.cc resource.cc \
+	pager.cc parse.y pr-output.cc procstream.cc pt-base.cc \
+	pt-cmd.cc pt-const.cc pt-exp-base.cc pt-exp.cc pt-fcn.cc \
+	pt-fvc-base.cc pt-fvc.cc pt-mat.cc pt-misc.cc pt-mvr-base.cc \
+	pt-mvr.cc pt-plot.cc pt-pr-code.cc \
 	sighandlers.cc strcasecmp.c strncase.c strfns.cc strftime.c \
-	symtab.cc syscalls.cc sysdep.cc timefns.cc token.cc toplev.cc \
+	symtab.cc syscalls.cc sysdep.cc token.cc toplev.cc \
 	unwind-prot.cc utils.cc variables.cc xdiv.cc xpow.cc \
 	ov-base.cc ov-ch-mat.cc ov-re-mat.cc ov-cx-mat.cc ov-range.cc \
 	ov-scalar.cc ov-complex.cc ov-str-mat.cc ov-struct.cc \
--- a/src/ov-typeinfo.cc
+++ b/src/ov-typeinfo.cc
@@ -210,7 +210,7 @@
   return retval;
 }
 
-DEFUN(typeinfo, args, ,
+DEFUN (typeinfo, args, ,
   "usage: typeinfo ([typename])")
 {
   octave_value retval;
--- a/src/syscalls.cc
+++ b/src/syscalls.cc
@@ -85,7 +85,7 @@
   return m;
 }
 
-DEFUN(dup2, args, ,
+DEFUN (dup2, args, ,
  "fid = dup2 (old, new): duplicate a file descriptor")
 {
   double retval = -1.0;
@@ -124,7 +124,7 @@
   return retval;
 }
 
-DEFUN(exec, args, ,
+DEFUN (exec, args, ,
  "exec (file, args): replace current process with a new process")
 {
   double retval = -1.0;
@@ -192,7 +192,7 @@
   return retval;
 }
 
-DEFUN(fcntl, args, ,
+DEFUN (fcntl, args, ,
  "fcntl (fid, request, argument): control open file descriptors")
 {
   double retval = -1.0;
@@ -233,7 +233,7 @@
   return retval;
 }
 
-DEFUN(fork, args, ,
+DEFUN (fork, args, ,
  "fork (): create a copy of the current process")
 {
   double retval = -1.0;
@@ -252,7 +252,7 @@
   return retval;
 }
 
-DEFUN(getpgrp, args, ,
+DEFUN (getpgrp, args, ,
   "pgid = getpgrp (): return the process group id of the current process")
 {
   double retval = -1.0;
@@ -271,7 +271,7 @@
   return retval;
 }
 
-DEFUN(getpid, args, ,
+DEFUN (getpid, args, ,
   "pid = getpid (): return the process id of the current process")
 {
   double retval = -1.0;
@@ -290,7 +290,7 @@
   return retval;
 }
 
-DEFUN(getppid, args, ,
+DEFUN (getppid, args, ,
   "pid = getppid (): return the process id of the parent process")
 {
   double retval = -1.0;
--- a/src/time.cc
+++ b/src/time.cc
@@ -26,7 +26,7 @@
 
 #include <string>
 
-#include "defun.h"
+#include "defun-dld.h"
 #include "error.h"
 #include "help.h"
 #include "oct-map.h"
@@ -89,7 +89,7 @@
   return &tm;
 }
 
-DEFUN (time, , ,
+DEFUN_DLD (time, , ,
   "time ()\n\
 \n\
   Return current time.  On Unix systems, this is the number of\n\
@@ -121,7 +121,7 @@
   return (double) now + fraction;
 }
 
-DEFUN (gmtime, args, ,
+DEFUN_DLD (gmtime, args, ,
   "gmtime (TIME)\n\
 \n\
   Given a value returned from time(), return a structure like that\n\
@@ -149,7 +149,7 @@
   return retval;
 }
 
-DEFUN (localtime, args, ,
+DEFUN_DLD (localtime, args, ,
   "localtime (TIME)\n\
 \n\
   Given a value returned from time(), return a structure with\n\
@@ -188,7 +188,7 @@
   return retval;
 }
 
-DEFUN (mktime, args, ,
+DEFUN_DLD (mktime, args, ,
   "mktime (TMSTRUCT)")
 {
   octave_value_list retval;
@@ -210,7 +210,7 @@
   return retval;
 }
 
-DEFUN (strftime, args, ,
+DEFUN_DLD (strftime, args, ,
   "strftime (FMT, TMSTRUCT)\n\
 \n\
   Performs `%' substitutions similar to those in printf.  Except where\n\