]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r279084,280713: setmode(): Use sysctl kern.proc.umask instead of umask()
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 29 Aug 2015 20:41:09 +0000 (20:41 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 29 Aug 2015 20:41:09 +0000 (20:41 +0000)
commit2d865190c2eb0626a9c35c251a327cc96f9c706d
treea25c0b51170b6168543b435d9946038d8f030381
parent1b16053092b97e6ab869ad6db60d82b0a36d47ec
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@287298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/setmode.c