Port-sparc64 archive

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

Re: compat_svr4 problems



On Tue, Sep 23, 2008 at 04:40:57AM +1000, matthew green wrote:
> 
>    I run NetBSD 32-bit sun4u kernel with 32-bit userland. Trying to use 
> Solaris 
>    32-bit binaries (from Nevada build 98) with compat_svr4, but every binary 
>    dumps core
>    
>    # ./ls
>    [1]   Bad system call (core dumped) ./ls
>    
>    # ktruss -t A ./ls
>      1264      1 ktruss   emul(netbsd)
>      1264      1 ktruss   fcntl(0x4, 0x3, 0)          = 1, 3
>      1264      1 ktruss   fcntl(0x4, 0x4, 0x1)        = 0, 4
>      1264      1 ls       emul(svr4)
>      1264      1 ls       execve("./ls", 0xffffcc88, 0xffffcc90) JUSTRETURN
>      1264      1 ls       #229 (unimplemented)()      Err#89 ENODATA
>      1264      1 ls       SIGSYS SIG_DFL
>    
>    Any ideas? What does #229 (unimplemented) mean?
>    
> 
> it means that newer solaris has new system calls that we do not yet
> support via emluation....  aka "unimplemented", and the syscall 
> number is 229.

This one looks simple: #define SYS_getcwd 229 (*1).  And implemented as (*2).

-- 
Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)

(*1) 
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/syscall.h
(*2) 
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/syscall/getcwd.c


Home | Main Index | Thread Index | Old Index