/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/pruxfs.c,v 9.44 1991/01/24 11:25:09 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/pruxfs.c,v 9.45 1991/09/05 22:26:48 markf Exp $
Copyright (c) 1987-91 Massachusetts Institute of Technology
(*p) = fd;
transaction_record_action (tat_always, protect_fd_close, p);
}
+
+DEFINE_PRIMITIVE ("SET-FILE-TIMES!", Prim_set_file_times, 3, 3,
+ "Given a file name and two integers, change the access and modification \n\
+times of the file to the times represented by the two integers. \n\
+Those integers are the times in seconds since 00:00:00 GMT, Jan. 1, 1970 \n\
+The file must exist and you must be the owner (or superuser).")
+{
+ PRIMITIVE_HEADER (3);
+ {
+ struct utimbuf times;
+
+ times.actime = arg_integer (2);
+ times.modtime = arg_integer (3);
+ STD_VOID_SYSTEM_CALL(syscall_utime, (UX_utime ((STRING_ARG (1)), ×)));
+ PRIMITIVE_RETURN (SHARP_F);
+ }
+}
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.58 1991/08/24 01:51:14 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.59 1991/09/05 22:27:17 markf Exp $
;;;
;;; Copyright (c) 1987-91 Massachusetts Institute of Technology
;;;
TIME
TIMES
UNLINK
+ UTIME
VFORK
WRITE
))
;;; This identification string is saved by the system.
-"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.58 1991/08/24 01:51:14 cph Exp $"
\ No newline at end of file
+"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.59 1991/09/05 22:27:17 markf Exp $"
\ No newline at end of file
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/ux.h,v 1.25 1991/08/24 02:27:37 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/ux.h,v 1.26 1991/09/05 22:26:30 markf Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
#include <errno.h>
#include <pwd.h>
#include <grp.h>
+#include <utime.h>
#include "oscond.h"
#include "ansidecl.h"
syscall_time,
syscall_times,
syscall_unlink,
+ syscall_utime,
syscall_vfork,
syscall_write
};
#define UX_system system
#define UX_time time
#define UX_unlink unlink
+#define UX_utime utime
#define UX_write write
#define UX_wait wait
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.58 1991/08/24 01:51:14 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.59 1991/09/05 22:27:17 markf Exp $
;;;
;;; Copyright (c) 1987-91 Massachusetts Institute of Technology
;;;
TIME
TIMES
UNLINK
+ UTIME
VFORK
WRITE
))
;;; This identification string is saved by the system.
-"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.58 1991/08/24 01:51:14 cph Exp $"
\ No newline at end of file
+"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.59 1991/09/05 22:27:17 markf Exp $"
\ No newline at end of file