public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd,commited] hurd: Fix p{read,write}{,v64}v2.c build
@ 2017-09-03  1:06 Samuel Thibault
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Thibault @ 2017-09-03  1:06 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault

	* misc/preadv2.c: Include <errno.h>.
	* misc/preadv64v2.c: Include <errno.h>.
	* misc/pwritev2.c: Include <errno.h>.
	* misc/pwritev64v2.c: Include <errno.h>.
	* sysdeps/posix/preadv2.c: Include <errno.h>.
	* sysdeps/posix/preadv64v2.c: Include <errno.h>.
	Fix <unistd.h> inclusion.
	* sysdeps/posix/pwritev2.c: Include <errno.h>.
	* sysdeps/posix/pwritev64v2.c: Include <errno.h>.
---
 ChangeLog                   | 9 +++++++++
 misc/preadv2.c              | 1 +
 misc/preadv64v2.c           | 1 +
 misc/pwritev2.c             | 1 +
 misc/pwritev64v2.c          | 1 +
 sysdeps/posix/preadv2.c     | 1 +
 sysdeps/posix/preadv64v2.c  | 3 ++-
 sysdeps/posix/pwritev2.c    | 1 +
 sysdeps/posix/pwritev64v2.c | 1 +
 9 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index f8c12c0a46..0567c67675 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,15 @@
 	* sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
 	* sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
 	* sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
+	* misc/preadv2.c: Include <errno.h>.
+	* misc/preadv64v2.c: Include <errno.h>.
+	* misc/pwritev2.c: Include <errno.h>.
+	* misc/pwritev64v2.c: Include <errno.h>.
+	* sysdeps/posix/preadv2.c: Include <errno.h>.
+	* sysdeps/posix/preadv64v2.c: Include <errno.h>.
+	Fix <unistd.h> inclusion.
+	* sysdeps/posix/pwritev2.c: Include <errno.h>.
+	* sysdeps/posix/pwritev64v2.c: Include <errno.h>.
 
 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
 
diff --git a/misc/preadv2.c b/misc/preadv2.c
index a62dcaa699..fe379401ee 100644
--- a/misc/preadv2.c
+++ b/misc/preadv2.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <errno.h>
 #include <sys/uio.h>
 
 /* Same as preadv but with an additional flags argument.  */
diff --git a/misc/preadv64v2.c b/misc/preadv64v2.c
index a802c2f1ab..e0f05a506a 100644
--- a/misc/preadv64v2.c
+++ b/misc/preadv64v2.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <errno.h>
 #include <sys/uio.h>
 
 /* Same as preadv64 but with an addional flag argument.  */
diff --git a/misc/pwritev2.c b/misc/pwritev2.c
index b9e07272da..ead84471fc 100644
--- a/misc/pwritev2.c
+++ b/misc/pwritev2.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <errno.h>
 #include <sys/uio.h>
 
 /* Same as pwritev but with an additional flags argument.  */
diff --git a/misc/pwritev64v2.c b/misc/pwritev64v2.c
index 1f874f054c..c72689cc70 100644
--- a/misc/pwritev64v2.c
+++ b/misc/pwritev64v2.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <errno.h>
 #include <sys/uio.h>
 
 /* Same as preadv64 but with an addional flag argument.  */
diff --git a/sysdeps/posix/preadv2.c b/sysdeps/posix/preadv2.c
index b79b7b1bc3..cd96677ade 100644
--- a/sysdeps/posix/preadv2.c
+++ b/sysdeps/posix/preadv2.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <errno.h>
 #include <unistd.h>
 #include <sys/uio.h>
 
diff --git a/sysdeps/posix/preadv64v2.c b/sysdeps/posix/preadv64v2.c
index 263f9b77c4..649bde4c5a 100644
--- a/sysdeps/posix/preadv64v2.c
+++ b/sysdeps/posix/preadv64v2.c
@@ -16,7 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <unistd.>
+#include <errno.h>
+#include <unistd.h>
 #include <sys/uio.h>
 
 ssize_t
diff --git a/sysdeps/posix/pwritev2.c b/sysdeps/posix/pwritev2.c
index d746059d42..601f6b1b10 100644
--- a/sysdeps/posix/pwritev2.c
+++ b/sysdeps/posix/pwritev2.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <errno.h>
 #include <unistd.h>
 #include <sys/uio.h>
 
