Lines Matching refs:netspec
132 char *netspec = NULL; /* set to the network specification */ in main() local
200 if ( flag || svcptr || Quietflag || comptr || idptr || netspec ) in main()
250 if ( flag || svcptr || Quietflag || netspec || comptr in main()
270 || netspec || svcptr || idptr || comptr ) in main()
276 || netspec || svcptr || idptr || comptr || addrptr in main()
282 if ( netspec ) in main()
284 netspec = optarg; in main()
288 || netspec || svcptr || idptr || comptr ) in main()
313 if ( flag || svcptr || Quietflag || comptr || netspec in main()
324 if ((optind < argc) && ! netspec) in main()
325 netspec = argv[optind++]; in main()
336 if (netspec) in main()
339 else if (!netspec) in main()
343 if (netspec && (flag != INIFLAG)) { in main()
344 sprintf(buf, SAC_LSPM, netspec); in main()
361 sprintf(mesg, "Network specification \"%s\" is not of type %s", netspec, LISTENTYPE); in main()
390 exitcode = prt_nets(netspec); in main()
395 exitcode = add_pm(netspec); in main()
398 if ( svcptr || comptr || idptr || netspec ) { in main()
401 …if ((exitcode = old_addsvc(svcptr, "", cmdptr, comptr, moduleptr, idptr, NULL, netspec)) != NLS_OK) in main()
412 if (netspec) in main()
429 exitcode = disable_svc(svcptr, netspec); in main()
434 exitcode = enable_svc(svcptr, netspec); in main()
439 exitcode = kill_listener(netspec); in main()
443 exitcode = setup_addr(lptr, tptr, netspec); in main()
448 exitcode = remove_svc(svcptr, netspec, TRUE); in main()
453 exitcode = start_listener(netspec); in main()
456 exitcode = prt_svcs(NULL, netspec); in main()
462 exitcode = prt_svcs(svcptr, netspec); in main()
584 char *id, char *flags, char *netspec) in old_addsvc() argument
592 if (!svc || !cmd || !com || !netspec) in old_addsvc()
623 …sprintf(buf, PM_ADDSVCF, netspec, svc, (id)?id:DEFAULTID, flags, mesgbuf, VERSION, com ? com : ""); in old_addsvc()
625 sprintf(buf, PM_ADDSVC, netspec, svc, (id)?id:DEFAULTID, mesgbuf, VERSION, com ? com : ""); in old_addsvc()
662 prt_nets(char *netspec) in prt_nets() argument
672 if (netspec == NULL) in prt_nets()
675 sprintf(buf, SAC_LSPM, netspec); in prt_nets()
710 if (netspec && !found) { in prt_nets()
715 if (netspec) in prt_nets()
729 prt_svcs(char *svc, char *netspec) in prt_svcs() argument
740 sprintf(buf, PM_LSALL, netspec); in prt_svcs()
742 sprintf(buf, PM_LSONE, netspec, svc); in prt_svcs()
796 sprintf(mesg, "Network specification \"%s\" is not of type %s", netspec, LISTENTYPE); in prt_svcs()
816 disable_svc(char *svc, char *netspec) in disable_svc() argument
821 sprintf(buf, PM_DISABLE, netspec, svc); in disable_svc()
856 enable_svc(char *svc, char *netspec) in enable_svc() argument
861 sprintf(buf, PM_ENABLE, netspec, svc); in enable_svc()
896 remove_svc(char *svc, char *netspec, int printerrors) in remove_svc() argument
901 sprintf(buf, PM_REMSVC, netspec, svc); in remove_svc()
937 kill_listener(char *netspec) in kill_listener() argument
943 sprintf(buf, SAC_KILLPM, netspec); in kill_listener()
965 sprintf(mesg, "No listener active on network \"%s\"", netspec); in kill_listener()
985 add_pm(char *netspec) in add_pm() argument
991 sprintf(buf, SAC_ADDPM, netspec, LISTENTYPE, gencmdstr(netspec), VERSION); in add_pm()
1000 old_addsvc(NLPSSVCCODE, NULL, NLPSSRV, "NLPS server", "", "root", NULL, netspec); in add_pm()
1032 gencmdstr(char *netspec) in gencmdstr() argument
1037 if (!strcmp(netspec, "starlan")) in gencmdstr()
1040 (void) strcat(buf, netspec); in gencmdstr()
1050 start_listener(char *netspec) in start_listener() argument
1056 sprintf(buf, SAC_STARTPM, netspec); in start_listener()
1086 sprintf(buf, SAC_ENABLPM, netspec); in start_listener()
1128 setup_addr(char *laddr, char *taddr, char *netspec) in setup_addr() argument
1146 sprintf(buf, PM_LSONE, netspec, NLPSSVCCODE); in setup_addr()
1175 remove_svc(NLPSSVCCODE, netspec, FALSE); in setup_addr()
1179 …c(NLPSSVCCODE, laddr, entry.command, entry.comment, entry.modules, entry.id, entry.flags, netspec); in setup_addr()
1188 sprintf(buf, PM_LSONE, netspec, TTYSVCCODE); in setup_addr()
1217 remove_svc(TTYSVCCODE, netspec, FALSE); in setup_addr()
1221 …vc(TTYSVCCODE, taddr, entry.command, entry.comment, entry.modules, entry.id, entry.flags, netspec); in setup_addr()