Improve prior commits to file.

1. Add get_tst_tmpdir() to get the value of TESTDIR for anything that needs it.
2. Use the __func__ C89 constant instead of FN_NAME.
3. Fix a bug where stat != 0 was being checked instead of stat == 0.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2 files changed