]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r319056,r319058,r319059,r319060,r319061,r319078:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 31 May 2017 08:36:47 +0000 (08:36 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 31 May 2017 08:36:47 +0000 (08:36 +0000)
commit38d5d6d45f37c446e56479345969f5af40a71fed
tree916d9a1f46e89f65ffd25b5d22f22676f921d336
parent1d9bf8d9022c1ffaa842d2c4e72f71885fd58559
MFC r319056,r319058,r319059,r319060,r319061,r319078:

r319056:

tests/sys/file/ftruncate_test: use an exit code of 1 instead
of -1 with err*(3).

An exit code of -1 is implementation defined -- it's best to stick
with something well-defined (1).

r319058:

Create a deterministic file in the kyua sandbox, instead of a
temporary file outside the kyua sandbox

This helps ensure that the file is removed at test exit, and as
a side effect, cures a warning about umasks with Coverity.

r319059:

Use an exit code of 1 instead of -1 for reasons noted in r319056

r319060:

Use main(void) instead of main(argc __unused, argv __unused)

r319061:

Don't leak accept_fd on thread completion

CID: 1296068

r319078:

Tweak r319058 slightly

- Specify an explicit mode when using O_CREAT per open(2).
- Fix the error message (add missing enclosing parentheses).

MFC with: r319058

git-svn-id: svn://svn.freebsd.org/base/stable/10@319301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tests/sys/file/ftruncate_test.c
tests/sys/file/newfileops_on_fork_test.c