COMPAT_43 and the linuxolator

Matthew Dillon dillon at
Fri Aug 15 18:52:59 PDT 2003

    We definitely can't rename COMPAT_43 to COMPAT_LINUX for the
    remaining functions.  Could you post an example of the problem
    area?  It seems it ought to be possible to convert the linux code
    to use the newer syscalls.

					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

:I've hit a problem with tearing out COMPAT_43.  Our linux emulation code
:relies heavily on the old sockaddr sruct.  I think I have two options:
:   1) Replace COMPAT_43 #ifdef's with COMPAT_LINUX #ifdef's.  This would
:      allow the linux emulator to work, however it pollutes the kernel
:      source.
:   2) Copy our socket functions into the linux emulation code preserving
:      the COMPAT_43 code.  In this case the native and linux versions only
:      differ by a couple of lines of code.  This would however put the
:      compatibility garbage in the linux emulation code where it probably
:      belongs.
:It would be great if I could modify a sockaddr struct after something like
:an ioctl or a call to accept, however the copyout takes place in the
:function call.
:   David P. Reese, Jr.                                     daver at xxxxxxxxxxxx

More information about the Kernel mailing list