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


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,
Andrew

Ian

	* configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
	Check for struct statfs.
	* emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
	* configure, config.in: Regenerate.



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