[1036] in NetBSD-Development
Sparc emulation runs afoul of AFS misfeature
daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Oct 3 20:15:32 1995
Date: Tue, 3 Oct 1995 20:14:59 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: netbsd-afs@MIT.EDU
Cc: netbsd-dev@MIT.EDU
The AFS readdir() vnode operation returns a bunch of directory entries
with the last entry's length field set to all of the remaining buffer
space (i.e. if there are 940 bytes remaining for the last entry, it
sets d_reclen for the last entry to be 940). This works for most
purposes, but in Sparc emulation it fails because Sparc directory
entries are slightly longer than NetBSD directory entries.
I made a halfhearted attempt to fix this misfeature, but it failed.
(I backed out my change.) The AFS readdir vnode operation is really
gross.
While I'm here, does anyone know how Solaris emulation is supposed to
work with network code? X programs seem to fail as soon as they try
to open /dev/tcp or the equivalent Unix domain socket device, even if
I make an appropriate /emul/svr4/dev/tcp entry.