diff --git a/sysdeps/posix/pwritev64v2.c b/sysdeps/posix/pwritev64v2.c
index f340c8a46d..9f05f97b40 100644
--- a/sysdeps/posix/pwritev64v2.c
+++ b/sysdeps/posix/pwritev64v2.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <errno.h>
 #include <unistd.h>
 #include <sys/uio.h>
 
-- 
2.14.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [hurd,commited] hurd: Fix p{read,write}{,v64}v2.c build
@ 2017-09-03  0:49 Samuel Thibault
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Thibault @ 2017-09-03  0:49 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault

	* sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
	* sysdeps/posix/preadv64v2.c: Use off_t instead of OFF_T.
	* sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
	* sysdeps/posix/pwritev64v2.c: Use off_t instead of OFF_T.
---
 ChangeLog                   | 4 ++++
 sysdeps/posix/preadv2.c     | 2 +-
 sysdeps/posix/preadv64v2.c  | 2 +-
 sysdeps/posix/pwritev2.c    | 2 +-
 sysdeps/posix/pwritev64v2.c | 2 +-
 5 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cf6866cd11..a4634b7fdb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
 	parameter.
 	* sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
 	just <bits/types.h>.
+	* sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
+	* sysdeps/posix/preadv64v2.c: Use off_t instead of OFF_T.
+	* sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
+	* sysdeps/posix/pwritev64v2.c: Use off_t instead of OFF_T.
 
 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
 
diff --git a/sysdeps/posix/preadv2.c b/sysdeps/posix/preadv2.c
index d27f7028ed..b79b7b1bc3 100644
--- a/sysdeps/posix/preadv2.c
+++ b/sysdeps/posix/preadv2.c
@@ -23,7 +23,7 @@
 
 /* Since we define no flags for preadv2 just route to preadv.  */
 ssize_t
-preadv2 (int fd, const struct iovec *vector, int count, OFF_T offset,
+preadv2 (int fd, const struct iovec *vector, int count, off_t offset,
 	 int flags)
 {
   if (flags != 0)
diff --git a/sysdeps/posix/preadv64v2.c b/sysdeps/posix/preadv64v2.c
index ce7cb40bf2..ab71f027d4 100644
--- a/sysdeps/posix/preadv64v2.c
+++ b/sysdeps/posix/preadv64v2.c
@@ -20,7 +20,7 @@
 #include <sys/uio.h>
 
 ssize_t
-preadv64v2 (int fd, const struct iovec *vector, int count, OFF_T offset,
+preadv64v2 (int fd, const struct iovec *vector, int count, off_t offset,
 	    int flags)
 {
   if (flags != 0)
diff --git a/sysdeps/posix/pwritev2.c b/sysdeps/posix/pwritev2.c
index 7ec8cbc407..d746059d42 100644
--- a/sysdeps/posix/pwritev2.c
+++ b/sysdeps/posix/pwritev2.c
@@ -23,7 +23,7 @@
 
 /* Since we define no flags for pwritev2 just route to pwritev.  */
 ssize_t
-pwritev2 (int fd, const struct iovec *vector, int count, OFF_T offset,
+pwritev2 (int fd, const struct iovec *vector, int count, off_t offset,
 	  int flags)
 {
   if (flags != 0)
diff --git a/sysdeps/posix/pwritev64v2.c b/sysdeps/posix/pwritev64v2.c
index be98aeed9d..bf62d74190 100644
--- a/sysdeps/posix/pwritev64v2.c
+++ b/sysdeps/posix/pwritev64v2.c
@@ -21,7 +21,7 @@
 
 /* Since we define no flags for pwritev2 just route to pwritev.  */
 ssize_t
-pwritev64v2 (int fd, const struct iovec *vector, int count, OFF_T offset,
+pwritev64v2 (int fd, const struct iovec *vector, int count, off_t offset,
 	     int flags)
 {
   if (flags != 0)
-- 
2.14.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-03  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-03  1:06 [hurd,commited] hurd: Fix p{read,write}{,v64}v2.c build Samuel Thibault
  -- strict thread matches above, loose matches on Subject: below --
2017-09-03  0:49 Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).