Xref: utzoo comp.unix.xenix:6189 alt.sources:628 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!cs.dal.ca!iisat!kevin From: kevin@iisat.UUCP (Kevin Davies) Newsgroups: comp.unix.xenix,alt.sources Subject: Re: lload for xenix Summary: incorrect lseek calls Keywords: lload xenix Lars_Pensj Message-ID: <15@iisat.UUCP> Date: 30 May 89 14:07:48 GMT References: <30067@conexch.UUCP> <1349@rivm05.UUCP> Organization: International Information Service, Dart., NS Lines: 24 In article <1349@rivm05.UUCP>, ccea3@rivm.UUCP (Adri Verhoef) writes: > I compiled with -DM_I386, although the machine is a microVAX, > as to use _pbuf instead of _buf, and I got > lseek v: Invalid argument > The belonging call is: > lseek(kmem, v_p->n_value, 0) > Printing v_p->n_value yields -2147211432. > > Any ideas? Thanks. There's a couple of lseek's in the program that did this. The problem is that n_value in the nlist structure is defined as unsigned int, but the lseek argument has to be a long (since in this realm int != long). so, lseek(kmem, (long) v_p->n_value,0) this should do the trick... -- Kevin Davies International Information Service (IIS) UUCP: {uunet,utai,watmath}!dalcs!iisat!kevin Bitnet/Uucp: kevin@iisat.uucp Arpanet: kevin%iisat.uucp@uunet.uu.net