From fd1099547835ea5391feee010529cf34488af228 Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Sat, 4 Jul 2015 16:42:14 +0000 Subject: Add fdclose(3) function. This function is equivalent to fclose(3) function except that it does not close the underlying file descriptor. fdclose(3) is step forward to make FILE structure private. Reviewed by: wblock, jilles, jhb, pjd Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D2697 --- include/stdio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/stdio.h b/include/stdio.h index eaebff85e473..5a5b82bc665e 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -396,6 +396,7 @@ int (dprintf)(int, const char * __restrict, ...); int asprintf(char **, const char *, ...) __printflike(2, 3); char *ctermid_r(char *); void fcloseall(void); +int fdclose(FILE *, int *); char *fgetln(FILE *, size_t *); const char *fmtcheck(const char *, const char *) __format_arg(2); int fpurge(FILE *); -- cgit v1.3