summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/stdio.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2008-05-03 20:09:44 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2008-05-03 20:09:44 +0000
commit430f2c87214700ba8711ac0ca65701bf693c8ce8 (patch)
treebe92fe241628eb7d64b39c9b039e514ea298d2dc /lib/libc/stdio/stdio.c
parent957d0a092d6c6cd2ac3cd9acab32da2d2655073e (diff)
Notes
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 2447d180ef56..3da2957b82b7 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.
*/