]>
Commit | Line | Data |
---|---|---|
1f2f436a A |
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, | |
34e8f829 A |
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; |