summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoroshogbo <oshogbo@FreeBSD.org>2015-07-04 16:42:14 +0000
committeroshogbo <oshogbo@FreeBSD.org>2015-07-04 16:42:14 +0000
commite1ffe0f912feb756dc9cddef6953a09a9e9d6605 (patch)
treee614562cff4421bbd6605abcd4a8622399f988f4 /include
parent852c8fe5892ac15db686e35cc70e512fd442325a (diff)
downloadFreeBSD-src-e1ffe0f912feb756dc9cddef6953a09a9e9d6605.zip
FreeBSD-src-e1ffe0f912feb756dc9cddef6953a09a9e9d6605.tar.gz
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 eaebff8..5a5b82b 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 *);
OpenPOWER on IntegriCloud