6 * close_noerr - close without stomping errno.
7 * @fd: the file descriptor to close.
9 * errno is saved and restored across the call to close: if an error occurs,
10 * the resulting (non-zero) errno is returned.
12 int close_noerr(int fd);
15 * fclose_noerr - close without stomping errno.
16 * @fp: the FILE pointer.
18 * errno is saved and restored across the call to fclose: if an error occurs,
19 * the resulting (non-zero) errno is returned.
21 int fclose_noerr(FILE *fp);
24 * unlink_noerr - unlink a file without stomping errno.
25 * @pathname: the path to unlink.
27 * errno is saved and restored across the call to unlink: if an error occurs,
28 * the resulting (non-zero) errno is returned.
30 int unlink_noerr(const char *pathname);