/src/usr.bin/make/unit-tests/ |
directive-for-lines.exp | 1 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.
|
job-output.exp | 1 begin empty-lines 4 end empty-lines
|
job-output-long-lines.mk | 1 # $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
|
directive-for-lines.mk | 1 # $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.
|
cmdline-redirect-stdin.mk | 3 # Demonstrate that the '!=' assignment operator can read individual lines 11 | ${MAKE} -f ${MAKEFILE} read-lines 13 .if make(read-lines) 33 read-lines: .PHONY
|
deptgt-posix.mk | 101 # 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: .PHONY set-up-sysdir check-is-posix ru [all...] |
check-expect.lua | 45 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/ |
read.c | 58 * 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[recno].l [all...] |
/src/usr.bin/ktruss/ |
makeerrnos.sh | 41 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/ |
lint.lua | 15 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/ |
sortinfo.c | 52 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), strptrcmp) [all...] |
/src/usr.bin/shuffle/ |
shuffle.c | 102 * 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 = NULL local in function:main [all...] |
/src/usr.bin/gzip/ |
gzexe | 22 # 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/ |
rain.c | 63 static long lines; variable in typeref:typename:long 109 ypos[j] = random() % lines + 2; 116 if (is_term_resized(LINES, COLS)) { 117 resizeterm(LINES, COLS); 121 y = random() % lines + 2; 157 lines = LINES - 4; 159 if (lines == 0) lines++;
|
/src/tests/usr.bin/xlint/lint1/ |
check-expect.lua | 38 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 = load_lines(exp_fname [all...] |
/src/sys/arch/amiga/dev/ |
ite_rh.c | 147 screen_up(struct ite_softc *ip, int top, int bottom, int lines) 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) 172 if (top + lines >= bottom) { 177 RZ3AlphaCopy(ip->grf, 0, top, 0, top+lines, ip->cols, bottom-top-lines+1) [all...] |
ite_rt.c | 146 screen_up(struct ite_softc *ip, int top, int bottom, int lines) 156 if (top + lines >= bottom) 191 /* read from line TOP + LINES */ 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 [all...] |
ite_ul.c | 300 static void screen_up(struct ite_softc *ip, int top, int bottom, int lines) 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) 343 printf("screen_down %d %d %d ->",top,bottom,lines); 351 if (top + lines >= bottom) 361 cmd[4] = (bottom - top - lines) * ip->ftheight; /* h * [all...] |
/src/games/cgram/ |
cgram.c | 172 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.num; y++) [all...] |
/src/share/man/tools/ |
cknames | 40 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/ |
edge_cases.c | 87 use enum qw(FNAME LINES TEXT PHYSLINES CHANGED BEFORE AFTER EXTRA); 90 my ($class, $fname, $lines, $text, $physlines) = @_; 91 my ($self) = ([$fname, $lines, $text, $physlines, false, [], [], {}]); 121 use enum qw (FNAME LINES TEXT PHYSLINES CHANGED BEFORE AFTER EXTRA); 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/ |
timedc.c | 216 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/ |
wsdisplay_glyphcache.c | 60 glyphcache_init(glyphcache *gc, int first, int lines, int width, 63 return glyphcache_init_align(gc, first, lines, width, cellwidth, cellheight, 68 glyphcache_init_align(glyphcache *gc, int first, int lines, int width, 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, 97 if (lines < 0) lines = 0; 103 gc->gc_lines = lines; [all...] |
/src/usr.bin/pr/ |
pr.c | 93 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*sizeof(int))) == NULL [all...] |
/src/usr.bin/netstat/ |
mbuf.c | 94 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;
|