aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/uio.h
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2018-03-27 15:20:03 +0000
committerBrooks Davis <brooks@FreeBSD.org>2018-03-27 15:20:03 +0000
commit34a77b974108eecc559c97b3ef170e3f18ffb644 (patch)
treeaf4d51237029eeac6c7bd3bc6f037b8d302626b5 /sys/sys/uio.h
parent2cb2ba6df8e31d389fd4bbfa73f0e6227dccb056 (diff)
downloadsrc-34a77b974108eecc559c97b3ef170e3f18ffb644.tar.gz
src-34a77b974108eecc559c97b3ef170e3f18ffb644.zip
Move uio enums to sys/_uio.h.
Include _uio.h instead of uio.h in several headers to reduce header polution. Fix a few places that relied on header polution to get the uio.h header. I have not moved struct uio as many more things that use it rely on header polution to get other definitions from uio.h. Reviewed by: cem, kib, markj Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14811
Notes
Notes: svn path=/head/; revision=331621
Diffstat (limited to 'sys/sys/uio.h')
-rw-r--r--sys/sys/uio.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/sys/uio.h b/sys/sys/uio.h
index 84f9520caf4d..33398dba99e6 100644
--- a/sys/sys/uio.h
+++ b/sys/sys/uio.h
@@ -38,6 +38,7 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
#include <sys/_iovec.h>
+#include <sys/_uio.h>
#ifndef _SSIZE_T_DECLARED
typedef __ssize_t ssize_t;
@@ -49,17 +50,6 @@ typedef __off_t off_t;
#define _OFF_T_DECLARED
#endif
-#if __BSD_VISIBLE
-enum uio_rw { UIO_READ, UIO_WRITE };
-
-/* Segment flag values. */
-enum uio_seg {
- UIO_USERSPACE, /* from user data space */
- UIO_SYSSPACE, /* from system space */
- UIO_NOCOPY /* don't copy, already in object */
-};
-#endif
-
#ifdef _KERNEL
struct uio {