Port contrib/netbsd-tests/fs/tmpfs/h_tools.c to FreeBSD
authorngie <ngie@FreeBSD.org>
Thu, 13 Oct 2016 07:32:25 +0000 (07:32 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 13 Oct 2016 07:32:25 +0000 (07:32 +0000)
commita517faf6e2180d3c988c54de93d6fc3203acaab6
treeb34685ae615d816dfbb457b5e2ea22007b850931
parent909f36178ab303f89089ce9772f22a3ad42b00c0
Port contrib/netbsd-tests/fs/tmpfs/h_tools.c to FreeBSD

- Add inttypes.h #include for PRId64 macro
- Use FreeBSD's copy of getfh(2), which doesn't include a `fh_size` parameter.
  Use sizeof(fhandle_t) instead as the size of fhp is always fixed as
  fhandle_t, unlike NetBSD's copy of fhp, which is void*.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
contrib/netbsd-tests/fs/tmpfs/h_tools.c