Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!udel!news.sprintlink.net!howland.reston.ans.net!swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!peter
From: peter@nmti.com (Peter da Silva)
Subject: Re: 2.0.5R: vim-3.0 anyone?
Message-ID: <id._YOL1.T6@nmti.com>
Sender: peter@nmti.com (peter da silva)
Organization: Network/development platform support, NMTI
References: <95Jul14.213710.5319@ne.snafu.de>
Date: Mon, 17 Jul 1995 15:17:29 GMT
Lines: 23
In article <95Jul14.213710.5319@ne.snafu.de>,
Nora E. Etukudo <nora@ne.Snafu.DE> wrote:
> if (lseek(mfp->mf_fd, offset, SEEK_SET) != offset)
> {
> EMSG("Seek error in swap file read");
> return FAIL;
> }
What is the type of "offset"? What prototype for "lseek" is in scope?
#include <unistd.h>
off_t
lseek(int fildes, off_t offset, int whence)
In FreeBSD 2.x, off_t is long long. If offset is a long or no prototype
is in scope then you might have problems like this with the call to or
return from lseek.
--
Peter da Silva (NIC: PJD2) `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Har du kramat din varg idag?"