xref: /original-bsd/sys/stand.att/sys.c (revision 3705696b)
1 /*-
2  * Copyright (c) 1982, 1988, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  *
7  *	@(#)sys.c	8.1 (Berkeley) 06/11/93
8  */
9 
10 #include <sys/param.h>
11 #include <sys/reboot.h>
12 
13 #include <ufs/ufs/dir.h>
14 #include <stand.att/saio.h>
15 
16 struct iob iob[SOPEN_MAX];
17 int errno;
18 
19 #ifndef i386
20 exit()
21 {
22 	_stop("Exit called");
23 }
24 #endif
25 
26 _stop(s)
27 	char *s;
28 {
29 	static int stopped;
30 	int i;
31 
32 	if (!stopped) {
33 		stopped = 1;
34 		for (i = 0; i < SOPEN_MAX; i++)
35 			if (iob[i].i_flgs != 0)
36 				(void)close(i);
37 	}
38 	printf("%s\n", s);
39 	_rtt();
40 }
41 
42 /*
43  * For gcc
44  */
45 __main()
46 {
47 	return;
48 }
49