_wrtchk
extern int _wrtchk(FILE *iop);
? _wrtchk(iop) : 0)
if (_wrtchk(iop) != 0) /* check, correct permissions */