diff options
author | marcel <marcel@FreeBSD.org> | 2008-05-03 20:09:44 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-05-03 20:09:44 +0000 |
commit | 86d85f532d68124813974634067dd896ce9ff724 (patch) | |
tree | be92fe241628eb7d64b39c9b039e514ea298d2dc /lib/libc/stdio/stdio.c | |
parent | a8f68da22d36662da47e68636417290e834dd687 (diff) | |
download | FreeBSD-src-86d85f532d68124813974634067dd896ce9ff724.zip FreeBSD-src-86d85f532d68124813974634067dd896ce9ff724.tar.gz |
Unbreak build: libftpio gropes inside struct __sFILE. Implement
accessor functions for its benefit now thaat FILE is opaque.
I'm sure there's a better way. I leave that for people to work
on in a src tree that isn't broken.
Pointy hat: jhb
Diffstat (limited to 'lib/libc/stdio/stdio.c')
-rw-r--r-- | lib/libc/stdio/stdio.c | 14 |
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. */ |