FreeBSD/src 1575a79 (r350067)contrib/netbsd-tests/lib/libc/gen t_ftok.c, contrib/netbsd-tests/lib/libc/stdio t_fopen.c

Add missing mode in open(2) calls with O_CREAT.

When O_CREAT is specified, the third, variadic argument is
required as the permission. If on is not passed, then depending
on the ABI, either the contents of the third argument register
or some arbitrary stuff on the stack will be used as the permission.

This has been merged to NetBSD.

Reviewed by:    asomers, ngie
Obtained from:  CheriBSD
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D20972
DeltaFile
+5-5contrib/netbsd-tests/lib/libc/sys/t_stat.c
+3-3contrib/netbsd-tests/lib/libc/stdio/t_fopen.c
+3-3contrib/netbsd-tests/lib/libc/sys/t_write.c
+1-1contrib/netbsd-tests/lib/libc/gen/t_ftok.c
+1-1contrib/netbsd-tests/lib/libc/sys/t_access.c
+1-1contrib/netbsd-tests/lib/libc/sys/t_mprotect.c
+14-146 files

UnifiedSplitRaw