/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | tape.c | 1467 struct s_spcl *sp; in readtape() local 1486 sp = &((union u_spcl *)&tbf[bct*tp_bsize])->s_spcl; in readtape() 1487 if (sp->c_magic == expected_magic && sp->c_type == TS_EOM && in readtape() 1488 (time_t)(sp->c_date) == dumpdate && in readtape() 1489 (time_t)(sp->c_ddate) == dumptime) { in readtape() 1600 sp = &((union u_spcl *)tbf)->s_spcl; in readtape() 1601 if (i != 0 && sp->c_magic == expected_magic && sp->c_type == TS_EOM && in readtape() 1602 (time_t)(sp->c_date) == dumpdate && in readtape() 1603 (time_t)(sp->c_ddate) == dumptime) { in readtape()
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 45 static int walker(const char *name, const struct stat64 *sp, 344 walker(const char *name, const struct stat64 *sp, int type, struct FTW *ftwx) in walker() argument 386 ret = eval_file(name, sp, ftwx); in walker()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | callers.c | 581 struct servent *sp; local 589 sp = getservbyname("uucp", "tcp"); 591 ASSERT(sp != NULL, "No uucp service number", 0, 0); 592 port = sp->s_port; 597 sp = getservbyname(flds[F_CLASS], "tcp"); 599 if (sp == NULL) { 607 port = sp->s_port;
|
H A D | getopt.c | 52 static int sp = 1; local 56 if(sp == 1) 64 optopt = c = argv[optind][sp]; 67 if(argv[optind][++sp] == '\0') { 69 sp = 1; 74 if(argv[optind][sp+1] != '\0') 75 optarg = &argv[optind++][sp+1]; 78 sp = 1; 88 sp = 1; 93 sp = 1; [all …]
|
H A D | in.uucpd.c | 96 struct servent *sp; local 117 sp = getservbyname("uucp", "tcp"); 118 if (sp == NULL) { 139 myctladdr.sin_port = sp->s_port;
|
/illumos-gate/usr/src/cmd/cfgadm/ |
H A D | cfgadm.c | 773 char *sp; in basename() local 775 if ((sp = strrchr(cp, '/')) != NULL) in basename() 776 return (sp + 1); in basename()
|
/illumos-gate/usr/src/cmd/cmd-inet/common/ |
H A D | kcmd.c | 214 struct sockaddr_in *sp; in kcmd() local 239 sp = (struct sockaddr_in *)&sname; in kcmd() 242 htons((ushort_t)sp->sin_port)); in kcmd() 454 strsave(char *sp) in strsave() argument 458 if ((ret = (char *)strdup(sp)) == NULL) { in strsave()
|
H A D | kcmd.h | 94 char *strsave(char *sp);
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | util.c | 1149 char *sp; in terminate_at_space() local 1151 sp = strchr(value, ' '); in terminate_at_space() 1152 if (sp != NULL) in terminate_at_space() 1153 *sp = '\0'; in terminate_at_space()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/chat/ |
H A D | chat.c | 417 if (sp) 421 sp = buf; 429 if (*sp == ' ' || *sp == '\t') { 430 ++sp; 434 if (*sp == '"' || *sp == '\'') { 436 arg = sp; 443 ++sp; 448 arg = sp; 449 while (*sp != '\0' && *sp != ' ' && *sp != '\t') 450 ++sp; [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/ |
H A D | netstat.c | 6417 uint32_t id = sp->sctpAssocId; in sctp_conn_report_item() 6432 &sp->sctpAssocRemPrimAddr, sp->sctpAssocRemPort); in sctp_conn_report_item() 6434 &sp->sctpAssocLocPrimAddr, sp->sctpAssocLocalPort); in sctp_conn_report_item() 6453 sp->sctpAssocInStreams, in sctp_conn_report_item() 6454 sp->sctpAssocOutStreams, in sctp_conn_report_item() 6477 sp->sctpAssocInStreams, sp->sctpAssocOutStreams, in sctp_conn_report_item() 6559 for (sp = item->valp; in sctp_report() 6561 sp = (mib2_sctpConnEntry_t *)((char *)sp + sctpEntrySize)) { in sctp_report() 7346 struct servent *sp = NULL; in portname() local 7353 if (sp || port == 0) in portname() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rcp.c | 2232 struct servent *sp; in init_service() local 2236 sp = getservbyname("kshell", "tcp"); in init_service() 2237 if (sp == NULL) { in init_service() 2242 portnumber = sp->s_port; in init_service()
|
H A D | rlogin.c | 574 struct servent *sp; in main() local 582 sp = getservbyname(encrypt_flag ? in main() 584 if (sp == NULL) { in main() 588 port_number = sp->s_port; in main()
|
H A D | rsh.c | 800 struct servent *sp; in init_service() local 803 sp = getservbyname("kshell", "tcp"); in init_service() 804 if (sp == NULL) { in init_service() 811 sp = getservbyname("shell", "tcp"); in init_service() 812 if (sp == NULL) { in init_service() 818 portnumber = sp->s_port; in init_service()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | docmd.c | 51 static struct servent *sp; variable 245 if ((sp = getservbyname("kshell", "tcp")) == NULL) { in init_service() 253 if ((sp = getservbyname("shell", "tcp")) == NULL) { in init_service() 309 port = sp->s_port; in makeconn() 368 port = sp->s_port; in makeconn()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/ |
H A D | get_addrs.c | 57 struct servent *sp; local 114 sp = getservbyname("ntalk", "udp"); 116 sp = getservbyname("talk", "udp"); 119 if (strcmp(sp->s_proto, "udp") != 0) { 124 if (sp == 0) { 130 daemon_port = sp->s_port;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | commands.c | 2905 struct servent *sp = 0; in tn() local 3089 sp = getservbyname("telnet-passthru", "tcp"); in tn() 3090 if (sp == 0) { in tn() 3095 target_port = sp->s_port; in tn()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 224 struct servent *sp; in main() local 228 sp = getservbyname("tftp", "udp"); in main() 229 default_port = (sp != NULL) ? sp->s_port : htons(IPPORT_TFTP); in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | config.c | 702 scf_simple_prop_t *sp; in read_enable_prop() local 705 if ((sp = scf_simple_prop_get(rep_handle, fmri, pg, in read_enable_prop() 709 if ((u8p = scf_simple_prop_next_boolean(sp)) == NULL) { in read_enable_prop() 710 scf_simple_prop_free(sp); in read_enable_prop() 715 scf_simple_prop_free(sp); in read_enable_prop()
|
H A D | inetd.c | 1249 struct sockaddr_in *sp; in expand_address() local 1251 sp = (struct sockaddr_in *)&(inst->remote_addr); in expand_address() 1253 ntohl(sp->sin_addr.s_addr), ntohs(sp->sin_port)); in expand_address()
|
H A D | repval.c | 422 scf_simple_prop_t *sp; in _retrieve_rep_vals() local 425 if ((sp = scf_simple_prop_get(rep_handle, fmri, PG_NAME_INSTANCE_STATE, in _retrieve_rep_vals() 429 while ((ip = scf_simple_prop_next_integer(sp)) != NULL) { in _retrieve_rep_vals() 432 scf_simple_prop_free(sp); in _retrieve_rep_vals() 439 scf_simple_prop_free(sp); in _retrieve_rep_vals() 443 scf_simple_prop_free(sp); in _retrieve_rep_vals()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_stats.c | 531 i_copy_sstats(ilbst_srv_desc_t *sp, kstat_t *kp) in i_copy_sstats() argument 541 (void) strlcpy(sp->isd_serverstats[ind].is_name, knp->name, in i_copy_sstats() 542 sizeof (sp->isd_serverstats[ind].is_name)); in i_copy_sstats() 543 sp->isd_serverstats[ind].is_value = knp->value.ui64; in i_copy_sstats() 544 sp->isd_crtime = kp->ks_crtime; in i_copy_sstats()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.fingerd.c | 53 register char *sp; local 67 sp = line; 73 sp++; 81 if (*sp == '/' && (sp[1] == 'W' || sp[1] == 'w')) { 82 sp += 2; 93 sp++; 96 if (*sp == '\0') 100 av[i++] = sp; 101 while ((*sp != '\0') && !isspace(*sp)) 102 sp++; [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | rtquery.c | 370 } *seen, *sp; in query_loop() local 458 for (sp = seen; sp != NULL; sp = sp->next) { in query_loop() 462 if (sp == NULL) { in query_loop() 463 sp = malloc(sizeof (*sp)); in query_loop() 464 if (sp != NULL) { in query_loop() 466 sp->next = seen; in query_loop() 467 seen = sp; in query_loop() 561 char *sp; in rip_input() local 628 (void) snprintf(sp, in rip_input() 636 (void) snprintf(sp, in rip_input() [all …]
|
H A D | trace.c | 471 char *s, *sp; in addrname() local 483 sp = &s[strlen(s)]; in addrname() 488 (void) snprintf(sp, in addrname() 493 (void) snprintf(sp, in addrname()
|