/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 388 char *svc_name = iconf->service; in valid_basic_properties() local 402 svc_name = iconf->rpc_prog; in valid_basic_properties() 407 !put_prop_value_string(prop, PR_SVC_NAME_NAME, svc_name)) { in valid_basic_properties() 1219 char *svc_name; in list_callback() local 1229 if ((svc_name = malloc(max_name_length + 1)) == NULL) { in list_callback() 1240 if (scf_instance_to_fmri(inst, svc_name, max_name_length) < 0) { in list_callback() 1243 svc_name); in list_callback() 1244 free(svc_name); in list_callback() 1248 if ((prop = scf_simple_prop_get(h, svc_name, SCF_PG_GENERAL, in list_callback() 1267 if (((prop = scf_simple_prop_get(h, svc_name, PG_NAME_SERVICE_CONFIG, in list_callback() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | smfcfg.c | 402 scf_type_t sctype, char *svc_name, int *bufsz) in nfs_smf_get_prop() argument 405 instance, sctype, svc_name, bufsz)); in nfs_smf_get_prop() 411 scf_type_t sctype, char *svc_name) in nfs_smf_get_iprop() argument 418 instance, sctype, svc_name, &bufsz); in nfs_smf_get_iprop() 431 scf_type_t type, char *svc_name) in nfs_smf_set_prop() argument 434 type, svc_name)); in nfs_smf_set_prop() 439 scf_type_t type, char *svc_name) in autofs_smf_set_prop() argument 442 type, svc_name)); in autofs_smf_set_prop() 447 scf_type_t sctype, char *svc_name, int *bufsz) in autofs_smf_get_prop() argument 450 instance, sctype, svc_name, bufsz)); in autofs_smf_get_prop() [all …]
|
H A D | nfs_sec.c | 407 char svc_name[MAXNETNAMELEN+1]; in nfs_create_ah() local 439 (void) sprintf(svc_name, "nfs@%s", hostname); in nfs_create_ah() 445 return (rpc_gss_seccreate(cl, svc_name, in nfs_create_ah()
|
/illumos-gate/usr/src/lib/libadutils/common/ |
H A D | srv_query.c | 69 srv_getdom(res_state state, const char *svc_name, char **rrname) in srv_getdom() argument 83 logger(LOG_DEBUG, "Looking for SRV RRs '%s.*'", svc_name); in srv_getdom() 85 len = res_nsearch(state, svc_name, C_IN, T_SRV, in srv_getdom() 91 svc_name, hstrerror(state->res_h_errno)); in srv_getdom() 170 srv_query(res_state state, const char *svc_name, const char *dname, in srv_query() argument 190 svc_name); in srv_query() 192 len = res_nsearch(state, svc_name, C_IN, T_SRV, in srv_query() 198 svc_name, hstrerror(state->res_h_errno)); in srv_query() 205 svc_name, dname); in srv_query() 208 len = res_nquerydomain(state, svc_name, dname, C_IN, T_SRV, in srv_query() [all …]
|
/illumos-gate/usr/src/lib/print/libipp-listener/common/ |
H A D | ipp-listener.c | 366 cyclical_service_check(char *svc_name, int port) in cyclical_service_check() argument 374 if (svc_name == NULL) in cyclical_service_check() 377 if ((list = getprinterbyname(svc_name, NULL)) == NULL) in cyclical_service_check() 381 if ((s == NULL) || (strcasecmp(svc_name, s) != 0)) in cyclical_service_check() 424 char *svc_name = NULL; in print_service_connect() local 439 "default-service", &svc_name); in print_service_connect() 440 get_printer_id(operational, &svc_name, NULL); in print_service_connect() 445 if (cyclical_service_check(svc_name, port) != 0) { in print_service_connect() 451 status = papiServiceCreate(svc, svc_name, user, NULL, NULL, in print_service_connect()
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | yppush.c | 117 char svc_name[YPMAXPEER+1]; member 556 strcpy(ps->svc_name, sname); in add_server() 749 ps->svc_name, grace_period); 753 "No response from ypxfr on %s\n", ps->svc_name); 768 "No response yet from ypxfr on %s\n", ps->svc_name); 775 ps->svc_name); 896 printf(sd->state_msg, s->svc_name); in print_state_msg() 930 s->svc_name, sd->status_msg); in print_callback_msg() 938 (int)s->status, s->svc_name); in print_callback_msg() 1008 if ((ps->domb.dom_client = __yp_clnt_create_rsvdport(ps->svc_name, in send_message() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/tests/rpcsec_gss_conn/ |
H A D | rpcsec_gss_conn.c | 46 char svc_name[256]; in main() local 90 (void) snprintf(svc_name, sizeof (svc_name), "nfs@%s", host); in main() 91 if ((auth = rpc_gss_seccreate(client, svc_name, "kerberos_v5", in main()
|
/illumos-gate/usr/src/cmd/svc/lsvcrun/ |
H A D | lsvcrun.c | 500 char *svc_name; in prepare_contract() local 520 svc_name = path_to_svc_name(script); in prepare_contract() 521 (void) strlcat(svc_strbuf, svc_name ? svc_name : script, in prepare_contract() 523 if (svc_name != NULL) { in prepare_contract() 524 free(svc_name); in prepare_contract() 711 char *svc_name = NULL; in set_legacy_service() local 743 svc_name = path_to_svc_name(script); in set_legacy_service() 746 (void *)(svc_name ? svc_name : script)) != 0) in set_legacy_service() 772 free(svc_name); in set_legacy_service()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | svcctl_scm.c | 601 svc[ns].svc_name = offset; in svcctl_scm_enum_services() 694 svcctl_scm_validate_service(svcctl_manager_context_t *mgr_ctx, char *svc_name) in svcctl_scm_validate_service() argument 696 if (svcctl_scm_find_service(mgr_ctx, svc_name) != NULL) in svcctl_scm_validate_service() 709 svcctl_scm_map_windows_svc(char *svc_name) in svcctl_scm_map_windows_svc() argument 723 if (strcasecmp(svc_name, in svcctl_scm_map_windows_svc() 737 svcctl_scm_find_service(svcctl_manager_context_t *mgr_ctx, char *svc_name) in svcctl_scm_find_service() argument 743 if (svc_name == NULL) in svcctl_scm_find_service() 747 node.sn_name = svc_name; in svcctl_scm_find_service() 754 node.sn_name = svcctl_scm_map_windows_svc(svc_name); in svcctl_scm_find_service()
|
H A D | svcctl_svc.c | 272 svcctl_svc_hdalloc(ndr_xa_t *mxa, ndr_hdid_t *mgr_id, char *svc_name) in svcctl_svc_hdalloc() argument 312 (void) strlcpy(svc_ctx->sc_svcname, svc_name, max_name_sz); in svcctl_svc_hdalloc() 566 char *svc_name = (char *)param->service_name; in svcctl_s_OpenService() local 587 status = svcctl_scm_validate_service(mgr_ctx, svc_name); in svcctl_s_OpenService() 594 id = svcctl_svc_hdalloc(mxa, mgrid, svc_name); in svcctl_s_OpenService() 1072 char *svc_name = (char *)param->service_name->value; in svcctl_s_OpenServiceA() local 1093 status = svcctl_scm_validate_service(mgr_ctx, svc_name); in svcctl_s_OpenServiceA() 1100 id = svcctl_svc_hdalloc(mxa, mgrid, svc_name); in svcctl_s_OpenServiceA()
|
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 523 free(cfg->svc_name); in destroy_basic_cfg() 612 ((cfg->svc_name = in valid_props() 652 if ((cfg->svc_name != NULL) && in valid_props() 653 ((rpc_pnum = get_rpc_prognum(cfg->svc_name)) == -1)) in valid_props() 876 if (!isrpc && (cfg->svc_name != NULL)) { in valid_props() 897 if (getservbyname_r(cfg->svc_name, gsproto, &se, gsbuf, in valid_props() 1304 get_rpc_prognum(const char *svc_name) in get_rpc_prognum() argument 1311 if (getrpcbyname_r(svc_name, &rpc, buf, sizeof (buf)) != NULL) in get_rpc_prognum() 1314 pnum = strtol(svc_name, &endptr, 0); in get_rpc_prognum() 1524 setproctitle(const char *svc_name, int s, char *argv[]) in setproctitle() argument [all …]
|
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fcode.c | 335 cp->svc_name = fc_ptr2cell(FC_SVC_INVALIDATE); in fc_close() 348 cp->svc_name = fc_ptr2cell(FC_SVC_EXIT); in fc_close() 679 if (copyinstr(fc_cell2ptr(cp->svc_name), name, in fc_run_priv() 683 fc_cell2ptr(cp->svc_name)); in fc_run_priv() 688 cp->svc_name = fc_ptr2cell(name); in fc_run_priv() 802 cp->svc_name = fc_ptr2cell(FC_SVC_VALIDATE); in fc_validate()
|
H A D | fc_ops.c | 65 char *svc_name; member 168 char *name = fc_cell2ptr(cp->svc_name); in fc_ops() 170 for (pv = fov; pv->svc_name != NULL; ++pv) in fc_ops() 171 if (strcmp(pv->svc_name, name) == 0) in fc_ops() 210 if (strstr(fc_cell2ptr(cp->svc_name), "inherited") == NULL) in fco_getproplen() 257 if (strstr(fc_cell2ptr(cp->svc_name), "inherited") == NULL) in fco_getprop()
|
H A D | fcpci.c | 138 char *svc_name; member 265 char *name = fc_cell2ptr(cp->svc_name); in pci_fc_ops() 274 for (pv = shared_pov; pv->svc_name != NULL; ++pv) in pci_fc_ops() 275 if (strcmp(pv->svc_name, name) == 0) in pci_fc_ops() 280 for (pv = pov; pv->svc_name != NULL; ++pv) in pci_fc_ops() 281 if (strcmp(pv->svc_name, name) == 0) in pci_fc_ops() 665 char *name = fc_cell2ptr(cp->svc_name); in pfc_register_fetch() 755 char *name = fc_cell2ptr(cp->svc_name); in pfc_register_store() 835 char *name = fc_cell2ptr(cp->svc_name); in pfc_config_fetch() 970 char *name = fc_cell2ptr(cp->svc_name); in pfc_config_store()
|
/illumos-gate/usr/src/lib/auditd_plugins/remote/ |
H A D | transport.c | 308 char *svc_name; in establish_context() local 312 (void) asprintf(&svc_name, "%s@%s", gss_svc_name, current_host->h_name); in establish_context() 313 if (svc_name == NULL) { in establish_context() 319 DPRINT((dfile, "Service name: %s\n", svc_name)); in establish_context() 321 send_tok.value = svc_name; in establish_context() 322 send_tok.length = strlen(svc_name); in establish_context() 328 free(svc_name); in establish_context() 358 free(svc_name); in establish_context()
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | in.lpd.c | 581 cyclical_service_check(char *svc_name) in cyclical_service_check() argument 588 if (svc_name == NULL) in cyclical_service_check() 591 if ((list = getprinterbyname(svc_name, NULL)) == NULL) in cyclical_service_check() 595 if ((s == NULL) || (strcasecmp(svc_name, s) != 0)) in cyclical_service_check()
|
H A D | common.c | 591 char *user, *svc_name, *passphrase; in cli_auth_callback() local 594 if ((svc_name = papiServiceGetServiceName(svc)) == NULL) in cli_auth_callback() 609 gettext("passphrase for %s to access %s: "), user, svc_name); in cli_auth_callback()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | svc.c | 350 char *svc_name, *svc_inst = NULL; in svc_fmri_prop_get() local 380 if (nvlist_lookup_string(rsrc, FM_FMRI_SVC_NAME, &svc_name) != 0) in svc_fmri_prop_get() 385 len = 5 + strlen(svc_name) + in svc_fmri_prop_get() 391 (void) snprintf(search, len, "svc:/%s", svc_name); in svc_fmri_prop_get() 400 (void) snprintf(search, len, "svc:/%s:%s", svc_name, svc_inst); in svc_fmri_prop_get()
|
/illumos-gate/usr/src/lib/libshare/smbfs/ |
H A D | smbfs_scfutil.c | 207 smb_smf_scf_init(char *svc_name) in smb_smf_scf_init() argument 228 svc_name, handle->scf_service) in smb_smf_scf_init() 954 smb_smf_get_iterator(char *svc_name) in smb_smf_get_iterator() argument 958 handle = smb_smf_scf_init(svc_name); in smb_smf_get_iterator()
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | file_object.c | 2124 uint32_t snap_level_num, uint32_t svc_id, const char *svc_name, in object_snapshot_add_level() argument 2145 snap_id, snap_level_num, data.sai_level_id, svc_id, svc_name, in object_snapshot_add_level() 2174 uint32_t svcid, const char *svc_name, in object_snapshot_do_take() argument 2195 if (svc_name == NULL) { in object_snapshot_do_take() 2204 svc_name = svc_name_alloc; in object_snapshot_do_take() 2210 if (result == REP_PROTOCOL_SUCCESS && svc_name == NULL) in object_snapshot_do_take() 2243 svcid, svc_name, instid, inst_name); in object_snapshot_do_take() 2249 svcid, svc_name, 0, NULL); in object_snapshot_do_take() 2277 const char *svc_name, const char *inst_name, in object_snapshot_take_new() argument 2293 result = object_snapshot_do_take(instid, inst_name, svcid, svc_name, in object_snapshot_take_new()
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | gp2cfg.h | 122 char *svc_name; member
|
/illumos-gate/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 2065 const char *svc_name, *inst_name, *pg_name, *path; in get_fmri_state() local 2096 if (scf_parse_svc_fmri(lfmri, NULL, &svc_name, &inst_name, in get_fmri_state() 2105 if (svc_name == NULL || pg_name != NULL) { in get_fmri_state() 3007 const char *scope_name, *svc_name, *inst_name, *pg_name; in list_instance() local 3020 if (scf_parse_svc_fmri(restarter_fmri, &scope_name, &svc_name, in list_instance() 3029 strcmp(rest->service, svc_name) == 0 && in list_instance() 3101 const char *svc_name, *inst_name, *pg_name, *save; in list_svc_or_inst_fmri() local 3107 if (scf_parse_fmri(fmri, &type, NULL, &svc_name, &inst_name, &pg_name, in list_svc_or_inst_fmri() 3132 if (svc_name == NULL || pg_name != NULL) { in list_svc_or_inst_fmri() 3319 const char *scope_name, *svc_name, *inst_name, *pg_name; in check_against_provider() local [all …]
|
/illumos-gate/usr/src/lib/libndmp/common/ |
H A D | libndmp_prop.c | 258 ndmp_smf_scf_init(const char *svc_name) in ndmp_smf_scf_init() argument 280 if (scf_scope_get_service(handle->scf_scope, svc_name, in ndmp_smf_scf_init()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_scfutil.c | 638 smb_smf_scf_init(char *svc_name) in smb_smf_scf_init() argument 666 svc_name, handle->scf_service) in smb_smf_scf_init()
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | restarter.c | 325 char *svc_name, *inst_name; in restarter_insert_inst() local 372 svc_name = startd_alloc(max_scf_name_size); in restarter_insert_inst() 410 if ((scf_service_get_name(scf_svc, svc_name, max_scf_name_size) < 0) || in restarter_insert_inst() 429 (void) snprintf(logfilebuf, PATH_MAX, "%s:%s", svc_name, inst_name); in restarter_insert_inst() 678 startd_free(svc_name, max_scf_name_size); in restarter_insert_inst() 692 startd_free(svc_name, max_scf_name_size); in restarter_insert_inst()
|