]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/spawn.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / bsd / sys / spawn.h
index c9f9e018f04e0e6ee12b6032efe80b7d8bc74d74..bcf1d6367684393dcf1d9ea1a089f30b6725ea9b 100644 (file)
  */
 #define        POSIX_SPAWN_SETEXEC             0x0040
 #define        POSIX_SPAWN_START_SUSPENDED     0x0080
+#ifdef PRIVATE
+#define        _POSIX_SPAWN_DISABLE_ASLR       0x0100
+#define _POSIX_SPAWN_NANO_ALLOCATOR     0x0200
+/* unused                               0x0400 */
+/* unused                               0x0800 */
+/* unused                               0x1000 */
+#define        _POSIX_SPAWN_ALLOW_DATA_EXEC    0x2000
+#endif /* PRIVATE */
+#define        POSIX_SPAWN_CLOEXEC_DEFAULT     0x4000
+#ifdef PRIVATE
+#define        _POSIX_SPAWN_HIGH_BITS_ASLR     0x8000
+#endif /* PRIVATE */
+
+/*
+ * Possible values to be set for the process control actions on resource starvation.
+ * POSIX_SPAWN_PCONTROL_THROTTLE indicates that the process is to be throttled on starvation.
+ * POSIX_SPAWN_PCONTROL_SUSPEND indicates that the process is to be suspended on starvation.
+ * POSIX_SPAWN_PCONTROL_KILL indicates that the process is to be terminated  on starvation.
+ */
+#define POSIX_SPAWN_PCONTROL_NONE      0x0000
+#define POSIX_SPAWN_PCONTROL_THROTTLE  0x0001
+#define POSIX_SPAWN_PCONTROL_SUSPEND   0x0002
+#define POSIX_SPAWN_PCONTROL_KILL      0x0003
 
 #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */