🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.2bsd
Article #69

ls, declaring lib functions

#69
From: utzoodecvaxucbvaxmbm
Date: Fri, 02 Jul 1982 09:17
16 lines
1000 bytes
From: mbm at mit-cipg at mit-mc

Berkeley's ls does not report the year of old files on the pdp11,
because it does not declare time() to be long, and always thinks
the current year is 1969. 

Strictly, time should probably be declared time_t.

This is a perennial problem in C, especially in regards to portability
to other machines and systems.  I think we should extend the idea of
<math.h> and <stdio.h> to an include file for all the C library routines
(system call interfaces and others), say <libc.h>, so that non-int
functions would get properly declared automagically by including this file.

[My apologies to those on more than one of these lists.]
--mike
Technical Details
Message-ID: <bnews.ucbvax.7871>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!decvax!ucbvax!mbm@mit-cipg@mit-mc
Newsgroups: net.bugs.2bsd
Title: ls, declaring lib functions
Article-I.D.: ucbvax.7871
Posted: Fri Jul  2 09:17:22 1982
Received: Sat Jul  3 01:54:03 1982
Subject: ls, declaring lib functions
Date: Fri, 02 Jul 1982 09:17:22 +0000
Message-ID: <bnews.ucbvax.7871>