This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: apparent bug: incorrect file position after write()


> -----Original Message-----
> From: cygwin-owner@cygwin.com 
> [mailto:cygwin-owner@cygwin.com] On Behalf Of imaginate 
> australiamail.com
> Sent: Saturday, March 05, 2005 3:26 PM
> To: cygwin@cygwin.com
> Subject: Re: apparent bug: incorrect file position after write()
> 
> > 
> > Brian Dessent wrote:
> > 
> > > If > you don't want that, then don't use textmode mounts.
> > 
> > ...or open the file with O_BINARY.
> > 
> 
> Mounting binary solves the problem - I wasn't aware of that 
> functionality.  O_BINARY is probably not so portable so I'll 
> steer clear of that.
> 
> Cheers for the help.
> 

O_BINARY is POSIX.  Use it.  Do this if you have to:

#ifndef O_BINARY
#define O_BINARY 0

-- 
Gary R. Van Sickle
 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]