secure_file
if (!secure_file(fd, pathname, directory, uid, 1)) {
int secure_file(int, char *, char *, uid_t, int);