This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [OB PATCH] Don't assume File-I/O mode bits match the host's format
- From: Andreas Schwab <schwab at suse dot de>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 09 Jun 2015 14:43:22 +0200
- Subject: Re: [OB PATCH] Don't assume File-I/O mode bits match the host's format
- Authentication-results: sourceware.org; auth=none
- References: <1433853129-9470-1-git-send-email-gbenson at redhat dot com>
Gary Benson <gbenson@redhat.com> writes:
> + if (fileio_mode & ~FILEIO_S_SUPPORTED)
> + return -1;
> + if (fileio_mode & FILEIO_S_IFCHR)
> + mode |= S_IFCHR;
FILEIO_S_SUPPORTED doesn't include FILEIO_S_IFCHR, so this is never
true.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."