DragonFly BSD
DragonFly kernel List (threaded) for 2003-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

COMPAT_43 and the linuxolator

From: "David P. Reese Jr." <daver@xxxxxxxxxxxx>
Date: 15 Aug 2003 23:17:48 GMT

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

   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

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@xxxxxxxxxxxx

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]