]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/spawn.h
xnu-2050.48.11.tar.gz
[apple/xnu.git] / bsd / sys / spawn.h
index c9f9e018f04e0e6ee12b6032efe80b7d8bc74d74..85377d5f0406c6e9a4cf5240d5d9fe7c52404c5c 100644 (file)
  */
 #define        POSIX_SPAWN_SETEXEC             0x0040
 #define        POSIX_SPAWN_START_SUSPENDED     0x0080
+#ifdef PRIVATE
+#define        _POSIX_SPAWN_DISABLE_ASLR       0x0100
+/* unused                              0x0200 */
+/* for compat sake */
+#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_OSX_RESVAPP_START   0x1000          /* reserved for app start usages */
+#define        _POSIX_SPAWN_ALLOW_DATA_EXEC    0x2000
+#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) */