;;; -*-Scheme-*-
;;;
-;;; $Id: dos.scm,v 1.20 1995/01/23 20:05:12 cph Exp $
+;;; $Id: dos.scm,v 1.21 1995/04/09 22:33:18 cph Exp $
;;;
;;; Copyright (c) 1992-95 Massachusetts Institute of Technology
;;;
(define (os/init-file-name)
(let ((user-init-file
(merge-pathnames "edwin.ini"
- (pathname-as-directory
- (dos/current-home-directory)))))
+ (pathname-as-directory (current-home-directory)))))
(if (file-exists? user-init-file)
(->namestring user-init-file)
"/scheme/lib/edwin.ini")))
;;; -*-Scheme-*-
;;;
-;;; $Id: notify.scm,v 1.15 1994/11/20 05:18:03 cph Exp $
+;;; $Id: notify.scm,v 1.16 1995/04/09 22:33:28 cph Exp $
;;;
-;;; Copyright (c) 1992-94 Massachusetts Institute of Technology
+;;; Copyright (c) 1992-95 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
(define (notifier:mail-present)
(if (let ((pathname
(merge-pathnames (ref-variable mail-notify-directory)
- (unix/current-user-name))))
+ (current-user-name))))
(and (file-exists? pathname)
(> (file-length pathname) 0)))
(ref-variable notify-mail-present)
;;; -*-Scheme-*-
;;;
-;;; $Id: rmail.scm,v 1.33 1994/05/04 22:55:54 cph Exp $
+;;; $Id: rmail.scm,v 1.34 1995/04/09 22:33:06 cph Exp $
;;;
-;;; Copyright (c) 1991-94 Massachusetts Institute of Technology
+;;; Copyright (c) 1991-95 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
(set-variable! rmail-primary-inbox-list
(list "~/mbox"
(string-append rmail-spool-directory
- (unix/current-user-name)))))
+ (current-user-name)))))
(if (not (ref-variable rmail-dont-reply-to-names))
(set-variable!
rmail-dont-reply-to-names
(if rmail-default-dont-reply-to-names
(string-append rmail-default-dont-reply-to-names "\\|")
""))
- (re-quote-string (unix/current-user-name))
+ (re-quote-string (current-user-name))
"\\>")))
(if (not umail-message-end-regexp)
(set! umail-message-end-regexp
;;; -*-Scheme-*-
;;;
-;;; $Id: sendmail.scm,v 1.20 1995/01/23 20:06:00 cph Exp $
+;;; $Id: sendmail.scm,v 1.21 1995/04/09 22:33:23 cph Exp $
;;;
;;; Copyright (c) 1991-95 Massachusetts Institute of Technology
;;;
(if (ref-variable mail-self-blind)
(begin
(insert-string "BCC: " point)
- (insert-string (unix/current-user-name) point)
+ (insert-string (current-user-name) point)
(insert-newline point)))
(let ((mail-archive-file-name (ref-variable mail-archive-file-name)))
(if mail-archive-file-name
(temporary-buffer " sendmail errors")))
(temp-buffer (temporary-buffer " sendmail temp"))
(mail-buffer (current-buffer))
- (user-name (unix/current-user-name)))
+ (user-name (current-user-name)))
(let ((start (buffer-start temp-buffer))
(end (buffer-end temp-buffer)))
(insert-region (buffer-start mail-buffer)
(end (buffer-end temp-buffer)))
(insert-newline end)
(insert-string "From " end)
- (insert-string (unix/current-user-name) end)
+ (insert-string (current-user-name) end)
(insert-string " " end)
(insert-string (unix/file-time->string (get-time)) end)
(insert-newline end)
;;; -*-Scheme-*-
;;;
-;;; $Id: vc.scm,v 1.17 1995/01/06 00:59:18 cph Exp $
+;;; $Id: vc.scm,v 1.18 1995/04/09 22:33:12 cph Exp $
;;;
;;; Copyright (c) 1994-95 Massachusetts Institute of Technology
;;;
(= 0 (unix/current-uid))
(not (let ((locking-user (vc-locking-user master #f)))
(and locking-user
- (string=? locking-user (unix/current-user-name))))))
+ (string=? locking-user (current-user-name))))))
(set-buffer-read-only! buffer)))
\f
;;;; Primary Commands
(let ((owner (vc-locking-user master revision)))
(cond ((not owner)
(vc-checkout master revision))
- ((string=? owner (unix/current-user-name))
+ ((string=? owner (current-user-name))
(if (or (let ((buffer (vc-workfile-buffer workfile)))
(and buffer
(buffer-modified? buffer)))
(let ((locks (rcs-admin/locks admin)))
(if (not (null? locks))
(apply string-append
- (let ((user (unix/current-user-name)))
+ (let ((user (current-user-name)))
(map (lambda (lock)
(string-append
":"
(vc-run-shell-command master 0 "rlog"
"-L -R"
(and (not all-lockers?)
- (string-append "-l" (unix/current-user-name)))
+ (string-append "-l" (current-user-name)))
(merge-pathnames
"*,v"
(directory-pathname (vc-master-pathname master))))))
#| -*-Scheme-*-
-$Id: dosprm.scm,v 1.25 1995/01/31 19:34:24 cph Exp $
+$Id: dosprm.scm,v 1.26 1995/04/09 22:32:00 cph Exp $
Copyright (c) 1992-95 Massachusetts Institute of Technology
unspecific) ; End LET
\f
-(define (dos/user-home-directory user-name)
+(define (user-home-directory user-name)
(or (and user-name
(let ((directory (get-environment-variable "USERDIR")))
(and directory
user-name))))
"\\"))
-(define (dos/current-user-name)
- (get-environment-variable "USER"))
+(define (current-user-name)
+ (or (get-environment-variable "USER")
+ "nouser"))
-(define (dos/current-home-directory)
+(define (current-home-directory)
(or (get-environment-variable "HOME")
- (dos/user-home-directory (dos/current-user-name))))
+ (user-home-directory (current-user-name))))
+
+(define dos/user-home-directory user-home-directory)
+(define dos/current-user-name current-user-name)
+(define dos/current-home-directory current-home-directory)
(define dos/file-time->string
(ucode-primitive file-time->string 1))
#| -*-Scheme-*-
-$Id: dospth.scm,v 1.23 1995/02/14 00:33:54 cph Exp $
+$Id: dospth.scm,v 1.24 1995/04/09 22:32:25 cph Exp $
Copyright (c) 1992-95 Massachusetts Institute of Technology
(directory-pathname-as-file
(let ((user-name (string-tail string 1)))
(if (string-null? user-name)
- (dos/current-home-directory)
- (dos/user-home-directory user-name)))))
+ (current-home-directory)
+ (user-home-directory user-name)))))
sub-directory-delimiters)
(cdr components)))
(else components)))))
(define (dos/user-homedir-pathname host)
(and (eq? host local-host)
- (pathname-as-directory (dos/current-home-directory))))
+ (pathname-as-directory (current-home-directory))))
(define (dos/init-file-pathname host)
(let ((pathname
#| -*-Scheme-*-
-$Id: os2prm.scm,v 1.7 1995/02/21 23:12:47 cph Exp $
+$Id: os2prm.scm,v 1.8 1995/04/09 22:32:10 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
(define-integrable os2/current-pid
(ucode-primitive current-pid 0))
-(define (os2/current-home-directory)
+(define (current-home-directory)
(let ((home (get-environment-variable "HOME")))
(if home
(pathname-as-directory (merge-pathnames home))
- (os2/user-home-directory (os2/current-user-name)))))
+ (user-home-directory (current-user-name)))))
-(define (os2/current-user-name)
- (get-environment-variable "USER"))
+(define (current-user-name)
+ (or (get-environment-variable "USER")
+ "nouser"))
-(define (os2/user-home-directory user-name)
+(define (user-home-directory user-name)
(or (and user-name
(let ((directory (get-environment-variable "USERDIR")))
(and directory
user-name)))))
"\\"))
-;; These two aliases are needed by the DOS pathname parser.
-(define dos/current-home-directory os2/current-home-directory)
-(define dos/user-home-directory os2/user-home-directory)
-
(define (os/default-end-of-line-translation)
"\r\n")
\f
#| -*-Scheme-*-
-$Id: unxprm.scm,v 1.33 1995/01/31 19:34:50 cph Exp $
+$Id: unxprm.scm,v 1.34 1995/04/09 22:32:18 cph Exp $
Copyright (c) 1988-95 Massachusetts Institute of Technology
(lambda () (set! environment-variables '())))
) ; End LET
\f
-(define (unix/user-home-directory user-name)
+(define (user-home-directory user-name)
(let ((directory ((ucode-primitive get-user-home-directory 1) user-name)))
(if (not directory)
(error "Can't find user's home directory:" user-name))
directory))
-(define (unix/current-home-directory)
+(define (current-home-directory)
(or (get-environment-variable "HOME")
- (unix/user-home-directory (unix/current-user-name))))
+ (user-home-directory (current-user-name))))
-(define-integrable unix/current-user-name
+(define-integrable current-user-name
(ucode-primitive current-user-name 0))
+(define unix/user-home-directory user-home-directory)
+(define unix/current-home-directory current-home-directory)
+(define unix/current-user-name current-user-name)
+
(define-integrable unix/current-uid
(ucode-primitive current-uid 0))
#| -*-Scheme-*-
-$Id: unxpth.scm,v 14.17 1995/01/31 19:34:54 cph Exp $
+$Id: unxpth.scm,v 14.18 1995/04/09 22:32:33 cph Exp $
Copyright (c) 1988-95 Massachusetts Institute of Technology
(let ((user-name (substring string 1 (string-length string))))
(string-components
(if (string-null? user-name)
- (unix/current-home-directory)
- (unix/user-home-directory user-name))
+ (current-home-directory)
+ (user-home-directory user-name))
#\/)))
(else (list string)))))
(define (unix/user-homedir-pathname host)
(and (eq? host local-host)
- (pathname-as-directory (unix/current-home-directory))))
+ (pathname-as-directory (current-home-directory))))
(define (unix/init-file-pathname host)
(let ((pathname