summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-12 21:00:16 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-12 21:00:16 +0000
commit4f13c7df03aa65736906640ac0e45569dd1d5967 (patch)
tree5a500efc499ce43ea665096c396f04521f56d051 /sys/uvm
parent705ea333e9d5466f8db261121b3a77e7962d8f66 (diff)
vm_inherit.h no more
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_extern.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h
index acb65009c06..c346aed8fd9 100644
--- a/sys/uvm/uvm_extern.h
+++ b/sys/uvm/uvm_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_extern.h,v 1.21 2001/08/12 20:18:30 mickey Exp $ */
+/* $OpenBSD: uvm_extern.h,v 1.22 2001/08/12 21:00:14 mickey Exp $ */
/* $NetBSD: uvm_extern.h,v 1.42 2000/06/08 05:52:34 thorpej Exp $ */
/*
@@ -117,6 +117,17 @@ typedef int vm_prot_t;
#define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)
+/*
+ * Enumeration of valid values for vm_inherit_t.
+ */
+
+#define VM_INHERIT_SHARE ((vm_inherit_t)0) /* share with child */
+#define VM_INHERIT_COPY ((vm_inherit_t)1) /* copy into child */
+#define VM_INHERIT_NONE ((vm_inherit_t)2) /* absent from child */
+#define VM_INHERIT_DONATE_COPY ((vm_inherit_t)3) /* copy and delete */
+
+#define VM_INHERIT_DEFAULT VM_INHERIT_COPY
+
/* advice: matches MADV_* from sys/mman.h */
#define UVM_ADV_NORMAL 0x0 /* 'normal' */
#define UVM_ADV_RANDOM 0x1 /* 'random' */