X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..refs/heads/master:/stdio/FreeBSD/funopen.c diff --git a/stdio/FreeBSD/funopen.c b/stdio/FreeBSD/funopen.c index 64a56f2..408f0f4 100644 --- a/stdio/FreeBSD/funopen.c +++ b/stdio/FreeBSD/funopen.c @@ -63,7 +63,8 @@ funopen(const void *cookie, else flags = __SRW; /* read-write */ } - if ((fp = __sfp()) == NULL) + /* funopen in not covered in SUSv3, so never count the streams */ + if ((fp = __sfp(0)) == NULL) return (NULL); fp->_flags = flags; fp->_file = -1;