|
@@ -30,4 +30,12 @@ int fclose_noerr(FILE *fp);
|
|
|
*/
|
|
*/
|
|
|
int unlink_noerr(const char *pathname);
|
|
int unlink_noerr(const char *pathname);
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * free_noerr - free memory without stomping errno.
|
|
|
|
|
+ * @p: the pointer to free.
|
|
|
|
|
+ *
|
|
|
|
|
+ * errno is saved and restored across the call to free: the standard leaves
|
|
|
|
|
+ * that undefined.
|
|
|
|
|
+ */
|
|
|
|
|
+void free_noerr(void *p);
|
|
|
#endif /* NOERR_H */
|
|
#endif /* NOERR_H */
|