summaryrefslogtreecommitdiffstats
path: root/man2/write.2
diff options
context:
space:
mode:
authorKrónos <Krónos@Sāturnus>1993-10-11 00:00:00 +0100
committerAlejandro Colomar <alx@kernel.org>2022-12-15 23:09:38 +0100
commit9e0fdb0c0192079e5847f49832374ea28b5ad436 (patch)
tree0eb6ca406983d655aa04225550ec9f8a6c265e90 /man2/write.2
parent3c23040573650f36a3f2778a3629f4ae7e6c10ab (diff)
downloadman-pages-prehistory-backwards.tar.gz
man-pages-1.1 seems to be missing. :/ Link: <https://www.win.tue.nl/~aeb/ftpdocs/linux-local/manpages.archive/> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man2/write.2')
-rw-r--r--man2/write.211
1 files changed, 5 insertions, 6 deletions
diff --git a/man2/write.2 b/man2/write.2
index f9ccd1cd80..2eaa38acd3 100644
--- a/man2/write.2
+++ b/man2/write.2
@@ -6,9 +6,8 @@
.\" Public Licence. It comes with NO WARRANTY.
.\"
.\" Modified Sat Jul 24 13:35:59 1993 by Rik Faith (faith@cs.unc.edu)
-.\" Modified Sun Nov 28 17:19:01 1993 by Rik Faith (faith@cs.unc.edu)
.\"
-.TH WRITE 2 "28 November 1993" Linux "Linux Programmer's Manual"
+.TH WRITE 2 "24 July 1993" Linux "Linux Programmer's Manual"
.SH NAME
write \- write to a file descriptor
.SH SYNOPSIS
@@ -16,7 +15,7 @@ write \- write to a file descriptor
.br
.B #include <unistd.h>
.sp
-.BI "ssize_t write(int " fd ", const char *" buf ", size_t " count );
+.BI "int write(int " fd ", const char *" buf ", size_t " count );
.SH DESCRIPTION
.B write
writes up to
@@ -25,9 +24,9 @@ bytes from file descriptor
.I fd
from the buffer starting at
.I buf.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
On success, the number of bytes written are returned (zero indicated end of
-file). On error, \-1 is returned, and
+file). On error, -1 is returned, and
.I errno
is set appropriately.
.SH ERRORS
@@ -72,7 +71,7 @@ Other errors may occur, depending on the object connected to
.IR fd .
.SH "CONFORMING TO"
SVID, AT&T, POSIX, X/OPEN, BSD 4.3
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR open "(2), " read "(2), " fcntl "(2), " close (2),
.BR lseek "(2), "
.BR select "(2), " ioctl "(2), " fwrite (3).