/illumos-gate/usr/src/cmd/avs/errgen/ |
H A D | errgen.c | 77 char line[SPCS_S_MAXLINE]; local 82 (void) fgets(line, SPCS_S_MAXLINE, h); 84 (void) fputs(line, stderr); 149 * Process a single input line 176 " at line: %d pos: %d\n", count, 250 char line[SPCS_S_MAXLINE]; local 323 (void) fgets(line, SPCS_S_MAXLINE, stdin); 331 line[strlen(line)-1] = 0; 332 if ((strlen(line) ! [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | dial.h | 57 #define L_PROB (-6) /* line problem (open() failure) */ 70 char *line; /* device name for out-going line */ member in struct:__anon46
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfslogtab.c | 67 char line[MAXBUFSIZE + 1]; local 79 if ((p = fgets(line, MAXBUFSIZE, fd)) == NULL) { 84 line[strlen(line) - 1] = '\0';
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | logger.c | 52 static int line; variable 119 * @param line Line number of file 127 line = _line; 181 snprintf (logmsg, sizeof(logmsg), "[%d]: %s.%03d %s %s:%d: %s\n", pid, tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf); 183 snprintf (logmsg, sizeof(logmsg), "%s.%03d %s %s:%d: %s\n", tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf);
|
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | ipft_tx.c | 154 char line[513]; local 157 while (fgets(line, sizeof(line)-1, tfp)) { 158 if ((s = strchr(line, '\n'))) 160 if ((s = strchr(line, '\r'))) 162 if ((s = strchr(line, '#'))) 164 if (!*line) 167 printf("input: %s\n", line); 170 if (!parseline(line, (ip_t *)buf, ifn, dir)) 180 static int parseline(line, i [all...] |
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon_y.y | 67 file: line 69 | file line 73 line: IPM_MATCH '{' matching '}' IPM_DO '{' doing '}' ';' label 338 fprintf(stderr, "%s redfined on line %d\n", 421 fprintf(stderr, "%s redfined on line %d\n", 431 fprintf(stderr, "%s redfined on line %d\n",
|
H A D | ippool_y.y | 91 file: line 93 | file line 97 line: table role ipftree eol { iplo.ipo_unit = $2; label
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | update.c | 62 static int match(char *line, char *name); 232 char line[256]; local 285 while (fgets(line, sizeof (line), rf)) { 286 if (err < 0 && match(line, name)) { 302 fputs(line, wf); 339 match(char *line, char *name) argument 344 return (strncmp(line, name, len) == 0 && 345 (line[len] == ' ' || line[le [all...] |
/illumos-gate/usr/src/cmd/sort/common/ |
H A D | streams_stdio.c | 44 * entire line, the fractional line is shelved, and will be grafted to on the 115 * If our current line is incomplete, we need to get the rest of 116 * the line--if we can't, then we've exhausted memory. 169 * stream_stdio_fetch() guarantees the return of a complete line, or a flag 170 * indicating that the complete line could not be read. 187 * The graft point is the start of the current line. 192 * Correct for terminating NUL on shelved line. This NUL is 241 * We were only able to read part of the line; note that 244 * can't get the entire line, the 372 stream_stdio_put_line(stream_t *str, line_rec_t *line) argument 390 stream_stdio_put_line_unique(stream_t *str, line_rec_t *line) argument [all...] |
/illumos-gate/usr/src/cmd/svc/servinfo/ |
H A D | servinfo.c | 110 char line[LINE_MAX] = ""; local 177 if (strstr(line, blist->rpcb_map.r_netid)) 187 (void) strlcat(line, buf, sizeof (line)); 191 if (strstr(line, buf) || strlen(buf) > line_len) 195 (void) strlcat(line, buf, sizeof (line)); 203 (void) puts(line);
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | env.c | 61 char line[MAXCMDL]; local 83 while (fgets(line, MAXCMDL - 1, fp) != NULL) { 87 length = strlen(line); 88 if (line[length - 1] == '\n') 89 line[length - 1] = '\0'; 94 if (line[0] == '#' || line[0] == '\0' || 95 (wslength = strspn(line, " \t\n")) == strlen(line) || 96 strchr(line, '#') [all...] |
/illumos-gate/usr/src/cmd/lms/ |
H A D | glue.cpp | 51 char *line[PARSER_MAX]; member in struct:parser_s 70 cfg->line[cfg->count] = strdup(buf); 71 if (cfg->line[cfg->count]) { 93 return (cfg->line[index]); 99 char line[512]; local 107 while (fgets(line, 511, fp)) { 108 head = line; 136 free(cfg->line[i]);
|
/illumos-gate/usr/src/cmd/svr4pkg/installf/ |
H A D | installf.c | 70 char line[LSIZE]; local 81 /* There is only one filename on the command line. */ 92 while (fgets(line, LSIZE, stdin) != NULL) { 95 argv[argc++] = strtok(line, " \t\n");
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 356 char line[LSIZE]; local 368 while (fgets(line, LSIZE, fp)) { 373 for (pt = line; isspace(*pt); /* void */) 378 (void) sscanf(line, "%s %ld %ld", path, &blocks, &nodes);
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | sttydefs.c | 322 int line; /* line number entry is on */ local 341 if ((line = find_label(fp, ttylabel)) == 0) { 347 if (line != 1) 348 if (copy_file(fp, tfp, 1, line - 1)) { 352 if (copy_file(fp, tfp, line + 1, -1)) { 412 * start - starting line number 413 * finish - ending line number (-1 indicates entire file) 428 * always start from the beginning because line numbers are absolute
|
H A D | tmpmtab.c | 75 char line[BUFSIZ]; local 113 line[0] = '\0'; 114 for (ptr= line,oldc = '\0'; ptr < &line[sizeof(line)-1] && 122 /* skip rest of the line */ 131 if (ptr == line) break; 135 /* if empty line, skip */ 136 for (ptr=line; *ptr != '\0' && isspace(*ptr); ptr++) 141 debug("**** Next Entry ****\n%s", line); [all...] |
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_macinfo.c | 155 Dwarf_Unsigned line, int *compose_error_type) 169 res = _dwarf_pro_encode_leb128_nm(line, &nbytes, 204 Dwarf_Unsigned line, 243 res = libdwarf_compose_add_line(dbg, line, &compose_error_type); 264 Dwarf_Unsigned line, 293 res = libdwarf_compose_add_line(dbg, line, &compose_error_type); 154 libdwarf_compose_add_line(Dwarf_P_Debug dbg, Dwarf_Unsigned line, int *compose_error_type) argument 203 dwarf_def_macro(Dwarf_P_Debug dbg, Dwarf_Unsigned line, char *macname, char *macvalue, Dwarf_Error * error) argument 263 dwarf_undef_macro(Dwarf_P_Debug dbg, Dwarf_Unsigned line, char *macname, Dwarf_Error * error) argument
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | ctfstabs.c | 121 * Read a line of input into a statically-allocated buffer. If the line 187 char *line; local 192 for (lineno = skipping = 0; (line = readline(tmpl)) != NULL; lineno++) { 193 len = strlen(line) - 1; 194 line[len] = '\0'; 202 if (ops->po_line(line) < 0) { 204 "blank line");
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_util.c | 197 * each line. Append each line with the ASCII equivalent of 208 char line[LINEWIDTH]; local 215 /* walk the buffer one line at a time */ 218 bzero(line, LINEWIDTH); 220 curr = line; 221 aoff = line + ASCIIOFFSET; 224 * Walk the bytes in the current line, storing 228 * the line. 240 * this is the last line an [all...] |
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | misc.cc | 460 register Property line; local 464 ((line = get_prop(target->prop, line_prop)) == NULL) || 465 ((line->body.line.command_template == NULL) && 466 (line->body.line.dependencies == NULL))) { 473 for (dependency = line->body.line.dependencies; 481 for (rule = line->body.line 510 register Property line; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | arp.c | 156 * A line of input can be: 165 char line[MAX_LINE_LEN]; local 174 while (fgets(line, MAX_LINE_LEN, fp) != NULL) { 181 * Keep a copy of the un-altered line for error 184 (void) strlcpy(line_copy, line, MAX_LINE_LEN); 195 (void) fprintf(stderr, "arp: bad line: %s\n", 196 line);
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | libroff.h | 20 TBL_PART_OPTS, /* in options (first line) */ 29 int line; /* invocation line */ member in struct:tbl_node 51 int delim; /* in-line delimiters enabled */ 52 char odelim; /* in-line opening delimiter */ 53 char cdelim; /* in-line closing delimiter */
|
H A D | manpath.c | 215 char *line, *cp, *ep; local 222 line = NULL; 225 while ((linelen = getline(&line, &linesz, stream)) != -1) { 226 cp = line; 266 free(line);
|
H A D | mdoc.c | 93 * Main parse routine. Parses a single line -- really just hands off to 100 if (mdoc->last->type != ROFFT_EQN || ln > mdoc->last->line) 124 (*mdoc_macros[tok].fp)(mdoc, tok, line, ppos, pos, buf); 128 mdoc_tail_alloc(struct roff_man *mdoc, int line, int pos, int tok) argument 132 p = roff_node_alloc(mdoc, line, pos, ROFFT_TAIL, tok); 138 mdoc_endbody_alloc(struct roff_man *mdoc, int line, int pos, int tok, argument 145 p = roff_node_alloc(mdoc, line, pos, ROFFT_BODY, tok); 155 mdoc_block_alloc(struct roff_man *mdoc, int line, int pos, argument 160 p = roff_node_alloc(mdoc, line, pos, ROFFT_BLOCK, tok); 182 mdoc_elem_alloc(struct roff_man *mdoc, int line, in argument 217 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | dev_net.c | 337 char line[80]; local 345 snprintf(line, 80, "\t%s%d:", "net", cnt++); 346 ret = pager_output(line); 350 snprintf(line, 80, " (%s%d)", drv->netif_bname, 352 ret = pager_output(line);
|