/titanic_41/usr/src/cmd/krb5/kadmin/ktutil/ |
H A D | ktutil.c | 69 int main(argc, argv) in main() argument 71 char *argv[]; 86 com_err(argv[0], retval, gettext("while initializing krb5")); 91 com_err(argv[0], retval, 106 void ktutil_clear_list(argc, argv) in ktutil_clear_list() argument 108 char *argv[]; 113 fprintf(stderr, gettext("%s: invalid arguments\n"), argv[0]); 118 com_err(argv[0], retval, gettext("while freeing ktlist")); 122 void ktutil_read_v5(argc, argv) in ktutil_read_v5() argument 124 char *argv[]; [all …]
|
/titanic_41/usr/src/cmd/scadm/sparc/mpxu/common/ |
H A D | process_command.c | 44 ADM_Process_command(int argc, char *argv[]) in ADM_Process_command() argument 46 if (strcasecmp(argv[1], "help") == 0) in ADM_Process_command() 49 else if (strcasecmp(argv[1], "send_event") == 0) in ADM_Process_command() 50 ADM_Process_send_event(argc, argv); in ADM_Process_command() 52 else if (strcasecmp(argv[1], "modem_setup") == 0) in ADM_Process_command() 55 else if (strcasecmp(argv[1], "date") == 0) in ADM_Process_command() 56 ADM_Process_date(argc, argv); in ADM_Process_command() 58 else if (strcasecmp(argv[1], "set") == 0) in ADM_Process_command() 59 ADM_Process_set(argc, argv); in ADM_Process_command() 61 else if (strcasecmp(argv[1], "show") == 0) in ADM_Process_command() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | ftp_var.h | 225 void (*c_handler)(int argc, char *argv[]); /* function to call */ 238 extern void macdef(int argc, char *argv[]); 239 extern void doproxy(int argc, char *argv[]); 240 extern void setpeer(int argc, char *argv[]); 241 extern void rmthelp(int argc, char *argv[]); 242 extern void settype(int argc, char *argv[]); 243 extern void setbinary(int argc, char *argv[]); 244 extern void setascii(int argc, char *argv[]); 245 extern void settenex(int argc, char *argv[]); 246 extern void setebcdic(int argc, char *argv[]); [all …]
|
H A D | cmds.c | 54 static char *remglob(char *argv[], int doswitch); 62 static void getit(int argc, char *argv[], int restartit, char *mode); 103 setpeer(int argc, char *argv[]) in setpeer() argument 120 argv = margv; in setpeer() 123 (void) printf("usage: %s host-name [port]\n", argv[0]); in setpeer() 128 host = hookup(argv[1], (argc > 2 ? argv[2] : "ftp")); in setpeer() 147 argv[0]); in setpeer() 157 (void) login(argv[1]); in setpeer() 217 settype(int argc, char *argv[]) in settype() argument 225 (void) printf("usage: %s [", argv[0]); in settype() [all …]
|
/titanic_41/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_policy.c | 59 static krb5_error_code init_ldap_realm (int argc, char *argv[]) { in init_ldap_realm() argument 103 kdb5_ldap_create_policy(argc, argv) in kdb5_ldap_create_policy() argument 105 char *argv[]; 136 if (!strcmp(argv[i], "-maxtktlife")) { 140 date = get_date(argv[i]); 150 } else if (!strcmp(argv[i], "-maxrenewlife")) { 154 date = get_date(argv[i]); 164 } else if (!strcmp((argv[i] + 1), "allow_postdated")) { 165 if (*(argv[i]) == '+') 167 else if (*(argv[i]) == '-') [all …]
|
/titanic_41/usr/src/cmd/fs.d/ |
H A D | volcopy.c | 50 (nargv[nargc++] = &argv[1][0],\ 63 main(int argc, char **argv) in main() argument 77 while (argc > 1 && argv[1][0] == '-') { in main() 78 if (EQ(argv[1], "-a", 2)) { in main() 80 } else if (EQ(argv[1], "-e", 2)) { in main() 82 } else if (EQ(argv[1], "-s", 2)) { in main() 84 } else if (EQ(argv[1], "-y", 2)) { in main() 86 } else if (EQ(argv[1], "-buf", 4)) { in main() 88 } else if (EQ(argv[1], "-bpi", 4)) { in main() 90 if ((cc = argv[1][4]) < '0' || cc > '9') { in main() [all …]
|
/titanic_41/usr/src/lib/libsqlite/src/ |
H A D | test1.c | 96 char **argv /* Text of each argument */ in sqlite_test_open() argument 102 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_test_open() 106 db = sqlite_open(argv[1], 0666, &zErr); in sqlite_test_open() 120 static int exec_printf_cb(void *pArg, int argc, char **argv, char **name){ in exec_printf_cb() argument 130 Tcl_DStringAppendElement(str, argv[i] ? argv[i] : "NULL"); in exec_printf_cb() 146 char **argv /* Text of each argument */ in test_exec_printf() argument 154 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_exec_printf() 158 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_exec_printf() 160 rc = sqlite_exec_printf(db, argv[2], exec_printf_cb, &str, &zErr, argv[3]); in test_exec_printf() 180 char **argv /* Text of each argument */ in test_mprintf_z() argument [all …]
|
H A D | test3.c | 63 const char **argv /* Text of each argument */ in btree_open() argument 69 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in btree_open() 73 rc = sqliteBtreeFactory(0, argv[1], 0, 1000, &pBt); in btree_open() 95 const char **argv /* Text of each argument */ in btree_close() argument 100 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in btree_close() 104 if( Tcl_GetInt(interp, argv[1], (int*)&pBt) ) return TCL_ERROR; in btree_close() 122 const char **argv /* Text of each argument */ in btree_begin_transaction() argument 127 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in btree_begin_transaction() 131 if( Tcl_GetInt(interp, argv[1], (int*)&pBt) ) return TCL_ERROR; in btree_begin_transaction() 149 const char **argv /* Text of each argument */ in btree_rollback() argument [all …]
|
H A D | func.c | 35 static void minmaxFunc(sqlite_func *context, int argc, const char **argv){ in minmaxFunc() argument 43 zBest = argv[0]; in minmaxFunc() 45 if( argv[1][0]=='n' ){ in minmaxFunc() 51 if( argv[i]==0 ) return; in minmaxFunc() 52 if( (xCompare(argv[i], zBest)^mask)<0 ){ in minmaxFunc() 53 zBest = argv[i]; in minmaxFunc() 62 static void typeofFunc(sqlite_func *context, int argc, const char **argv){ in typeofFunc() argument 64 sqlite_set_result_string(context, argv[1], -1); in typeofFunc() 70 static void lengthFunc(sqlite_func *context, int argc, const char **argv){ in lengthFunc() argument 75 z = argv[0]; in lengthFunc() [all …]
|
H A D | test2.c | 70 const char **argv /* Text of each argument */ in pager_open() argument 77 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in pager_open() 81 if( Tcl_GetInt(interp, argv[2], &nPage) ) return TCL_ERROR; in pager_open() 82 rc = sqlitepager_open(&pPager, argv[1], nPage, 0, 1); in pager_open() 101 const char **argv /* Text of each argument */ in pager_close() argument 106 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in pager_close() 110 if( Tcl_GetInt(interp, argv[1], (int*)&pPager) ) return TCL_ERROR; in pager_close() 128 const char **argv /* Text of each argument */ in pager_rollback() argument 133 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in pager_rollback() 137 if( Tcl_GetInt(interp, argv[1], (int*)&pPager) ) return TCL_ERROR; in pager_rollback() [all …]
|
/titanic_41/usr/src/cmd/awk/ |
H A D | main.c | 56 main(int argc, char *argv[], char *envp[]) in main() argument 71 cmdname = (uchar *)argv[0]; in main() 81 while (argc > 1 && argv[1][0] == '-' && argv[1][1] != '\0') { in main() 82 if (strcmp(argv[1], "--") == 0) { in main() 85 argv++; in main() 88 switch (argv[1][1]) { in main() 91 argv++; in main() 97 pfile[npfile++] = (uchar *)argv[1]; in main() 100 if (argv[1][2] != 0) { /* arg is -Fsomething */ in main() 102 if (argv[1][2] == 't' && argv[1][3] == 0) in main() [all …]
|
/titanic_41/usr/src/cmd/renice/ |
H A D | renice.c | 60 static int parse_obsolete_options(int argc, char **argv); 98 main(int argc, char *argv[]) in main() argument 126 if (isdigit(argv[1][0])) { in main() 127 if (strtol(argv[1], (char **)NULL, 10) > (PRIO_MAX+1)) { in main() 129 argv++; in main() 132 exit(parse_obsolete_options(argc, argv)); in main() 134 } else if ((argv[1][0] == '-' || argv[1][0] == '+') && in main() 135 isdigit(argv[1][1])) { /* renice priority ... */ in main() 137 exit(parse_obsolete_options(argc, argv)); in main() 141 while ((c = getopt(argc, argv, "n:gpui:")) != -1) { in main() [all …]
|
/titanic_41/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode_test.c | 113 do_open(const char *dirpath, const char *dictname, char *argv[], int argc) in do_open() argument 122 experrno = geterrno(argv[1]); in do_open() 135 do_close(const char *dirpath, const char *dictname, char *argv[], int argc) in do_close() argument 145 do_codelen(const char *dirpath, const char *dictname, char *argv[], int argc) in do_codelen() argument 154 expcodelen = geterrno(argv[2]); in do_codelen() 169 do_maxkey(const char *dirpath, const char *dictname, char *argv[], int argc) in do_maxkey() argument 178 expmaxkey = geterrno(argv[2]); in do_maxkey() 193 do_key2code(const char *dirpath, const char *dictname, char *argv[], int argc) in do_key2code() argument 211 experrno = geterrno(argv[1]); in do_key2code() 215 beginp = argv[2]; in do_key2code() [all …]
|
/titanic_41/usr/src/cmd/mkfile/ |
H A D | mkfile.c | 51 main(int argc, char **argv) in main() argument 68 while (argv[1] && argv[1][0] == '-') { in main() 69 opts = &argv[1][0]; in main() 83 argv++; in main() 88 len = strlen(argv[1]); in main() 89 if (len && isalpha(argv[1][len-1])) { in main() 90 switch (argv[1][len-1]) { in main() 109 gettext("unknown size %s\n"), argv[1]); in main() 114 if (!isdigit(argv[1][i])) { in main() 116 gettext("unknown size %s\n"), argv[1]); in main() [all …]
|
/titanic_41/usr/src/cmd/auditconfig/ |
H A D | auditconfig.c | 205 static void chk_arg_len(char *argv, uint_t len); 212 static void do_args(char **argv, au_mask_t *mask); 241 static void do_setasid(char *sid_str, char **argv); 243 char *sid_str, char **argv); 244 static void do_setauid(char *user, char **argv); 272 static void execit(char **argv); 275 static void parse_args(int argc, char **argv, au_mask_t *mask); 287 main(int argc, char **argv) in main() argument 299 (argv[1][0] == '?' || in main() 300 strcmp(argv[1], "-h") == 0 || in main() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/lib/ |
H A D | getopt.c | 272 store_args_and_env (int argc, char *const *argv) in store_args_and_env() argument 277 original_argv = argv; in store_args_and_env() 308 exchange (argv) in exchange() argument 309 char **argv; in exchange() 354 tem = argv[bottom + i]; 355 argv[bottom + i] = argv[top - (middle - bottom) + i]; 356 argv[top - (middle - bottom) + i] = tem; 371 tem = argv[bottom + i]; 372 argv[bottom + i] = argv[middle + i]; 373 argv[middle + i] = tem; [all …]
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_evset.c | 46 cmd_evset(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in cmd_evset() argument 68 while (argc != 0 && (argi = mdb_getopts(argc, argv, in cmd_evset() 80 argv += argi; /* advance past elements processed by getopts */ in cmd_evset() 83 if (argv->a_type == MDB_TYPE_STRING) { in cmd_evset() 84 if (argv->a_un.a_str[0] == '+') { in cmd_evset() 85 for (p = argv->a_un.a_str + 1; *p != '\0'; ) { in cmd_evset() 111 } else if (argv->a_un.a_str[0] != '-') { in cmd_evset() 113 strtonum(argv->a_un.a_str, 10); in cmd_evset() 117 idv[idc++] = (int)(intmax_t)argv->a_un.a_val; in cmd_evset() 120 argv++; in cmd_evset() [all …]
|
/titanic_41/usr/src/cmd/krb5/kadmin/cli/ |
H A D | kadmin.h | 36 extern char *kadmin_startup(int argc, char *argv[]); 38 extern void kadmin_lock(int argc, char *argv[]); 39 extern void kadmin_unlock(int argc, char *argv[]); 40 extern void kadmin_delprinc(int argc, char *argv[]); 41 extern void kadmin_cpw(int argc, char *argv[]); 42 extern void kadmin_addprinc(int argc, char *argv[]); 43 extern void kadmin_modprinc(int argc, char *argv[]); 44 extern void kadmin_getprinc(int argc, char *argv[]); 45 extern void kadmin_getprincs(int argc, char *argv[]); 46 extern void kadmin_addpol(int argc, char *argv[]); [all …]
|
/titanic_41/usr/src/lib/brand/solaris10/s10_replacefile/ |
H A D | s10_replacefile.c | 78 main(int argc, char **argv) in main() argument 88 "tmpFile cksumTmpDst cksumTmpFile\n", argv[0]); in main() 99 if (rename(argv[1], argv[2]) != 0) in main() 101 if (rename(argv[3], argv[1]) != 0) in main() 109 if (stat(argv[4], &statbuf) == 0 && (statbuf.st_mode & S_IFREG)) { in main() 114 if (argv[5][0] == '\0' || argv[6][0] == '\0' || in main() 115 strcmp(argv[5], argv[6]) != 0) { in main() 117 if (mount(argv[4], argv[1], MS_OVERLAY | MS_OPTIONSTR, in main() 128 "overlay mount %s onto %s\n", argv[4], in main() 129 argv[1]); in main() [all …]
|
/titanic_41/usr/src/cmd/sh/ |
H A D | bltin.c | 46 builtin(int type, int argc, unsigned char **argv, struct trenod *t) in builtin() argument 49 unsigned char *a1 = argv[1]; in builtin() 55 syssusp(argc,argv); in builtin() 59 sysstop(argc,argv); in builtin() 63 syskill(argc,argv); in builtin() 67 sysfgbg(argc,argv); in builtin() 71 sysjobs(argc,argv); in builtin() 134 systrap(argc,argv); in builtin() 138 argv++; in builtin() 152 execa(argv, -1); in builtin() [all …]
|
/titanic_41/usr/src/cmd/msgfmt/ |
H A D | option.c | 37 char **argv = *pargv; in parse_option() local 39 argv++; in parse_option() 41 arg = *argv; in parse_option() 50 argv++; in parse_option() 66 argv++; in parse_option() 71 flag->idir = *++argv; in parse_option() 73 ++argv; in parse_option() 74 argv++; in parse_option() 97 argv++; in parse_option() 101 flag->ofile = *++argv; in parse_option() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 164 main(int argc, char **argv) in main() argument 192 setpeer(argc, argv); in main() 241 setpeer(int argc, char **argv) in setpeer() argument 252 makeargv(&argc, &argv); in setpeer() 256 argv[0]); in setpeer() 259 hostnameinput = removebrackets(argv[1]); in setpeer() 290 port = atoi(argv[2]); in setpeer() 293 argv[2]); in setpeer() 316 modecmd(int argc, char **argv) in modecmd() argument 327 if (strcmp(argv[1], p->m_name) == 0) { in modecmd() [all …]
|
/titanic_41/usr/src/cmd/acpi/common/ |
H A D | getopt.c | 92 char **argv) in AcpiGetoptArgument() argument 98 if (argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)] != '\0') in AcpiGetoptArgument() 100 AcpiGbl_Optarg = &argv[AcpiGbl_Optind++][(int) (CurrentCharPtr+1)]; in AcpiGetoptArgument() 111 AcpiGbl_Optarg = argv[AcpiGbl_Optind++]; in AcpiGetoptArgument() 135 char **argv, in AcpiGetopt() argument 145 argv[AcpiGbl_Optind][0] != '-' || in AcpiGetopt() 146 argv[AcpiGbl_Optind][1] == '\0') in AcpiGetopt() 150 else if (strcmp (argv[AcpiGbl_Optind], "--") == 0) in AcpiGetopt() 159 CurrentChar = argv[AcpiGbl_Optind][CurrentCharPtr]; in AcpiGetopt() 168 if (argv[AcpiGbl_Optind][++CurrentCharPtr] == '\0') in AcpiGetopt() [all …]
|
/titanic_41/usr/src/lib/libshell/common/bltins/ |
H A D | misc.c | 60 int b_exec(int argc,char *argv[], void *extra) in b_exec() argument 68 while (n = optget(argv, sh_optexec)) switch (n) in b_exec() 84 argv += opt_info.index; in b_exec() 87 if(*argv) in b_exec() 88 B_login(0,argv,(void*)&logdata); in b_exec() 98 int B_login(int argc,char *argv[],void *extra) in B_login() argument 113 errormsg(SH_DICT,ERROR_exit(1),e_restricted,argv[0]); in B_login() 142 pname = argv[0]; in B_login() 144 argv[0] = logp->arg0; in B_login() 153 path_exec(pname,argv,NIL(struct argnod*)); in B_login() [all …]
|
/titanic_41/usr/src/lib/libshell/common/tests/ |
H A D | sun_solaris_builtin_tail.sh | 146 [legacy]=( argv=( "-r" ) ) 154 [legacy]=( argv=( "-0" ) ) 155 [std_like]=( argv=( "-n" "0" ) ) 163 [legacy]=( argv=( "-0r" ) ) 164 [std_like]=( argv=( "-n" "0" "-r" ) ) 165 [long_options]=( argv=( "--lines" "0" "--reverse" ) ) 172 [legacy]=( argv=( "-1" ) ) 173 [std_like]=( argv=( "-n" "1" ) ) 174 [long_options]=( argv=( "--lines" "1" ) ) 181 [legacy]=( argv=( "-1r" ) ) [all …]
|