This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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: fileio.exp


Hi Mark,

On Jan 24 18:53, Mark Kettenis wrote:
> Hi Corinna,
> 
> The filio.c file, used in the filio.exp test, contains the following
> the following line of code:
> 
>   ret = open (FILENAME, O_CREAT | O_TRUNC | O_RDONLY, S_IWUSR | S_IRUSR);
> 
> On OpenBSD, this call to open(2) fails with EINVAL, since OpenBSD
> doesn't allow O_TRUNC without O_RDWR or O_WRONLY.  Is there any
> particular reason why you've chosen this particular combination of
> flags for the test?  Do you have an objection to me changing the
> O_RDONLY into O_RDWR?

not at all.  The open at this point should "just work", otherwise the
followup tests are at risk.

Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.


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