This is the mail archive of the cygwin@cygwin.com 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: stat/fstat incompatibility w/ unix sockets


On Thu, Feb 20, 2003 at 06:47:39PM -0500, Paul Swartz wrote:
> On 20 Feb 2003 at 22:40, Corinna Vinschen wrote:
> > As you can see, there's also nothing which would help you in using the
> > result to identify the sockets as being the same.  Even the timestamps
> > aren't identical.
> 
> No one field can say it's the same file.  All of them together, or a 
> sufficiently large number of them, does.

Nope.  How should they?  The really interesting fields are not identical
as e. g. st_dev, st_ino, st_mode, st_ctime.  Anyway, that's not a Cygwin
issue anymore.

> Even if it isn't completely portable, at the very least, things like the 
> uid/gid definatly shouldn't change.  The ctime/mtime probably shouldn't 
> either, I'm less sure about atime.  I don't have a copy of POSIX, does that 
> say anything about the stat/fstat semantics?

SUSv3: http://www.opengroup.org/

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin at cygwin dot com
Red Hat, Inc.

Attachment: sock-stat.c
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]