HomeFreeBSD

Both C99 and POSIX directly prohibits any standard function to set errno

Description

Both C99 and POSIX directly prohibits any standard function to set errno
to 0. Breaking this rule in 2001 NetBSD hack was imported which attempts
to workaround very limited glob() return codes amount. Use POSIX-compatible
workaround now with E2BIG which can't comes from other functions used
instead of prohibited 0.

Details

Provenance
acheAuthored on
Parents
rS303563: sx: increment spin_cnt before cpu_spinwait in xlock
Branches
Unknown
Tags
Unknown