Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167527053
D56362.id175339.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56362.id175339.diff
View Options
diff --git a/include/unistd.h b/include/unistd.h
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -326,6 +326,9 @@
__BEGIN_DECLS
/* 1003.1-1990 */
void _exit(int) __dead2;
+#if __POSIX_VISIBLE >= 202405
+pid_t _Fork(void);
+#endif
int access(const char *, int);
unsigned int alarm(unsigned int);
int chdir(const char *);
@@ -595,7 +598,6 @@
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
diff --git a/lib/libsys/fork.2 b/lib/libsys/fork.2
--- a/lib/libsys/fork.2
+++ b/lib/libsys/fork.2
@@ -138,6 +138,7 @@
or
.Xr rtld 1 )
are available in the child if forked from multi-threaded parent.
+.Pp
In particular, if using dynamic linking, all dynamic symbols used by the
child after
.Fn _Fork
@@ -151,6 +152,7 @@
or by using each symbol before the
.Fn _Fork
call to force the binding.
+Either of the methods subtly changes the ABI of the resulting binary.
.Sh RETURN VALUES
Upon successful completion,
.Fn fork
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 12:17 PM (17 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37137343
Default Alt Text
D56362.id175339.diff (1 KB)
Attached To
Mode
D56362: unistd.h: _Fork(2) is required by POSIX 2024
Attached
Detach File
Event Timeline
Log In to Comment