git: 803a89285639 - stable/15 - unistd.h: _Fork(2) is required by POSIX 2024
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Apr 2026 00:42:46 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=803a892856398a1713886c09756803a8d148a470
commit 803a892856398a1713886c09756803a8d148a470
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-04-12 08:57:51 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-04-17 00:42:38 +0000
unistd.h: _Fork(2) is required by POSIX 2024
(cherry picked from commit f286933c950f6308117c8400f36f3160f6227491)
---
include/unistd.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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