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