/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | ipaddrsel.c | 148 char line[IPV6DAS_MAXLINELEN]; local 166 while (fgets(line, sizeof (line), fp) != NULL) { 175 cp = line; 181 /* Is this a comment or blank line? */ 192 gettext("%s: invalid prefix on line %d: %s\n"), 199 gettext("%s: invalid prefix on line %d: %s\n"), 209 gettext("%s: invalid prefix length on line %d\n"), 215 gettext("%s: invalid prefix length on line %d:" 225 gettext("%s: invalid precedence on line [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_mount.c | 101 char *line; local 112 line = get_sum_line(); 115 (void) sprintf(line, "MOUNT%d C %s", 117 line += strlen(line); 121 (void) sprintf(line, " %s", 131 (void) sprintf(line, " %s", 140 check_retransmit(line, xid); 142 (void) sprintf(line, "MOUNT%d R %s ", 144 line [all...] |
H A D | snoop_nfs.c | 133 char *line; local 142 line = get_sum_line(); 145 (void) sprintf(line, 148 line += strlen(line); 154 (void) sprintf(line, sum_nfsfh()); 162 (void) sprintf(line, "%s %s", 172 (void) sprintf(line, "%s at %d for %d", 177 (void) sprintf(line, "%s %s", 180 line [all...] |
H A D | snoop_pmap.c | 103 char *line; local 129 line = get_sum_line(); 132 (void) sprintf(line, "PORTMAP C %s", 134 line += strlen(line); 140 (void) sprintf(line, 147 (void) sprintf(line, 163 check_retransmit(line, xid); 165 (void) sprintf(line, "PORTMAP R %s ", 167 line 389 char *line; local [all...] |
H A D | snoop_pppoe.c | 377 print_hexdata(char *line, uint8_t *data, uint16_t length) argument 381 line += sprintf(line, "0x"); 384 line += sprintf(line, "%02x", data[index++]); 397 char *line = get_line(0, 0); local 398 return (line + sprintf(line, string));
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | cmd1.c | 59 static int topputs(const char *line, FILE *obuf); 326 * Return the full name from an RFC-822 header line 579 topputs(const char *line, FILE *obuf) argument 583 top_lineb = blankline(line); 584 return (fputs(line, obuf));
|
/illumos-gate/usr/src/cmd/eeprom/sparc/ |
H A D | openprom.c | 154 char *nl, line[BUFSIZE]; local 156 while (fgets(line, sizeof (line), stdin) != NULL) { 158 if (nl = strchr(line, '\n')) 160 /* otherwise discard rest of line */ 166 do_var(line);
|
/illumos-gate/usr/src/cmd/enhance/ |
H A D | enhance.c | 92 * Set the maximum length of an input line. 420 char *line; /* An input line read from the user */ local 446 while((line=gl_get_line(gl, rbuff, NULL, 0))) { 447 if(pty_write_to_fd(cntrl, line, strlen(line))) 569 * Get the read buffer in which we are accumulating a line to be 577 * followed by the current input line, so we loop, delaying a bit at 605 * return. If there are no newlines of carriage returns in the line, 606 * and the buffer is full, then we should output the whole line [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | util.c | 286 _dm_assert(const char *assertion, const char *file, int line, const char *func) argument 294 "%s, file: %s, line: %d, function: %s", assertion, file, 295 line, func); 298 "%s, file: %s, line: %d", assertion, file, line);
|
/illumos-gate/usr/src/cmd/fmthard/ |
H A D | fmthard.c | 539 char line[256]; local 562 while (fgets(line, sizeof (line) - 1, fp)) { 563 if (line[0] == '\0' || line[0] == '\n' || line[0] == '*') 565 line[strlen(line) - 1] = '\0'; 566 if (sscanf(line, "%d %d %x %llu %llu", 569 line); 608 char line[256]; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | debug_alloc.c | 57 int line; member in struct:alloc_list 65 add_alloc(char *type, void *addr, size_t size, const char *file, int line) argument 79 alist->line = line; 91 drop_alloc(const char *type, void *addr, const char *file, int line) argument 112 type, addr, file, line); 119 my_malloc(size_t size, const char *file, int line) argument 127 add_alloc("MALLOC", addr, size, file, line); 133 my_realloc(void *addr, size_t size, const char *file, int line) argument 141 drop_alloc("MALLOC", addr, file, line); 149 my_free(void *addr, const char *file, int line) argument 158 my_strdup(const char *straddr, const char *file, int line) argument 175 my_sethostent(int stay, const char *file, int line) argument 185 my_endhostent(const char *file, int line) argument 199 my_setnetconfig(const char *file, int line) argument 213 my_endnetconfig(void *nconf, const char *file, int line) argument 227 my_setnetpath(const char *file, int line) argument 241 my_endnetpath(void *npath, const char *file, int line) argument 255 my_netdir_getbyname( struct netconfig *tp, struct nd_hostserv *serv, struct nd_addrlist **addrs, const char *file, int line) argument 274 my_netdir_free(void *ptr, int type, const char *file, int line) argument 283 my_getipnodebyname( const char *name, int af, int flags, int *error_num, char *file, int line) argument 303 my_freehostent(struct hostent *hent, char *file, int line) argument 312 my_getnetconfigent(char *netid, char *file, int line) argument 326 my_freenetconfigent(struct netconfig *netp, char *file, int line) argument 335 my__rpc_setconf(char *nettype, char *file, int line) argument 349 my__rpc_endconf(void *vhandle, char *file, int line) argument [all...] |
H A D | ns_files.c | 51 static int read_execout(char *key, char **lp, char *fname, char *line, 53 static int call_read_execout(char *key, char **lp, char *fname, char *line, 261 * List entries one line at a time. 332 char *line, *dir, *map, *opts; local 341 while ((line = get_line(fp, fname, linebuf, 343 unquote(line, lineq); 344 if (macro_expand("", line, lineq, LINESZ)) { 346 "map %s: line too long (max %d chars)", 350 dir = line; 423 char *line, *p local 564 read_execout(char *key, char **lp, char *fname, char *line, int linesz) argument 654 char line[LINESZ]; local 684 call_read_execout(char *key, char **lp, char *fname, char *line, int linesz) argument [all...] |
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_scan.c | 442 cppline(char *line) argument 444 return (line == curline && *line == '#'); 448 directive(char *line) argument 450 return (line == curline && *line == '%'); 454 printdirective(char *line) argument 456 f_print(fout, "%s", line + 1); 460 docppline(char *line, int *lineno, char **fname) argument 466 line [all...] |
/illumos-gate/usr/src/cmd/sa/ |
H A D | timex.c | 70 char ttyid[12], line[150]; local 162 while (fscanf(pipin, "%[^\n]%1c", line, &eol) > 1) { 164 fprintf(stderr, "%s\n", line); 166 nfld = sscanf(line,
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | alias.c | 652 char line[BUFSIZ]; local 662 while (sm_io_fgets(af, SM_TIME_DEFAULT, line, sizeof(line)) != NULL) 668 p = strchr(line, '\n'); 670 /* XXX what if line="a\\" ? */ 671 while (p != NULL && p > line && p[-1] == '\\') 675 SPACELEFT(line, p)) == NULL) 685 syserr("554 5.3.0 alias line too long"); 687 /* flush to end of line */ 696 switch (line[ [all...] |
/illumos-gate/usr/src/cmd/sgs/error/common/ |
H A D | errorinput.c | 253 * "morsesend.c", line 237: operands of & have incompatible types 254 * "test.c", line 7: warning: old-fashioned initialization: use = 255 * "subdir.d/foo2.h", line 1: illegal initialization 260 (strcmp(wordv[2], "line") == 0) && 266 clob_last(wordv[3], '\0'); /* drop : on line number */ 267 wordv[2] = wordv[1]; /* overwrite "line" */ 283 * fprintf(stderr, "%d: ", line); 318 char *line, *file; local 329 if (persperdexplode(wordv[1], &line, &file)) { 332 nwordv[1] = line; /* lin 387 char *line; local [all...] |
/illumos-gate/usr/src/cmd/abi/spectrans/parser/ |
H A D | frontend.c | 115 * iterate through files specified in the command line and process 248 errlog(ERROR, "\"%s\", line %d: " 392 * we replace the '\' from the previous line with a space 424 * split(const char *line, char *key, char *value); 425 * splits the line into keyword (key) and value pair 428 split(const char *line, char *key, char *value) argument 432 p = (char *)line; 438 /* copy keyword from line into key */ 479 errlog(ERROR, "\"%s\", line %d: Error: " 534 errlog(ERROR, "\"%s\", line [all...] |
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | versions.c | 554 static char line[MAXLINE]; local 558 /* We're at an end of line. */ 560 if (fgets(line, sizeof (line), Fp) == NULL) { 566 seterrline(Line, Filename, "", line); 567 } while ((p = tokenize(line)) == NULL); 579 tokenize(char *line) argument 585 if (line == NULL && p == NULL) { 588 } else if (line != NULL) { 589 /* Initialize with a new line */ [all...] |
/illumos-gate/usr/src/cmd/autopush/ |
H A D | autopush.c | 76 #define OPTIONS "M:f:gm:r" /* command line options for getopt(3C) */ 94 #define Badline gettext("%s: WARNING: File %s: bad input line %d " \ 105 * process command line arguments. 249 int line; /* line number of file */ local 267 line = 0; 269 line++; 274 parsecode = parse_line(buf, line, namep, &push); 293 "autopush for line %d\n"), Cmdp, namep, line); [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | grades.c | 37 #define G_MAX 512 /* max number of fields in the Grades file line */ 139 char line[BUFSIZ]; local 156 while (rdfulline(cfd, line, BUFSIZ) != 0) { 157 (void) getargs(line, carray, G_MAX); 195 char line[BUFSIZ]; local 204 for (; rdfulline(cfd, line, BUFSIZ) != 0;) { 206 /* parse the fields of this line */ 208 (void) getargs(line, carray, G_MAX); 249 char line[BUFSIZ]; local 264 while (fgets(line, BUFSI 449 char line[BUFSIZ]; local 598 char line[BUFSIZ]; local 658 char line[BUFSIZ]; local [all...] |
H A D | in.uucpd.c | 429 char line[32]; local 451 /* hack, but must be unique and no tty line */ 452 sprintf(line, "uucp%.4d", getpid()); 453 SCPYN(ut.ut_line, line); 478 * if (pam_set_item(pamh, PAM_TTY, line) != PAM_SUCCESS) 488 /* hack, but must be unique and no tty line */ 489 sprintf(line, "uucp%.4d", getpid()); 490 SCPYN(utmp.ut_line, line);
|
H A D | sysfiles.c | 164 /* got a (logical) line from Sysfiles */ 215 /* got a (logical) line from Devconfig */ 234 * given a file pointer and buffer, construct logical line in buffer 235 * (i.e., concatenate lines ending in '\'). return length of line 240 getaline(f, line) 242 char *line; 245 lptr = line; 246 while (fgets(lptr, (line + BUFSIZ) - lptr, f) != NULL) { 249 /* empty buf or line too long! */ 252 if ( lend == line ) /* empt 322 { char **line, *equals; local [all...] |
/illumos-gate/usr/src/cmd/checknr/ |
H A D | checknr.c | 44 int lno; /* line number the thing came in in */ 144 static int lineno; /* current line number in input file */ 145 static char line[256]; /* the current line */ variable 158 static void chkcmd(char *line, char *mac); 163 static void addcmd(char *line); 285 for (lineno = 1; fgets(line, sizeof (line), f); lineno++) { 286 if (line[0] == '.') { 290 (void) strncpy(mac, line 407 chkcmd(char *line, char *mac) argument 524 addcmd(char *line) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | known_wlans.c | 50 /* enum for parsing each line of /etc/nwam/known_wifi_nets */ 196 char line[LINE_MAX]; local 210 for (lnum = 1; fgets(line, sizeof (line), fp) != NULL; lnum++) { 212 cp = line; 241 /* next line ... */
|
H A D | llp.c | 191 char line[LINE_MAX]; local 207 for (lnum = 1; fgets(line, sizeof (line), fp) != NULL; lnum++) { 208 if (line[strlen(line) - 1] == '\n') 209 line[strlen(line) - 1] = '\0'; 211 cp = line; 219 "parsing legacy LLP conf file line %d...", lnum); 223 nlog(LOG_ERR, "parse_llp_config: line [all...] |