aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/exits.c
blob: f4206e9ab034a8d359e7e23141b61812543dfeed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <u.h>
#include <libc.h>

extern void _privdie(void);

void
exits(char *s)
{
	_privdie();
	if(s && *s)
		exit(1);
	exit(0);
}

void
_exits(char *s)
{
	_privdie();
	if(s && *s)
		_exit(1);
	_exit(0);
}