bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-hurd] Re: defining _POSIX_SYNCHRONOUS_IO although msync not ava


From: Marcus Brinkmann
Subject: Re: [Bug-hurd] Re: defining _POSIX_SYNCHRONOUS_IO although msync not available?
Date: Mon, 18 Sep 2000 05:30:54 +0200
User-agent: Mutt/1.1.4i

On Sun, Sep 17, 2000 at 10:36:12PM -0400, Roland McGrath wrote:
> > is it posixly correct to define _POSIX_SYNCHRONIZED_IO although we don't
> > support msync?
> 
> No, I don't think it is (from looking at 1003.1-1996).  That is, if
> _POSIX_MAPPED_FILES and _POSIX_SYNCHRONIZED_IO are both defined, msync is
> supposed to work.  However, _POSIX_MAPPED_FILES means you have mmap et al;
> so it's useful to define that since we do.  _POSIX_SYNCHRONIZED_IO means
> fsync and fdatasync work, so it's useful to define that since they do.
> If we want to pedanticly comply, probably _POSIX_SYNCHRONIZED_IO is the one
> that should go.

So we probably have to give in. The apt author (Jason Gunthorpe) is not
happy about a special configure check for that on the Hurd (quote: "I really
hate adding more configure tests"), and the code is correct in any way.[1]

Do we do report the correct things with sysconf (resp fsync et al)?

Mark, do you agree? Can you make the change to glibc if you do?

Thanks,
Marcus

[1] See http://bugs.debian.org/71503

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]