Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
71b41406
Commit
71b41406
authored
Apr 15, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.
parent
9c3c56a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/ChangeLog
src/ChangeLog
+2
-0
src/sysdep.c
src/sysdep.c
+4
-1
No files found.
src/ChangeLog
View file @
71b41406
2011-04-15 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.
emacs_write: Accept and return EMACS_INT for sizes.
See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00514.html
et seq.
...
...
src/sysdep.c
View file @
71b41406
...
...
@@ -1844,7 +1844,10 @@ emacs_read (int fildes, char *buf, EMACS_INT nbyte)
{
register
ssize_t
rtnval
;
while
((
rtnval
=
read
(
fildes
,
buf
,
min
(
nbyte
,
MAX_RW_COUNT
)))
==
-
1
/* There is no need to check against MAX_RW_COUNT, since no caller ever
passes a size that large to emacs_read. */
while
((
rtnval
=
read
(
fildes
,
buf
,
nbyte
))
==
-
1
&&
(
errno
==
EINTR
))
QUIT
;
return
(
rtnval
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment