This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
fopen() with open() and fdopen()
- From: Muzaffer Ozakca <muzaffer dot ozakca at bilten dot metu dot edu dot tr>
- To: glibc list <glibc-linux at ricardo dot ecn dot wfu dot edu>
- Date: Thu, 29 Nov 2001 07:22:26 +0000
- Subject: fopen() with open() and fdopen()
- Organization: Tubitak - Bilten
- Reply-to: glibc-linux at ricardo dot ecn dot wfu dot edu
Hello,
Can we mimic the behavior of fopen() with open() and fdopen(). What
consequences will arise?
What about fclose(), can we just fflush() and close() instead of calling
fclose(). I guess, open/fdopen() will work, but I have doubts that using
fflush() and close() will leak memory in stdio. What do you think?
--
Muzaffer