projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
move compatibility hooks for S_ISREG et al to conf.h
[unix-history]
/
usr
/
src
/
sys
/
stand.att
/
sys.c
/*-
* Copyright (c) 1982, 1988 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.proprietary.c%
*
* @(#)sys.c 7.18 (Berkeley) %G%
*/
#include <sys/param.h>
#include <sys/reboot.h>
#include <ufs/ufs/dir.h>
#include <stand/saio.h>
struct
iob iob
[
SOPEN_MAX
];
int
errno
;
#ifndef i386
exit
()
{
_stop
(
"Exit called"
);
}
#endif
_stop
(
s
)
char
*
s
;
{
static int
stopped
;
int
i
;
if
(!
stopped
) {
stopped
=
1
;
for
(
i
=
0
;
i
<
SOPEN_MAX
;
i
++)
if
(
iob
[
i
].
i_flgs
!=
0
)
(
void
)
close
(
i
);
}
printf
(
"%s
\n
"
,
s
);
_rtt
();
}