1 /* CC0 (Public domain) - see LICENSE file for details */
7 * close_noerr - close without stomping errno.
8 * @fd: the file descriptor to close.
10 * errno is saved and restored across the call to close: if an error occurs,
11 * the resulting (non-zero) errno is returned.
13 int close_noerr(int fd);
16 * fclose_noerr - close without stomping errno.
17 * @fp: the FILE pointer.
19 * errno is saved and restored across the call to fclose: if an error occurs,
20 * the resulting (non-zero) errno is returned.
22 int fclose_noerr(FILE *fp);
25 * unlink_noerr - unlink a file without stomping errno.
26 * @pathname: the path to unlink.
28 * errno is saved and restored across the call to unlink: if an error occurs,
29 * the resulting (non-zero) errno is returned.
31 int unlink_noerr(const char *pathname);