aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-04-12 08:57:51 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-04-12 20:29:36 +0000
commitf286933c950f6308117c8400f36f3160f6227491 (patch)
tree24ea1be507110ebd36645008e9870bd9fba15995
parentece716c5d34728a170f1dfe1b3389c267d6ddd1e (diff)
unistd.h: _Fork(2) is required by POSIX 2024
Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56362
-rw-r--r--include/unistd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 21e3a7740607..797eac4c364d 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -453,6 +453,10 @@ int unlinkat(int, const char *, int);
int symlink(const char * __restrict, const char * __restrict);
#endif
+#if __POSIX_VISIBLE >= 202405
+pid_t _Fork(void);
+#endif
+
/* X/Open System Interfaces */
#if __XSI_VISIBLE
char *crypt(const char *, const char *);
@@ -594,7 +598,6 @@ int undelete(const char *);
int unwhiteout(const char *);
void *valloc(size_t); /* obsoleted by malloc() */
int funlinkat(int, const char *, int, int);
-pid_t _Fork(void);
#ifndef _OPTRESET_DECLARED
#define _OPTRESET_DECLARED