/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tvsleep.c | 61 struct timespec srv; local 66 if ((r = nanosleep(&stv, &srv)) && rv) 68 rv->tv_sec = srv.tv_sec; 69 rv->tv_nsec = srv.tv_nsec;
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smbrdr_glue.c | 82 smbrdr_logon(char *srv, char *dom, char *user) argument 87 err = smbrdr_ctx_new(&ctx, srv, dom, user);
|
H A D | dfs.c | 1598 dfs_target_init(dfs_target_t *t, const char *srv, const char *share, argument 1601 (void) strlcpy(t->t_server, (srv) ? srv : "", sizeof (t->t_server));
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | dnssrv.c | 69 struct srv_dns_entry *srv = NULL, *entry = NULL; local 136 srv = (struct srv_dns_entry *) malloc(sizeof(struct srv_dns_entry)); 137 if (srv == NULL) 140 srv->priority = priority; 141 srv->weight = weight; 142 srv->port = port; 147 srv->host = strdup(host); 148 if (srv->host == NULL) { 149 free(srv); 153 if (head == NULL || head->priority > srv [all...] |
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | nb_ssn.c | 276 struct nb_name lcl, srv; local 298 snprintf(srv.nn_name, NB_NAMELEN, "%-15.15s", srvname); 299 srv.nn_type = NBT_SERVER; 300 srv.nn_scope = ctx->ct_nb->nb_scope; 305 if ((err = nb_name_encode(&req, &srv)) != 0)
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_rules.c | 54 i_drop_sg_srvs(ilb_handle_t h, ilb_server_data_t *srv, const char *sgname, argument 57 return (ilb_rem_server_from_group(h, sgname, srv));
|
H A D | ilb_sg.c | 79 ilb_server_data_t *srv, ilbd_cmd_t cmd) 89 *sgname == '\0' || srv == NULL) 105 IP_COPY_CLI_2_IMPL(&srv->sd_addr, &sgs->sgs_addr); 106 h_minport = ntohs(srv->sd_minport); 107 h_maxport = ntohs(srv->sd_maxport); 108 sgs->sgs_minport = srv->sd_minport; 110 sgs->sgs_maxport = srv->sd_minport; 112 sgs->sgs_maxport = srv->sd_maxport; 114 sgs->sgs_flags = srv->sd_flags; 115 if (srv 78 i_ilb_addrem_server_to_group(ilb_handle_t h, const char *sgname, ilb_server_data_t *srv, ilbd_cmd_t cmd) argument 132 ilb_add_server_to_group(ilb_handle_t h, const char *sgname, ilb_server_data_t *srv) argument 140 ilb_rem_server_from_group(ilb_handle_t h, const char *sgname, ilb_server_data_t *srv) argument 225 ilb_sg_srv_t *srv; local 325 ilb_Xable_server(ilb_handle_t h, ilb_server_data_t *srv, void *reserved, ilbd_cmd_t cmd) argument 380 ilb_enable_server(ilb_handle_t h, ilb_server_data_t *srv, void *reserved) argument 386 ilb_disable_server(ilb_handle_t h, ilb_server_data_t *srv, void *reserved) argument 392 i_ilb_fillin_srvdata(ilb_handle_t h, ilb_server_data_t *srv, const char *sgname, ilbd_cmd_t cmd) argument 454 ilb_srvID_to_address(ilb_handle_t h, ilb_server_data_t *srv, const char *sgname) argument 461 ilb_address_to_srvID(ilb_handle_t h, ilb_server_data_t *srv, const char *sgname) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | auth_time.c | 123 get_server(char *host, nis_server *srv, endpoint eps[], int maxep) argument 151 srv->name = (nis_name) host; 152 srv->ep.ep_len = num_ep; 153 srv->ep.ep_val = eps; 154 srv->key_type = NIS_PK_NONE; 155 srv->pkey.n_bytes = NULL; 156 srv->pkey.n_len = 0; 157 return (srv); 186 __rpc_get_time_offset(struct timeval *td, nis_server *srv, argument 226 if ((srv ! [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | url.c | 410 LDAPServer *srv; local 440 if (( srv = (LDAPServer *)NSLDAPI_CALLOC( 1, sizeof( LDAPServer ))) 442 ( srv->lsrv_host = nsldapi_strdup( host )) == NULL )) { 443 if ( srv != NULL ) { 444 NSLDAPI_FREE( srv ); 451 srv->lsrv_port = ludp->lud_port; 454 srv->lsrv_port = ld->ld_defport; 457 srv->lsrv_port = LDAP_PORT; 460 srv->lsrv_port = LDAPS_PORT; 465 srv [all...] |
H A D | open.c | 590 LDAPServer *srv; local 592 if (( srv = (LDAPServer *)NSLDAPI_CALLOC( 1, sizeof( LDAPServer ))) == 593 NULL || ( ld->ld_defhost != NULL && ( srv->lsrv_host = 598 srv->lsrv_port = ld->ld_defport; 602 srv->lsrv_options |= LDAP_SRV_OPT_SECURE; 606 if (( ld->ld_defconn = nsldapi_new_connection( ld, &srv, 1, 1, 0 )) 609 NSLDAPI_FREE( srv->lsrv_host ); 611 NSLDAPI_FREE( (char *)srv );
|
H A D | request.c | 45 static LDAPConn *find_connection( LDAP *ld, LDAPServer *srv, int any ); 114 LDAPServer *srv; local 117 for ( srv = servers; srv != NULL; 118 srv = srv->lsrv_next ) { 121 srv->lsrv_host, ( srv->lsrv_dn == NULL ) ? 122 "(default)" : srv->lsrv_dn, 123 srv 366 LDAPServer *prevsrv, *srv; local 533 find_connection( LDAP *ld, LDAPServer *srv, int any ) argument 952 LDAPServer *srv; local 1274 LDAPServer *srvlist, *prevsrv, *srv; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_hc.c | 190 ilb_hc_srv_t *srv = (ilb_hc_srv_t *)of_arg->ofmt_cbarg; local 195 (void) strlcpy(buf, srv->hcs_rule_name, bufsize); 198 (void) strlcpy(buf, srv->hcs_hc_name, bufsize); 201 (void) strlcpy(buf, srv->hcs_ID, bufsize); 204 switch (srv->hcs_status) { 223 (void) snprintf(buf, bufsize, "%u", srv->hcs_fail_cnt); 226 if (localtime_r(&srv->hcs_lasttime, &tv) == NULL) 232 if (srv->hcs_status == ILB_HCS_DISABLED) 234 if (localtime_r(&srv->hcs_nexttime, &tv) == NULL) 240 (void) snprintf(buf, bufsize, "%u", srv 249 ilbadm_print_hc_result(ilb_handle_t h, ilb_hc_srv_t *srv, void *arg) argument [all...] |
H A D | ilbadm_sg.c | 359 ilb_server_data_t *srv; local 369 srv = &sn->s_spec; 371 srv->sd_flags |= flags; 374 srv); 379 ip2str(&srv->sd_addr, buf, sizeof (buf), 390 srv); 396 srv->sd_srvID, sgp->sg_name, 595 ilb_server_data_t srv; local 602 bzero(&srv, sizeof (srv)); 743 export_srv_spec(ilb_server_data_t *srv, char *buf, const int bufsize) argument 780 ilbadm_export_a_srv(ilb_handle_t h, ilb_server_data_t *srv, const char *sgname, void *arg) argument [all...] |
H A D | ilbadm_subr.c | 227 i_expand_ipv4range(ilbadm_sgroup_t *sg, ilb_server_data_t *srv, argument 241 sn_new->s_spec.sd_minport = srv->sd_minport; 242 sn_new->s_spec.sd_maxport = srv->sd_maxport; 274 i_expand_ipv6range(ilbadm_sgroup_t *sg, ilb_server_data_t *srv, argument 288 sn_new->s_spec.sd_minport = srv->sd_minport; 289 sn_new->s_spec.sd_maxport = srv->sd_maxport;
|
H A D | ilbadm_stats.c | 232 ilbst_srv_desc_t *srv, *o_srv, *n_srv; local 254 srv = o_srv; 256 srv = n_srv; 258 res += srv->isd_serverstats[index].is_value; 352 ilbst_srv_desc_t *srv, *osrv; local 354 srv = &sta->ilbst_rlist[rule_index].ird_srvlist[srv_ind]; 366 (void) snprintf(buf, bufsize, "%s", srv->isd_servername); 370 count = srv->isd_serverstats[stat_ind].is_value; 376 if (srv->isd_crtime != osrv->isd_crtime)
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | smfcfg.c | 37 char *svcname, srv[MAXPATHLEN]; local 43 snprintf(srv, MAXPATHLEN, "%s", fmri + strlen("svc:/")); 44 svcname = strrchr(srv, ':'); 47 svcname = srv; 121 char *svcname, srv[MAXPATHLEN]; local 128 snprintf(srv, MAXPATHLEN, "%s", fmri); 131 strcat(srv, ":"); 134 if (strlen(srv) + strlen(instance) > MAXPATHLEN) 136 strncat(srv, instance, strlen(instance)); 138 svcname = srv; 251 char srv[MAXPATHLEN], *p, *svcname; local [all...] |
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 661 char **sdl, *srv, **sdl_save; local 761 srv = *sdl; 762 if (strncasecmp(service, srv, slen) != 0) 764 srv += slen; 765 if (*srv != COLONTOK) 767 srv++; 768 while (srv != NULL && *srv != NULL) { 770 rc = __s_api_parseASearchDesc(service, &srv, &ret);
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 482 pkgcmd(PKGserver srv, void *cmd, size_t len, char **result, size_t *rlen, argument 494 if (door_call(srv->door, &da) != 0) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_rules.c | 131 i_check_srv2rules(list_t *rlist, ilb_sg_srv_t *srv) argument 139 if (srv == NULL) 142 srv_minport = ntohs(srv->sgs_minport); 143 srv_maxport = ntohs(srv->sgs_maxport); 1149 ilbd_srv_t *srv = list_head(&sg->isg_srvlist); local 1151 int32_t s_af = GET_AF(&srv->isv_addr); 1243 * walk the list of rules and add srv to the *kernel* rule 1247 i_add_srv2krules(list_t *rlist, ilb_sg_srv_t *srv, int ev_port) argument 1257 kcmd.servers[0].addr = srv->sgs_addr; 1258 kcmd.servers[0].flags = i_flags_d2k(srv 1345 i_rem_srv_frm_krules(list_t *rlist, ilb_sg_srv_t *srv, int ev_port) argument [all...] |
H A D | ilbd_hc.c | 543 ilbd_hc_kill_probe(ilbd_hc_srv_t *srv) argument 549 if (port_dissociate(srv->shc_ev_port, PORT_SOURCE_FD, 550 srv->shc_child_fd) != 0) { 553 (void) close(srv->shc_child_fd); 554 free(srv->shc_ev); 555 srv->shc_ev = NULL; 558 if (kill(srv->shc_child_pid, SIGKILL) != 0) { 560 srv->shc_hc_rule->hcr_rule->irl_name, 561 srv->shc_sg_srv->sgs_srvID, strerror(errno)); 564 if (waitpid(srv 579 ilbd_mark_server_disabled(ilbd_hc_srv_t *srv) argument 598 ilbd_set_fail_state(ilbd_hc_srv_t *srv) argument 649 ilbd_hc_srv_t *srv = (ilbd_hc_srv_t *)arg; local 662 ilbd_hc_srv_t *srv = (ilbd_hc_srv_t *)arg; local 701 ilbd_hc_restart_timer(ilbd_hc_t *hc, ilbd_hc_srv_t *srv) argument 731 ilbd_hc_srv_add(ilbd_hc_t *hc, ilbd_hc_rule_t *hc_rule, const ilb_sg_srv_t *srv, int ev_port) argument 779 ilbd_hc_srv_rem(ilbd_hc_rule_t *hc_rule, const ilb_sg_srv_t *srv) argument 801 ilbd_hc_srv_t *srv; local 919 ilbd_hc_add_server(const ilbd_rule_t *rule, const ilb_sg_srv_t *srv, int ev_port) argument 932 ilbd_hc_del_server(const ilbd_rule_t *rule, const ilb_sg_srv_t *srv) argument 944 ilbd_hc_toggle_server(const ilbd_rule_t *rule, const ilb_sg_srv_t *srv, boolean_t enable) argument 988 ilbd_hc_enable_server(const ilbd_rule_t *rule, const ilb_sg_srv_t *srv) argument 994 ilbd_hc_disable_server(const ilbd_rule_t *rule, const ilb_sg_srv_t *srv) argument 1109 create_argv(ilbd_hc_srv_t *srv, char *argv[]) argument 1264 ilbd_run_probe(ilbd_hc_srv_t *srv) argument 1428 ilbd_hc_srv_t *srv; local 1466 ilbd_hc_srv_t *srv; local [all...] |
H A D | ilbd_sg.c | 446 i_add_srv2sg(ilbd_sg_t *dsg, ilb_sg_srv_t *srv, ilbd_srv_t **ret_srv) argument 459 COPY_SERVER(srv, n_sg_srv); 600 ilb_sg_srv_t *srv; local 640 srv = &sg_info->sg_servers[i]; 643 if (IN6_IS_ADDR_V4MAPPED(&srv->sgs_addr)) { 646 srv->sgs_addr); 650 srv->sgs_addr); 652 audit_sg_data.ed_minport = srv->sgs_minport; 653 audit_sg_data.ed_maxport = srv->sgs_maxport; 658 int32_t sgs_af = GET_AF(&srv 841 ilbd_srv_t *srv; local 935 i_delete_srv(ilbd_sg_t *sg, ilbd_srv_t *srv, int ev_port) argument 960 ilbd_srv_t *srv, tmp_srv; local 1199 ilb_sg_srv_t *srv; local [all...] |
H A D | ilbd_scf.c | 449 ilbd_srv_scf_val(ilbd_srv_t *srv, char *value) argument 454 if (GET_AF(&srv->isv_addr) == AF_INET) { 457 IN6_V4MAPPED_TO_INADDR(&srv->isv_addr, &v4_addr); 461 (void) inet_ntop(AF_INET6, &srv->isv_addr, ipstr, 466 ipstr, ipver, ntohs(srv->isv_minport), ntohs(srv->isv_maxport), 467 srv->isv_flags); 1621 * Update the persistent configuration with a new server, srv, added to a 1625 ilbd_scf_add_srv(ilbd_sg_t *sg, ilbd_srv_t *srv) argument 1663 ilbd_srv_scf_val(srv, bu 1680 ilbd_scf_del_srv(ilbd_sg_t *sg, ilbd_srv_t *srv) argument [all...] |
/illumos-gate/usr/src/cmd/krb5/kadmin/server/ |
H A D | ovsec_kadmd.c | 417 struct servent *srv; local
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_send.c | 178 const struct sockaddr_in *inp, *srv; local 186 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); 187 if (srv->sin_family == inp->sin_family && 188 srv->sin_port == inp->sin_port && 189 (srv->sin_addr.s_addr == INADDR_ANY || 190 srv->sin_addr.s_addr == inp->sin_addr.s_addr))
|
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/ |
H A D | ibd_cm.c | 2374 ibd_register_service(ibt_srv_desc_t *srv, ib_svc_id_t sid, argument 2390 status = ibt_register_service(ibd_gstate.ig_ibt_hdl, srv, sid,
|