Home
last modified time | relevance | path

Searched refs:string_mb (Results 1 – 18 of 18) sorted by relevance

/titanic_41/usr/src/cmd/make/bin/
H A Dstate.cc68 int len = strlen(np->string_mb); in escape_target_name()
74 int n = mbtowc(&wc, np->string_mb + pos, MB_CUR_MAX); in escape_target_name()
77 return strdup(np->string_mb); in escape_target_name()
84 buff[pp] = np->string_mb[pos+j]; pp++; in escape_target_name()
92 return strdup(np->string_mb); in escape_target_name()
148 make_state_lockfile = getmem(strlen(make_state->string_mb) + strlen(".lock") + 1); in write_state_file()
151 make_state->string_mb); in write_state_file()
152 if (lock_err = file_lock(make_state->string_mb, in write_state_file()
184 make_state->string_mb); in write_state_file()
226 XFWRITE(make_version->string_mb, in write_state_file()
[all …]
H A Dread2.cc676 target->string_mb); in enter_dependencies()
694 mb_namep = getmem((int) (strlen(target->string_mb) + 10)); in enter_dependencies()
696 slash = strrchr(target->string_mb, (int) slash_char); in enter_dependencies()
701 target->string_mb); in enter_dependencies()
706 target->string_mb, in enter_dependencies()
716 (void) printf("%s:\t", target->string_mb); in enter_dependencies()
816 target->string_mb); in enter_dependencies()
823 (void) printf("%s:\t", target->string_mb); in enter_dependencies()
875 (void) printf("%s ", depe->string_mb); in enter_dependency()
1037 (void) printf("%s:", result->name->string_mb); in enter_percent()
[all …]
H A Dimplicit.cc122 int src_len = MAXPATHLEN + strlen(target_body->string_mb); in find_suffix_rule()
144 true_target->string_mb, in find_suffix_rule()
145 target_body->string_mb, in find_suffix_rule()
146 target_suffix->string_mb); in find_suffix_rule()
169 target_body->string_mb, in find_suffix_rule()
183 suffix.suffix->string_mb, in find_suffix_rule()
222 if(source->string_mb[source->hash.length - 1] == '~' && in find_suffix_rule()
231 source->string_mb[source->hash.length - 1] = '\0'; in find_suffix_rule()
232 if(p = (char *) memchr((char *)source->string_mb,'/',source->hash.length)) in find_suffix_rule()
235 if(np = (char *) memchr((char *)p+1,'/',source->hash.length - (p - source->string_mb))) { in find_suffix_rule()
[all …]
H A Dmisc.cc324 (void) printf("%s:\n", posix_name->string_mb); in dump_make_state()
329 (void) printf("%s:\n", default_rule_name->string_mb); in dump_make_state()
331 (void) printf("\t%s\n", rule->command_line->string_mb); in dump_make_state()
337 (void) printf("%s:\n", ignore_name->string_mb); in dump_make_state()
342 (void) printf("%s:\n\n", dot_keep_state->string_mb); in dump_make_state()
346 (void) printf("%s:", precious->string_mb); in dump_make_state()
349 (void) printf(" %s", p->string_mb); in dump_make_state()
356 (void) printf("%s:\n", sccs_get_name->string_mb); in dump_make_state()
358 (void) printf("\t%s\n", rule->command_line->string_mb); in dump_make_state()
364 (void) printf("%s:\n", silent_name->string_mb); in dump_make_state()
[all …]
H A Dmain.cc362 cp = getenv(makeflags->string_mb); in main()
382 (IS_EQUAL(dmake_value2->string_mb, "TXT1"))) { in main()
384 } else if (IS_EQUAL(dmake_value2->string_mb, "TXT2")) { in main()
386 } else if (IS_EQUAL(dmake_value2->string_mb, "HTML1")) { in main()
390 dmake_value2->string_mb); in main()
424 if (IS_EQUAL(dmake_value2->string_mb, "parallel")) { in main()
427 } else if (IS_EQUAL(dmake_value2->string_mb, "serial")) { in main()
431 fatal(gettext("Unknown dmake mode argument `%s' after -m flag"), dmake_value2->string_mb); in main()
483 if (getenv(sunpro_dependencies->string_mb) != NULL) { in main()
525 if ((slash_ptr = strrchr(make_state->string_mb, (int) slash_char)) == NULL) { in main()
[all …]
H A Dpmake.cc128 if ((make_machines_file = fopen(make_machines_name->string_mb, "r")) == NULL) { in read_make_machines()
132 make_machines_name->string_mb, in read_make_machines()
145 make_machines_name->string_mb, in read_make_machines()
150 (char *) getmem((int) (strlen(MAKE_MACHINES->string_mb) + in read_make_machines()
155 MAKE_MACHINES->string_mb); in read_make_machines()
157 if (fread(make_machines_list_mb + strlen(MAKE_MACHINES->string_mb) + 1, in read_make_machines()
166 make_machines_name->string_mb); in read_make_machines()
174 strlen(MAKE_MACHINES->string_mb) + in read_make_machines()
179 make_machines_name->string_mb); in read_make_machines()
181 make_machines_list_mb += strlen(MAKE_MACHINES->string_mb) + 1; in read_make_machines()
H A Dar.cc204 append_string(member->body.member.library->string_mb, in read_archive()
218 if (open_archive(member->body.member.library->string_mb, &ar) == failed) { in read_archive()
228 member->body.member.library->string_mb, in read_archive()
237 member->body.member.library->string_mb, in read_archive()
395 if (process_long_names_member(arp, long_names_table, library->string_mb) == failed) { in read_archive_dir()
400 (void) mbstowcs(name_string, library->string_mb, (int) library->hash.length); in read_archive_dir()
469 library->string_mb, in read_archive_dir()
517 library->string_mb); in read_archive_dir()
530 library->string_mb); in read_archive_dir()
543 library->string_mb, in read_archive_dir()
[all …]
H A Ddoname.cc142 target->string_mb); in doname_check()
168 target->string_mb); in doname_check()
172 fatal(gettext("Don't know how to make target `%s'"), target->string_mb); in doname_check()
440 target->string_mb); in doname()
446 target->string_mb); in doname()
686 true_target->string_mb); in doname()
880 true_target->string_mb); in doname()
1031 true_target->string_mb, in check_dependencies()
1032 dependency->name->string_mb); in check_dependencies()
1063 dependency->name->string_mb, in check_dependencies()
[all …]
H A Dfiles.cc109 target->string_mb); in exists()
112 result = lstat_vroot(target->string_mb, &buf, NULL, VROOT_DEFAULT); in exists()
119 result = stat_vroot(target->string_mb, &buf, NULL, VROOT_DEFAULT); in exists()
132 (target->string_mb[0] != (int) slash_char) ) { in exists()
335 dir_fd = opendir(dir->string_mb); in read_dir()
365 line->body.line.target->string_mb, in read_dir()
366 file->string_mb, in read_dir()
403 string_mb, in read_dir()
404 plain_file->string_mb, in read_dir()
480 dir_fd = opendir(dir->string_mb); in read_dir()
[all …]
H A Dnse_printdep.cc91 (void)printf(" %s", dp->name->string_mb); in print_dependencies()
127 (void) printf("%s:\t", target->string_mb); in print_more_deps()
241 (void) printf("%s", name->string_mb); in print_filename()
316 (void)printf("= %s\n", value->string_mb); in print_value()
321 cp->name->string_mb); in print_value()
339 (void)printf("\t%s\n", rule->command_line->string_mb); in print_rule()
H A Dparallel.cc139 pmake_max_jobs = atoi(dmake_value->string_mb); in execute_parallel()
207 string_mb)) + in execute_parallel()
216 (void) strcpy(cp, rule->command_line->string_mb); in execute_parallel()
218 *p++ = rule->command_line->string_mb; in execute_parallel()
931 subtree_conflict2->string_mb, in process_next()
932 rp->target->string_mb, in process_next()
933 subtree_conflict->string_mb); in process_next()
1262 rp->command ? line2->body.line.target->string_mb : rp->target->string_mb); in finish_children()
1274 rp->command ? line2->body.line.target->string_mb : rp->target->string_mb); in finish_children()
1374 (void) printf("Target = %s\n", target->string_mb); in finish_doname()
[all …]
H A Dread.cc118 wchar_t * wcb = get_wstring(makefile_name->string_mb); in read_simple_file()
167 string_start=get_wstring(makefile_name->string_mb); in read_simple_file()
170 if ((strcmp(makefile_name->string_mb, normalized_makefile_name->string_mb) == 0) || in read_simple_file()
172 n = access_vroot(makefile_name->string_mb, in read_simple_file()
208 make_state_lockfile = getmem(strlen(make_state->string_mb) + strlen(".lock") + 1); in read_simple_file()
211 make_state->string_mb); in read_simple_file()
212 (void) file_lock(make_state->string_mb, in read_simple_file()
232 makefile_name->string_mb); in read_simple_file()
249 makefile_name->string_mb, in read_simple_file()
254 makefile_name->string_mb, in read_simple_file()
[all …]
H A Dmacro.cc137 length = 2 + strlen(p->name->string_mb) + strlen(mbs); in setvar_envvar()
145 p->name->string_mb, in setvar_envvar()
H A Drep.cc184 wchar_t * wcb = get_wstring(target->string_mb); // XXX Tolik: needs retmem in report_recursive_dep()
/titanic_41/usr/src/cmd/make/lib/mksh/
H A Ddosys.cc161 if (IS_EQUAL(shell->string_mb, "")) { in doshell()
164 if ((shellname = strrchr(shell->string_mb, (int) slash_char)) == NULL) { in doshell()
165 shellname = shell->string_mb; in doshell()
207 (void) execve(shell->string_mb, argv, environ); in doshell()
209 shell->string_mb, in doshell()
248 if (IS_EQUAL(shell->string_mb, "")) { in exec_vp()
262 shellname = strrchr(shell->string_mb, (int) slash_char); in exec_vp()
264 shellname = shell->string_mb; in exec_vp()
273 if (IS_EQUAL(tmp_shell->string_mb, "")) { in exec_vp()
276 (void) execve_vroot(tmp_shell->string_mb, in exec_vp()
H A Dmacro.cc152 value->string_mb); in expand_value()
636 name->string_mb, file_being_read, line_number); in expand_macro()
814 if (!strncmp(name->string_mb, "GET", 3)) { in expand_macro()
818 if (!strncmp(name->string_mb, "<", 1) && in expand_macro()
850 char *name_to_add = macro_to_add->string_mb; in add_macro_to_global_list()
855 value_to_add = macro_to_add->prop->body.macro.value->string_mb; in add_macro_to_global_list()
1157 (void) printf("%s =", name->string_mb); in setvar_daemon()
1161 (void) printf(" %s", chain->name->string_mb); in setvar_daemon()
1167 name->string_mb, in setvar_daemon()
1168 value->string_mb); in setvar_daemon()
[all …]
H A Dmisc.cc212 np->string_mb = strdup(mbs_name); in getname_fn()
217 getname_bytes_count += strlen(np->string_mb) + 1; in getname_fn()
246 freename_bytes_count += strlen(name->string_mb) + 1; in free_name()
247 retmem_mb(name->string_mb); in free_name()
866 append_string(name->string_mb, &string, name->hash.length); in Wstring()
883 append_string(name->string_mb, &string, name->hash.length); in init()
952 int res = strcmp(key, node->name->string_mb); in lookup()
971 int res = strcmp(key, node->name->string_mb); in insert()
1010 int res = strcmp(name->string_mb, node->name->string_mb); in insert()
/titanic_41/usr/src/cmd/make/include/mksh/
H A Ddefs.h230 #define APPEND_NAME(np, dest, len) append_string((np)->string_mb, (dest), (len));
423 char *string_mb; /* Multi-byte name string */ member