Home
last modified time | relevance | path

Searched refs:opt_info (Results 1 – 25 of 178) sorted by relevance

12345678

/titanic_51/usr/src/lib/libast/common/misc/
H A Doptjoin.c63 if (!opt_info.state) in optjoin()
69 opt_info.state->join = 0; in optjoin()
72 last_index = opt_info.index; in optjoin()
73 last_offset = opt_info.offset; in optjoin()
74 opt_info.state->join++; in optjoin()
76 more = argv[opt_info.index] != 0; in optjoin()
77 if (!opt_info.again) in optjoin()
81 opt_info.state->join = 0; in optjoin()
86 if (*argv[opt_info.index] != '+') in optjoin()
88 opt_info.state->join = 0; in optjoin()
[all …]
H A Doptget.c162 #define D(s) (opt_info.state->msgdict && dtmatch(opt_info.state->msgdict, (s)))
186 #define D(s) (opt_info.state->msgdict && dtmatch(opt_info.state->msgdict, (s)))
726 if (!opt_info.state->msgdict) in init()
732 opt_info.state->vp = sfstropen(); in init()
733 opt_info.state->xp = sfstropen(); in init()
734 opt_info.state->msgdisc.key = offsetof(Msg_t, text); in init()
735 opt_info.state->msgdisc.size = -1; in init()
736 opt_info.state->msgdisc.link = offsetof(Msg_t, link); in init()
737 if (opt_info.state->msgdict = dtopen(&opt_info.state->msgdisc, Dthash)) in init()
739 dtinsert(opt_info.state->msgdict, C_LC_MESSAGES_libast + n); in init()
[all …]
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dgetopts.c75 options = opt_info.arg; in b_getopts()
78 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_getopts()
81 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_getopts()
84 argv += opt_info.index; in b_getopts()
85 argc -= opt_info.index; in b_getopts()
102 opt_info.index = shp->st.optindex; in b_getopts()
103 opt_info.offset = shp->st.optchar; in b_getopts()
116 opt_info.disc = &disc.hdr; in b_getopts()
117 …switch(opt_info.index>=0 && opt_info.index<=argc?(opt_info.num= LONG_MIN,flag=optget(argv,options)… in b_getopts()
121 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_getopts()
[all …]
H A Dmisc.c71 logdata.arg0 = opt_info.arg; in b_exec()
78 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_exec()
81 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_exec()
84 argv += opt_info.index; in b_exec()
168 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_let()
171 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_let()
174 argv += opt_info.index; in b_let()
190 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_eval()
193 errormsg(SH_DICT,ERROR_usage(0), "%s",opt_info.arg); in b_eval()
198 argv += opt_info.index; in b_eval()
[all …]
H A Dshiocmd_solaris.c546 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode); in b_open()
547 if (*opt_info.arg) in b_open()
551 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b_open()
554 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b_open()
557 argc -= opt_info.index; in b_open()
558 argv += opt_info.index; in b_open()
614 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b_close()
617 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b_close()
620 argc -= opt_info.index; in b_close()
621 argv += opt_info.index; in b_close()
[all …]
H A Dcflow.c55 if(!strmatch(argv[opt_info.index],"[+-]+([0-9])")) in b_return()
56 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_return()
59 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_return()
66 argv += opt_info.index; in b_return()
91 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_break()
94 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_break()
99 argv += opt_info.index; in b_break()
H A Dregress.c272 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b___regress__()
275 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b___regress__()
283 if (opt_info.arg || opt_info.number) in b___regress__()
292 intercept_egid = intercept_sgid = (gid_t)opt_info.number; in b___regress__()
301 intercept_euid = intercept_suid = (uid_t)opt_info.number; in b___regress__()
310 intercept_p_suid = (uid_t)opt_info.number; in b___regress__()
322 intercept_etc = opt_info.arg; in b___regress__()
334 if (error_info.errors || *(argv + opt_info.index)) in b___regress__()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dgetopts.c80 options = opt_info.arg; in b_getopts()
83 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_getopts()
86 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_getopts()
89 argv += opt_info.index; in b_getopts()
90 argc -= opt_info.index; in b_getopts()
107 opt_info.index = shp->st.optindex; in b_getopts()
108 opt_info.offset = shp->st.optchar; in b_getopts()
124 opt_info.disc = &disc.hdr; in b_getopts()
125 switch(opt_info.index>=0 && opt_info in b_getopts()
[all...]
H A Dmisc.c71 logdata.arg0 = opt_info.arg; in b_exec()
78 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_exec()
81 errormsg(SH_DICT,ERROR_usage(0), "%s", opt_info.arg); in b_exec()
84 argv += opt_info.index; in b_exec()
168 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_let()
171 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg); in b_let()
174 argv += opt_info.index; in b_let()
190 errormsg(SH_DICT,2, "%s", opt_info.arg); in b_eval()
193 errormsg(SH_DICT,ERROR_usage(0), "%s",opt_info.arg); in b_eval()
198 argv += opt_info in b_eval()
[all...]
H A Dshiocmd_solaris.c546 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode); in b_open()
547 if (*opt_info.arg) in b_open()
551 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b_open()
554 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b_open()
557 argc -= opt_info.index; in b_open()
558 argv += opt_info.index; in b_open()
614 errormsg(SH_DICT, 2, "%s", opt_info.arg); in b_close()
617 errormsg(SH_DICT, ERROR_usage(2), "%s", opt_info.arg); in b_close()
620 argc -= opt_info in b_close()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/
H A Doptjoin.c32 * possible starting at (opt_info.index,opt_info.offset) using
36 * the current arg, otherwise fun sets opt_info.again=1
42 * to be parsed at opt_info.index
65 state = optstate(&opt_info); in optjoin()
74 last_index = opt_info.index; in optjoin()
75 last_offset = opt_info.offset; in optjoin()
78 more = argv[opt_info.index] != 0; in optjoin()
79 if (!opt_info.again) in optjoin()
89 if (*argv[opt_info in optjoin()
[all...]
H A Doptget.c352 * 2007-03-19 move opt_info from _opt_info_ to (*_opt_data_)
902 else if (!opt_info.disc || !opt_info.disc->infof || (*opt_info.disc->infof)(&opt_info, ip, b, opt_info.disc) < 0) in expand()
1113 if (opt_info.disc && opt_info.disc->catalog && (!p->id || !streq(opt_info.disc->catalog, p->id))) in init()
1114 p->catalog = opt_info in init()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libpp/
H A Dppargs.c181 * if last!=0 then argv[opt_info.index]==0 with return(0)
182 * else if argv[opt_info.index]==0 then return(0)
183 * otherwise argv[opt_info.index] is the first unrecognized
218 switch (*(s = opt_info.arg)) in ppargs()
329 if (!(s = opt_info.arg)) in ppargs()
338 if ((s = argv[opt_info.index]) && ((n = *s++) == '-' || n == '+') && *s++ == 'D') in ppargs()
343 p = argv[opt_info.index++]; in ppargs()
397 for (n = PP_deps; argv[opt_info.index]; opt_info.offset++) in ppargs()
399 switch (argv[opt_info in ppargs()
[all...]
/titanic_51/usr/src/lib/libpp/common/
H A Dppargs.c216 switch (*(s = opt_info.arg)) in ppargs()
327 if (!(s = opt_info.arg)) in ppargs()
336 if ((s = argv[opt_info.index]) && ((n = *s++) == '-' || n == '+') && *s++ == 'D') in ppargs()
341 p = argv[opt_info.index++]; in ppargs()
395 for (n = PP_deps; argv[opt_info.index]; opt_info.offset++) in ppargs()
397 switch (argv[opt_info.index][opt_info.offset]) in ppargs()
417 ppop(PP_UNDEF, opt_info.arg); in ppargs()
425 if (isalpha(opt_info.arg[0]) || opt_info.arg[0] == '_' || opt_info.arg[0] == '$') in ppargs()
426 ppop(PP_ASSERT, opt_info.arg); in ppargs()
440 …pp.arg_mode = (*(opt_info.arg + 1) || pp.arg_mode && pp.arg_mode != *opt_info.arg) ? '-' : *opt_in… in ppargs()
[all …]
/titanic_51/usr/src/lib/libcmd/common/
H A Dhead.c92 if (opt_info.offset && argv[opt_info.index][opt_info.offset] == 'c') in b_head()
95 opt_info.offset++; in b_head()
97 if ((keep = opt_info.number) <=0) in b_head()
98 …error(2, "%s: %I*d: positive numeric option argument expected", opt_info.name, sizeof(keep), keep); in b_head()
107 skip = opt_info.number; in b_head()
110 error(ERROR_usage(2), "%s", opt_info.arg); in b_head()
113 error(2, "%s", opt_info.arg); in b_head()
118 argv += opt_info.index; in b_head()
119 argc -= opt_info.index; in b_head()
H A Dmktemp.c92 mode = strperm(pfx = opt_info.arg, &opt_info.arg, S_IRWXU); in b_mktemp()
93 if (*opt_info.arg) in b_mktemp()
100 dir = opt_info.arg; in b_mktemp()
113 if (!pathtemp(NiL, 0, opt_info.arg, "/seed", NiL)) in b_mktemp()
114 error(2, "%s: regression test initializtion failed", opt_info.arg); in b_mktemp()
117 error(2, "%s", opt_info.arg); in b_mktemp()
120 error(ERROR_usage(2), "%s", opt_info.arg); in b_mktemp()
125 argv += opt_info.index; in b_mktemp()
H A Dreadlink.c62 canonicalize = opt_info.num; in b_readlink()
65 nonewline = opt_info.num; in b_readlink()
68 verbose = opt_info.num; in b_readlink()
71 error(ERROR_usage(2), "%s", opt_info.arg); in b_readlink()
74 error(2, "%s", opt_info.arg); in b_readlink()
79 argv += opt_info.index; in b_readlink()
80 argc -= opt_info.index; in b_readlink()
H A Dtail.c434 …(flags & FOLLOW) && argv[opt_info.index] && (argv[opt_info.index][0] == '-' || argv[opt_info.index… in b_tail()
436 number = argv[opt_info.index][0] == '-' ? 10 : -10; in b_tail()
438 opt_info.index++; in b_tail()
445 if (opt_info.option[0] == '+') in b_tail()
450 if (opt_info.arg == argv[opt_info.index - 1]) in b_tail()
452 strtol(opt_info.arg, &s, 10); in b_tail()
455 opt_info.index--; in b_tail()
460 else if (opt_info.arg && isalpha(*opt_info.arg)) in b_tail()
462 t = opt_info.arg; in b_tail()
468 if (s = opt_info.arg) in b_tail()
[all …]
H A Dmkfifo.c69 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode); in b_mkfifo()
70 if (*opt_info.arg) in b_mkfifo()
74 error(2, "%s", opt_info.arg); in b_mkfifo()
77 error(ERROR_usage(2), "%s", opt_info.arg); in b_mkfifo()
82 argv += opt_info.index; in b_mkfifo()
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dhead.c92 if (opt_info.offset && argv[opt_info.index][opt_info.offset] == 'c') in b_head()
95 opt_info.offset++; in b_head()
97 if ((keep = opt_info.number) <=0) in b_head()
98 error(2, "%s: %I*d: positive numeric option argument expected", opt_info.name, sizeof(keep), keep); in b_head()
107 skip = opt_info.number; in b_head()
110 error(ERROR_usage(2), "%s", opt_info.arg); in b_head()
113 error(2, "%s", opt_info.arg); in b_head()
118 argv += opt_info in b_head()
[all...]
H A Dmktemp.c90 mode = strperm(pfx = opt_info.arg, &opt_info.arg, S_IRWXU); in b_mktemp()
91 if (*opt_info.arg) in b_mktemp()
98 dir = opt_info.arg; in b_mktemp()
111 if (!pathtemp(NiL, 0, opt_info.arg, "/seed", NiL)) in b_mktemp()
112 error(2, "%s: regression test initializtion failed", opt_info.arg); in b_mktemp()
115 error(2, "%s", opt_info.arg); in b_mktemp()
118 error(ERROR_usage(2), "%s", opt_info.arg); in b_mktemp()
123 argv += opt_info.index; in b_mktemp()
H A Dtail.c433 if (!(flags & FOLLOW) && argv[opt_info.index] && (argv[opt_info.index][0] == '-' || argv[opt_info.index][0] == '+') && !argv[opt_info.index][1]) in b_tail()
435 number = argv[opt_info.index][0] == '-' ? 10 : -10; in b_tail()
437 opt_info.index++; in b_tail()
444 if (opt_info.option[0] == '+') in b_tail()
449 if (opt_info.arg == argv[opt_info.index - 1]) in b_tail()
451 strtol(opt_info in b_tail()
[all...]
H A Dmkfifo.c67 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode); in b_mkfifo()
68 if (*opt_info.arg) in b_mkfifo()
72 error(2, "%s", opt_info.arg); in b_mkfifo()
75 error(ERROR_usage(2), "%s", opt_info.arg); in b_mkfifo()
80 argv += opt_info.index; in b_mkfifo()
/titanic_51/usr/src/lib/libast/common/comp/
H A Dgetopt.c52 opt_info.index = (optind > 1 || optind == lastoptind) ? optind : 0;
53 if (opt_info.index >= argc)
65 errormsg(NiL, 2, opt_info.arg);
67 optopt = opt_info.option[1];
73 optarg = opt_info.arg;
74 lastoptind = optind = opt_info.index;
/titanic_51/usr/src/contrib/ast/src/lib/libast/comp/
H A Dgetopt.c52 opt_info.index = (optind > 1 || optind == lastoptind) ? optind : 0;
53 if (opt_info.index >= argc)
65 errormsg(NiL, 2, opt_info.arg);
67 optopt = opt_info.option[1];
73 optarg = opt_info.arg;
74 lastoptind = optind = opt_info.index;

12345678