Per XSH5, define IOV_MAX which is provided via <limits.h>, and declare

UIO_MAXIOV deprecated.
This commit is contained in:
kleink 1998-08-03 14:27:50 +00:00
parent af261318d9
commit 93897b8303
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: syslimits.h,v 1.16 1998/07/08 19:31:34 kleink Exp $ */
/* $NetBSD: syslimits.h,v 1.17 1998/08/03 14:27:50 kleink Exp $ */
/*
* Copyright (c) 1988, 1993
@ -64,6 +64,7 @@
#define RE_DUP_MAX 255 /* max RE's in interval notation */
#if !defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
#define IOV_MAX 1024 /* max # of iovec's for readv(2) etc. */
#define NZERO 20 /* default "nice" */
#endif /* !_POSIX_C_SOURCE || _XOPEN_SOURCE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: uio.h,v 1.17 1998/07/28 17:55:38 thorpej Exp $ */
/* $NetBSD: uio.h,v 1.18 1998/08/03 14:27:50 kleink Exp $ */
/*
* Copyright (c) 1982, 1986, 1993, 1994
@ -65,6 +65,7 @@ struct uio {
/*
* Limits
*/
/* Deprecated: use IOV_MAX from <limits.h> instead. */
#define UIO_MAXIOV 1024 /* max 1K of iov's */
#define UIO_SMALLIOV 8 /* 8 on stack, else malloc */
#endif /* ! _XOPEN_SOURCE */