diff options
Diffstat (limited to 'usr/src/cmd/logadm/opts.h')
-rw-r--r-- | usr/src/cmd/logadm/opts.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr/src/cmd/logadm/opts.h b/usr/src/cmd/logadm/opts.h index 32857b5540..d28581bc49 100644 --- a/usr/src/cmd/logadm/opts.h +++ b/usr/src/cmd/logadm/opts.h @@ -19,8 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. * * logadm/opts.h -- public definitions for opts module */ @@ -28,8 +27,6 @@ #ifndef _LOGADM_OPTS_H #define _LOGADM_OPTS_H -#pragma ident "%Z%%M% %I% %E% SMI" - #ifdef __cplusplus extern "C" { #endif @@ -57,7 +54,7 @@ struct optinfo { #define OPTF_CONF 2 void opts_init(struct optinfo *table, int numentries); -struct opts *opts_parse(char **args, int flags); +struct opts *opts_parse(struct opts *, char **args, int flags); void opts_free(struct opts *opts); void opts_set(struct opts *opts, const char *o, const char *optarg); int opts_count(struct opts *opts, const char *options); @@ -69,14 +66,12 @@ struct opts *opts_merge(struct opts *back, struct opts *front); #define OPTP_NOW (-1) #define OPTP_NEVER (-2) -off_t opts_parse_ctime(const char *o, const char *optarg); -off_t opts_parse_bytes(const char *o, const char *optarg); -off_t opts_parse_atopi(const char *o, const char *optarg); -off_t opts_parse_seconds(const char *o, const char *optarg); - void opts_print(struct opts *opts, FILE *stream, char *exclude); void opts_printword(const char *word, FILE *stream); +extern struct optinfo Opttable[]; +extern int Opttable_cnt; + #ifdef __cplusplus } #endif |