-#if TARGET_OS_EMBEDDED
-/*
- * posix_spawnattr_setjetsam
- *
- * Description: Set jetsam attributes for the spawn attribute object
- * referred to by 'attr'.
- *
- * Parameters: flags The flags value to set
- * priority Relative jetsam priority
- * high_water_mark Value in pages; resident page
- * counts above this level can
- * result in termination
- *
- * Returns: 0 Success
- */
-int
-posix_spawnattr_setjetsam(posix_spawnattr_t * __restrict attr,
- short flags, int priority, int high_water_mark)
-{
- _posix_spawnattr_t psattr;
-
- if (attr == NULL || *attr == NULL)
- return EINVAL;
-
- psattr = *(_posix_spawnattr_t *)attr;
-
- psattr->psa_jetsam_flags = flags;
- psattr->psa_jetsam_flags |= POSIX_SPAWN_JETSAM_SET;
- psattr->psa_priority = priority;
- psattr->psa_high_water_mark = high_water_mark;
-
- return (0);
-}
-#endif