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
Open sidebar
emacs
emacs
Commits
aa670904
Commit
aa670904
authored
Feb 15, 1994
by
Richard M. Stallman
Browse files
(sys_write): If any bytes were written, return how many.
parent
7071e5dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sysdep.c
src/sysdep.c
+1
-1
No files found.
src/sysdep.c
View file @
aa670904
...
...
@@ -2754,7 +2754,7 @@ sys_write (fildes, buf, nbyte)
if
(
errno
==
EINTR
)
continue
;
else
return (-1);
return
(
bytes_written
?
bytes_written
:
-
1
);
}
buf
+=
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