summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-01 18:19:23 +0000
committerngie <ngie@FreeBSD.org>2015-12-01 18:19:23 +0000
commitf2f170ddd8d54aa95c75879e4e329feaf19ef119 (patch)
treecba970673e1ceed9b626c0054c7fce1f318a3d68 /include
parentff68307fb48ebed764757b9f0ff301df2f3d8825 (diff)
downloadFreeBSD-src-f2f170ddd8d54aa95c75879e4e329feaf19ef119.zip
FreeBSD-src-f2f170ddd8d54aa95c75879e4e329feaf19ef119.tar.gz
MFC r285140:
r285140 (by oshogbo): 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
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index d37ea06..5d3e5a2 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -399,6 +399,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 *);
OpenPOWER on IntegriCloud