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
72420352
Commit
72420352
authored
30 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Clarify EOF-ERROR-P handling in read-n-bytes.
parent
dae4cf60
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/stream.lisp
+9
-4
9 additions, 4 deletions
code/stream.lisp
with
9 additions
and
4 deletions
code/stream.lisp
+
9
−
4
View file @
72420352
...
...
@@ -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/stream.lisp,v 1.2
3
1994/1
0/31 04:11:27
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.2
4
1994/1
1/01 17:57:46
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -365,9 +365,14 @@
(
done-with-fast-read-byte
))))
(
defun
read-n-bytes
(
stream
buffer
start
numbytes
&optional
(
eof-errorp
t
))
"Reads Numbytes bytes into the Buffer starting at Start, and returns
the number of bytes actually read if the end of file was hit before Numbytes
bytes were read (and Eof-Errorp is false)."
"Reads Numbytes bytes into the Buffer starting at Start, returning the number
of bytes read.
-- If EOF-ERROR-P is true, an END-OF-FILE condition is signalled if
end-of-file is encountered before Count bytes have been read.
-- If EOF-ERROR-P is false, READ-N-BYTES reads as much data is currently
available (up to count bytes.) On pipes or similar devices, this
function returns as soon as any adata is available, even if the amount
read is less than Count and eof has not been hit."
(
declare
(
type
index
numbytes
start
)
(
type
(
or
(
simple-array
*
(
*
))
system-area-pointer
)
buffer
))
(
let*
((
stream
(
in-synonym-of
stream
))
...
...
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