Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
344ae14b
Commit
344ae14b
authored
24 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
Fix set-write-date, which wasn't working at all.
parent
c96da6ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hemlock/dired.lisp
+8
-13
8 additions, 13 deletions
hemlock/dired.lisp
with
8 additions
and
13 deletions
hemlock/dired.lisp
+
8
−
13
View file @
344ae14b
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/dired.lisp,v 1.
3 1994/10/31 04:50:12 ram Exp
$"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/dired.lisp,v 1.
4 2000/07/06 08:25:15 dtc Rel
$"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -611,23 +611,18 @@
(
unix:unix-fchmod
fd
(
logand
mode
#o777
))
(
unix:unix-close
fd
)))
(
defvar
*utimes-buffer*
(
make-list
4
:initial-element
0
))
(
defun
set-write-date
(
ses-name
secs
)
(
multiple-value-bind
(
winp
dev-or-err
ino
mode
nlink
uid
gid
rdev
size
atime
)
(
unix:unix-stat
ses-name
)
(
declare
(
ignore
ino
mode
nlink
uid
gid
rdev
size
))
(
unless
winp
(
funcall
*error-function*
"Couldn't stat file ~S failed: ~A."
ses-name
dev-or-err
))
(
setf
(
car
*utimes-buffer*
)
atime
)
(
setf
(
caddr
*utimes-buffer*
)
secs
))
(
multiple-value-bind
(
winp
err
)
`
(
unix:unix-utimes
ses-name
,@
*utimes-buffer*
)
(
unless
winp
(
funcall
*error-function*
"Couldn't set write date of file ~S: ~A"
ses-name
(
unix:get-unix-error-msg
err
)))))
(
funcall
*error-function*
"Couldn't stat file ~S failed: ~A."
ses-name
dev-or-err
))
(
multiple-value-bind
(
winp
err
)
(
unix:unix-utimes
ses-name
atime
0
secs
0
)
(
unless
winp
(
funcall
*error-function*
"Couldn't set write date of file ~S: ~A"
ses-name
(
unix:get-unix-error-msg
err
))))))
(
defun
get-write-date
(
ses-name
)
(
multiple-value-bind
(
winp
dev-or-err
ino
mode
nlink
uid
gid
rdev
size
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment