]>
Commit | Line | Data |
---|---|---|
34e8f829 A |
1 | --- funopen.c.orig 2009-02-15 03:11:22.000000000 -0800 |
2 | +++ funopen.c 2009-02-15 14:02:06.000000000 -0800 | |
3 | @@ -67,7 +67,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; |