This is the mail archive of the gdb-patches@sourceware.org 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: [OB PATCH] Don't assume File-I/O mode bits match the host's format


Andreas Schwab wrote:
> 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.

Good spot!

It seems to me FILEIO_S_SUPPORTED should include FILEIO_S_IFCHR, would
anybody object if I made that change?

Thanks,
Gary

-- 
http://gbenson.net/


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