/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | filters.c | 450 ipgpc_filter_destructor(ipgpc_filter_t *filter) in ipgpc_filter_destructor() argument 452 if (filter->filter_comment != NULL) { in ipgpc_filter_destructor() 453 kmem_free(filter->filter_comment, in ipgpc_filter_destructor() 454 (strlen(filter->filter_comment) + 1)); in ipgpc_filter_destructor() 456 if (filter->saddr_hostname != NULL) { in ipgpc_filter_destructor() 457 kmem_free(filter->saddr_hostname, in ipgpc_filter_destructor() 458 (strlen(filter->saddr_hostname) + 1)); in ipgpc_filter_destructor() 460 if (filter->daddr_hostname != NULL) { in ipgpc_filter_destructor() 461 kmem_free(filter->daddr_hostname, in ipgpc_filter_destructor() 462 (strlen(filter->daddr_hostname) + 1)); in ipgpc_filter_destructor() [all …]
|
H A D | classifierddi.c | 216 ipgpc_filter_t *filter; in ipgpc_modify_action() local 242 filter = kmem_zalloc(sizeof (ipgpc_filter_t), KM_SLEEP); in ipgpc_modify_action() 243 if ((rc = ipgpc_parse_filter(filter, nvlp)) != 0) { in ipgpc_modify_action() 245 ipgpc_filter_destructor(filter); in ipgpc_modify_action() 246 kmem_free(filter, sizeof (ipgpc_filter_t)); in ipgpc_modify_action() 253 ipgpc_filter_destructor(filter); in ipgpc_modify_action() 254 kmem_free(filter, sizeof (ipgpc_filter_t)); in ipgpc_modify_action() 257 rc = ipgpc_addfilter(filter, name, flags); in ipgpc_modify_action() 259 ipgpc_filter_destructor(filter); in ipgpc_modify_action() 261 kmem_free(filter, sizeof (ipgpc_filter_t)); in ipgpc_modify_action()
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | mapping.c | 295 char *filter = NULL; in set_filter_publickey() local 313 MALLOC_FILTER_UDATA(filter, filterlen, userdata, in set_filter_publickey() 316 (void) snprintf(filter, filterlen, in set_filter_publickey() 328 MALLOC_FILTER_UDATA(filter, filterlen, userdata, in set_filter_publickey() 331 (void) snprintf(filter, filterlen, in set_filter_publickey() 342 MALLOC_FILTER_UDATA(filter, filterlen, userdata, in set_filter_publickey() 345 (void) snprintf(filter, filterlen, in set_filter_publickey() 352 MALLOC_FILTER_UDATA(filter, filterlen, userdata, in set_filter_publickey() 355 (void) snprintf(filter, filterlen, "%s", in set_filter_publickey() 363 (void) fprintf(stdout, "set_filter: filter=\"%s\"\n", filter); in set_filter_publickey() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcfilter.c | 32 Sfio_t* filter; /* the filter stream */ member 63 sfset(fi->filter,SF_READ,0); 64 close(sffileno(fi->filter)); 65 sfset(fi->filter,SF_READ,1); 72 sfset(fi->filter, SF_READ, 0); 73 r = sfpoll(&fi->filter, 1, 1); 74 sfset(fi->filter, SF_READ, 1); 78 if((w = sfwr(fi->filter, fi->next, w, 0)) > 0) 86 sfset(fi->filter, SF_WRITE, 0); 87 w = sfpoll(&fi->filter, 1, fi->next ? 1 : -1); [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipgpc.types | 30 filter name string 31 filter user user 32 filter projid int32 33 filter if_name ifname 34 filter direction enum { LOCAL_IN=0x01, LOCAL_OUT=0x02, FWD_IN=0x04, FWD_OUT=0x08 } 35 filter protocol protocol 36 filter dsfield uint8 37 filter dsfield_mask uint8 38 filter saddr address 39 filter daddr address [all …]
|
H A D | ipqosconf.c | 3609 ipqos_conf_filter_t **filter, in printfilter() argument 3626 quote_ws_string(get_originator_nm((*filter)->originator))); in printfilter() 3633 quote_ws_string((*filter)->name)); in printfilter() 3636 quote_ws_string((*filter)->class_name)); in printfilter() 3640 if (printall && ((*filter)->src_nd_name || (*filter)->dst_nd_name)) { in printfilter() 3642 (void) fprintf(fp, "Instance %u\n", (*filter)->instance); in printfilter() 3647 if ((*filter)->src_nd_name) { in printfilter() 3650 (*filter)->src_nd_name); in printfilter() 3652 if ((*filter)->dst_nd_name) { in printfilter() 3655 (*filter)->dst_nd_name); in printfilter() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/pcieadm/ |
H A D | pcieadm-priv.ksh | 43 typeset filter="$1" 45 if ! $pcieadm_prog show-devs $filter >/dev/null; then 46 warn "failed to show-devs with filter $filter" 48 printf "TEST PASSED: show-devs $filter\n" 51 if $pcieadm_prog show-devs $filter 9000/9000/9000; then 52 warn "show-devs $filter 9000/9000/9000, should have failed" 54 printf "TEST PASSED: show-devs $filter 9000/9000/9000\n" 57 if ! $pcieadm_prog show-cfgspace -d $filter >/dev/null; then 58 warn "failed to show-cfgspace with filter $filter" 60 printf "TEST PASSED: show-cfgspace -d $filter\n" [all …]
|
/illumos-gate/usr/src/cmd/lp/cmd/ |
H A D | lpfilter.c | 143 char *filter, local 161 filter = 0; 168 if (filter) 170 filter = optarg; 172 STREQU(NAME_ANY, filter) 173 || STREQU(NAME_NONE, filter) 177 } else if (!syn_name(filter)) { 178 LP_ERRMSG1 (ERROR, E_LP_NOTNAME, filter); 180 } else if (!*filter) 181 filter = NAME_ALL; [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_attr.c | 197 char *str, *filter, *tmp; in makeFilter() local 210 filter = sdup(myself, T, "(&"); in makeFilter() 211 if (filter == 0) { in makeFilter() 224 sfree(filter); in makeFilter() 228 filter = scat(myself, T, filter, tmp); in makeFilter() 237 sfree(filter); in makeFilter() 242 tmp = filter; in makeFilter() 243 filter = scat(myself, F, tmp, ")"); in makeFilter() 248 return (filter); in makeFilter() 255 makeFilterComp(char *filter, int *numComps) { in makeFilterComp() argument [all …]
|
/illumos-gate/usr/src/cmd/pcidb/ |
H A D | pcidb.c | 488 pcidb_parse_class_filter(pcidb_filter_t *filter, char *arg, const char *orig) in pcidb_parse_class_filter() argument 494 filter->pft_vend = filter->pft_dev = PCIDB_NOFILTER; in pcidb_parse_class_filter() 495 filter->pft_subven = filter->pft_subdev = PCIDB_NOFILTER; in pcidb_parse_class_filter() 511 filter->pft_progif = val & 0xff; in pcidb_parse_class_filter() 514 filter->pft_progif = PCIDB_NOFILTER; in pcidb_parse_class_filter() 518 filter->pft_subclass = val & 0xff; in pcidb_parse_class_filter() 521 filter->pft_subclass = PCIDB_NOFILTER; in pcidb_parse_class_filter() 524 filter->pft_class = val & 0xff; in pcidb_parse_class_filter() 528 pcidb_parse_device_filter(pcidb_filter_t *filter, char *arg, const char *orig) in pcidb_parse_device_filter() argument 534 filter->pft_vend = filter->pft_dev = PCIDB_NOFILTER; in pcidb_parse_device_filter() [all …]
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | nldaputils.c | 110 char *filter; member 156 if (desc == NULL || desc->filter == NULL || userdata == NULL) in merge_SSD_filter() 173 len = strlen(userdata) + strlen(desc->filter) + 1; in merge_SSD_filter() 177 (void) sprintf(*realfilter, (char *)userdata, desc->filter); in merge_SSD_filter() 306 const char *db, *filter, *udata; in idmap_nldap_bywinname_batch_add() local 327 filter = _F_GETPWWNAMWK; in idmap_nldap_bywinname_batch_add() 331 filter = _F_GETPWWNAMDOM; in idmap_nldap_bywinname_batch_add() 343 filter = _F_GETGRWNAMWK; in idmap_nldap_bywinname_batch_add() 347 filter = _F_GETGRWNAMDOM; in idmap_nldap_bywinname_batch_add() 380 flen = snprintf(NULL, 0, filter, qs->nldap_winname_attr, in idmap_nldap_bywinname_batch_add() [all …]
|
H A D | adutils.c | 590 idmap_batch_add1(idmap_query_state_t *state, const char *filter, in idmap_batch_add1() argument 690 ad_rc = adutils_lookup_batch_add(state->qs, filter, in idmap_batch_add1() 705 char *filter, *s_name; in idmap_name2sid_batch_add1() local 751 (void) asprintf(&filter, SANFILTER, s_name); in idmap_name2sid_batch_add1() 754 if (filter == NULL) { in idmap_name2sid_batch_add1() 760 retcode = idmap_batch_add1(state, filter, ecanonname, edomain, in idmap_name2sid_batch_add1() 764 free(filter); in idmap_name2sid_batch_add1() 778 char *filter; in idmap_sid2name_batch_add1() local 797 (void) asprintf(&filter, OBJSIDFILTER, cbinsid, cbinsid); in idmap_sid2name_batch_add1() 798 if (filter == NULL) in idmap_sid2name_batch_add1() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | README | 10 filter meta-information and content. 12 This README file describes the steps needed to compile and run a filter, 13 through reference to a sample filter which is attached at the end of this 42 process limits in your filter. For example, you might look at using 43 setrlimit() to increase the number of open file descriptors if your filter 70 R Reject connection if filter unavailable 71 T Temporary fail connection if filter unavailable 72 4 Shut down connection if filter unavailable 76 in case of filter errors as if the failing filters were not present. 83 C Timeout for connecting to a filter (if 0, use system timeout) [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rcm.c | 40 char *filter; member 157 fp_rcm_suspend(char *rsrc, char *filter, char **errstring, cfga_flags_t flags) in fp_rcm_suspend() argument 175 if (filter != NULL && strstr(filter, rsrc) != filter) { in fp_rcm_suspend() 185 if (filter == NULL) { in fp_rcm_suspend() 195 (void) fp_rcm_resume(rsrc, filter, errstring, in fp_rcm_suspend() 210 if ((filter_fixed = chop_minor(filter)) == NULL) in fp_rcm_suspend() 227 walkargs.filter = filter_fixed; in fp_rcm_suspend() 246 (void) fp_rcm_resume(rsrc, filter, errstring, in fp_rcm_suspend() 258 fp_rcm_resume(char *rsrc, char *filter, char **errstring, cfga_flags_t flags) in fp_rcm_resume() argument 274 if (filter != NULL && strstr(filter, rsrc) != filter) { in fp_rcm_resume() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | search.c | 49 const char *filter, char **attrs, int attrsonly, 63 const char *filter, char **attrs, int attrsonly, 91 const char *filter, in ldap_search() argument 100 if ( ldap_search_ext( ld, base, scope, filter, attrs, attrsonly, NULL, in ldap_search() 119 const char *filter, in ldap_search_ext() argument 140 return( nsldapi_search( ld, base, scope, filter, attrs, attrsonly, in ldap_search_ext() 155 const char *filter, in nsldapi_search() argument 179 if ( filter == NULL ) { in nsldapi_search() 180 filter = "(objectclass=*)"; in nsldapi_search() 198 } else if (( rc_key = ldap_memcache_createkey( ld, base, scope, filter, in nsldapi_search() [all …]
|
/illumos-gate/usr/src/cmd/connstat/ |
H A D | connstat_main.c | 168 connstat_conn_attr_t filter = {0}; in main() local 200 filter.ca_state = TCPS_ESTABLISHED; in main() 295 process_filter(filterstr, &filter, &flags); in main() 305 show_stats(proto, ofmt, flags, &filter, timestamp_fmt, interval, count); in main() 336 process_filter(char *filterstr, connstat_conn_attr_t *filter, uint_t *flags) in process_filter() argument 355 addrp = &filter->ca_laddr; in process_filter() 359 addrp = &filter->ca_raddr; in process_filter() 363 portp = &filter->ca_lport; in process_filter() 367 portp = &filter->ca_rport; in process_filter() 416 filter->ca_state = tcp_str2state(val); in process_filter() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | svc-sockfilter | 28 filter_name=`svcprop -p socket-filter/name $SMF_FMRI 2>/dev/null` 36 mod_name=`svcprop -p socket-filter/module_name $SMF_FMRI 2>/dev/null` 37 type=`svcprop -p socket-filter/attach_semantics $SMF_FMRI 2>/dev/null` 38 order=`svcprop -p socket-filter/order_hint $SMF_FMRI 2>/dev/null` 39 socktups=`svcprop -p socket-filter/socket_tuples $SMF_FMRI 2>/dev/null`
|
/illumos-gate/usr/src/cmd/abi/appcert/scripts/ |
H A D | symprof.pl | 344 my ($filter, $filtee, $from, $to, $sym); 391 ($filter, $filtee) = split(/\|/, $1, 2); 392 $filter_map{$filtee} = $filter; 395 $filter = basename($filter); 397 $filter_map{$filtee} = $filter; 453 ($filter, $filtee) = split(/\|/, $1, 2); 466 if ($filter =~ /\blibdl\.so\.\d+/) { 467 $filter_map{$filtee} = $filter; 470 $filter = basename($filter); 472 $filter_map{$filtee} = $filter; [all …]
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_mount_defaults.c | 59 static struct vfstab *create_vfstab_filter(fs_mntdefaults_t *filter, 92 fs_mntdefaults_t *fs_get_filtered_mount_defaults(fs_mntdefaults_t *filter, in fs_get_filtered_mount_defaults() argument 108 search_entry = create_vfstab_filter(filter, errp); in fs_get_filtered_mount_defaults() 587 create_vfstab_filter(fs_mntdefaults_t *filter, int *errp) { in create_vfstab_filter() argument 603 if (filter->resource != NULL) { in create_vfstab_filter() 604 search_entry->vfs_special = strdup(filter->resource); in create_vfstab_filter() 616 if (filter->fsckdevice != NULL) { in create_vfstab_filter() 617 search_entry->vfs_fsckdev = strdup(filter->fsckdevice); in create_vfstab_filter() 628 if (filter->mountp != NULL) { in create_vfstab_filter() 629 search_entry->vfs_mountp = strdup(filter->mountp); in create_vfstab_filter() [all …]
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_getalias.c | 81 if (desc == NULL || desc->filter == NULL || userdata == NULL) in __s_api_merge_SSD_filter() 98 len = strlen(userdata) + strlen(desc->filter) + 1; in __s_api_merge_SSD_filter() 104 (void) sprintf(*realfilter, (char *)userdata, desc->filter); in __s_api_merge_SSD_filter() 112 char filter[BUFSIZE]; in __getldapaliasbyname() local 138 if (snprintf(filter, sizeof (filter), ALIAS_FILTER, alias, alias) < 0) { in __getldapaliasbyname() 156 rc = __ns_ldap_list(service, (const char *)filter, in __getldapaliasbyname()
|
H A D | ns_wrapper.c | 314 char *base, int scope, char *filter, in _ns_ldap_search_ext() argument 321 return (ldap_search_ext(ld, base, scope, filter, in _ns_ldap_search_ext() 328 char *base, int scope, char *filter, in _ns_ldap_search_ext_s() argument 335 return (ldap_search_ext_s(ld, base, scope, filter, in _ns_ldap_search_ext_s() 342 char *base, int scope, char *filter, in _ns_ldap_search() argument 347 return (ldap_search(ld, base, scope, filter, attrs, attrsonly)); in _ns_ldap_search() 352 char *base, int scope, char *filter, in _ns_ldap_search_s() argument 357 return (ldap_search_s(ld, base, scope, filter, in _ns_ldap_search_s() 363 char *base, int scope, char *filter, in _ns_ldap_search_st() argument 369 return (ldap_search_st(ld, base, scope, filter, in _ns_ldap_search_st()
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_grc3.c | 99 _conv31d_##T(int32_t *history, uint32_t filter, uint32_t incv) \ in DEFINE_FILTER() 103 filter = (1024 << 15) - filter; \ in DEFINE_FILTER() 105 while (filter < ((uint32_t)(SZ << 15))) { \ in DEFINE_FILTER() 106 accum += _filt31_##T(*history, filter); \ in DEFINE_FILTER() 107 filter += incv; \ in DEFINE_FILTER() 122 _conv31_L(int32_t *history, uint32_t filter) 127 accum += _filt31_##p(*history, filter); \ 128 filter += (1024 << 15); \ 137 _conv31_M(int32_t *history, uint32_t filter) in _conv31_M() argument 147 _conv31_H(int32_t *history, uint32_t filter) in _conv31_H() argument [all …]
|
/illumos-gate/usr/src/common/mapfiles/common/ |
H A D | map.filter | 23 # A default mapfile for optimizing the creation of a filter shared object. 28 # ld(1) so that no .init/.fini sections are created. Although the filter can 35 # If a filter is required to execute .init code that references global data 36 # then the filter will require relocation (i.e., it will have to be written to 39 # This compaction of a filter into a single segment allows ld.so.1 to optimize 40 # its processing of a filter. If the filter is small enough this segment may 52 LOAD_SEGMENT filter {
|
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getprinter.c | 69 _nss_files_XY_printer(be, args, filter, check) in _nss_files_XY_printer() argument 72 const char *filter; /* advisory, to speed up */ 80 if (filter != NULL && *filter == '\0') 122 if (filter != 0 && strstr(instr, filter) == 0) {
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Sun_fcRegisterForTargetEvents.cc | 65 bool filter = true; in Sun_fcRegisterForTargetEvents() local 69 if (allTargets) filter = false; in Sun_fcRegisterForTargetEvents() 75 wwnConversion(discoveredPortWWN.wwn), filter); in Sun_fcRegisterForTargetEvents() 79 wwnConversion(discoveredPortWWN.wwn), filter); in Sun_fcRegisterForTargetEvents()
|