| delorie.com/archives/browse.cgi | search |
| From: | Martin Str|mberg <ams AT ludd DOT luth DOT se> |
| Message-Id: | <200106041203.OAA11068@mother.ludd.luth.se> |
| Subject: | Re: file append problem |
| To: | djgpp-workers AT delorie DOT com |
| Date: | Mon, 4 Jun 2001 14:03:56 +0200 (MEST) |
| In-Reply-To: | <3B1AD91B.15461.664B37@localhost> from "Mark E." at Jun 04, 2001 12:40:59 AM |
| X-Mailer: | ELM [version 2.5 PL2] |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp-workers AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp-workers AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
According to Mark E.: > I see two solutions: > 1) Have _flsbuf (and other places where _IOAPPEND is checked) check whether > the underlying fd has its append flag set before calling _write. > 2) Add logic to _write to check whether a file descriptor's append flag is > set and take action. Perhaps there's a third. In dup2 make sure the append flags are in sync? Right, MartinS
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |