]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/spawn.h
xnu-1699.26.8.tar.gz
[apple/xnu.git] / bsd / sys / spawn.h
index c9f9e018f04e0e6ee12b6032efe80b7d8bc74d74..4947902ddd1c59738bc819356dfffcc804c84ec8 100644 (file)
  */
 #define        POSIX_SPAWN_SETEXEC             0x0040
 #define        POSIX_SPAWN_START_SUSPENDED     0x0080
+#ifdef PRIVATE
+#define        _POSIX_SPAWN_DISABLE_ASLR       0x0100
+#define        _POSIX_SPAWN_ALLOW_DATA_EXEC    0x2000
+#define        POSIX_SPAWN_OSX_TALAPP_START    0x0400
+#define        POSIX_SPAWN_OSX_WIDGET_START    0x0800
+#define        POSIX_SPAWN_OSX_DBCLIENT_START  0x0800          /* not a bug, same as widget just rename */
+#define        POSIX_SPAWN_IOS_APP_START       0x1000
+#endif /* PRIVATE */
+#define        POSIX_SPAWN_CLOEXEC_DEFAULT     0x4000
+
+/*
+ * 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) */