Subject: Re: Workaround for tell(), and question on pppd
To: None <mikeh@csra.net>
From: None <david@mono.org>
List: port-mac68k
Date: 11/11/1996 10:12:46
For tell(fd) use lseek(fd,0,SEEK_CUR), and make sure you
include <unistd.h>.
(No idea on the pppd question :)
David/abs david@{mono.org,southern.com,mhm-internet.com}
System Manager: Southern Studios Ltd, PO Box 59, London N22 1AR.
Satisfied User: NetBSD, free Un*x {i386,sparc,mac68k,+more} 'www.netbsd.org'.
System Admin: MHM Internet, 14 Barley Mow Passage, Chiswick, London W4 4PH.
SysOP: Monochrome, Largest UK Internet BBS - 'telnet mono.org'.
On Sun, 10 Nov 1996, Michael Hendrick wrote:
> While not a programmer I can usually manage to get most programs to
> compile under NetBSD, but I'm stumped on the following line from an older
> bbs program:
>
> while (loc = tell (fd), read (fd, (char *) &ut, sizeof ut) > 0)
>
> Apparently there is no function 'tell' in NetBSD. If someone could offer
> another way to write this, I would appreciate it.
>
> Second question is whether or not it is possible to use the demand-dial
> option for pppd when you get a different _remote_ ip address on each
> connection. I tried putting my ISP's gateway (their router) ip# as the
> remote ip in the options file, but pppd complains it can't negotiate that
> address and exits.
>
> --
> mlh@b2.org
> (Michael Hendrick)
>