Page MenuHomeFreeBSD

system(3): Clarify return values
ClosedPublic

Authored by des on Feb 24 2026, 1:44 PM.
Tags
None
Referenced Files
F173614858: D55483.id172584.diff
Sun, Sep 27, 5:00 AM
F173605752: D55483.id.diff
Sun, Sep 27, 3:36 AM
F173545424: D55483.diff
Sat, Sep 26, 6:19 PM
Unknown Object (File)
Thu, Sep 24, 10:08 AM
Unknown Object (File)
Wed, Sep 16, 2:56 PM
Unknown Object (File)
Thu, Sep 10, 12:41 PM
Unknown Object (File)
Tue, Sep 8, 5:52 PM
Unknown Object (File)
Mon, Sep 7, 11:32 PM
Subscribers

Details

Summary

Our manual page currently states that system() will return 127 if it
fails to execute the shell. The actual return value is, to quote POSIX,
“as if the command language interpreter had terminated using exit(127)
or _exit(127)”.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70953
Build 67836: arc lint + arc unit