This is the mail archive of the gdb-patches@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]

Re: PATCH RFA: Handle lack of struct statfs in ppc/sim/emul_netbsd.c


Andrew Cagney <cagney@gnu.org> writes:

> > NetBSD post 2.0 has deprecated statfs in favor of statvfs.  The statfs
> > system call still exists for compatibility purposes (if COMPAT_20),
> > but struct statfs has been removed from the header files.
> > This breaks the PowerPC simulator, which assumes that the existence
> > of
> > the statfs function implies the existence of struct statfs.
> > This patch fixes this problem in the obvious way.
> > I'm not sure why the NetBSD emulation implements fstatfs().  With
> > this
> > patch, it will stop doing so.  If implementing fstatfs() is important,
> > somebody will have to add support for the new fstatvfs() system call.
> 
> GCC, or similar, in the very distant past must have needed it.
> 
> > OK for mainline?
> 
> I've checked it in (well will, once my build comes back).

Thanks.

Ian


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