1fc2512cRobert Mustacchi/*
2fc2512cRobert Mustacchi * This file and its contents are supplied under the terms of the
3fc2512cRobert Mustacchi * Common Development and Distribution License ("CDDL"), version 1.0.
4fc2512cRobert Mustacchi * You may only use this file in accordance with the terms of version
5fc2512cRobert Mustacchi * 1.0 of the CDDL.
6fc2512cRobert Mustacchi *
7fc2512cRobert Mustacchi * A full copy of the text of the CDDL should have accompanied this
8fc2512cRobert Mustacchi * source.  A copy of the CDDL is also available via the Internet at
9fc2512cRobert Mustacchi * http://www.illumos.org/license/CDDL.
10fc2512cRobert Mustacchi */
11fc2512cRobert Mustacchi
12fc2512cRobert Mustacchi/*
13fc2512cRobert Mustacchi * Copyright 2016 Joyent, Inc.
14fc2512cRobert Mustacchi */
15fc2512cRobert Mustacchi
16fc2512cRobert Mustacchi/*
17fc2512cRobert Mustacchi * quick_exit() with the status code indicated in our arguments.
18fc2512cRobert Mustacchi */
19fc2512cRobert Mustacchi
20fc2512cRobert Mustacchi#include <stdlib.h>
21fc2512cRobert Mustacchi
22fc2512cRobert Mustacchiint
23fc2512cRobert Mustacchimain(int argc, const char *argv[])
24fc2512cRobert Mustacchi{
25fc2512cRobert Mustacchi	int status;
26fc2512cRobert Mustacchi
27fc2512cRobert Mustacchi	if (argc != 2)
28fc2512cRobert Mustacchi		abort();
29fc2512cRobert Mustacchi
30fc2512cRobert Mustacchi	status = atoi(argv[1]);
31fc2512cRobert Mustacchi	quick_exit(status);
32fc2512cRobert Mustacchi	abort();
33fc2512cRobert Mustacchi}