utils.c (da14cebe459d3275048785f25bd869cb09b5307f) | utils.c (4ac67f0276a8313b5cefec38af347b94b7bfb526) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 62 unchanged lines hidden (view full) --- 71 72 if (pname != NULL) 73 (void) fprintf(stderr, gettext(PNAME_FMT), pname); 74 va_start(alist, format); 75 (void) vfprintf(stderr, format, alist); 76 va_end(alist); 77 if (strchr(format, '\n') == NULL) 78 (void) fprintf(stderr, gettext(ERRNO_FMT), strerror(err)); | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 62 unchanged lines hidden (view full) --- 71 72 if (pname != NULL) 73 (void) fprintf(stderr, gettext(PNAME_FMT), pname); 74 va_start(alist, format); 75 (void) vfprintf(stderr, format, alist); 76 va_end(alist); 77 if (strchr(format, '\n') == NULL) 78 (void) fprintf(stderr, gettext(ERRNO_FMT), strerror(err)); |
79 80 /* close the libdladm handle if it was opened */ 81 if (dld_handle != NULL) 82 dladm_close(dld_handle); 83 |
|
79 exit(E_ERROR); 80} 81 82char * 83setprogname(char *arg0) 84{ 85 char *p = strrchr(arg0, '/'); 86 --- 157 unchanged lines hidden --- | 84 exit(E_ERROR); 85} 86 87char * 88setprogname(char *arg0) 89{ 90 char *p = strrchr(arg0, '/'); 91 --- 157 unchanged lines hidden --- |