Home
last modified time | relevance | path

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

123456789

/titanic_51/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 !
[all...]
/titanic_51/usr/src/cmd/basename/
H A Dbasename.c44 char *suffix; in main() local
79 (void) fputs(gettext("Usage: basename string [ suffix ]\n"), in main()
85 suffix = (argc == 2) ? NULL : argv[2]; in main()
106 if (suffix == NULL) { in main()
113 * if a suffix is present and is not the same as the remaining 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()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dbasename.c26 * namebase pathname [suffix]
34 "[+NAME?basename - strip directory and suffix from filenames]"
37 "\astring\a has a suffix that ends in \asuffix\a, it is removed as "
51 "[s:suffix?All operands are treated as \astring\a and each modified "
53 "separate line on the standard output.]:[suffix]"
55 "\n string [suffix]\n"
69 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) in namebase() argument
89 /* check for trailing suffix */ in namebase()
90 if(suffix && (n=strlen(suffix)) in namebase()
105 char* suffix = 0; b_basename() local
[all...]
/titanic_51/usr/src/lib/libresolv2/common/dst/
H A Dsupport.c226 * form: K<keyname>+<alg>+<id>.<suffix>
231 dst_s_filename_length(const char *name, const char *suffix) in dst_s_filename_length() argument
241 if (suffix == NULL) in dst_s_filename_length()
243 if (strrchr(suffix, '\\')) in dst_s_filename_length()
245 if (strrchr(suffix, '/')) in dst_s_filename_length()
247 if (strrchr(suffix, ':')) in dst_s_filename_length()
249 return (1 + strlen(name) + 6 + strlen(suffix)); in dst_s_filename_length()
255 * suffix. '\', '/' and ':' are not allowed. fA filename is of the
256 * form: K<keyname><id>.<suffix>
257 * form: K<keyname>+<alg>+<id>.<suffix
267 dst_s_build_filename(char * filename,const char * name,u_int16_t id,int alg,const char * suffix,size_t filename_length) dst_s_build_filename() argument
[all...]
/titanic_51/usr/src/cmd/ramdiskadm/
H A Dmain.c148 * use the minor name, having first stripped any ",raw" suffix. in di_callback()
218 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, " in main()
[all...]
/titanic_51/usr/src/cmd/make/bin/
H A Dimplicit.cc29 * Handle suffix and percent rules
71 * Does the lookup for single and double suffix rules.
76 * (target name less target suffix) and the source suffix and checking
84 * target_body The target name without the suffix
85 * target_suffix The suffix of the target
99 * When make attemps to apply % rule it didn't look for a single suffix rule because
160 /* Cache the suffixes for this target suffix if not done. */ in find_suffix_rule()
172 /* Scan the suffix list for the target if one exists. */ in find_suffix_rule()
183 suffix in find_suffix_rule()
498 register Dependency suffix; find_ar_suffix_rule() local
595 register Dependency suffix; find_double_suffix_rule() local
702 register Property suffix; build_suffix_list() local
1214 Name suffix = pat_rule->patterns[pat_rule->patterns_total - 1]; match_found_with_pattern() local
[all...]
/titanic_51/usr/src/cmd/csh/
H A Dprintf.c138 char *suffix; in _print() local
279 * zeroes, a suffix, and more padding in _print()
290 * The suffix is either null or an exponent, in _print()
291 * and is addressed by "suffix". in _print()
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 in _print()
[all...]
/titanic_51/usr/src/lib/libtecla/common/
H A Dcplmatch.c186 cpl->result.suffix = NULL; in new_WordCompletion()
274 * suffix const char * The appropriately quoted string that could
296 int word_start, int word_end, const char *suffix, in cpl_add_completion() argument
307 if(!suffix) in cpl_add_completion()
331 * new suffix. in cpl_add_completion()
333 len = strlen(suffix); in cpl_add_completion()
344 strlcpy(string + word_end - word_start, suffix, len + 1); in cpl_add_completion()
350 match->suffix = string + word_end - word_start; in cpl_add_completion()
353 * Record the continuation suffix. in cpl_add_completion()
415 return strcmp(m1->suffix, m in cpl_cmp_suffixes()
[all...]
H A Dioutil.c73 * suffix const char * An optional suffix string to draw at the end
75 * where necessary to ensure that the suffix ends
77 * no suffix is desired, specify NULL.
79 * and filling up to the suffix.
102 const char *prefix, const char *suffix, int fill_char, in _io_display_text() argument
139 * Get the length of the suffix string. in _io_display_text()
141 suffix_len = suffix ? strlen(suffix) : 0; in _io_display_text()
219 * If a suffix ha in _io_display_text()
[all...]
/titanic_51/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()
268 no_page_exists(char * dir,stringlist * names,char * suffix) no_page_exists() argument
489 add_whatis_name(char * name,char * suffix) add_whatis_name() argument
[all...]
/titanic_51/usr/src/cmd/oamuser/user/
H A Dfuncs.c252 char *suffix; in check_auth() local
260 if ((suffix = index(authname, KV_OBJECTCHAR)) != NULL) in check_auth()
261 *suffix = '\0'; in check_auth()
263 /* Find the suffix */ in check_auth()
264 if ((suffix = rindex(authname, '.')) == NULL) in check_auth()
268 suffix++; in check_auth()
269 if (strcmp(suffix, KV_WILDCARD)) { /* Not a wildcard */ in check_auth()
280 if (strcmp(suffix, "grant")) { /* Not a grant option */ in check_auth()
284 while ((suffix = rindex(authtoks, '.')) && in check_auth()
286 strcpy(suffix, " in check_auth()
[all...]
/titanic_51/usr/src/lib/libcmd/common/
H A Dbasename.c62 static void namebase(Sfio_t *outfile, register char *pathname, char *suffix) in namebase() argument
83 if(suffix && (n=strlen(suffix)) && n<(last-first)) in namebase()
85 if(memcmp(last-n,suffix,n)==0) in namebase()
/titanic_51/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 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(%s([-.])%s%s|%s.%s)", info->prefix, name, strchr(version, '.') ? "@" : "?", version, info->suffix, inf in dllsopen()
[all...]
/titanic_51/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()
/titanic_51/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Doid_ops.c437 /* Compose an OID of a prefix and an integer suffix */
443 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
[all...]
/titanic_51/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, cha in ldap_build_filter() argument
[all...]
/titanic_51/usr/src/lib/libdll/common/
H A Ddllscan.c163 info.suffix = astconf("LIBSUFFIX", NiL, NiL); in dllinfo()
164 if (streq(info.suffix, ".dll")) in dllinfo()
254 if (!version && streq(info->suffix, ".dylib")) in dllsopen()
285 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s", info->prefix, name, info->suffix); in dllsopen()
293 sfprintf(scan->tmp, "%s", info->suffix); in dllsopen()
299 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s.%s", info->prefix, name, info->suffix, version); in dllsopen()
315 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix); in dllsopen()
318 …nfo->prefix, name, strchr(version, '.') ? "@" : "?", version, info->suffix, info->suffix, version); in dllsopen()
322 …pat), "%s%s@(?([-.])%s%s|%s%s)", info->prefix, name, version, info->suffix, info->suffix, version); in dllsopen()
327 scan->suflen = strlen(info->suffix); in dllsopen()
/titanic_51/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c35 * inode, the inode of the script; and suffix, the suffix of the
43 * suffix. The inode check means more than one script with the
44 * same suffix will still work as intended in the common case.
296 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()
387 * stops. First we look for a matching inode plus a matching suffix.
389 * Finally, we try for just the script suffix.
396 char *suffix; in get_stop_pg() local
707 char *suffix; set_legacy_service() local
[all...]
/titanic_51/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()
/titanic_51/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()
/titanic_51/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()
/titanic_51/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");
/titanic_51/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()
/titanic_51/usr/src/lib/libbc/libc/stdio/common/
H A Ddoprnt.c146 char *suffix; in _doprnt() local
154 /* Length of exponent suffix. */ in _doprnt()
503 * zeroes, a suffix, and more padding in _doprnt()
514 * The suffix is either null or an exponent, in _doprnt()
515 * and is addressed by "suffix". in _doprnt()
535 suffix = prefix; in _doprnt()
751 { suffix = &(expbuf[4]) ; suffixlength = 4 ; } in _doprnt()
753 { suffix = &(expbuf[3]) ; suffixlength = 5 ; } in _doprnt()
755 { suffix = &(expbuf[2]) ; suffixlength = 6 ; } in _doprnt()
757 *--suffix in _doprnt()
[all...]
/titanic_51/usr/src/lib/libast/common/comp/
H A Domitted.c89 suffix(register const char* path) in suffix() function
109 if (suffix(path)) in execrate()
114 else if (!suffix(buf) && ((buf + size) - s) >= 4) in execrate()
235 !suffix(path) && in chmod()
687 …if (!suffix(path) && !fstat(fd, &st) && (exe[fd] || (exe[fd] = (Exe_test_t*)malloc(sizeof(Exe_test… in open()
785 int suffix; in unlink() local
853 suffix = (getpid() & 0xfff) + count++; in unlink()
854 snprintf(tmp, sizeof(tmp), deleted, drive, base, suffix); in unlink()
895 stop = suffix; in unlink()
898 snprintf(tmp, sizeof(tmp), deleted, drive, base, suffix); in unlink()
[all …]

123456789