🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by walton Fri, 16 Jan 1987 19:07
Aztec C time() and stat()
#52
Author: walton
Date: Fri, 16 Jan 1987 19:07
23 lines
1474 bytes
While trying some UN*X code out on Aztec C 3.20a (including
compress and the most recent mod.sources make), I discovered two facts
to share:

(1) The Aztec time() call returns the long integer number of
    seconds elapsed since 1 January 1978 00:00, and NOT the funny
    bit-by-bit format in the documentation, which is peculiar to
    MS/DOS (MicroSoft's Damaged Operating System).

(2) The stat() call exists, though it is undocumented.  Calling
    sequence is:
	#include <stat.h>
	stat(file, statbuf);
	char *file;			/* name of file */
	struct stat *statbuf;		/* pointer to status buffer */
    stat() returns the mode bits, modification time, and size of the
    file, as shown by the definition in stat.h.

Stephen Walton			ARPA:	ametek!walton@csvax.caltech.edu
Ametek Computer Research Div.	BITNET:	walton@caltech
610 N. Santa Anita Ave.		UUCP:	...!ucbvax!sun!megatest!ametek!walton
Arcadia, CA 91006 USA
818-445-6811
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads