[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read-file on HP NonStop
From: |
Bruno Haible |
Subject: |
Re: read-file on HP NonStop |
Date: |
Tue, 5 Oct 2010 03:51:36 +0200 |
User-agent: |
KMail/1.9.9 |
Joachim Schmitz writes:
> Doesn't work here, same problem:
> Read 68 from /etc/resolv.conf...
> FAIL: test-read-file
>
> And to clarify: the problem is not the symlink, it is the different
> personalities in NonStop. A symlink inside the OSS personality wouldn't
> be a problem, a symlink to an EDIT file in Guardian is, in respect to
> the size stat() reports.
This means, you have a problem with stat() or with the S_ISREG macro.
In Unix, when S_ISREG of a file is true, then you should be able to read
exactly as many bytes from the file as stat() returned in the st_size.
Therefore on NonStop Kernel, so that stat() and S_ISREG works on all files,
one of the following needs to be done:
a) stat() needs to be fixed or wrapped, so that it sets the st_size
to 68 instead of 2144 in said situation.
b) stat() needs to be fixed or wrapped, so that it sets the st_mode
field to a value for which S_ISREG returns 0.
c) S_ISREG needs to be fixed or replaced, so that it returns 0 when
given as argument the st_mode value from an statbuf for said file.
Bruno
- Re: ACLs on HP NonStop, (continued)
- Re: ACLs on HP NonStop, Bruno Haible, 2010/10/03
- RE: ACLs on HP NonStop, Schmitz, Joachim, 2010/10/03
- Re: ACLs on HP NonStop, Bruno Haible, 2010/10/03
- RE: ACLs on HP NonStop, Schmitz, Joachim, 2010/10/03
- Re: ACLs on HP NonStop, Bruno Haible, 2010/10/03
- Re: read-file on HP NonStop, Bruno Haible, 2010/10/03
- RE: read-file on HP NonStop, Schmitz, Joachim, 2010/10/04
- Re: read-file on HP NonStop, Paolo Bonzini, 2010/10/04
- RE: read-file on HP NonStop, Schmitz, Joachim, 2010/10/04
- Re: read-file on HP NonStop, Bruno Haible, 2010/10/04
- Message not available
- Re: read-file on HP NonStop,
Bruno Haible <=
- RE: read-file on HP NonStop, Schmitz, Joachim, 2010/10/05
- Re: read-file on HP NonStop, Pádraig Brady, 2010/10/05
- RE: ACLs on HP NonStop, Schmitz, Joachim, 2010/10/03
- Re: ACLs on HP NonStop, Bruno Haible, 2010/10/03
- RE: ACLs on HP NonStop, Schmitz, Joachim, 2010/10/03
- Message not available
- RE: ACLs on HP NonStop, Schmitz, Joachim, 2010/10/03