_delete
extern pid_t _delete(int fd);
pid = _delete(fileno(ptr));
pid = _delete(fds[0]);
if (pid != _delete(fds[1]))