From owner-freebsd-questions Wed Oct 14 19:50:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA18295 for freebsd-questions-outgoing; Wed, 14 Oct 1998 19:50:39 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kakapo.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA18288 for ; Wed, 14 Oct 1998 19:50:36 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from tui.pinnacle.co.nz (tui.pinnacle.co.nz [202.37.163.3]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id PAA09982 for ; Thu, 15 Oct 1998 15:48:33 +1300 (NZDT) (envelope-from jonc@pinnacle.co.nz) Date: Thu, 15 Oct 1998 15:48:32 +1300 From: Jonathan Chen To: freebsd-questions@FreeBSD.ORG Subject: ibcs2 emulation & stat(2) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I've encountered an incompatibilty in the ibcs2 emulation which is somewhat worrying. Running 2.2.7-RELEASE, the following code: #include #include #include main () { struct stat info; if (stat (".", &info)) { printf ("Failed!\n"); return EXIT_FAILURE; } printf ("inode: %d\n", info.st_ino); return EXIT_SUCCESS; } returns different inode-values, when run using COFF binaries (compiled on SCO OpenServer 5) vs. running a native-compiled binary. Has anyone encountered this error, with a possible fix? Or do I have to delve into the ibcs2 LKM code cold? -- Jonathan Chen | de-moc-ra-cy (di mok' ra see) n. Three wolves | and a sheep voting on what's for dinner. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message