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/
H A Dprintaddr.c16 char *suffix; local
21 suffix = "/bcast";
27 suffix = NULL;
31 suffix = "/net";
35 suffix = "/netmasked";
39 suffix = "/peer";
43 suffix = NULL;
49 suffix = NULL;
54 suffix = NULL;
58 if (suffix != NULL) {
[all …]
/illumos-gate/usr/src/cmd/basename/
H A Dbasename.c42 char *suffix; in main() local
83 suffix = (argc == 2) ? NULL : argv[2]; in main()
104 if (suffix == NULL) { in main()
115 if (strcmp(string, suffix) != 0) { in main()
116 p = string + strlen(string) - strlen(suffix); in main()
117 if (strcmp(p, suffix) == 0) in main()
126 suf_len = 6 + strlen(suffix) + 1 + 1; /* \(.*\)suffix$ */ in main()
137 (void) strcpy(suf_pat + 6, suffix); in main()
/illumos-gate/usr/src/cmd/ramdiskadm/
H A Dmain.c216 char *suffix; in main() local
238 size = strtoll(argv[optind], &suffix, 0); in main()
239 if (strcmp(suffix, "b") == 0) { in main()
241 ++suffix; in main()
242 } else if (strcmp(suffix, "k") == 0) { in main()
244 ++suffix; in main()
245 } else if (strcmp(suffix, "m") == 0) { in main()
247 ++suffix; in main()
248 } else if (strcmp(suffix, "g") == 0) { in main()
250 ++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/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/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()
425 source_suffix->body.suffix.command_template; in find_suffix_rule()
501 Dependency suffix; in find_ar_suffix_rule() local
530 for (suffix = suffixes; suffix != NULL; suffix = suffix->next) { in find_ar_suffix_rule()
532 suffix_length = suffix->name->hash.length; in find_ar_suffix_rule()
533 suf_string.init(suffix->name); in find_ar_suffix_rule()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dprintf.c136 char *suffix; in _print() local
309 suffix = prefix; in _print()
472 suffix = &expbuf[MAXESIZ]; in _print()
473 *suffix = '\0'; in _print()
480 *--suffix = todigit(n % 10); in _print()
486 while (suffix > &expbuf[MAXESIZ - 2]) { in _print()
487 *--suffix = '0'; in _print()
491 *--suffix = (decpt > 0 || dval == 0) ? in _print()
495 *--suffix = isupper(fcode) ? 'E' : 'e'; in _print()
711 - strlen(suffix) in _print()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplmatch.c184 cpl->result.suffix = NULL; in new_WordCompletion()
294 int word_start, int word_end, const char *suffix, in cpl_add_completion() argument
305 if(!suffix) in cpl_add_completion()
331 len = strlen(suffix); in cpl_add_completion()
342 strlcpy(string + word_end - word_start, suffix, len + 1); in cpl_add_completion()
348 match->suffix = string + word_end - word_start; in cpl_add_completion()
413 return strcmp(m1->suffix, m2->suffix); in cpl_cmp_suffixes()
451 first = result->matches[0].suffix; in cpl_common_suffix()
452 last = result->matches[result->nmatch - 1].suffix; in cpl_common_suffix()
464 length = first - result->matches[0].suffix; in cpl_common_suffix()
[all …]
H A Dioutil.c100 const char *prefix, const char *suffix, int fill_char, in _io_display_text() argument
139 suffix_len = suffix ? strlen(suffix) : 0; in _io_display_text()
225 if(write_fn(data, suffix, suffix_len) != suffix_len) in _io_display_text()
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c57 char *suffix; member
96 free(info->suffix); in free_page_info()
110 char *suffix; in new_page_info() local
116 suffix = &dirent->d_name[basename_length]; in new_page_info()
120 if (--suffix == dirent->d_name || !isalnum(*suffix)) { in new_page_info()
121 if (*suffix == '.') in new_page_info()
128 *suffix++ = '\0'; in new_page_info()
130 info->suffix = strdup(suffix); in new_page_info()
269 no_page_exists(char *dir, stringlist *names, char *suffix) in no_page_exists() argument
279 dir, names->sl_str[i], suffix, suffixes[j]); in no_page_exists()
[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/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()
335 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix); in dllsopen()
338 …nfo->prefix, name, strchr(version, '.') ? "@" : "?", version, info->suffix, info->suffix, version); in dllsopen()
[all …]
/illumos-gate/usr/src/contrib/bhyve/lib/libutil/
H A Dhumanize_number.c49 const char *suffix, int scale, int flags) in humanize_number() argument
62 if (buf == NULL || suffix == NULL) in humanize_number()
127 baselen += strlen(suffix); in humanize_number()
171 sep, SCALE2PREFIX(i), suffix); in humanize_number()
175 sep, SCALE2PREFIX(i), suffix); in humanize_number()
/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/lib/libldap5/sources/ldap/common/
H A Dgetfilter.c222 ldap_set_filter_additions( LDAPFiltDesc *lfdp, char *prefix, char *suffix ) in ldap_set_filter_additions() argument
236 lfdp->lfd_filtsuffix = ( suffix == NULL ) ? NULL : nsldapi_strdup( suffix ); in ldap_set_filter_additions()
247 ldap_setfilteraffixes( LDAPFiltDesc *lfdp, char *prefix, char *suffix ) in ldap_setfilteraffixes() argument
249 (void)ldap_set_filter_additions( lfdp, prefix, suffix ); in ldap_setfilteraffixes()
398 char *prefix, char *suffix, char *attr, char *value, char **valwords ) in ldap_create_filter() argument
485 if ( suffix != NULL && f != NULL) { in ldap_create_filter()
486 f = filter_add_strn( f, flimit, suffix, strlen( suffix )); in ldap_create_filter()
504 char *prefix, char *suffix, char *attr, char *value, char **valwords ) in ldap_build_filter() argument
506 (void)ldap_create_filter( filtbuf, buflen, pattern, prefix, suffix, attr, in ldap_build_filter()
/illumos-gate/usr/src/tools/cscope-fast/
H A Dvpinit.c48 char *suffix; /* path from view path node */ in vpinit() local
82 suffix = &currentdir[i]; in vpinit()
114 s = mymalloc((strlen(vpdirs[i]) + strlen(suffix) + 1)); in vpinit()
116 (void) strcat(s, suffix); in vpinit()
/illumos-gate/usr/src/test/libc-tests/tests/
H A Daligned_alloc.ksh49 typeset suffix="$2"
55 printf "Running %u-bit tests with library %s\n" $suffix "$preload"
57 if ! $alloc_dir/$alloc_file.$suffix; then
/illumos-gate/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c296 pg_match(scf_handle_t *h, scf_service_t *svc, ino_t ino, const char *suffix) in pg_match() argument
333 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()
412 if ((pg = pg_match(h, svc, st.st_ino, suffix)) != 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
[all …]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c153 } suffix[] = { in inj_strtime() local
175 for (i = 0; suffix[i].name != NULL; i++) { in inj_strtime()
176 if (strcasecmp(suffix[i].name, units) == 0) { in inj_strtime()
177 mul = suffix[i].mul; in inj_strtime()
182 if (suffix[i].name == NULL && *units != '\0') in inj_strtime()
/illumos-gate/usr/src/lib/varpd/libvarpd/common/
H A Dlibvarpd_util.c38 libvarpd_dirwalk(varpd_impl_t *vip, const char *path, const char *suffix, in libvarpd_dirwalk() argument
56 slen = strlen(suffix); in libvarpd_dirwalk()
71 if (strcmp(suffix, dp->d_name + (len - slen)) != 0) in libvarpd_dirwalk()
/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/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/lp/lib/lp/
H A Dprintlist.c57 printlist_setup(char *prefix, char *suffix, char *sep, char *newline) in printlist_setup() argument
61 if (suffix) in printlist_setup()
62 print_suffix = suffix; in printlist_setup()
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck.c186 char *suffix = NULL; in openFS() local
193 actualDisk = stat_actual_disk(special, &dinfo, &suffix); in openFS()
221 if (suffix) { in openFS()
223 findPartitionOffset(*inFD, suffix)) < 0) { in openFS()
227 suffix); in openFS()

12345678