Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!grkermit!masscomp!clyde!burl!ulysses!mhuxl!ihnp4!fortune!olson From: olson@fortune.UUCP Newsgroups: net.unix-wizards Subject: Re: 4.2BSD ctime() arguments - (nf) Message-ID: <3044@fortune.UUCP> Date: Wed, 11-Apr-84 19:17:31 EST Article-I.D.: fortune.3044 Posted: Wed Apr 11 19:17:31 1984 Date-Received: Fri, 13-Apr-84 01:49:50 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 26 #R:noscvax:-39800:fortune:11600085:000:876 fortune!olson Apr 11 12:39:00 1984 > Is it safe to use a *int as the argument to gmtime() instead of > a *long. The answer is yes on machines that have 32bit ints, but the code won't be portable to machines that have 16bit ints. The BSD (and for that matter V7 and S3) man pages and include files are full of this kind of carelessness. BSD especially is guilty of referring to 'words' sometimes meaning shorts and sometimes meaning longs. One of the classic cases is the wait(2) man page referring to the high byte and the low byte, when actually it is the low order byte and the 'next to low' order byte. (Also see some of the ioctls under tty(4).) Some of the man pages were not rewritten from the V7, and other man pages were written with the (unstated) assumption that they were for the VAX. Dave Olson, Fortune Systems UUCP: {ihnp4,ucbvax!amd70}!fortune!olson ARPA: amd70!fortune!olson@BERKELEY