File:  [CSRG BSD Unix] / 43BSDReno / sys / nfs / TEST / unix-tests / special / touchn.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

/*	@(#)touchn.c	1.1 88/10/12 NFS Rev 2 Testsuite	*/
/*
 *  touch n files
 */
main(argc,argv)
char **argv;
{
	int n;
	char buf[1024];

	if (argc != 2) {
		printf("usage: %s count\n", argv[0]);
		exit(1);
	}
	n = atoi(argv[1]);
	for (; n; n--) {
		sprintf(buf, "name%d", n);
		close(creat(buf, 0666));
	}
	exit(0);
}

unix.superglobalmegacorp.com

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