HomeFreeBSD

MFC r279084,280713: setmode(): Use sysctl kern.proc.umask instead of umask()

Description

MFC r279084,280713: setmode(): Use sysctl kern.proc.umask instead of umask()
if possible.

The kern.proc.umask.<pid> sysctl allows querying the umask without
temporarily modifying it.

r280713 is the actual change, while r279084 is a whitespace change.

Details

Provenance
jillesAuthored on
Parents
rS287297: - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()
Branches
Unknown
Tags
Unknown