Subject: Re: Support for linux syscall fcntl64
To: Tero Kivinen <kivinen@ssh.fi>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: current-users
Date: 12/06/2001 23:43:18
Tero Kivinen wrote:
> I am trying to run vuescan 7.1 on netbsd machine, and I run into
> problems. The vuescan binary seems to use linux fcntl64 system call
> and exits immediately if it is not found. Is there any plans adding
> support for that? Is there other linux system calls netbsd current is
> missing?

Can you gather some information what is the difference of
this syscall compared to common fcntl() and send-pr it? It should
be pretty easy to emulate, I'd gladly take care of it if you'd provide
me with some basic info :) 

Jaromir

> The ktrace of the vuescan_static is:
> ----------------------------------------------------------------------
>  17143 ktrace   EMUL  "netbsd"
>  17143 ktrace   CALL  execve(0xbfbfd50b,0xbfbfd408,0xbfbfd410)
>  17143 ktrace   NAMI  "./vuescan_static"
>  17143 vuescan_static EMUL  "linux"
>  17143 vuescan_static RET   execve -1 errno -2 No such file or directory
>  17143 vuescan_static CALL  #221 (unimplemented fcntl64)
>  17143 vuescan_static RET   #221 (unimplemented fcntl64) -1 errno -38 Too many processes
>  17143 vuescan_static CALL  fcntl(0,0x1,0)
>  17143 vuescan_static RET   fcntl 0
>  17143 vuescan_static CALL  fcntl(0x1,0x1,0)
>  17143 vuescan_static RET   fcntl 0
>  17143 vuescan_static CALL  fcntl(0x2,0x1,0)
>  17143 vuescan_static RET   fcntl 0
>  17143 vuescan_static CALL  uname(0xbfbfd1b0)
>  17143 vuescan_static RET   uname 0
>  17143 vuescan_static CALL  write(0x2,0x844fbe9,0x16)
>  17143 vuescan_static GIO   fd 2 wrote 22 bytes
>        "FATAL: kernel too old
>        "
>  17143 vuescan_static RET   write 22/0x16
>  17143 vuescan_static CALL  rt_sigprocmask(0x1,0xbfbfd070,0,0x8)
>  17143 vuescan_static RET   rt_sigprocmask 0
>  17143 vuescan_static CALL  kill(0,0x6)
>  17143 vuescan_static PSIG  SIGABRT SIG_DFL
>  17143 vuescan_static NAMI  "vuescan_static.core"
> -- 
> kivinen@ssh.fi
> SSH Communications Security                  http://www.ssh.fi/
> SSH IPSEC Toolkit                            http://www.ssh.fi/ipsec/
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=  Those who would give up liberty for a little temporary safety deserve  =-
-=  neither liberty nor safety, and will lose both.  -- Benjamin Franklin  =-