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]

fileio.exp


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


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