]> git.saurik.com Git - apple/libc.git/blob - stdio/FreeBSD/funopen.c.patch
Libc-763.13.tar.gz
[apple/libc.git] / stdio / FreeBSD / funopen.c.patch
1 --- funopen.c.bsdnew 2009-11-11 13:33:10.000000000 -0800
2 +++ funopen.c 2009-11-11 13:33:10.000000000 -0800
3 @@ -63,7 +63,8 @@ funopen(cookie, readfn, writefn, seekfn,
4 else
5 flags = __SRW; /* read-write */
6 }
7 - if ((fp = __sfp()) == NULL)
8 + /* funopen in not covered in SUSv3, so never count the streams */
9 + if ((fp = __sfp(0)) == NULL)
10 return (NULL);
11 fp->_flags = flags;
12 fp->_file = -1;