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
eb04f8f3
Commit
eb04f8f3
authored
24 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
o Ignore the return value from a call to "times" which may overflow
the 32 bit integer result. From Eric Marsden.
parent
61e7667f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/unix.lisp
+8
-8
8 additions, 8 deletions
code/unix.lisp
with
8 additions
and
8 deletions
code/unix.lisp
+
8
−
8
View file @
eb04f8f3
...
...
@@ -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/code/unix.lisp,v 1.6
7
200
0
/0
8
/2
5 09:59:05 pw
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.6
8
200
1
/0
1
/2
3 12:24:02 dtc
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -1935,13 +1935,13 @@
"Unix-times returns information about the cpu time usage of the process
and its children."
(
with-alien
((
usage
(
struct
tms
)))
(
sys
call
*
(
"times"
(
*
(
struct
tms
)))
(
values
t
(
slot
usage
'tms-utime
)
(
slot
usage
'tms-
s
time
)
(
slot
usage
'tms-
cu
time
)
(
slot
usage
'tms-c
s
time
)
)
(
addr
usag
e
))))
(
alien-fun
call
(
extern-alien
"times"
(
function
int
(
*
(
struct
tms
)))
)
(
addr
usage
))
(
values
t
(
slot
usage
'tms-
u
time
)
(
slot
usage
'tms-
s
time
)
(
slot
usage
'tms-c
u
time
)
(
slot
usage
'tms-cstim
e
))))
)
; end progn
;; Requires call to tzset() in main.
...
...
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