Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 25 of 194) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintaddr.c18 char *suffix; local
23 suffix = "/bcast";
29 suffix = NULL;
33 suffix = "/net";
37 suffix = "/netmasked";
41 suffix = "/peer";
45 suffix = NULL;
51 suffix = NULL;
56 suffix = NULL;
60 if (suffix != NULL) {
[all …]
/illumos-gate/usr/src/cmd/basename/
H A Dbasename.c44 char *suffix; in main() local
85 suffix = (argc == 2) ? NULL : argv[2]; in main()
106 if (suffix == NULL) { in main()
117 if (strcmp(string, suffix) != 0) { in main()
118 p = string + strlen(string) - strlen(suffix); in main()
119 if (strcmp(p, suffix) == 0) in main()
128 suf_len = 6 + strlen(suffix) + 1 + 1; /* \(.*\)suffix$ */ in main()
139 (void) strcpy(suf_pat + 6, suffix); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dbasename.c69 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) in namebase() argument
90 if(suffix && (n=strlen(suffix)) && n<(last-first)) in namebase()
92 if(memcmp(last-n,suffix,n)==0) in namebase()
105 char* suffix = 0; in b_basename() local
118 suffix = opt_info.arg; in b_basename()
137 namebase(sfstdout, string, suffix); in b_basename()
/illumos-gate/usr/src/cmd/ramdiskadm/
H A Dmain.c218 char *suffix; in main() local
240 size = strtoll(argv[optind], &suffix, 0); in main()
241 if (strcmp(suffix, "b") == 0) { in main()
243 ++suffix; in main()
244 } else if (strcmp(suffix, "k") == 0) { in main()
246 ++suffix; in main()
247 } else if (strcmp(suffix, "m") == 0) { in main()
249 ++suffix; in main()
250 } else if (strcmp(suffix, "g") == 0) { in main()
252 ++suffix; in main()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Dsupport.c228 dst_s_filename_length(const char *name, const char *suffix) in dst_s_filename_length() argument
238 if (suffix == NULL) in dst_s_filename_length()
240 if (strrchr(suffix, '\\')) in dst_s_filename_length()
242 if (strrchr(suffix, '/')) in dst_s_filename_length()
244 if (strrchr(suffix, ':')) in dst_s_filename_length()
246 return (1 + strlen(name) + 6 + strlen(suffix)); in dst_s_filename_length()
264 int alg, const char *suffix, size_t filename_length) in dst_s_build_filename() argument
272 if (suffix == NULL) in dst_s_build_filename()
274 if (filename_length < 1 + strlen(name) + 4 + 6 + 1 + strlen(suffix)) in dst_s_build_filename()
278 (const char *) suffix); in dst_s_build_filename()
/illumos-gate/usr/src/cmd/make/bin/
H A Dimplicit.cc185 suffix.suffix->string_mb, in find_suffix_rule()
187 suffix.suffix->hash.length); in find_suffix_rule()
189 suffix.suffix->hash.length] = in find_suffix_rule()
293 suffix.suffix->with_squiggle, in find_suffix_rule()
409 source_suffix->body.suffix.suffix->string_mb, in find_suffix_rule()
530 for (suffix = suffixes; suffix != NULL; suffix = suffix->next) { in find_ar_suffix_rule()
631 for (suffix = suffixes; suffix != NULL; suffix = suffix->next) { in find_double_suffix_rule()
656 suffix->name, in find_double_suffix_rule()
762 suffix->body.suffix.suffix = source_suffix->name; in build_suffix_list()
763 suffix->body.suffix.command_template = in build_suffix_list()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dprintf.c138 char *suffix; in _print() local
311 suffix = prefix; in _print()
474 suffix = &expbuf[MAXESIZ]; in _print()
475 *suffix = '\0'; in _print()
482 *--suffix = todigit(n % 10); in _print()
488 while (suffix > &expbuf[MAXESIZ - 2]) { in _print()
489 *--suffix = '0'; in _print()
493 *--suffix = (decpt > 0 || dval == 0) ? in _print()
713 - strlen(suffix) in _print()
752 while (*suffix != '\0') { in _print()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplmatch.c186 cpl->result.suffix = NULL; in new_WordCompletion()
307 if(!suffix) in cpl_add_completion()
333 len = strlen(suffix); in cpl_add_completion()
350 match->suffix = string + word_end - word_start; in cpl_add_completion()
415 return strcmp(m1->suffix, m2->suffix); in cpl_cmp_suffixes()
453 first = result->matches[0].suffix; in cpl_common_suffix()
466 length = first - result->matches[0].suffix; in cpl_common_suffix()
471 if(!result->suffix) { in cpl_common_suffix()
480 strncpy(result->suffix, result->matches[0].suffix, length); in cpl_common_suffix()
481 result->suffix[length] = '\0'; in cpl_common_suffix()
[all …]
H A Dioutil.c102 const char *prefix, const char *suffix, int fill_char, in _io_display_text() argument
141 suffix_len = suffix ? strlen(suffix) : 0; in _io_display_text()
227 if(write_fn(data, suffix, suffix_len) != suffix_len) in _io_display_text()
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c56 char *suffix; member
95 free(info->suffix); in free_page_info()
109 char *suffix; in new_page_info() local
115 suffix = &dirent->d_name[basename_length]; in new_page_info()
119 if (--suffix == dirent->d_name || !isalnum(*suffix)) { in new_page_info()
120 if (*suffix == '.') in new_page_info()
127 *suffix++ = '\0'; in new_page_info()
129 info->suffix = strdup(suffix); in new_page_info()
489 add_whatis_name(char *name, char *suffix) in add_whatis_name() argument
495 sbuf_append_str(whatis_final, suffix); in add_whatis_name()
[all …]
H A Dupdate-man-index41 for suffix in man share/man; do
42 [ -d "$dir/$suffix" ] && manpath["$dir/$suffix"]=1
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dfuncs.c250 char *suffix; in check_auth() local
258 if ((suffix = index(authname, KV_OBJECTCHAR)) != NULL) in check_auth()
259 *suffix = '\0'; in check_auth()
262 if ((suffix = rindex(authname, '.')) == NULL) in check_auth()
266 suffix++; in check_auth()
267 if (strcmp(suffix, KV_WILDCARD)) { /* Not a wildcard */ in check_auth()
278 if (strcmp(suffix, "grant")) { /* Not a grant option */ in check_auth()
282 while ((suffix = rindex(authtoks, '.')) && in check_auth()
284 strcpy(suffix, ".grant"); in check_auth()
288 *suffix = '\0'; in check_auth()
/illumos-gate/usr/src/contrib/bhyve/lib/libutil/
H A Dhumanize_number.c50 const char *suffix, int scale, int flags) in humanize_number() argument
63 if (buf == NULL || suffix == NULL) in humanize_number()
128 baselen += strlen(suffix); in humanize_number()
172 sep, SCALE2PREFIX(i), suffix); in humanize_number()
176 sep, SCALE2PREFIX(i), suffix); in humanize_number()
/illumos-gate/usr/src/contrib/ast/src/lib/libdll/
H A Ddllscan.c163 info.suffix = astconf("LIBSUFFIX", NiL, NiL); in dllinfo()
164 if (streq(info.suffix, ".dll")) in dllinfo()
256 if (!version && streq(info->suffix, ".dylib")) in dllsopen()
277 k = strlen(info->suffix); in dllsopen()
278 if (i > k && streq(name + i - k, info->suffix)) in dllsopen()
305 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s", info->prefix, name, info->suffix); in dllsopen()
313 sfprintf(scan->tmp, "%s", info->suffix); in dllsopen()
319 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s.%s", info->prefix, name, info->suffix, version); in dllsopen()
338 …nfo->prefix, name, strchr(version, '.') ? "@" : "?", version, info->suffix, info->suffix, version); in dllsopen()
342 …pat), "%s%s@(?([-.])%s%s|%s%s)", info->prefix, name, version, info->suffix, info->suffix, version); in dllsopen()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Doid_ops.c443 int suffix, in generic_gss_oid_compose() argument
462 osuffix = suffix; in generic_gss_oid_compose()
463 while (suffix) { in generic_gss_oid_compose()
465 suffix >>= 7; in generic_gss_oid_compose()
467 suffix = osuffix; in generic_gss_oid_compose()
476 while (suffix) { in generic_gss_oid_compose()
477 op[i] = (unsigned char)suffix & 0x7f; in generic_gss_oid_compose()
481 suffix >>= 7; in generic_gss_oid_compose()
496 int *suffix) in generic_gss_oid_decompose() argument
508 *suffix = 0; in generic_gss_oid_decompose()
[all …]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dvpinit.c50 char *suffix; /* path from view path node */ in vpinit() local
84 suffix = &currentdir[i]; in vpinit()
116 s = mymalloc((strlen(vpdirs[i]) + strlen(suffix) + 1)); in vpinit()
118 (void) strcat(s, suffix); in vpinit()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetfilter.c225 ldap_set_filter_additions( LDAPFiltDesc *lfdp, char *prefix, char *suffix ) in ldap_set_filter_additions() argument
239 lfdp->lfd_filtsuffix = ( suffix == NULL ) ? NULL : nsldapi_strdup( suffix ); in ldap_set_filter_additions()
250 ldap_setfilteraffixes( LDAPFiltDesc *lfdp, char *prefix, char *suffix ) in ldap_setfilteraffixes() argument
252 (void)ldap_set_filter_additions( lfdp, prefix, suffix ); in ldap_setfilteraffixes()
401 char *prefix, char *suffix, char *attr, char *value, char **valwords ) in ldap_create_filter() argument
488 if ( suffix != NULL && f != NULL) { in ldap_create_filter()
489 f = filter_add_strn( f, flimit, suffix, strlen( suffix )); in ldap_create_filter()
507 char *prefix, char *suffix, char *attr, char *value, char **valwords ) in ldap_build_filter() argument
509 (void)ldap_create_filter( filtbuf, buflen, pattern, prefix, suffix, attr, in ldap_build_filter()
/illumos-gate/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c333 if (suffix != NULL) { in pg_match()
351 match = (strcmp(buf, suffix) == 0); in pg_match()
396 char *suffix; in get_stop_pg() local
405 if ((suffix = script_suffix(script)) == NULL) { in get_stop_pg()
418 if ((pg = pg_match(h, svc, 0, suffix)) == NULL) { in get_stop_pg()
421 free(suffix); in get_stop_pg()
427 free(suffix); in get_stop_pg()
707 char *suffix; in set_legacy_service() local
757 if ((suffix = script_suffix(script)) != NULL) { in set_legacy_service()
759 SCF_TYPE_ASTRING, (void *)suffix) != 0) in set_legacy_service()
[all …]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c155 } suffix[] = { in inj_strtime() local
177 for (i = 0; suffix[i].name != NULL; i++) { in inj_strtime()
178 if (strcasecmp(suffix[i].name, units) == 0) { in inj_strtime()
179 mul = suffix[i].mul; in inj_strtime()
184 if (suffix[i].name == NULL && *units != '\0') in inj_strtime()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dprintlist.c59 printlist_setup(char *prefix, char *suffix, char *sep, char *newline) in printlist_setup() argument
63 if (suffix) in printlist_setup()
64 print_suffix = suffix; in printlist_setup()
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Ddynamic_machelf.c79 conv_arg.prefix = conv_arg.suffix = MSG_ORIG(MSG_STR_EMPTY); in conv_dyn_flag()
81 conv_arg.prefix = conv_arg.suffix = NULL; in conv_dyn_flag()
122 conv_arg.prefix = conv_arg.suffix = MSG_ORIG(MSG_STR_EMPTY); in conv_dyn_feature1()
124 conv_arg.prefix = conv_arg.suffix = NULL; in conv_dyn_feature1()
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/BSM/
H A D_BSMparse.pm59 my $suffix = '';
60 $suffix = shift if (@_); # test, again
65 ("$attrDir/audit_record_attr$suffix",
66 "$configDir/audit_class$suffix",
67 "$configDir/audit_control$suffix",
68 "$configDir/audit_event$suffix",
69 "$configDir/audit_user$suffix");
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck.c162 char *suffix = NULL; in openFS() local
168 actualDisk = stat_actual_disk(special, &dinfo, &suffix); in openFS()
183 if (suffix) { in openFS()
185 findPartitionOffset(*inFD, suffix)) < 0) { in openFS()
189 suffix); in openFS()
/illumos-gate/usr/src/contrib/ast/lib/package/
H A Dpackage.mk16 * $(PACKAGEDIR)/name.version.release.suffix
18 * $(PACKAGEDIR)/name.version.hosttype.release.suffix
20 * $(PACKAGEDIR)/name-run.version.hosttype.release.suffix
104 suffix = tgz
1097 suffix = exe
1099 suffix = gz
1116 binary := $(B:/$(CC.HOSTTYPE).$(suffix)$/$(release).&/)
1176 cat > $(binary:/.$(suffix)//).setup.hint <<'!'
1376 suffix = exe
1378 suffix = gz
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dpackage.mk16 * $(PACKAGEDIR)/name.version.release.suffix
18 * $(PACKAGEDIR)/name.version.hosttype.release.suffix
20 * $(PACKAGEDIR)/name-run.version.hosttype.release.suffix
104 suffix = tgz
1097 suffix = exe
1099 suffix = gz
1116 binary := $(B:/$(CC.HOSTTYPE).$(suffix)$/$(release).&/)
1176 cat > $(binary:/.$(suffix)//).setup.hint <<'!'
1376 suffix = exe
1378 suffix = gz
[all …]

12345678