This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
fileio.exp
- From: Mark Kettenis <kettenis at chello dot nl>
- To: vinschen at redhat dot com
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 24 Jan 2004 18:53:33 +0100 (CET)
- Subject: 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