Lin?ux?u?la?tor problem
Chagin Dmitry
dchagin at freebsd.org
Sun May 19 19:35:47 UTC 2013
On Tue, May 14, 2013 at 03:42:17PM -0500, Adam Vande More wrote:
> I'm trying to get an ancient Linux app called IMS System
> Administration Utility V2.02 (07-Dec-90) going.
>
> Unfortunately, it fails here:
>
> 910 sysval NAMI "/compat/linux/secfile"
> 910 sysval NAMI "/compat/linux"
> 910 sysval NAMI "/compat/linux/secfile"
> 910 sysval RET linux_access 0
> 910 sysval CALL linux_socketcall(0x1,0xbfbfdc5c)
> 910 sysval RET linux_socketcall -1 errno 22 Invalid argument
the problem is here ^^^^^^^^^^^^^^^^^^^
please, try with:
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index a66a62d..cae7d71 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -645,6 +645,9 @@ linux_socket(struct thread *td, struct linux_socket_args *args)
} */ bsd_args;
int retval_socket, socket_flags;
+ uprintf("socket %d, %d, %d", args->domain, args->type,
+ args->protocol);
+
bsd_args.protocol = args->protocol;
socket_flags = args->type & ~LINUX_SOCK_TYPE_MASK;
if (socket_flags & ~(LINUX_SOCK_CLOEXEC | LINUX_SOCK_NONBLOCK))
and show result.
> 910 sysval CALL linux_ioctl(0xffffffff,0x8927,0xbfbfdc80)
> 910 sysval RET linux_ioctl -1 errno 9 Bad file descriptor
> 910 sysval CALL close(0xffffffff)
> 910 sysval RET close -1 errno 9 Bad file descriptor
> 910 sysval CALL linux_open(0x808be70,0,0x1)
> 910 sysval NAMI "/compat/linux/dev/tty"
> 910 sysval NAMI "/dev/tty"
> 910 sysval RET linux_open 3
>
> Does anyone have insight into this problem? I did create
> /dev/tty...perhaps there is some incompatibility?
>
> --
> Adam Vande More
> _______________________________________________
> freebsd-emulation at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> To unsubscribe, send any mail to "freebsd-emulation-unsubscribe at freebsd.org"
--
Have fun!
chd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20130519/695d51cc/attachment.sig>
More information about the freebsd-emulation
mailing list