5 * close_noerr - close without stomping errno.
6 * @fd: the file descriptor to close.
8 * errno is saved and restored across the call to close: if an error occurs,
9 * the resulting (non-zero) errno is returned.
11 int close_noerr(int fd);
14 * unlink_noerr - unlink a file without stomping errno.
15 * @pathname: the path to unlink.
17 * errno is saved and restored across the call to unlink: if an error occurs,
18 * the resulting (non-zero) errno is returned.
20 int unlink_noerr(const char *pathname);