/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rlimit.c | 289 getrlimit32(int resource, struct rlimit32 *rlp) in getrlimit32() argument 298 if (resource < 0 || resource >= RLIM_NLIMITS) in getrlimit32() 302 (void) rctl_rlimit_get(rctlproc_legacy[resource], p, &rlim64); in getrlimit32() 313 ASSERT(RLIM_SAVED(resource)); in getrlimit32() 322 ASSERT(RLIM_SAVED(resource)); in getrlimit32() 327 ASSERT(RLIM_SAVED(resource)); in getrlimit32() 335 if (RLIM_SAVED(resource)) { in getrlimit32() 338 up->u_saved_rlimit[resource].rlim_max = in getrlimit32() 341 up->u_saved_rlimit[resource].rlim_cur = in getrlimit32() 366 setrlimit32(int resource, struct rlimit32 *rlp) in setrlimit32() argument [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | memstat.c | 70 sm_memstat_get(resource, pvalue) in sm_memstat_get() argument 71 char *resource; in sm_memstat_get() 155 sm_memstat_get(resource, pvalue) 156 char *resource; 167 (resource != NULL) ? resource: "freemem"); 253 sm_memstat_get(resource, pvalue) 254 char *resource; 261 if (resource == NULL) 268 l = strlen(resource); 273 if (strncmp(buf, resource, l) == 0 && buf[l] == ':') [all …]
|
H A D | t-memstat.c | 47 char *resource; local 51 resource = NULL; 65 resource = strdup(optarg); 84 r2 = sm_memstat_get(resource, &v); 88 resource != NULL ? resource : "default-value", 107 resource != NULL ? resource : "default-value", v);
|
/illumos-gate/usr/src/cmd/fm/dicts/ |
H A D | NIC.po | 24 …resource.hc-specific.txr_index> (SFP/SFP+/QSFP+ etc.) in %<fault-list[0].resource.hc-specific.link… 26 …disabled, and the network data link associated with it (%<fault-list[0].resource.hc-specific.link-… 41 …resource.hc-specific.txr_index> (SFP/SFP+/QSFP+ etc.) in %<fault-list[0].resource.hc-specific.link… 43 …disabled, and the network data link associated with it (%<fault-list[0].resource.hc-specific.link-… 58 …resource.hc-specific.txr_index> (SFP/SFP+/QSFP+ etc.) in %<fault-list[0].resource.hc-specific.link… 60 …disabled, and the network data link associated with it (%<fault-list[0].resource.hc-specific.link-… 75 …resource.hc-specific.txr_index> (SFP/SFP+/QSFP+ etc.) in %<fault-list[0].resource.hc-specific.link… 77 …disabled, and the network data link associated with it (%<fault-list[0].resource.hc-specific.link-… 92 … transceiver module %<fault-list[0].resource.hc-specific.txr_index> (SFP/SFP+/QSFP+ etc.) in %<fau… 94 …disabled, and the network data link associated with it (%<fault-list[0].resource.hc-specific.link-…
|
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http-support.c | 69 char *resource) /* O - Resource/filename [1024] */ in httpSeparate() argument 72 port, resource, HTTP_MAX_URI); in httpSeparate() 90 char *resource, /* O - Resource/filename */ in httpSeparate2() argument 103 port == NULL || resource == NULL) in httpSeparate2() 138 strlcpy(resource, ptr, resourcelen); in httpSeparate2() 142 resource[0] = '\0'; in httpSeparate2() 153 strlcpy(resource, uri, resourcelen); in httpSeparate2() 172 strlcpy(resource, uri, resourcelen); in httpSeparate2() 236 resource[0] = '/'; in httpSeparate2() 237 resource[1] = '\0'; in httpSeparate2() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_getrlimit.c | 40 int resource, struct rlimit *rlp) in pr_getrlimit() argument 49 return (getrlimit(resource, rlp)); in pr_getrlimit() 52 adp->arg_value = resource; in pr_getrlimit() 88 int resource, const struct rlimit *rlp) in pr_setrlimit() argument 97 return (setrlimit(resource, rlp)); in pr_setrlimit() 100 adp->arg_value = resource; in pr_setrlimit() 136 int resource, struct rlimit64 *rlp) in pr_getrlimit64() argument 145 return (getrlimit64(resource, rlp)); in pr_getrlimit64() 148 adp->arg_value = resource; in pr_getrlimit64() 184 int resource, const struct rlimit64 *rlp) in pr_setrlimit64() argument [all …]
|
/illumos-gate/usr/src/lib/libshare/smb/ |
H A D | libshare_smb.c | 394 sa_resource_t resource; in smb_enable_share() local 440 for (resource = sa_get_share_resource(share, NULL); in smb_enable_share() 441 resource != NULL; in smb_enable_share() 442 resource = sa_get_next_resource(resource)) { in smb_enable_share() 443 err = smb_build_shareinfo(share, resource, &si); in smb_enable_share() 455 err = sa_share_zfs(share, resource, (char *)path, &sh, in smb_enable_share() 480 smb_enable_resource(sa_resource_t resource) in smb_enable_resource() argument 488 share = sa_get_resource_parent(resource); in smb_enable_resource() 506 if ((ret = smb_build_shareinfo(share, resource, &si)) != SA_OK) in smb_enable_resource() 529 smb_disable_resource(sa_resource_t resource) in smb_disable_resource() argument [all …]
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | network_rcm.c | 66 char *resource; member 103 static net_cache_t *cache_lookup(const char *resource); 237 (void) rcm_unregister_interest(hd, probe->resource, 0); in net_unregister() 452 node->resource, dladm_status2str(status, errmsg)); in net_getinfo() 577 cache_lookup(const char *resource) in cache_lookup() argument 582 if (probe->resource && in cache_lookup() 583 (strcmp(resource, probe->resource) == 0)) { in cache_lookup() 600 free(node->resource); in free_node() 645 char resource[MAXPATHLEN]; in devfs_entry() local 679 (void) snprintf(resource, sizeof (resource), "/devices%s", devfspath); in devfs_entry() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ioat/ |
H A D | ioat_rs.c | 146 ioat_rs_alloc(ioat_rs_hdl_t handle, uint_t *resource) in ioat_rs_alloc() argument 158 ASSERT(resource != NULL); in ioat_rs_alloc() 180 *resource = rstruct->rs_last; in ioat_rs_alloc() 223 ioat_rs_free(ioat_rs_hdl_t handle, uint_t resource) in ioat_rs_free() argument 233 ASSERT(resource >= rstruct->rs_min); in ioat_rs_free() 234 ASSERT(resource <= rstruct->rs_max); in ioat_rs_free() 239 array_idx = resource >> 6; in ioat_rs_free() 240 offset = resource & 0x3F; in ioat_rs_free()
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libshare.c | 2298 sa_share_t resource; in sa_set_share_attr() local 2311 resource = sa_get_resource(group, value); in sa_set_share_attr() 2312 if (resource != share && resource != NULL) in sa_set_share_attr() 2930 sa_resource_t resource = group; in sa_destroy_optionset() local 2931 sa_share_t share = sa_get_resource_parent(resource); in sa_destroy_optionset() 3763 sa_get_share_resource(sa_share_t share, char *resource) in sa_get_share_resource() argument 3772 if (resource == NULL) { in sa_get_share_resource() 3785 (xmlChar *)resource) == 0) { in sa_get_share_resource() 3805 sa_get_next_resource(sa_resource_t resource) in sa_get_next_resource() argument 3809 if (resource != NULL) { in sa_get_next_resource() [all …]
|
H A D | scfutil.c | 675 sa_resource_t resource; in find_resource_by_index() local 679 for (resource = sa_get_share_resource(share, NULL); in find_resource_by_index() 680 resource != NULL && found == NULL; in find_resource_by_index() 681 resource = sa_get_next_resource(resource)) { in find_resource_by_index() 682 id = (char *)xmlGetProp((xmlNodePtr)resource, (xmlChar *)"id"); in find_resource_by_index() 686 found = resource; in find_resource_by_index() 778 sa_resource_t resource; in sa_share_props_from_pgroup() local 786 resource = find_resource_by_index(share, sectype); in sa_share_props_from_pgroup() 787 if (resource != NULL) { in sa_share_props_from_pgroup() 788 node = xmlNewChild(resource, NULL, in sa_share_props_from_pgroup() [all …]
|
H A D | libsharecore.c | 81 char *resource; member 283 char *resource; in getdfstab() local 286 resource = args[optind]; in getdfstab() 287 optgroup = strchr(resource, '@'); in getdfstab() 292 if (resource != NULL && in getdfstab() 293 strlen(resource) > 0) in getdfstab() 294 item->resource = in getdfstab() 295 strdup(resource); in getdfstab() 420 item->resource = sa_get_share_attr(share, "resource"); in adddfsentry() 475 ((item->resource != NULL) || in outdfstab() [all …]
|
H A D | plugin.c | 311 sa_proto_share_resource(char *proto, sa_resource_t resource) in sa_proto_share_resource() argument 318 ret = ops->sa_enable_resource(resource); in sa_proto_share_resource() 333 sa_proto_unshare_resource(char *proto, sa_resource_t resource) in sa_proto_unshare_resource() argument 340 ret = ops->sa_disable_resource(resource); in sa_proto_unshare_resource() 625 sa_proto_notify_resource(sa_resource_t resource, char *proto) in sa_proto_notify_resource() argument 632 ret = ops->sa_notify_resource(resource); in sa_proto_notify_resource() 698 sa_resource_t resource, char *newname) in sa_proto_rename_resource() argument 705 ret = ops->sa_rename_resource(handle, resource, in sa_proto_rename_resource()
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 233 print_rsrc_desc(sa_resource_t resource, char *sharedesc) in print_rsrc_desc() argument 238 if (resource == NULL) in print_rsrc_desc() 241 description = sa_get_resource_description(resource); in print_rsrc_desc() 1948 sa_resource_t resource; in get_resource() local 1952 if ((resource = sa_get_share_resource(share, NULL)) != NULL) { in get_resource() 1953 resstring = sa_get_resource_attr(resource, "name"); in get_resource() 1992 sa_resource_t resource; in has_resource_with_opt() local 1995 for (resource = sa_get_share_resource(share, NULL); in has_resource_with_opt() 1996 resource != NULL; in has_resource_with_opt() 1997 resource = sa_get_next_resource(resource)) { in has_resource_with_opt() [all …]
|
/illumos-gate/usr/src/cmd/pools/poolcfg/ |
H A D | poolcfg.y | 237 %type <ival> resource component 591 resource_assign: resource name 597 resource: PCE_PSET {$$ = PCE_PSET;}; 829 pool_resource_t *resource; in parser_resource_info() local 832 if ((resource = pool_get_resource(conf, type, cmd->cmd_tgt1)) == NULL) in parser_resource_info() 836 if ((info_buf = pool_resource_info(conf, resource, PO_TRUE)) == NULL) in parser_resource_info() 907 pool_resource_t *resource; in parser_resource_create() local 909 if ((resource = pool_resource_create(conf, type, cmd->cmd_tgt1)) in parser_resource_create() 914 process_min_max(resource); in parser_resource_create() 916 prop_list_walk(cmd, pool_resource_to_elem(conf, resource)); in parser_resource_create() [all …]
|
/illumos-gate/usr/src/cmd/policykit/ |
H A D | polkit-is-privileged.c | 70 char *resource = NULL; in main() local 110 resource = g_strdup (optarg); in main() 145 if (resource != NULL) in main() 146 printf ("resource = '%s'\n", resource); in main() 168 resource, in main()
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-diagnosis/ |
H A D | zfs-diagnosis.conf | 30 subscribe resource.fs.zfs.* 31 subscribe resource.sysevent.EC_zfs.ESC_ZFS_vdev_remove 32 subscribe resource.sysevent.EC_zfs.ESC_ZFS_pool_destroy
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs-retire.conf | 33 subscribe resource.fs.zfs.removed 34 subscribe resource.fs.zfs.statechange 35 subscribe resource.sysevent.EC_zfs.ESC_ZFS_vdev_remove
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | libfsmgt.h | 55 char *resource; member 69 char *resource; member 85 char *resource; member 518 fs_mntlist_t *fs_get_filtered_mount_list(char *resource, 1020 nfs_mntlist_t *nfs_get_filtered_mount_list(char *resource, char *mountp,
|
H A D | fs_mounts.c | 50 static struct mnttab *create_mnttab_filter(char *resource, char *mountp, 70 free(headp->resource); in fs_free_mount_list() 157 fs_get_filtered_mount_list(char *resource, char *mountp, char *fstype, in fs_get_filtered_mount_list() argument 173 search_entry = create_mnttab_filter(resource, mountp, fstype, in fs_get_filtered_mount_list() 544 newp->resource = strdup(mnttab_entry.mnt_special); in create_mntlist_entry() 545 if (newp->resource == NULL) { in create_mntlist_entry() 604 newp->resource = strdup(mnttab_entry.mnt_special); in create_extmntlist_entry() 605 if (newp->resource == NULL) { in create_extmntlist_entry() 654 create_mnttab_filter(char *resource, char *mountp, char *fstype, char *mntopts, in create_mnttab_filter() argument 669 if (resource != NULL) { in create_mnttab_filter() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/ |
H A D | rlimits | 1 hdr,sys resource,vlimit sys/time.h 3 typ rlim_t,rlim64_t sys/types.h sys/time.h sys/resource.h 8 # include <sys/resource.h>
|
/illumos-gate/usr/src/cmd/fm/eversholt/files/i386/i86pc/ |
H A D | gcpu_amd.esc | 42 * syndrome and syndrome-type, and usually also a resource FMRI to identify 43 * the affected resource. In the AMD case a resource FMRI is included for 46 * on a NorthBridge node. The resource FMRI has form 85 * CONTAINS_CS is true if the resource nvlist array exists and one of its 87 * propogations to those for which a resource element matches the 91 #define CONTAINS_CS (payloadprop_contains("resource", asru(CSPATH))) 101 * | Discard mem_ce with no resource in the ereport payload. | 106 * | the payload detector info) whose resource payload member | 151 { !payloadprop_defined("resource") || !ADDR_VALID } (1)-> 176 { !payloadprop_defined("resource") || !ADDR_VALID } (1)->
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ndifm.c | 221 ndi_fmc_insert(dev_info_t *dip, int flag, void *resource, void *bus_specific) in ndi_fmc_insert() argument 241 fpp = &((ddi_dma_impl_t *)resource)->dmai_error.err_fep; in ndi_fmc_insert() 250 fpp = &((ddi_acc_impl_t *)resource)->ahi_err->err_fep; in ndi_fmc_insert() 268 fep->fce_resource = resource; in ndi_fmc_insert() 290 ndi_fmc_remove(dev_info_t *dip, int flag, const void *resource) in ndi_fmc_remove() argument 315 fep = ((ddi_dma_impl_t *)resource)->dmai_error.err_fep; in ndi_fmc_remove() 316 ((ddi_dma_impl_t *)resource)->dmai_error.err_fep = NULL; in ndi_fmc_remove() 328 fep = ((ddi_acc_impl_t *)resource)->ahi_err->err_fep; in ndi_fmc_remove() 329 ((ddi_acc_impl_t *)resource)->ahi_err->err_fep = NULL; in ndi_fmc_remove()
|
/illumos-gate/usr/src/cmd/plimit/ |
H A D | plimit.c | 392 int resource; in show_limits() local 398 for (resource = 0; resource < RLIM_NLIMITS; resource++) { in show_limits() 399 if (pr_getrlimit64(Pr, resource, &rlim) != 0) in show_limits() 402 switch (resource) { in show_limits() 461 (void) sprintf(buf, " rlimit #%d\t", resource); in show_limits()
|
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 213 name_list_t *resource; member 231 char *resource; member 506 name_list_t *fru, name_list_t *asru, name_list_t *resource, in new_record_init() argument 525 status_rec_p->resource = resource; in new_record_init() 627 if (strcmp(fp->name, np->resource) == 0) { in add_resource_list() 657 np->resource = fp->name; in add_resource_list() 687 name_list_t *fru, name_list_t *asru, name_list_t *resource, in catalog_new_record() argument 694 resource, serial, not_suppressed, hostid, injected); in catalog_new_record() 816 name_list_t *class = NULL, *resource = NULL; in add_fault_record_to_catalog() local 840 &resource, &asru, &dummy_fru, ba[i]); in add_fault_record_to_catalog() [all …]
|