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
e641984b
Commit
e641984b
authored
20 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Forgot to implement lseek64.
parent
31700eb2
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
+22
-1
22 additions, 1 deletion
code/unix.lisp
with
22 additions
and
1 deletion
code/unix.lisp
+
22
−
1
View file @
e641984b
...
...
@@ -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.9
4
2004/07/15 1
3:46:08
rtoy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.9
5
2004/07/15 1
6:26:15
rtoy Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -1359,6 +1359,7 @@
(
defconstant
l_incr
1
"increment the file pointer"
)
(
defconstant
l_xtnd
2
"extend the file size"
)
#-
solaris
(
defun
unix-lseek
(
fd
offset
whence
)
"Unix-lseek accepts a file descriptor and moves the file pointer ahead
a certain offset for that file. Whence can be any of the following:
...
...
@@ -1372,6 +1373,26 @@
(
type
(
integer
0
2
)
whence
))
(
off-t-syscall
(
"lseek"
(
int
off-t
int
))
fd
offset
whence
))
#+
solaris
(
defun
unix-lseek
(
fd
offset
whence
)
"Unix-lseek accepts a file descriptor and moves the file pointer ahead
a certain offset for that file. Whence can be any of the following:
l_set Set the file pointer.
l_incr Increment the file pointer.
l_xtnd Extend the file size.
"
(
declare
(
type
unix-fd
fd
)
(
type
file-offset64
offset
)
(
type
(
integer
0
2
)
whence
))
(
let
((
result
(
alien-funcall
(
extern-alien
"lseek64"
(
function
off64-t
int
off64-t
int
))
fd
offset
whence
)))
(
if
(
minusp
result
)
(
progn
(
values
nil
unix-errno
))
(
values
result
0
))))
;;; Unix-mkdir accepts a name and a mode and attempts to create the
;;; corresponding directory with mode mode.
...
...
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