/titanic_41/usr/src/tools/onbld/Checks/ |
H A D | HdrChk.py | 87 for line in self.file: 89 if not line or line.isspace(): 92 line = line.rstrip('\r\n') 95 if line.endswith('\\'): 96 line = line[0:-1] + self.getline() 98 return line 107 line = curline or self.getline() 108 while line: 110 if self.lenient and re.search(r'^\s*//', line): 111 line = self.getline() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_solarnet.c | 82 char *line; in interpret_solarnet_fw() local 99 line = get_sum_line(); in interpret_solarnet_fw() 102 (void) sprintf(line, in interpret_solarnet_fw() 105 line += strlen(line); in interpret_solarnet_fw() 109 (void) sprintf(line, " %s", in interpret_solarnet_fw() 111 line += strlen(line); in interpret_solarnet_fw() 112 (void) sprintf(line, "/%s", in interpret_solarnet_fw() 114 line += strlen(line); in interpret_solarnet_fw() 117 (void) sprintf(line, ".%s", buff); in interpret_solarnet_fw() 118 line += strlen(line); in interpret_solarnet_fw() [all …]
|
H A D | snoop_tcp.c | 85 char *line, *endline; in interpret_tcp() local 98 line = get_sum_line(); in interpret_tcp() 99 endline = line + MAXLINE; in interpret_tcp() 100 (void) snprintf(line, endline - line, "TCP D=%d S=%d", in interpret_tcp() 102 line += strlen(line); in interpret_tcp() 106 (void) snprintf(line, endline - line, " %s", in interpret_tcp() 108 line += strlen(line); in interpret_tcp() 113 (void) snprintf(line, endline - line, " Urg=%u", in interpret_tcp() 115 line += strlen(line); in interpret_tcp() 118 (void) snprintf(line, endline - line, " Ack=%u", in interpret_tcp() [all …]
|
H A D | snoop_nis.c | 131 char *line; local 143 line = get_sum_line(); 146 (void) sprintf(line, 149 line += strlen(line); 154 (void) sprintf(line, " %s", 158 (void) sprintf(line, " %s", 164 check_retransmit(line, xid); 166 (void) sprintf(line, "NISBIND R %s ", 168 line += strlen(line); 175 (void) strcat(line, "OK"); [all …]
|
H A D | snoop_nlm.c | 153 char *line; local 163 line = get_sum_line(); 166 (void) sprintf(line, 169 line += strlen(line); 176 (void) strcat(line, sum_netobj("OH")); 178 (void) strcat(line, sum_lock()); 183 (void) strcat(line, sum_netobj("OH")); 186 (void) strcat(line, sum_lock()); 191 (void) strcat(line, sum_netobj("OH")); 194 (void) strcat(line, sum_lock()); [all …]
|
H A D | snoop_nfs_acl.c | 197 char *line; in interpret_nfs_acl2() local 207 line = get_sum_line(); in interpret_nfs_acl2() 210 (void) sprintf(line, "NFS_ACL C %s", in interpret_nfs_acl2() 212 line += strlen(line); in interpret_nfs_acl2() 217 (void) sprintf(line, "%s mask=0x%lx", fh, mask); in interpret_nfs_acl2() 220 (void) sprintf(line, sum_nfsfh()); in interpret_nfs_acl2() 223 (void) sprintf(line, sum_nfsfh()); in interpret_nfs_acl2() 227 (void) sprintf(line, "%s (%s)", fh, in interpret_nfs_acl2() 232 (void) sprintf(line, "%s create=%s", fh, in interpret_nfs_acl2() 239 check_retransmit(line, (ulong_t)xid); in interpret_nfs_acl2() [all …]
|
H A D | snoop_dns.c | 55 static size_t print_question(char *line, const uchar_t *header, 57 static size_t print_answer(char *line, const uchar_t *header, 60 static void print_ip(int af, char *line, const uchar_t *data, uint16_t len); 63 static size_t print_char_string(char *line, const uchar_t *data, uint16_t len); 66 static size_t print_domain_name(char *line, const uchar_t *header, 74 char *line; in interpret_dns() local 115 line = get_sum_line(); in interpret_dns() 116 line += sprintf(line, "%s %c ", in interpret_dns() 133 (void) print_answer(line, in interpret_dns() 137 (void) sprintf(line, " Error: %d(%s)", in interpret_dns() [all …]
|
H A D | snoop_nfs.c | 133 char *line; local 142 line = get_sum_line(); 145 (void) sprintf(line, 148 line += strlen(line); 154 (void) sprintf(line, sum_nfsfh()); 162 (void) sprintf(line, "%s %s", 172 (void) sprintf(line, "%s at %d for %d", 177 (void) sprintf(line, "%s %s", 180 line += strlen(line); 182 (void) sprintf(line, " to%s %s", [all …]
|
H A D | snoop_nfs3.c | 163 char *line; local 173 line = get_sum_line(); 176 (void) sprintf(line, "NFS C %s", 178 line += strlen(line); 185 (void) sprintf(line, sum_nfsfh3()); 188 (void) sprintf(line, sum_nfsfh3()); 195 (void) sprintf(line, "%s Cookie=%llu for %lu", 203 (void) sprintf(line, 209 (void) sprintf(line, "%s (%s)", 217 (void) sprintf(line, "%s %s", [all …]
|
/titanic_41/usr/src/cmd/make/bin/ |
H A D | nse_printdep.cc | 35 void print_dependencies(register Name target, register Property line); 36 static void print_deps(register Name target, register Property line); 39 static Boolean should_print_dep(Property line); 45 static Boolean is_out_of_date(Property line); 65 print_dependencies(register Name target, register Property line) in print_dependencies() argument 97 print_deps(target, line); in print_dependencies() 122 Property line; in print_more_deps() local 125 line = get_prop(name->prop, line_prop); in print_more_deps() 126 if (line != NULL && line->body.line.dependencies != NULL) { in print_more_deps() 128 print_deplist(line->body.line.dependencies); in print_more_deps() [all …]
|
H A D | doname.cc | 80 static Boolean check_dependencies(Doname *result, Property line, Boolean do_get, Name target, Name… 82 static Doname run_command(register Property line, Boolean print_machine); 83 extern Doname execute_serial(Property line); 88 static void do_assign(register Name line, register Name target); 89 static void build_command_strings(Name target, register Property line); 90 static Doname touch_command(register Property line, register Name target, Doname result); 91 extern void update_target(Property line, Doname result); 184 Property line, source_line; in enter_explicit_rule_from_dynamic_rule() local 188 line = maybe_append_prop(target, line_prop); in enter_explicit_rule_from_dynamic_rule() 189 line->body.line.sccs_command = false; in enter_explicit_rule_from_dynamic_rule() [all …]
|
H A D | implicit.cc | 64 static Boolean dependency_exists(Name target, Property line); 118 register Property line; in find_suffix_rule() local 330 line = maybe_append_prop(target, line_prop); in find_suffix_rule() 331 enter_dependency(line, source, false); in find_suffix_rule() 332 line->body.line.target = true_target; in find_suffix_rule() 365 line = maybe_append_prop(target, line_prop); in find_suffix_rule() 367 *command = line; in find_suffix_rule() 369 if ((source->stat.time > (*command)->body.line.dependency_time) && in find_suffix_rule() 379 body.line. in find_suffix_rule() 386 (*command)->body.line.dependency_time = in find_suffix_rule() [all …]
|
/titanic_41/usr/src/cmd/refer/ |
H A D | addbib.c | 111 char line[BUFSIZ]; in addbib() local 115 fgets(line, BUFSIZ, stdin); in addbib() 116 if (line[0] == 'y' || line[0] == 'Y') in addbib() 123 if (fgets(line, BUFSIZ, stdin) == NULL) { in addbib() 127 if (line[0] == '-' && line[1] == '\n') { in addbib() 134 } else if (line[strlen(line)-2] == '\\') { in addbib() 135 if (line[0] != '\\') { in addbib() 136 line[strlen(line)-2] = '\n'; in addbib() 137 line[strlen(line)-1] = NULL; in addbib() 138 trim(line); in addbib() [all …]
|
/titanic_41/usr/src/cmd/ldap/common/ |
H A D | ldaptest.c | 38 getaline( char *line, int len, FILE *fp, char *prompt ) in getaline() argument 42 if ( fgets( line, len, fp ) == NULL ) in getaline() 45 line[ strlen( line ) - 1 ] = '\0'; in getaline() 47 return( line ); in getaline() 261 char line[256], command1, command2, command3; in main() local 391 (void) memset( line, '\0', sizeof(line) ); in main() 392 while ( getaline( line, sizeof(line), stdin, "\ncommand? " ) != NULL ) { in main() 393 command1 = line[0]; in main() 394 command2 = line[1]; in main() 395 command3 = line[2]; in main() [all …]
|
/titanic_41/usr/src/cmd/col/ |
H A D | col.c | 54 wchar_t lbuff[LINELN], *line; variable 131 line = lbuff; in main() 136 if (*line) { in main() 139 *line = 'X'; in main() 141 *line = temp_off = '\0'; in main() 149 if (*line) in main() 151 *line = ESC; in main() 153 *line = 'Y'; in main() 155 *line = '\0'; in main() 202 *line = c; in main() [all …]
|
/titanic_41/usr/src/tools/pmodes/ |
H A D | pmodes.c | 282 warn(const char *file, int line) in warn() argument 285 file, line); in warn() 306 put_line(FILE *f, struct parsed_line *line) in put_line() argument 309 if (line->rest) in put_line() 310 (void) fprintf(f, "%s%.*o %s %s", line->start, in put_line() 311 line->modelen, line->mode, line->owner, line->rest); in put_line() 313 (void) fputs(line->start, f); in put_line() 486 struct parsed_line line; in update_map() local 527 for (; fgets(buf, sizeof (buf), map) != 0; put_line(newmap, &line)) { in update_map() 534 switch (parse_line(&line, buf, name, lineno)) { in update_map() [all …]
|
/titanic_41/usr/src/cmd/mail/ |
H A D | sendmail.c | 160 while ((n = getaline(line, sizeof (line), stdin)) > 0) { 161 last1c = line[n-1]; 163 if (!wtmpf(line, n)) { 171 if ((hdrtyp = isheader(line, &ctf)) == FALSE) { 189 if (substr(line, "forwarded by") > -1) { 192 pickFrom(line); 228 if (n && !wtmpf(line, n)) { 231 if (!n) savehdrs(line, hdrtyp); 247 memcpy(buf, line, n); 260 (void) snprintf(line, sizeof (line), "%s \n", [all …]
|
/titanic_41/usr/src/cmd/man/ |
H A D | makewhatis.c | 336 char *line = whatis_lines->sl_str[i]; in finish_output() local 337 if (i > 0 && strcmp(line, prev) == 0) in finish_output() 339 prev = line; in finish_output() 340 (void) fputs(line, output); in finish_output() 404 name_section_line(char *line, const char *section_start) in name_section_line() argument 408 if (strncmp(line, section_start, 3) != 0) in name_section_line() 410 line = skip_spaces(line + 3); in name_section_line() 411 rhs = trim_rhs(line); in name_section_line() 412 if (*line == '"') { in name_section_line() 413 line++; in name_section_line() [all …]
|
/titanic_41/usr/src/cmd/fs.d/autofs/ |
H A D | debug_alloc.c | 57 int line; member 65 add_alloc(char *type, void *addr, size_t size, const char *file, int line) in add_alloc() argument 79 alist->line = line; in add_alloc() 91 drop_alloc(const char *type, void *addr, const char *file, int line) in drop_alloc() argument 112 type, addr, file, line); in drop_alloc() 119 my_malloc(size_t size, const char *file, int line) in my_malloc() argument 127 add_alloc("MALLOC", addr, size, file, line); in my_malloc() 133 my_realloc(void *addr, size_t size, const char *file, int line) in my_realloc() argument 141 drop_alloc("MALLOC", addr, file, line); in my_realloc() 142 add_alloc("MALLOC", ptr, size, file, line); in my_realloc() [all …]
|
/titanic_41/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_upgrade.c | 264 BAM_DPRINTF((D_UPDATE_LINE_BEFORE, fcn, linep->line)); in update_line() 265 free(linep->line); in update_line() 267 linep->line = s_calloc(1, size); in update_line() 268 (void) snprintf(linep->line, size, "%s%s%s", linep->cmd, linep->sep, in update_line() 270 BAM_DPRINTF((D_UPDATE_LINE_AFTER, fcn, linep->line)); in update_line() 358 cvt_kernel_line(line_t *line, const char *osroot, entry_t *entry) in cvt_kernel_line() argument 370 BAM_DPRINTF((D_FUNC_ENTRY2, fcn, line->line, osroot)); in cvt_kernel_line() 395 bam_error(FAILSAFE_MISSING, line->lineNum); in cvt_kernel_line() 406 free(line->cmd); in cvt_kernel_line() 407 line->cmd = s_strdup(menu_cmds[KERNEL_DOLLAR_CMD]); in cvt_kernel_line() [all …]
|
/titanic_41/usr/src/cmd/syseventadm/ |
H A D | syseventadm.c | 317 str_t *line; in add_cmd() local 366 line = initstr(128); in add_cmd() 368 strcats(line, arg_class == NULL ? "-" : arg_class); in add_cmd() 369 strcatc(line, ' '); in add_cmd() 371 strcats(line, arg_subclass == NULL ? "-" : arg_subclass); in add_cmd() 372 strcatc(line, ' '); in add_cmd() 374 strcats(line, arg_vendor == NULL ? "-" : arg_vendor); in add_cmd() 375 strcatc(line, ' '); in add_cmd() 377 strcats(line, arg_publisher == NULL ? "-" : arg_publisher); in add_cmd() 378 strcatc(line, ' '); in add_cmd() [all …]
|
/titanic_41/usr/src/cmd/hal/hald/ |
H A D | ids.c | 72 static char line[PCI_IDS_MAX_LINE_LEN]; in pci_ids_line_iter_get_line() local 78 line[i] = pci_ids[pci_ids_iter_pos]; in pci_ids_line_iter_get_line() 81 line[i] = '\0'; in pci_ids_line_iter_get_line() 87 return line; in pci_ids_line_iter_get_line() 121 char *line; in ids_find_pci() local 147 line = pci_ids_line_iter_get_line (&line_len); in ids_find_pci() 154 if (line[0] == '#') in ids_find_pci() 160 if (line[i] != '\t') in ids_find_pci() 174 if ((*((dbus_uint32_t *) line)) == in ids_find_pci() 178 if (!isspace (line[i])) in ids_find_pci() [all …]
|
/titanic_41/usr/src/tools/scripts/ |
H A D | jstyle.pl | 62 my ($filename, $line, $prev); 101 printf $fmt, $filename, $., $_[0], $line; 123 line: while (<STDIN>) { label 129 $line = $_; 138 next line; 154 $prev = $line; 155 next line; 200 $prev = $line; 201 next line; 205 $prev = $line; [all …]
|
/titanic_41/usr/src/cmd/mandoc/ |
H A D | mdoc_macro.c | 483 struct mdoc *mdoc, int line, int ppos) in make_pending() argument 538 mandoc_vmsg(MANDOCERR_SCOPENEST, mdoc->parse, line, ppos, in make_pending() 554 enum mdoct tok, int line, int ppos) in rew_sub() argument 564 n->lastline = line - in rew_sub() 570 line, ppos, "%s breaks %s", in rew_sub() 575 n->lastline = line - in rew_sub() 580 if (make_pending(n, tok, mdoc, line, ppos) || in rew_sub() 585 mdoc_pmsg(mdoc, line, ppos, MANDOCERR_NOSCOPE); in rew_sub() 603 ! mdoc_body_alloc(mdoc, n->line, n->pos, n->tok)) in rew_sub() 615 dword(struct mdoc *mdoc, int line, int col, const char *p, in dword() argument [all …]
|
/titanic_41/usr/src/cmd/sendmail/aux/ |
H A D | mailcompat.c | 123 static char line[MAXLINE]; local 137 while (fgets(line, sizeof line, stdin) != NULL) 139 if (line[0] == (char)'\n') /* end of mail headers */ 141 if (in_body && (strncmp(line, "From ", 5) == 0)) 143 if (in_body || (strncasecmp(line, L_HEADER, LL_HEADER) != 0)) 144 fputs(line, mail_fp); 153 static char line[MAXLINE]; local 158 if (fgets(line, sizeof line, stdin) == NULL || 159 strncmp(line, "From ", 5) != NULL) 166 start = &line[5]; [all …]
|