chownsafe
safechown = chownsafe(sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL), safedir);
extern bool chownsafe __P((int, bool));