1*b1f9167fSRui Paulo /* 2*b1f9167fSRui Paulo * This file and its contents are supplied under the terms of the 3*b1f9167fSRui Paulo * Common Development and Distribution License ("CDDL"), version 1.0. 4*b1f9167fSRui Paulo * You may only use this file in accordance with the terms of version 5*b1f9167fSRui Paulo * 1.0 of the CDDL. 6*b1f9167fSRui Paulo * 7*b1f9167fSRui Paulo * A full copy of the text of the CDDL should have accompanied this 8*b1f9167fSRui Paulo * source. A copy of the CDDL is also available via the Internet at 9*b1f9167fSRui Paulo * http://www.illumos.org/license/CDDL. 10*b1f9167fSRui Paulo */ 11*b1f9167fSRui Paulo 12*b1f9167fSRui Paulo /* 13*b1f9167fSRui Paulo * Copyright (c) 2012, Joyent, Inc. All rights reserved. 14*b1f9167fSRui Paulo */ 15*b1f9167fSRui Paulo 16*b1f9167fSRui Paulo /* 17*b1f9167fSRui Paulo * ASSERTION: 18*b1f9167fSRui Paulo * The smallest base we will accept is Base 2. 19*b1f9167fSRui Paulo * 20*b1f9167fSRui Paulo * SECTION: Actions and Subroutines/strtoll() 21*b1f9167fSRui Paulo */ 22*b1f9167fSRui Paulo 23*b1f9167fSRui Paulo #pragma D option quiet 24*b1f9167fSRui Paulo 25*b1f9167fSRui Paulo BEGIN 26*b1f9167fSRui Paulo { 27*b1f9167fSRui Paulo printf("%d\n", strtoll("0", 1)); 28*b1f9167fSRui Paulo exit(0); 29*b1f9167fSRui Paulo } 30*b1f9167fSRui Paulo 31*b1f9167fSRui Paulo ERROR 32*b1f9167fSRui Paulo { 33*b1f9167fSRui Paulo exit(1); 34*b1f9167fSRui Paulo } 35