Searched defs:argv (Results 226 - 250 of 1791) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libcmd/common/
H A Dhead.c71 b_head(int argc, register char** argv, void* context) argument
83 cmdinit(argc, argv, context, ERROR_CATALOG, 0);
86 switch (optget(argv, usage))
92 if (opt_info.offset && argv[opt_info.index][opt_info.offset] == 'c')
118 argv += opt_info.index;
122 if (cp = *argv)
123 argv++;
146 } while (cp = *argv++);
H A Dmkdir.c65 b_mkdir(int argc, char** argv, void* context) argument
78 cmdinit(argc, argv, context, ERROR_CATALOG, 0);
81 switch (optget(argv, usage))
106 argv += opt_info.index;
107 if (error_info.errors || !*argv)
123 while (arg = *argv++)
H A Dmktemp.c67 b_mktemp(int argc, char** argv, void* context) argument
81 cmdinit(argc, argv, context, ERROR_CATALOG, ERROR_NOTIFY);
84 switch (optget(argv, usage))
125 argv += opt_info.index;
126 if (error_info.errors || (pfx = *argv++) && *argv)
H A Dpids.c91 b_pids(int argc, char** argv, void* context) argument
95 cmdinit(argc, argv, context, ERROR_CATALOG, 0);
98 switch (optget(argv, usage))
112 argv += opt_info.index;
113 if (error_info.errors || *argv)
H A Dreadlink.c42 b_readlink(int argc, char** argv, void* context) argument
56 cmdinit(argc, argv, context, ERROR_CATALOG, 0);
59 switch (optget(argv, usage))
79 argv += opt_info.index;
83 filename = argv[0];
H A Drmdir.c57 b_rmdir(int argc, char** argv, void* context) argument
66 cmdinit(argc, argv, context, ERROR_CATALOG, 0);
67 while (n = optget(argv, usage)) switch (n)
85 argv += opt_info.index;
86 if (error_info.errors || !*argv)
90 while (dir = *argv++)
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dmbchk.c185 main (int argc, char *argv[]) argument
191 c = getopt_long (argc, argv, optstring, longopts, 0);
223 fp = fopen (argv[optind], "r");
226 fprintf (stderr, "%s: No such file.\n", argv[optind]);
230 if (! check_multiboot (argv[optind], fp))
/illumos-gate/usr/src/lib/brand/sn1/sn1_brand/common/
H A Dsn1_brand.c82 brand_init(int argc, char *argv[], char *envp[]) argument
87 ldentry = brand_post_init(SN1_VERSION, argc, argv, envp);
89 brand_runexe(argv, ldentry);
/illumos-gate/usr/src/cmd/valtools/
H A Dputtext.c54 * Given argv[0], return a pointer to the basename of the program.
71 main(int argc, char **argv) argument
82 prog = prog_name(argv[0]);
84 while ((c = getopt(argc, argv, "nr:l:?")) != EOF) {
106 (void) puttext(stdout, argv[optind], lmarg, rmarg);
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_argv.h30 * using an argv even for internally done "next" commands.
35 var unsigned char **argv; variable
47 short argc; /* Index of current file in argv */
48 short argc0; /* Number of arguments in argv */
49 unsigned char *argv[NARGS + 1]; /* WHAT A WASTE! */ member in struct:glob
/illumos-gate/usr/src/cmd/mesg/
H A Dmesg.c61 main(int argc, char *argv[]) argument
96 while ((c = getopt(argc, argv, "yn")) != EOF) {
128 switch (*argv[optind]) {
/illumos-gate/usr/src/cmd/mknod/
H A Dmknod.c66 main(int argc, char **argv) argument
76 if (argv[2][1] != '\0')
80 switch (argv[2][0]) {
90 switch (argv[2][0]) {
100 majno = (major_t)number(argv[3]);
103 "'%s' - valid range is 0-%lu\n", argv[3], MAXMAJ);
106 minno = (minor_t)number(argv[4]);
109 "'%s' - valid range is 0-%lu\n", argv[4], MAXMIN);
116 return (domk(argv[1], (mode | ACC), arg) ? 2 : 0);
/illumos-gate/usr/src/cmd/mkpwdict/
H A Dmkpwdict.c59 main(int argc, char *argv[]) argument
73 if ((pname = strrchr(argv[0], '/')) == NULL)
74 pname = argv[0];
89 while ((c = getopt(argc, argv, options)) != EOF) {
/illumos-gate/usr/src/cmd/mktemp/
H A Dmktemp.c46 main(int argc, char **argv) argument
66 while ((opt = getopt(argc, argv, "dqtup:")) != EOF) {
88 argv += optind;
95 tmpl = argv[0];
/illumos-gate/usr/src/cmd/modload/
H A Dmodunload.c48 main(int argc, char *argv[], char *envp[]) argument
60 while ((opt = getopt(argc, argv, "i:e:")) != -1) {
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_msgfmt.c49 main(int argc, char **argv) argument
60 if (cmd = strrchr(argv[0], '/'))
63 cmd = argv[0];
65 ret = parse_option(&argc, &argv, &flag);
94 diag(gettext(DIAG_START_PROC), *argv); local
96 po_init(*argv);
99 argv++;
/illumos-gate/usr/src/cmd/oamuser/group/
H A Dgroupmod.c61 main(int argc, char *argv[]) argument
74 while ((ch = getopt(argc, argv, "g:on:")) != EOF) {
96 grpname = argv[optind];
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dmain.c110 main(int argc, char *argv[]) argument
130 if (prompt = strrchr(argv[0], '/'))
133 prompt = argv[0];
140 while ((ch = getopt(argc, argv, TELNET_OPTIONS)) != EOF) {
255 argv += optind;
267 *argp++ = argv[0]; /* host */
269 *argp++ = argv[1]; /* port */
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.daytimed/
H A Din.daytimed.c74 main(int argc, char *argv[]) argument
77 switch (getopt(argc, argv, "ds")) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.discardd/
H A Din.discardd.c43 discard_stream(int s, char *argv[]) argument
47 setproctitle("discard", s, argv);
59 main(int argc, char *argv[]) argument
62 switch (getopt(argc, argv, "ds")) {
71 discard_stream(STDIN_FILENO, argv);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.echod/
H A Din.echod.c42 echo_stream(int s, char *argv[]) argument
47 setproctitle("echo", s, argv);
63 main(int argc, char *argv[]) argument
68 switch (getopt(argc, argv, "ds")) {
73 echo_stream(STDIN_FILENO, argv);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.timed/
H A Din.timed.c81 main(int argc, char *argv[]) argument
84 switch (getopt(argc, argv, "ds")) {
/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpshut.c61 main(int argc, char *argv[]) argument
79 if (STREQU(argv[1], "-?")) {
84 LP_ERRMSG1 (ERROR, E_LP_OPTION, argv[1]);
/illumos-gate/usr/src/cmd/mail/
H A Dmain.c43 main(int argc, char **argv) argument
85 if ((program = strrchr(argv[0], '/')) != NULL) {
88 program = argv[0];
120 * Parse the command line and adjust argc and argv
123 i = parse(argc, argv);
124 argv += (i - 1);
241 sendmail(argc, argv);
/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_auxv.c73 kctl_auxv_init(kmdb_auxv_t *kav, const char *cfg, const char **argv, void *romp) argument
84 kav->kav_argv = argv;

Completed in 317 milliseconds

1234567891011>>