Derek Robert Price writes:
> 
> It's been awhile since I played concurrently with descriptors and
> streams, but I thought I recalled that the only real issue was that they
> were using the same descriptor, so operations on one affected the other,
> as opposed to a dup() of a file descriptor, which keeps track of two
> sets of data about the file, two modes, two pointers, etc.

On the contrary, dup() just gives you another handle to the same open
file description -- the modes, pointers, etc. are *shared* by both fds. 
To get independence, you have to open the file again.

-Larry Jones

I can feel my brain beginning to atrophy already. -- Calvin


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to