summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-05 16:33:27 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-05 16:33:27 +0000
commit1acf6c1fcc4ef49eb430bc1707769054661f73da (patch)
tree133f1aea34a5c314af2654f874c47a1afd143913
parent35d014194517b1ea2ec1f056f9eb2622dfad3543 (diff)
Add IOV_MAX from XPG 4.2. This supercedes UIO_MAXIOV so mark it as such.
-rw-r--r--sys/sys/syslimits.h3
-rw-r--r--sys/sys/uio.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h
index 2219b088080..469a15c2cf1 100644
--- a/sys/sys/syslimits.h
+++ b/sys/sys/syslimits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslimits.h,v 1.4 1998/07/15 23:12:56 deraadt Exp $ */
+/* $OpenBSD: syslimits.h,v 1.5 1998/08/05 16:33:26 millert Exp $ */
/* $NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $ */
/*
@@ -60,6 +60,7 @@
#endif
#if !defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
+#define IOV_MAX 1024 /* max # of iov's (readv,sendmsg,etc) */
#define NZERO 20 /* default "nice" */
#endif /* !_POSIX_C_SOURCE || _XOPEN_SOURCE */
diff --git a/sys/sys/uio.h b/sys/sys/uio.h
index fa82595f112..e0c1f2fcc22 100644
--- a/sys/sys/uio.h
+++ b/sys/sys/uio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uio.h,v 1.5 1998/07/28 00:13:12 millert Exp $ */
+/* $OpenBSD: uio.h,v 1.6 1998/08/05 16:33:25 millert Exp $ */
/* $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ */
/*
@@ -69,7 +69,7 @@ struct uio {
#define UIO_SMALLIOV 8 /* 8 on stack, else malloc */
#endif /* _KERNEL */
-#define UIO_MAXIOV 1024 /* max 1K of iov's */
+#define UIO_MAXIOV 1024 /* Deprecated, use IOV_MAX instead */
#ifndef _KERNEL
#include <sys/cdefs.h>