diff options
Diffstat (limited to 'man2/write.2')
| -rw-r--r-- | man2/write.2 | 11 |
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). |
