#include <stat.h> question

vtl at stolaf.UUCP vtl at stolaf.UUCP
Thu Oct 27 01:09:45 AEST 1983


Does anyone know why (how) the file /usr/include/stat.h came into
existence?  I'm looking at v7, SIII and 4.1BSD systems, trying to
figure out where it came from.  For the people running 4.2BSD: Does
this file exist?

Looking at the v7 (and 4.1) /usr/man/man2/stat.2, I find
at the top:
	#include <sys/stat.h>
in the middle:
	<stat.h>
followed by:
	.so /usr/include/sys/stat.h

The System III STAT(2) manual page lost this bug (feature)
when it was rewritten.

Here's a list of files I found in /usr/src which use "<stat.h>".
A few may be local programs, but most appear to be Berkeley creations.

./cmd/adb/setup.c 		#include <stat.h>
./cmd/catman.c 			# include	<stat.h>
./cmd/file.c 			#include <stat.h>
./cmd/last.c 			#include <stat.h>
./cmd/login/probe.c 		#include <stat.h>
./cmd/lastcomm.c 		# include <stat.h>
./cmd/ld.c 			#include <stat.h>
./cmd/nm.c 			#include <stat.h>
./cmd/symorder.c 		#include <stat.h>
./cmd/pxp/subr.c 		#include <stat.h>
./cmd/comsat.c 			#include <stat.h>
./cmd/biff.c 			#include <stat.h>
./cmd/old/lpr/lpd.c 		#include <stat.h>
./cmd/old/lpr/lpq.c 		#include <stat.h>
./cmd/old/lpr/lprm.c 		#include <stat.h>
./cmd/basic/libw/modtime.c	#include <stat.h>
./local/where.c 		#include	<stat.h>

Any hints on the history (future included) of <stat.h> would be appreciated.
I'll be happy to summarize if anyone is interested.

Victor Lee -- St. Olaf College, Northfield MN -- {decvax,ihnp4}!stolaf!vtl



More information about the Comp.unix.wizards mailing list