Searched refs:lines (Results 1 - 25 of 225) sorted by relevance

123456789

/src/usr.bin/make/unit-tests/
H A Ddirective-for-lines.exp1 make: directive-for-lines.mk:31: This is line 31.
2 make: directive-for-lines.mk:31: This is line 31.
3 make: directive-for-lines.mk:38: This is line 38.
4 make: directive-for-lines.mk:31: This is line 31.
5 make: directive-for-lines.mk:31: This is line 31.
6 make: directive-for-lines.mk:38: This is line 38.
H A Djob-output.exp1 begin empty-lines
4 end empty-lines
H A Djob-output-long-lines.mk1 # $NetBSD: job-output-long-lines.mk,v 1.4 2020/11/01 17:29:13 rillig Exp $
3 # The jobs may produce long lines of output. A practical case are the echoed
4 # command lines from compiler invocations, with their many -D options.
6 # Each of these lines must be written atomically to the actual output.
11 # output lines that are longer than this buffer size, these output pieces are
H A Ddirective-for-lines.mk1 # $NetBSD: directive-for-lines.mk,v 1.6 2025/06/30 21:44:39 rillig Exp $
8 # lines, even when collecting the lines for the .for loop body.
H A Dcmdline-redirect-stdin.mk3 # Demonstrate that the '!=' assignment operator can read individual lines
11 | ${MAKE} -f ${MAKEFILE} read-lines
13 .if make(read-lines)
33 read-lines: .PHONY
H A Ddeptgt-posix.mk101 # and comment lines or empty lines, that works.
107 # The only allowed lines before switching to POSIX mode are comment lines.
108 # POSIX defines comment lines as "blank lines, empty lines, and lines with
110 all: after-comment-lines
111 after-comment-lines
[all...]
H A Dcheck-expect.lua45 local lines = {}
52 for line in f:lines() do
53 table.insert(lines, line)
57 return lines
67 --- @param lines string[]
69 local function parse_exp(lines)
71 for _, line in ipairs(lines) do
/src/usr.bin/tail/
H A Dread.c58 * rflag is set, the data is displayed in lines in reverse order, and this
122 * displaylines -- read lines to an offset from the end and display.
126 * rflag is set, the data is displayed in lines in reverse order, and this
140 } *lines; local in function:displaylines
147 if ((lines = malloc(off * sizeof(*lines))) == NULL)
150 memset(lines, 0, sizeof(*lines) * off);
165 if (lines[recno].blen < cnt) {
166 if ((n = realloc(lines[recn
[all...]
/src/usr.bin/ktruss/
H A Dmakeerrnos.sh41 lines=`wc -l $CFILE | ${AWK} ' { print $1; } ' -`
42 lines=`expr $lines - 4`
86 extern struct systab errnos[$lines + 1];
89 #define MAXERRNOS $lines
/src/tests/lib/libcurses/slave/
H A Dlint.lua15 local lines = {}
18 for line in f:lines() do
19 table.insert(lines, line)
24 return lines
43 local lines = load_lines(fname)
46 for lineno, line in ipairs(lines) do
/src/usr.bin/sortinfo/
H A Dsortinfo.c52 char **lines; member in struct:section
70 slist[nsections].lines = ecalloc(slist[nsections].maxlines,
71 sizeof(*slist[nsections].lines));
80 s->lines = erealloc(s->lines, s->maxlines * sizeof(*s->lines));
82 s->lines[s->nlines++] = line;
108 printf("%s", s->lines[i]);
160 qsort(s->lines, s->nlines, sizeof(*s->lines), strptrcm
[all...]
/src/usr.bin/shuffle/
H A Dshuffle.c102 * Return an array of lines read from input
110 char **lines = emalloc(sizeof(char *) * maxlines); local in function:get_lines
121 lines[nlines] = emalloc(size + 1);
122 (void)memcpy(lines[nlines], line, size);
123 lines[nlines++][size] = '\0';
126 lines = erealloc(lines, (sizeof(char *) * maxlines));
129 lines[nlines] = NULL;
131 *linesp = lines;
164 char **lines local in function:main
[all...]
/src/usr.bin/gzip/
H A Dgzexe22 # The number of lines plus one in the on-the-fly decompression script
23 lines=19
34 lines=$lines
42 if /usr/bin/tail +$lines "$0" |
71 if ! tail +$lines "$tmp" | gzip -vdc > "$1"; then
/src/games/rain/
H A Drain.c63 static long lines; variable in typeref:typename:long
109 ypos[j] = random() % lines + 2;
121 y = random() % lines + 2;
157 lines = LINES - 4;
159 if (lines == 0) lines++;
/src/tests/usr.bin/xlint/lint1/
H A Dcheck-expect.lua38 local lines = {}
43 for line in f:lines() do
44 table.insert(lines, line)
48 return lines
52 local function save_lines(fname, lines)
54 for _, line in ipairs(lines) do
71 local lines = load_lines(fname)
72 if lines == nil then return nil, nil end
89 for phys_lineno, line in ipairs(lines) do
127 local lines
[all...]
/src/sys/arch/amiga/dev/
H A Dite_rh.c147 screen_up(struct ite_softc *ip, int top, int bottom, int lines) argument
154 if (top + lines >= bottom) {
159 RZ3AlphaCopy(ip->grf, 0, top+lines, 0, top, ip->cols, bottom-top-lines+1);
160 RZ3AlphaErase(ip->grf, 0, bottom - lines + 1, ip->cols, lines);
165 screen_down (struct ite_softc *ip, int top, int bottom, int lines) argument
172 if (top + lines >= bottom) {
177 RZ3AlphaCopy(ip->grf, 0, top, 0, top+lines, ip->cols, bottom-top-lines
[all...]
H A Dite_rt.c146 screen_up(struct ite_softc *ip, int top, int bottom, int lines) argument
156 if (top + lines >= bottom)
192 long fromloc = (top+lines) * (md->TX / 16);
198 /* transfer all characters but LINES lines, unroll by 16 */
199 short x = (1 + bottom - (top + lines)) * (md->TX / 16) - 1;
236 /* fill the free lines with spaces */
241 f += (1 + bottom - lines) * md->TX * 2;
253 short x = (lines * (md->TX/16)) - 1;
256 p += (1 + bottom - lines) * (md->TX/4);
274 screen_down(struct ite_softc *ip, int top, int bottom, int lines) argument
[all...]
H A Dite_ul.c300 static void screen_up(struct ite_softc *ip, int top, int bottom, int lines) argument
309 printf("screen_up %d %d %d ->",top,bottom,lines);
316 if (top + lines >= bottom)
328 cmd[6] = (top-lines) * ip->ftheight; /* dst y */
331 ulowell_clear(ip, bottom-lines+1, 0, lines-1, ip->cols);
334 static void screen_down(struct ite_softc *ip, int top, int bottom, int lines) argument
343 printf("screen_down %d %d %d ->",top,bottom,lines);
351 if (top + lines >= bottom)
361 cmd[4] = (bottom - top - lines) * i
[all...]
/src/games/cgram/
H A Dcgram.c172 static struct stringarray lines; variable in typeref:struct:stringarray
185 return (int)lines.v[cursor_y].len;
198 return lines.v[cursor_y].s[cursor_x - 1];
208 return lines.v[cursor_y].s[cursor_x];
221 stringarray_add(&lines, &line);
235 stringarray_dup(&sollines, &lines);
237 extent_y = (int)lines.num;
239 extent_x = imax(extent_x, (int)lines.v[i].len);
285 for (char *p = lines.v[y].s; *p != '\0'; p++) {
302 for (int y = 0; y < (int)lines
[all...]
/src/share/man/tools/
H A Dcknames40 lines=`cat $file | sed -n "/\.SH NAME/,/\.SH SYNOP/p" | wc -l | sed "s/ //g"`
42 lines=`cat $file | sed -n "/\.SH NAME/,/\.SH DESCR/p" | wc -l | sed "s/ //g"`
44 if test $lines -gt 3
/src/tests/usr.bin/indent/
H A Dedge_cases.c90 my ($class, $fname, $lines, $text, $physlines) = @_;
91 my ($self) = ([$fname, $lines, $text, $physlines, false, [], [], {}]);
125 my($class, $fname, $lines, $text, $physlines) = @_;
126 my($self) = ([$fname, $lines, $text, $physlines, false, [], [], {
139 // $ Preprocessing lines are mostly preserved.
/src/usr.sbin/timed/timedc/
H A Dtimedc.c216 int columns, width = 0, lines; local in function:help
230 lines = (NCMDS + columns - 1) / columns;
231 for (i = 0; i < lines; i++) {
233 c = cmdtab + j * lines + i;
235 if (c + lines >= &cmdtab[NCMDS]) {
/src/sys/dev/wscons/
H A Dwsdisplay_glyphcache.c60 glyphcache_init(glyphcache *gc, int first, int lines, int width, argument
63 return glyphcache_init_align(gc, first, lines, width, cellwidth, cellheight,
68 glyphcache_init_align(glyphcache *gc, int first, int lines, int width, argument
73 if (lines < 0) lines = 0;
79 gc->gc_lines = lines;
92 glyphcache_init_x(glyphcache *gc, int x, int y, int lines, int width, argument
97 if (lines < 0) lines = 0;
103 gc->gc_lines = lines;
[all...]
/src/usr.bin/pr/
H A Dpr.c93 static int lines; /* number of lines per page */ variable in typeref:typename:int
225 if (inskip(inf, pgnm, lines))
245 while (linecnt < lines) {
291 if (linecnt && prtail(lines-linecnt-lrgln, lrgln))
358 if ((buf = malloc((unsigned)lines*mxlen*sizeof(char))) == NULL)
373 mvc = lines * clcnt;
380 if ((lstdat = malloc((unsigned)lines*sizeof(char *))) == NULL)
384 * fast index lookups to locate start of lines
386 if ((indy = malloc((unsigned)lines*sizeo
[all...]
/src/usr.bin/netstat/
H A Dmbuf.c94 int i, lines; local in function:mbpr
226 for (mo = (void *) data, lines = 0; len >= sizeof(*mo);
244 if ((lines % 24) == 0 || lines > 24) {
247 lines = 1;
257 lines++;
269 lines += 2;

Completed in 15 milliseconds

123456789