/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
#include <stdio.h>
#include <stdlib.h>
#include <libgen.h>
#include <getopt.h>
#include <locale.h>
static char *progname;
static void
usage(void)
{
"Usage: %s [-r | -t] [-o filename]\n"), progname);
exit(1);
}
int
{
int c;
#if !defined(TEXT_DOMAIN)
#endif
(void) textdomain(TEXT_DOMAIN);
switch ((char)c) {
case 'r':
rflag++;
break;
case 't':
tflag++;
break;
case 'o':
"%s: cannot open %s\n"),
return (1);
}
break;
case '?': /* fallthrough */
default:
usage();
}
}
usage();
}
if (rflag) {
/* DCE version 4 */
} else if (tflag) {
/* DCE version 1 */
} else {
}
if (uuid_is_null(uu) != 0) {
"%s: failed to "
"generate uuid\n"), progname);
exit(1);
}
return (0);
}