File:  [Research Unix] / researchv10no / cmd / man / man.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
struct stat buf;
struct tm *tm;
struct tm *localtime();

main(argc,argv)
char **argv;
{
	if(argc<=1)
		return(0);
	if(stat(argv[1],&buf)==-1)
		return(0);
	tm = localtime(&buf.st_mtime);
	printf("-rd%d -rm%d -ry%d\n",
		tm->tm_mday,tm->tm_mon,tm->tm_year);
	return(0);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.