fileio.exp

Mark Kettenis kettenis@chello.nl
Sat Jan 24 17:53:00 GMT 2004


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?

Mark



More information about the Gdb mailing list