Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2012 11:15:49 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230456 - head/lib/libc/sys
Message-ID:  <201201221115.q0MBFnF7073516@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Jan 22 11:15:48 2012
New Revision: 230456
URL: http://svn.freebsd.org/changeset/base/230456

Log:
  The sys/uio.h header is needed only for readv(2), preadv(2), writev(2) and
  pwritev(2). Document it more precisely.
  
  Reviewed by:	jilles
  MFC after:	3 days

Modified:
  head/lib/libc/sys/read.2
  head/lib/libc/sys/write.2

Modified: head/lib/libc/sys/read.2
==============================================================================
--- head/lib/libc/sys/read.2	Sun Jan 22 11:01:36 2012	(r230455)
+++ head/lib/libc/sys/read.2	Sun Jan 22 11:15:48 2012	(r230456)
@@ -28,7 +28,7 @@
 .\"     @(#)read.2	8.4 (Berkeley) 2/26/94
 .\" $FreeBSD$
 .\"
-.Dd October 11, 2006
+.Dd January 22, 2012
 .Dt READ 2
 .Os
 .Sh NAME
@@ -41,12 +41,12 @@
 .Lb libc
 .Sh SYNOPSIS
 .In sys/types.h
-.In sys/uio.h
 .In unistd.h
 .Ft ssize_t
 .Fn read "int d" "void *buf" "size_t nbytes"
 .Ft ssize_t
 .Fn pread "int d" "void *buf" "size_t nbytes" "off_t offset"
+.In sys/uio.h
 .Ft ssize_t
 .Fn readv "int d" "const struct iovec *iov" "int iovcnt"
 .Ft ssize_t

Modified: head/lib/libc/sys/write.2
==============================================================================
--- head/lib/libc/sys/write.2	Sun Jan 22 11:01:36 2012	(r230455)
+++ head/lib/libc/sys/write.2	Sun Jan 22 11:15:48 2012	(r230456)
@@ -28,7 +28,7 @@
 .\"     @(#)write.2	8.5 (Berkeley) 4/2/94
 .\" $FreeBSD$
 .\"
-.Dd July 7, 2005
+.Dd January 22, 2012
 .Dt WRITE 2
 .Os
 .Sh NAME
@@ -41,12 +41,12 @@
 .Lb libc
 .Sh SYNOPSIS
 .In sys/types.h
-.In sys/uio.h
 .In unistd.h
 .Ft ssize_t
 .Fn write "int d" "const void *buf" "size_t nbytes"
 .Ft ssize_t
 .Fn pwrite "int d" "const void *buf" "size_t nbytes" "off_t offset"
+.In sys/uio.h
 .Ft ssize_t
 .Fn writev "int d" "const struct iovec *iov" "int iovcnt"
 .Ft ssize_t



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201221115.q0MBFnF7073516>