From owner-freebsd-questions  Wed Jul  3 20:43:30 2002
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 062AA37B400
	for <freebsd-questions@freebsd.org>; Wed,  3 Jul 2002 20:43:26 -0700 (PDT)
Received: from ns.prologic.com (ns.prologic.com [209.181.124.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 71F7343E09
	for <freebsd-questions@freebsd.org>; Wed,  3 Jul 2002 20:43:25 -0700 (PDT)
	(envelope-from bodkins@ns.prologic.com)
Received: (from bodkins@localhost)
	by ns.prologic.com (8.9.2/8.9.2) id UAA26879
	for freebsd-questions@freebsd.org; Wed, 3 Jul 2002 20:53:16 -0700 (MST)
	(envelope-from bodkins)
Date: Wed, 3 Jul 2002 20:53:16 -0700 (MST)
From: bodkins <bodkins@ns.prologic.com>
Message-Id: <200207040353.UAA26879@ns.prologic.com>
To: freebsd-questions@freebsd.org
Subject: ISC emulation question
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-questions.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
X-Loop: FreeBSD.ORG

Hi,

   I am having problems getting a simple socket() call to work under IBCS2
emulation. This is the code as compiled on ISC.

...

int ServerSocket;
int main(){

        ServerSocket = socket(2, 1, 6);
        if ( ServerSocket < 0) {
                printf("ConnectToServer:Cannot create socket # %d\n",
errno);
                return(-1);
        }

   printf("created ok\n");

}


   I hardcoded the args just to avoid any header inconsitencies. I get an
ENOENT (2) error.

   This is my /compat/ibcs2/dev directory. (Note, it was built as a link to
/usr/compat. Although I tried it at /compat just to check)

FreeBSD/usr/chms/src/ngsubs > ls -lF /compat/ibcs2/dev
total 0
lrwxr-xr-x  1 root  wheel         9 Jul  2 01:07 X0R@ -> /dev/null
lrwxr-xr-x  1 root  wheel         7 Jul  2 01:07 nfsd@ -> socksys
-rwxrwxrwx  1 root  wheel         0 Jul  2 01:08 null*
lrwxr-xr-x  1 root  wheel         9 Jul  2 01:07 socksys@ -> /dev/null
crwxrwxrwx  1 root  wheel   41,   1 Jul  2 01:08 spx*

   This is a kldstat

gate# kldstat
Id Refs Address    Size     Name
 1    7 0xc0100000 3a5184   kernel
 2    2 0xc124a000 a000     ibcs2.ko
 3    1 0xc1258000 3000     ibcs2_coff.ko
 4    1 0xc125f000 4000     logo_saver.ko
 5    1 0xc1265000 12000    linux.ko
 6    1 0xc128d000 3000     streams.ko
 7    1 0xc1292000 11000    svr4.ko
gate#


   Any ideas?

Thanks
Jim








To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message