+static os_unfair_lock __environ_lock_obj = OS_UNFAIR_LOCK_INIT;
+__private_extern__ void
+__environ_lock(void)
+{
+ os_unfair_lock_lock_with_options(
+ &__environ_lock_obj, OS_UNFAIR_LOCK_DATA_SYNCHRONIZATION);
+}
+__private_extern__ void
+__environ_unlock(void)
+{
+ os_unfair_lock_unlock(&__environ_lock_obj);
+}
+__private_extern__ void
+__environ_lock_fork_child(void)
+{
+ __environ_lock_obj = OS_UNFAIR_LOCK_INIT;
+}
+