]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/wrappers/spawn/spawn_private.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / libsyscall / wrappers / spawn / spawn_private.h
index f98d2d2bd5152a70ea3485d4e628f080395299a3..e0ea9d495a5ca6d85694f7cbf0c355a073ba8e65 100644 (file)
@@ -40,6 +40,16 @@ int  posix_spawnattr_setcpumonitor(posix_spawnattr_t * __restrict, uint64_t, uint
 int    posix_spawnattr_getcpumonitor(posix_spawnattr_t * __restrict, uint64_t *, uint64_t *) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
 int    posix_spawnattr_setcpumonitor_default(posix_spawnattr_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_6_0);
 
+#if TARGET_OS_EMBEDDED
+int     posix_spawnattr_setjetsam(posix_spawnattr_t * __restrict attr,
+               short flags, int priority, int memlimit) __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_5_0);
+#endif /* TARGET_OS_EMBEDDED */
+
+int     posix_spawnattr_setjetsam_ext(posix_spawnattr_t * __restrict attr,
+                  short flags, int priority, int memlimit_active, int memlimit_inactive) __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
+
+int    posix_spawnattr_set_threadlimit_ext(posix_spawnattr_t * __restrict attr,
+               int thread_limit);
 
 #define POSIX_SPAWN_IMPORTANCE_PORT_COUNT 32
 int    posix_spawnattr_set_importancewatch_port_np(posix_spawnattr_t * __restrict attr,
@@ -57,4 +67,10 @@ int     posix_spawnattr_get_qos_clamp_np(const posix_spawnattr_t * __restrict, u
 int     posix_spawnattr_set_darwin_role_np(const posix_spawnattr_t * __restrict, uint64_t) __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
 int     posix_spawnattr_get_darwin_role_np(const posix_spawnattr_t * __restrict, uint64_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
 
+int     posix_spawnattr_set_persona_np(const posix_spawnattr_t * __restrict, uid_t, uint32_t) __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
+int     posix_spawnattr_set_persona_uid_np(const posix_spawnattr_t * __restrict, uid_t) __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
+int     posix_spawnattr_set_persona_gid_np(const posix_spawnattr_t * __restrict, gid_t) __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
+int     posix_spawnattr_set_persona_groups_np(const posix_spawnattr_t * __restrict, int, gid_t *, uid_t) __OSX_AVAILABLE_STARTING(__MAC_10_11, __IPHONE_9_0);
+int     posix_spawnattr_set_max_addr_np(const posix_spawnattr_t * __restrict attr, uint64_t max_addr) __OSX_AVAILABLE_STARTING(__MAC_10_14, __IPHONE_12_0);
+
 #endif /* !defined _SPAWN_PRIVATE_H_*/