HomeFreeBSD

linux(4): make getcwd(2) return ERANGE instead of ENOMEM

Description

linux(4): make getcwd(2) return ERANGE instead of ENOMEM

For native FreeBSD binaries, the return value from __getcwd(2)
doesn't really matter, as the libc wrapper takes over and returns
the proper errno.

PR: kern/254120
Reported By: Alex S <iwtcex@gmail.com>
Reviewed By: kib
Sponsored By: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29217

(cherry picked from commit 0dfbdd9fc269f0438ffcc31632d35234a90584ad)

Details

Provenance
traszAuthored on Mar 12 2021, 3:31 PM
Reviewer
kib
Differential Revision
D29217: linux(4): make getcwd(4) return ERANGE instead of ENOMEM
Parents
rG0264d12ee865: Make kern.timecounter.hardware tunable
Branches
Unknown
Tags
Unknown