From owner-freebsd-hackers Thu Nov 11 7:10:49 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (Postfix) with ESMTP id 04E7A14D3A for ; Thu, 11 Nov 1999 07:10:44 -0800 (PST) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.28]) by lamb.sas.com (8.9.3/8.9.1) with SMTP id KAA21347 for ; Thu, 11 Nov 1999 10:10:43 -0500 (EST) Received: from bb01f39.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA23674; Thu, 11 Nov 1999 10:10:13 -0500 Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.9.1/8.9.1) id KAA96198 for freebsd-hackers@freebsd.org; Thu, 11 Nov 1999 10:10:13 -0500 (EST) (envelope-from jwd) From: "John W. DeBoskey" Message-Id: <199911111510.KAA96198@bb01f39.unx.sas.com> Subject: Wine: What am I missing (lseek/write) To: freebsd-hackers@freebsd.org Date: Thu, 11 Nov 1999 10:10:13 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm working on wine on a 4.0-19990827-SNAP system. The application I have calls WriteFile(), in files/file.c, line 1145. The write() call is failing with: WriteFile: File too large[27] Note: I added the fprintf() to show the above... Well, this is happenning on filedesc 14, so for grins I added the following just above the write call: if (unix_handle == 14) { off_t x = lseek(unix_handle, 0, SEEK_CUR); if (x == -1) fprintf(stderr,"WriteFile lseek %s[%d]\n",strerror(errno),errno); else fprintf(stderr,"WriteFile fd:14 SEEK_CUR,0 == %ld\n",x); } It shows: WriteFile lseek No such file or directory[2] Somewhere, somehow, I'm missing something... I've run wine with -debugmsg and I can't find any errors... I've ktraced wine to make sure the syscall parameters are correct... Any pointers or ideas on where to take this would be appreciated. Thanks! John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message