BSD syscall#2
svc · unix #2
fork
Duplicates the calling process, returning the child's PID in the parent and 0 in the child.
Prototype
int fork(void);Returns: int
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-1456.1.26 | macOS 10.6 Snow Leopard | 2 |
| xnu-1486.2.11 | — | 2 |
| xnu-1504.15.3 | — | 2 |
| xnu-1504.3.12 | — | 2 |
| xnu-1504.7.4 | — | 2 |
| xnu-1504.9.17 | — | 2 |
| xnu-1504.9.26 | — | 2 |
| xnu-1504.9.37 | — | 2 |
Notes
No prose documentation yet.