From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.senn@gmail.com (Will Senn) Date: Wed, 8 Nov 2017 16:20:44 -0600 Subject: [TUHS] pre-more pager? In-Reply-To: <38D56F21-9AF6-4A00-995F-DAAD6570BC51@planet.nl> References: <38D56F21-9AF6-4A00-995F-DAAD6570BC51@planet.nl> Message-ID: <5980db87-fc47-7315-bf80-eb073aef3872@gmail.com> On 11/8/17 4:02 PM, Paul Ruizendaal wrote: >> Regarding the links and old bsd's. The binary cr3 on 1bsd works in v7. >> Also, the book I'm reading has a c program that does paging. But, I'm >> always off down the rabbit hole... I tried to compile the cr3.c source >> and I get this error: >> >> # cc cr3.c >> Undefined: >> _fout >> _flush >> _getc >> _end >> >> My understanding is that cc includes libc by default, so these must not >> be in libc. But getc is standard lib, so what am I missing? > That source is for V6 not V7. V6 did not have the stdio lib yet, but a precursor to that. > The binary you are using has the older io routines statically linked in. > > Paul > Great answer - very clear. I was curious why the binary worked. I was able to get the 2BSD version (thanks Clem) to compile and run on V7. Will -- GPG Fingerprint: 68F4 B3BD 1730 555A 4462 7D45 3EAA 5B6D A982 BAAF