summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/stdio.c')
-rw-r--r--lib/libc/stdio/stdio.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c
index 2447d18..3da2957 100644
--- a/lib/libc/stdio/stdio.c
+++ b/lib/libc/stdio/stdio.c
@@ -46,6 +46,20 @@ __FBSDID("$FreeBSD$");
#include "un-namespace.h"
#include "local.h"
+void *
+__fgetcookie(FILE *fp)
+{
+
+ return (fp->_cookie);
+}
+
+void
+__fsetfileno(FILE *fp, int fd)
+{
+
+ fp->_file = fd;
+}
+
/*
* Small standard I/O/seek/close functions.
*/
OpenPOWER on IntegriCloud