in reply to Re: Why does fpathconf give "bad file descriptor"?
in thread Why does fpathconf give "bad file descriptor"?
I did realize that it might be returning 0 and modified my code to check for defined values but that didn't make any difference... plus it's really not possible for a pipe to have a buffer size of 0 so that's just not a valid result.
As stated, I need to use fileno(). So simple... in hindsight
Thanks all!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why does fpathconf give "bad file descriptor"?
by ikegami (Patriarch) on Mar 31, 2010 at 19:49 UTC | |
by madscientist (Novice) on Apr 01, 2010 at 04:25 UTC |