Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 1461) sorted by relevance

12345678910>>...59

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_solarnet.c80 char *line; in interpret_solarnet_fw() local
97 line = get_sum_line(); in interpret_solarnet_fw()
100 (void) sprintf(line, in interpret_solarnet_fw()
103 line += strlen(line); in interpret_solarnet_fw()
107 (void) sprintf(line, " %s", in interpret_solarnet_fw()
109 line += strlen(line); in interpret_solarnet_fw()
110 (void) sprintf(line, "/%s", in interpret_solarnet_fw()
112 line += strlen(line); in interpret_solarnet_fw()
115 (void) sprintf(line, ".%s", buff); in interpret_solarnet_fw()
116 line += strlen(line); in interpret_solarnet_fw()
[all …]
H A Dsnoop_tcp.c85 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 Dsnoop_nis.c127 char *line; in interpret_nisbind() local
139 line = get_sum_line(); in interpret_nisbind()
142 (void) sprintf(line, "NISBIND C %s", in interpret_nisbind()
144 line += strlen(line); in interpret_nisbind()
149 (void) sprintf(line, " %s", in interpret_nisbind()
153 (void) sprintf(line, " %s", in interpret_nisbind()
159 check_retransmit(line, xid); in interpret_nisbind()
161 (void) sprintf(line, "NISBIND R %s ", in interpret_nisbind()
163 line += strlen(line); in interpret_nisbind()
170 (void) strcat(line, "OK"); in interpret_nisbind()
[all …]
H A Dsnoop_nlm.c153 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 Dsnoop_nfs_acl.c197 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 Dsnoop_dns.c53 static size_t print_question(char *line, const uchar_t *header,
55 static size_t print_answer(char *line, const uchar_t *header,
58 static void print_ip(int af, char *line, const uchar_t *data, uint16_t len);
61 static size_t print_char_string(char *line, const uchar_t *data, uint16_t len);
64 static size_t print_domain_name(char *line, const uchar_t *header,
72 char *line; in interpret_dns() local
113 line = get_sum_line(); in interpret_dns()
114 line += sprintf(line, "%s %c ", in interpret_dns()
131 (void) print_answer(line, in interpret_dns()
135 (void) sprintf(line, " Error: %d(%s)", in interpret_dns()
[all …]
H A Dsnoop_nfs.c131 char *line; local
140 line = get_sum_line();
143 (void) sprintf(line,
146 line += strlen(line);
152 (void) sprintf(line, sum_nfsfh());
160 (void) sprintf(line, "%s %s",
170 (void) sprintf(line, "%s at %d for %d",
175 (void) sprintf(line, "%s %s",
178 line += strlen(line);
180 (void) sprintf(line, " to%s %s",
[all …]
H A Dsnoop_nfs3.c163 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 …]
/illumos-gate/usr/src/tools/onbld/Checks/
H A DHdrChk.py87 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 …]
/illumos-gate/usr/src/cmd/make/bin/
H A Dnse_printdep.cc35 void print_dependencies(Name target, Property line);
36 static void print_deps(Name target, Property line);
39 static Boolean should_print_dep(Property line);
45 static Boolean is_out_of_date(Property line);
65 print_dependencies(Name target, 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 Ddoname.cc83 static Boolean check_dependencies(Doname *result, Property line, Boolean do_get, Name target, Name…
85 static Doname run_command(Property line, Boolean print_machine);
86 extern Doname execute_serial(Property line);
91 static void do_assign(Name line, Name target);
92 static void build_command_strings(Name target, Property line);
93 static Doname touch_command(Property line, Name target, Doname result);
94 extern void update_target(Property line, Doname result);
194 Property line, source_line; in enter_explicit_rule_from_dynamic_rule() local
198 line = maybe_append_prop(target, line_prop); in enter_explicit_rule_from_dynamic_rule()
199 line->body.line.sccs_command = false; in enter_explicit_rule_from_dynamic_rule()
[all …]
H A Dimplicit.cc66 static Boolean dependency_exists(Name target, Property line);
120 Property line; in find_suffix_rule() local
333 line = maybe_append_prop(target, line_prop); in find_suffix_rule()
334 enter_dependency(line, source, false); in find_suffix_rule()
335 line->body.line.target = true_target; in find_suffix_rule()
368 line = maybe_append_prop(target, line_prop); in find_suffix_rule()
370 *command = line; in find_suffix_rule()
372 if ((source->stat.time > (*command)->body.line.dependency_time) && in find_suffix_rule()
382 body.line. in find_suffix_rule()
389 (*command)->body.line.dependency_time = in find_suffix_rule()
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldaptest.c38 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 …]
/illumos-gate/usr/src/cmd/refer/
H A Daddbib.c108 char line[BUFSIZ]; in addbib() local
112 fgets(line, BUFSIZ, stdin); in addbib()
113 if (line[0] == 'y' || line[0] == 'Y') in addbib()
120 if (fgets(line, BUFSIZ, stdin) == NULL) { in addbib()
124 if (line[0] == '-' && line[1] == '\n') { in addbib()
131 } else if (line[strlen(line)-2] == '\\') { in addbib()
132 if (line[0] != '\\') { in addbib()
133 line[strlen(line)-2] = '\n'; in addbib()
134 line[strlen(line)-1] = '\0'; in addbib()
135 trim(line); in addbib()
[all …]
/illumos-gate/usr/src/cmd/col/
H A Dcol.c52 wchar_t lbuff[LINELN], *line; variable
129 line = lbuff; in main()
134 if (*line) { in main()
137 *line = 'X'; in main()
139 *line = temp_off = '\0'; in main()
147 if (*line) in main()
149 *line = ESC; in main()
151 *line = 'Y'; in main()
153 *line = '\0'; in main()
200 *line = c; in main()
[all …]
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_upgrade.c269 BAM_DPRINTF(("%s: line before update: %s\n", fcn, linep->line)); in update_line()
270 free(linep->line); in update_line()
272 linep->line = s_calloc(1, size); in update_line()
273 (void) snprintf(linep->line, size, "%s%s%s", linep->cmd, linep->sep, in update_line()
275 BAM_DPRINTF(("%s: line after update: %s\n", fcn, linep->line)); in update_line()
363 cvt_kernel_line(line_t *line, const char *osroot, entry_t *entry) in cvt_kernel_line() argument
375 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, line->line, osroot)); in cvt_kernel_line()
402 "Not updating line %d\n"), line->lineNum); in cvt_kernel_line()
414 free(line->cmd); in cvt_kernel_line()
415 line->cmd = s_strdup(menu_cmds[KERNEL_DOLLAR_CMD]); in cvt_kernel_line()
[all …]
/illumos-gate/usr/src/cmd/mail/
H A Dsendmail.c159 while ((n = getaline(line, sizeof (line), stdin)) > 0) { in sendmail()
160 last1c = line[n-1]; in sendmail()
162 if (!wtmpf(line, n)) { in sendmail()
170 if ((hdrtyp = isheader(line, &ctf)) == FALSE) { in sendmail()
188 if (substr(line, "forwarded by") > -1) { in sendmail()
191 pickFrom(line); in sendmail()
227 if (n && !wtmpf(line, n)) { in sendmail()
230 if (!n) savehdrs(line, hdrtyp); in sendmail()
246 memcpy(buf, line, n); in sendmail()
259 (void) snprintf(line, sizeof (line), "%s \n", in sendmail()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Ddebug_alloc.c55 int line; member
63 add_alloc(char *type, void *addr, size_t size, const char *file, int line) in add_alloc() argument
77 alist->line = line; in add_alloc()
89 drop_alloc(const char *type, void *addr, const char *file, int line) in drop_alloc() argument
110 type, addr, file, line); in drop_alloc()
117 my_malloc(size_t size, const char *file, int line) in my_malloc() argument
125 add_alloc("MALLOC", addr, size, file, line); in my_malloc()
131 my_realloc(void *addr, size_t size, const char *file, int line) in my_realloc() argument
139 drop_alloc("MALLOC", addr, file, line); in my_realloc()
140 add_alloc("MALLOC", ptr, size, file, line); in my_realloc()
[all …]
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c337 char *line = whatis_lines->sl_str[i]; in finish_output() local
338 if (i > 0 && strcmp(line, prev) == 0) in finish_output()
340 prev = line; in finish_output()
341 (void) fputs(line, output); in finish_output()
405 name_section_line(char *line, const char *section_start) in name_section_line() argument
409 if (strncmp(line, section_start, 3) != 0) in name_section_line()
411 line = skip_spaces(line + 3); in name_section_line()
412 rhs = trim_rhs(line); in name_section_line()
413 if (*line == '"') { in name_section_line()
414 line++; in name_section_line()
[all …]
/illumos-gate/usr/src/cmd/syseventadm/
H A Dsyseventadm.c317 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 …]
/illumos-gate/usr/src/cmd/hal/hald/
H A Dids.c72 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 …]
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dmmap8k.in9 XXXXXXXX.com ALTERNET 9308 930701 104.49 line-9308
12 XXXXXXXX.com ALTERNET 9309 930801 104.49 line-9309
17 XXXXXXXX.com ALTERNET 9310 930901 104.49 line-9310
20 XXXXXXXX.com ALTERNET 9311 931001 104.49 line-9311
24 XXXXXXXX.com ALTERNET 9312 931101 104.49 line-9312
27 XXXXXXXX.com ALTERNET 9401 931201 104.49 line-9401
30 XXXXXXXX.com ALTERNET 9402 940101 104.49 line-9402
34 XXXXXXXX.com ALTERNET 9403 940201 104.49 line-9403
40 XXXXXXXX.com ALTERNET 9404 940301 104.49 line-9404
45 XXXXXXXX.com ALTERNET 9405 940401 104.49 line-9405
[all …]
/illumos-gate/usr/src/tools/scripts/
H A Djstyle.pl61 my ($filename, $line, $prev);
101 printf $fmt, $filename, $., $_[0], $line;
126 line: while (<STDIN>) { label
132 $line = $_;
141 next line;
157 $prev = $line;
158 next line;
203 $prev = $line;
204 next line;
208 $prev = $line;
[all …]
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmailcompat.c123 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) != 0)
166 start = &line[5];
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dmdoc_macro.c233 n->line, n->pos, "%s", roff_name[n->tok]); in mdoc_endparse()
245 lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) in lookup() argument
258 mandoc_msg(MANDOCERR_MACRO_CALL, line, ppos, "%s", p); in lookup()
297 roff_body_alloc(mdoc, n->line, n->pos, in rew_pending()
405 find_pending(struct roff_man *mdoc, enum roff_tok tok, int line, int ppos, in find_pending() argument
426 line, ppos, "%s breaks %s", in find_pending()
428 mdoc_endbody_alloc(mdoc, line, ppos, in find_pending()
441 dword(struct roff_man *mdoc, int line, int col, const char *p, in dword() argument
456 roff_word_alloc(mdoc, line, col, p); in dword()
475 append_delims(struct roff_man *mdoc, int line, int *pos, char *buf) in append_delims() argument
[all …]

12345678910>>...59