Home
last modified time | relevance | path

Searched refs:line (Results 101 – 125 of 1461) sorted by relevance

12345678910>>...59

/illumos-gate/usr/src/cmd/bnu/
H A Dgrades.c139 char line[BUFSIZ]; local
195 char line[BUFSIZ]; in fdgrade() local
249 char line[BUFSIZ]; local
449 char line[BUFSIZ]; local
493 rdfulline(fd, line, lim) in rdfulline() argument
495 char *line;
502 p = line;
517 blr = lim - 1 - (p - line);
533 return(p-line-1);
598 char line[BUFSIZ]; local
[all …]
/illumos-gate/usr/src/tools/onbld/Checks/
H A DCopyright.py36 def is_copyright(line): argument
37 return re.search(r'Copyright (?!\[yyyy\])', line)
39 def is_current_copyright(line): argument
40 return re.search(r'Copyright.*\b%s\b' % time.strftime('%Y'), line)
48 for line in fh:
49 if is_copyright(line):
51 if is_current_copyright(line):
H A DSpellCheck.py281 def spellcheck_line(line): argument
284 if entry[0].search(line):
287 if entry[0].search(line):
290 if entry[0].search(line):
302 for line in fh:
303 line = line.decode(errors='replace')
304 for err in spellcheck_line(line):
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.h53 int _glh_add_history(GlHistory *glh, const char *line, int force);
55 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len);
57 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim);
58 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim);
62 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim);
63 char *_glh_current_line(GlHistory *glh, char *line, size_t dim);
83 char *_glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim);
97 char *line, size_t dim);
138 int _glh_lookup_history(GlHistory *glh, GlhLineID id, const char **line,
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dpkgops.c303 while (fgets(line, sizeof (line), a_fp) != (char *)NULL) { in pkgIsPkgInGzOnlyFP()
307 len = strlen(line); in pkgIsPkgInGzOnlyFP()
309 line[--len] = '\0'; in pkgIsPkgInGzOnlyFP()
313 if ((line[0] == '#') || (line[0] == '\0')) { in pkgIsPkgInGzOnlyFP()
446 while (fgets(line, sizeof (line), srcFP) != (char *)NULL) { in pkgRemovePackageFromGzonlyList()
450 len = strlen(line); in pkgRemovePackageFromGzonlyList()
452 line[--len] = '\0'; in pkgRemovePackageFromGzonlyList()
456 if ((line[0] == '#') || (line[0] == '\0')) { in pkgRemovePackageFromGzonlyList()
639 while (fgets(line, sizeof (line), srcFP) != (char *)NULL) { in pkgAddPackageToGzonlyList()
643 len = strlen(line); in pkgAddPackageToGzonlyList()
[all …]
/illumos-gate/usr/src/tools/scripts/
H A Dcheck_rtime.pl716 my $line;
721 chomp $line;
723 next if ($line eq '');
781 my $line;
795 while ($line = <PVS>) {
796 chomp $line;
817 while ($line = <PVS>) {
818 chomp $line;
860 my $line;
889 my $line;
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/
H A Dshow_unreachable.sh50 line=$(echo $loc | cut -d ':' -f 2)
54 if tail -n +$(($line - 1)) $code_file | head -n 1 | \
59 line_txt=$(tail -n +$(($line)) $code_file | head -n 1)
72 if tail -n +$(($line)) $code_file | head -n 1 | grep -qw 'break' ; then
78 echo $code_file:$line
79 tail -n +$(($line - ($context - 1))) $code_file | head -n $(($context - 1))
81 tail -n +${line} $code_file | head -n $context
/illumos-gate/usr/src/tools/cscope-fast/
H A Dlogdir.c47 static char line[BUFSIZ+1]; variable
73 i = read(pwf, line, BUFSIZ); in logdir()
75 if (line[j] == '\n') in logdir()
80 line[++j] = 0; /* terminate the line */ in logdir()
83 p = passwdfield(line); /* get the logname */ in logdir()
84 } while (*name != *line || /* fast pretest */ in logdir()
85 strcmp(name, line) != 0); in logdir()
/illumos-gate/usr/src/common/definit/
H A Ddefinit.c101 char *line; in definit_nextline() local
103 while ((line = fgets(state->di_line, DEFINIT_MAXLINE, state->di_fp)) in definit_nextline()
112 if (line[0] == '#' || line[0] == '\0' || in definit_nextline()
113 (wslength = strspn(line, SEPARATORS)) == strlen(line) || in definit_nextline()
114 line[wslength] == '#') { in definit_nextline()
131 for (p = line, bp = NULL; *p != '\0'; p++) { in definit_nextline()
158 if ((p = strtok_r(line, SEPARATORS, &state->di_tok)) != NULL) in definit_nextline()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rpcsec.c89 char *handle, *line; in print_rpcsec_gss_cred() local
124 line = get_line(pos, getxdr_pos()); in print_rpcsec_gss_cred()
125 sprintf(line, " handle: length = %d, data = [%s]", in print_rpcsec_gss_cred()
215 char *line; in rpcsec_gss_post_proto() local
230 line = get_sum_line(); in rpcsec_gss_post_proto()
231 sprintf(line, "RPC RPCSEC_GSS C (checksum)"); in rpcsec_gss_post_proto()
329 char *line; in print_rpc_gss_init_arg() local
351 line = get_line(pos, getxdr_pos()); in print_rpc_gss_init_arg()
365 char *handle, *line; in print_rpc_gss_init_res() local
379 line = get_line(pos, getxdr_pos()); in print_rpc_gss_init_res()
[all …]
/illumos-gate/usr/src/lib/libeti/panel/common/
H A Dupdate.c45 touch_top(PANEL *panel, int line, _obscured_list *obs, int start_x, int end_x) in touch_top() argument
55 if (line >= obs -> start && line <= obs -> end && in touch_top()
57 (void) touchline(pnl->win, line - pnl->wstarty, 1); in touch_top()
60 touch_top(panel, line, next_obs, in touch_top()
83 std_touch_top(int line, PANEL *obs_pnl, int start_x, int end_x) in std_touch_top() argument
90 if (line >= obs_pnl->wstarty && line <= obs_pnl->wendy && in std_touch_top()
93 line - obs_pnl->wstarty, 1); in std_touch_top()
97 std_touch_top(line, next_obs, in std_touch_top()
/illumos-gate/usr/src/cmd/svc/startd/
H A Ddeathrow.c99 char *line; in deathrow_init() local
139 line = (char *)startd_alloc(line_size); in deathrow_init()
140 *line = '\0'; in deathrow_init()
142 while (fgets(line, line_size, file) != NULL) { in deathrow_init()
147 sz = strlen(line); in deathrow_init()
150 if (line[sz - 1] == '\n') { in deathrow_init()
151 line[sz - 1] = '\0'; in deathrow_init()
153 manifest = strchr(line, ' '); in deathrow_init()
155 fmri = line; in deathrow_init()
182 *line = '\0'; in deathrow_init()
[all …]
/illumos-gate/usr/src/lib/libc/
H A Dextract-copyright.pl72 my $line;
73 foreach $line (@block) {
74 chomp $line;
75 $line =~ s/^ \* //;
76 $line =~ s/^ \*//;
77 $line =~ s/^ \*$//;
78 push(@license, $line);
/illumos-gate/usr/src/cmd/abi/appcert/scripts/
H A DAppcertUtil.pm428 my ($str, $line, $l1, $l2);
435 $line = trim($line);
436 $output .= "$line\n";
638 if ($line =~ /^(\d+)/) {
641 return $line;
1442 $dump = trim($line);
1679 my ($etc_file, $line);
1703 chomp($line = $_);
1707 chomp($line);
1723 $line .= $gather;
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirp.c360 char line[1024]; in irs_irp_read_response() local
364 if (irs_irp_read_line(pvt, line, sizeof line) <= 0) { in irs_irp_read_response()
368 p = strchr(line, '\n'); in irs_irp_read_response()
376 p = line; in irs_irp_read_response()
405 char line[1024]; in irs_irp_read_body() local
415 if (irs_irp_read_line(pvt, line, sizeof line) <= 0 || in irs_irp_read_body()
416 strchr(line, '\n') == NULL) in irs_irp_read_body()
419 linelen = strlen(line); in irs_irp_read_body()
421 if (line[linelen - 1] != '\n') in irs_irp_read_body()
426 line[linelen - 2] = '\n'; in irs_irp_read_body()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dcommands.c67 char line[81], *cp, *ep; in help_getnext() local
75 if (strlen(line) < 3 || line[0] != '#' || line[1] != ' ') in help_getnext()
79 cp = line + 2; in help_getnext()
452 char line[80]; in command_more() local
457 snprintf(line, sizeof (line), "*** FILE %s BEGIN ***\n", in command_more()
459 if (pager_output(line)) in command_more()
463 snprintf(line, sizeof (line), "*** FILE %s END ***\n", in command_more()
465 res = pager_output(line); in command_more()
500 char line[80]; in command_lsdev() local
525 snprintf(line, sizeof (line), "%s: (unknown)\n", in command_lsdev()
[all …]
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap_engine.c214 line2array(const char *line) in line2array() argument
266 (void) line2array(line); in CPL_MATCH_FN()
278 if (isspace(line[word_end - 1])) in CPL_MATCH_FN()
288 (void) cpl_add_completion(cpl, line, in CPL_MATCH_FN()
329 (void) cpl_add_completion(cpl, line, in CPL_MATCH_FN()
347 const char *line; in interactive_interp() local
369 if (line == NULL) { in interactive_interp()
390 if (line2array(line) < 0) { in interactive_interp()
428 char line[MAX_CMD_LINE_SZ]; in source_interp() local
444 pos.line = line; in source_interp()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_lu.c196 char line[MAXPATHLEN]; in lufslist() local
205 while (fgets(line, sizeof (line), fp) == line) { in lufslist()
210 if (strncmp(line, "<beFsComponent ", 15) != 0) { in lufslist()
214 if ((devp = strstr(line, "fsDevice=\"")) == NULL) { in lufslist()
254 char line[MAXPATHLEN]; in lustatus() local
263 while (fgets(line, sizeof (line), fp) == line) { in lustatus()
269 if (strncmp(line, "<beStatus ", 10) != 0) { in lustatus()
273 if ((sp = strstr(line, "name=\"")) == NULL) { in lustatus()
/illumos-gate/usr/src/tools/lintdump/
H A Dlintdump.c186 LINE line; in print_pass() local
193 line = rec.l; in print_pass()
213 nargs = line.nargs; in print_pass()
218 if (line.decflag & LDS) in print_pass()
230 print_atype(&line.type, line.nargs, args, name); in print_pass()
233 if (line.decflag & LRV) in print_pass()
235 if (line.decflag & LUE) in print_pass()
237 if (line.decflag & LUV) in print_pass()
239 if (line.decflag & LUM) in print_pass()
242 if (line.decflag & LPF) in print_pass()
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Drefer1.c34 char line[BUFSIZ], *s; in main() local
144 while (input(line)) { in main()
146 if (biblio && *line == '\n') in main()
147 doref(line); in main()
148 else if (biblio && Iline == 1 && *line == '%') in main()
149 doref(line); in main()
150 else if (!prefix(".[", line)) in main()
151 output(line); in main()
153 doref(line); in main()
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl.c91 tbl_alloc(int pos, int line, struct tbl_node *last_tbl) in tbl_alloc() argument
98 tbl->line = line; in tbl_alloc()
143 tbl_restart(int line, int pos, struct tbl_node *tbl) in tbl_restart() argument
146 mandoc_msg(MANDOCERR_TBLDATA_BLK, line, pos, "T&"); in tbl_restart()
149 tbl->line = line; in tbl_restart()
171 mandoc_msg(MANDOCERR_BLK_NOEND, tbl->line, tbl->pos, "TS"); in tbl_end()
173 mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->line, tbl->pos, "TE"); in tbl_end()
179 mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->line, tbl->pos, NULL); in tbl_end()
H A Dmdoc.c65 if (mdoc->last->type != ROFFT_EQN || ln > mdoc->last->line) in mdoc_parseln()
89 p = roff_node_alloc(mdoc, line, pos, ROFFT_TAIL, tok); in mdoc_tail_alloc()
102 p = roff_node_alloc(mdoc, line, pos, ROFFT_BODY, tok); in mdoc_endbody_alloc()
112 mdoc_block_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_block_alloc() argument
117 p = roff_node_alloc(mdoc, line, pos, ROFFT_BLOCK, tok); in mdoc_block_alloc()
139 mdoc_elem_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_elem_alloc() argument
144 p = roff_node_alloc(mdoc, line, pos, ROFFT_ELEM, tok); in mdoc_elem_alloc()
186 line, offs, &offs, buf); in mdoc_ptext()
257 roff_elem_alloc(mdoc, line, offs, ROFF_sp); in mdoc_ptext()
263 roff_word_alloc(mdoc, line, offs, buf+offs); in mdoc_ptext()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dtee.c62 int line; member
102 if (tp->line >= 0) in tee_cleanup()
103 sfset(sfstdout, SF_LINE, tp->line); in tee_cleanup()
116 int line; in b_tee() local
128 line = -1; in b_tee()
141 line = sfset(sfstdout, 0, 0) & SF_LINE; in b_tee()
142 if ((line == 0) == (opt_info.num == 0)) in b_tee()
143 line = -1; in b_tee()
176 tp->line = line; in b_tee()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmprofile.c162 PFLINE(pf) = line;
217 int line;
228 line = 0;
475 reg int line; local
488 { vm->file = file; vm->line = line; vm->func = func;
510 reg int line, rv; local
533 { vm->file = file; vm->line = line; vm->func = func;
559 reg int line; local
595 { vm->file = file; vm->line = line; vm->func = func;
668 reg int line; local
[all …]
/illumos-gate/usr/src/cmd/power/
H A Dparse.c351 find_line_end(char *line, int *lcnt) in find_line_end() argument
356 next = line; in find_line_end()
394 line = file_buf; in parse_conf_file()
400 while (line < lend) { in parse_conf_file()
401 if (*line != ' ' && *line != '\t') in parse_conf_file()
403 line++; in parse_conf_file()
410 if ((llen = (lend - line)) != 0) { in parse_conf_file()
414 (void) memcpy(cline, line, llen); in parse_conf_file()
431 else if (*line == '#') in parse_conf_file()
442 (*action)(line, llen + 1, cip); in parse_conf_file()
[all …]

12345678910>>...59