kill sprintf
Fix sizeof errors in memset calls in heimdal.
sizeof(array - 1) decays to sizeof(pointer), but (sizeof(array) - 1)
was actually wanted.

The effect of this bug is that only a few bytes of the hostname are mixed
into the random seed, instead of using the entire hostname.
Use calloc instead of malloc + memset.  This fixes a bug
in which the wrong size was passed to memset.
From Ilya Zykov:
- ifdef out some code that is only used for NO_DEV_PTM
- pass the mountpoint instead of the ptm structure to the implementation
  dependent (ptyfs or bsdpty) functions.
- add a function to return the correct ptyfs mountpoint for the current lwp
correct/add protection against snprintf overflow.
remove a bunch of repetitive code by introducing filemon_printf.
cleanup debugging printfs to avoid overflow
format is a pointer, so sizeof(format) is not a good length
to pass to snprintf.  Try to calculate the correct length,
taking into account the amount of space already used.
explain how a printf might happen (since it has bitten more than one person)
forgot to commit one patch:
Avoid returning released(free), but still hashed inode numbers.
(Ilya Zykov)
add missing dependencies (Takahiro HAYASHI)
Merge upstream fixes.
avoid buffer overflow
Deal with snprintf more gracefully.
Add missing 3rd argument of nicenum
Fix some snprintf
Add missing 4th argument of ddt_object_name
Fix migrating to snprintf_blkptr
Complete migrating to snprintf_blkptr