| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: options.h,v 1.23 2016/02/23 16:22:43 christos Exp $ */ | | 1 | /* $NetBSD: options.h,v 1.24 2016/02/23 18:30:16 christos Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1991, 1993 | | 4 | * Copyright (c) 1991, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to Berkeley by | | 7 | * This code is derived from software contributed to Berkeley by |
8 | * Kenneth Almquist. | | 8 | * Kenneth Almquist. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -93,27 +93,27 @@ DEF_OPT( "nounset", 'u' ) /* error expan | | | @@ -93,27 +93,27 @@ DEF_OPT( "nounset", 'u' ) /* error expan |
93 | #define uflag optlist[14].val | | 93 | #define uflag optlist[14].val |
94 | DEF_OPT( "quietprofile", 'q' ) | | 94 | DEF_OPT( "quietprofile", 'q' ) |
95 | #define qflag optlist[15].val | | 95 | #define qflag optlist[15].val |
96 | DEF_OPT( "nolog", 0 ) /* [U] no functon defs in command history */ | | 96 | DEF_OPT( "nolog", 0 ) /* [U] no functon defs in command history */ |
97 | #define nolog optlist[16].val | | 97 | #define nolog optlist[16].val |
98 | DEF_OPT( "cdprint", 0 ) /* always print result of cd */ | | 98 | DEF_OPT( "cdprint", 0 ) /* always print result of cd */ |
99 | #define cdprint optlist[17].val | | 99 | #define cdprint optlist[17].val |
100 | DEF_OPT( "tabcomplete", 0 ) /* <tab> causes filename expansion */ | | 100 | DEF_OPT( "tabcomplete", 0 ) /* <tab> causes filename expansion */ |
101 | #define tabcomplete optlist[18].val | | 101 | #define tabcomplete optlist[18].val |
102 | DEF_OPT( "fork", 'F' ) /* use fork(2) instead of vfork(2) */ | | 102 | DEF_OPT( "fork", 'F' ) /* use fork(2) instead of vfork(2) */ |
103 | #define usefork optlist[19].val | | 103 | #define usefork optlist[19].val |
104 | DEF_OPT( "nopriv", 'p' ) /* preserve privs even if set{u,g}id */ | | 104 | DEF_OPT( "nopriv", 'p' ) /* preserve privs even if set{u,g}id */ |
105 | #define pflag optlist[20].val | | 105 | #define pflag optlist[20].val |
106 | DEF_OPT( "hashall", 'h' ) /* [U] locate cmds in funcs when defined */ | | 106 | DEF_OPT( "trackall", 'h' ) /* [U] locate cmds in funcs when defined */ |
107 | #define hflag optlist[21].val | | 107 | #define hflag optlist[21].val |
108 | #ifdef DEBUG | | 108 | #ifdef DEBUG |
109 | DEF_OPT( "debug", 0 ) /* enable debug prints */ | | 109 | DEF_OPT( "debug", 0 ) /* enable debug prints */ |
110 | #define debug optlist[22].val | | 110 | #define debug optlist[22].val |
111 | #endif | | 111 | #endif |
112 | | | 112 | |
113 | #ifdef DEFINE_OPTIONS | | 113 | #ifdef DEFINE_OPTIONS |
114 | { 0, 0, 0, 0 }, | | 114 | { 0, 0, 0, 0 }, |
115 | }; | | 115 | }; |
116 | #define NOPTS (sizeof optlist / sizeof optlist[0] - 1) | | 116 | #define NOPTS (sizeof optlist / sizeof optlist[0] - 1) |
117 | int sizeof_optlist = sizeof optlist; | | 117 | int sizeof_optlist = sizeof optlist; |
118 | #else | | 118 | #else |
119 | extern struct optent optlist[]; | | 119 | extern struct optent optlist[]; |