/illumos-gate/usr/src/lib/libnsl/netselect/ |
H A D | netselect.c | 81 * linenum - the current line number of the /etc/netconfig 84 * fieldnum - the current field number of the current line 268 char line[BUFSIZ]; /* holds each line of NETCONFIG */ local 280 while (fgets(line, BUFSIZ, fp)) { 281 if (!(blank(line) || comment(line))) { 318 * fgetnetconfig() parses a line of the netconfig file into 326 char linep[BUFSIZ]; /* pointer to a line in the file */ 328 char *tok1, *tok2, *tok3; /* holds a token from the line */ [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | memcluster.c | 68 int line; member in struct:__anon3881 185 __memget_record(size_t size, const char *file, int line) { argument 198 UNUSED(line); 226 e->line = line; 333 e->line = line; 368 __memput_record(void *mem, size_t size, const char *file, int line) { argument 384 UNUSED(line); 444 e->line 477 __memget_debug(size_t size, const char *file, int line) argument 486 __memput_debug(void *ptr, size_t size, const char *file, int line) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | hsearch.c | 148 char line[80]; /* Room for the input line */ local 163 until (EOF == scanf("%s", line)); 165 printf("%s, ", line); 166 printf("division: %d, ", hashd(line)); 167 printf("multiplication: %d\n", hashm(line)); 175 new->key = malloc((unsigned) strlen(line) + 1); 180 strcpy(new->key, line);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | hsearch.c | 149 char line[80]; /* Room for the input line */ local 164 until(EOF == scanf("%s", line) || strcmp(line, "quit") == 0); 166 printf("%s, ", line); 167 printf("division: %d, ", hashd(line)); 168 printf("multiplication: %d\n", hashm(line)); 175 new->key = malloc((unsigned)strlen(line) + 1); 180 (void) strcpy(new->key, line); 198 if (EOF == scanf("%s", line) || strcm [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | grep.c | 48 "[C:context?Set the matched line context \abefore\a and \aafter\a count." 51 "[c:count?Only print a matching line count for each file.]" 54 " then the command line \apattern\a must be omitted.]:" 56 "[f:file?Each line in \apattern-file\a is a \apattern\a, placed into a single" 59 "[H:filename|with-filename?Prefix each matched line with the containing file name.]" 60 "[h:no-filename?Suppress containing file name prefix for each matched line.]" 69 "[x:line-match|line-regexp?Force \apatterns\a to match complete lines.]" 70 "[n:number|line-number?Prefix each matched line wit 248 int line; local 353 int line; local [all...] |
/illumos-gate/usr/src/cmd/ypcmd/mknetid/ |
H A D | mknetid.c | 86 static int curline; /* current line parsed in this file */ 165 char line[MAXLINELEN]; local 171 while (lp = getaline(line, sizeof (line), mf, &curline, "#")) { 212 char line[MAXLINELEN]; local 218 while (lp = getaline(line, sizeof (line), gf, &curline, "")) { 243 char line[MAXLINELEN]; local 251 while (lp = getaline(line, sizeof (line), p 284 char line[MAXLINELEN]; local [all...] |
/illumos-gate/usr/src/cmd/pools/poold/ |
H A D | poold.c | 156 char line[255] = ""; local 162 (void) snprintf(line, sizeof (line), gettext(PNAME_FMT), pname); 164 (void) vsnprintf(line + strlen(line), sizeof (line) - strlen(line), 167 if (line[strlen(line) - 1] != '\n') 168 (void) snprintf(line [all...] |
/illumos-gate/usr/src/cmd/power/ |
H A D | conf.c | 119 * and follow with a filename and line number if an 127 "\"%s\" line %d, ", power_conf, lineno); 357 tmp_save_line(char *line, size_t len, cinfo_t *cip) argument 361 tmp_write(line, len); 369 filter(char *line, size_t len, cinfo_t *cip) argument 376 * OR: it's both OK to accept the conf line (alt) AND either: 385 tmp_save_line(line, len, cip); 390 * Set checkup for conf line selection and parse a conf file with filtering. 410 search(char *line, size_t len, cinfo_t *cip) argument 420 tmp_save_line(line, le [all...] |
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | powertop.h | 97 struct line { struct 163 * Command line arguments
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lpc.c | 515 char line[256]; local 524 if (fgets(line, sizeof (line), stdin) == NULL) 526 if ((av = strsplit(line, " \t\n")) != NULL)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | utils.c | 507 static char line[256]; /* line to be logged accumulated here */ variable 517 (void) strlcpy(line, prefix, sizeof(line)); 518 linep = line + strlen(line); 520 if (linep != line) 521 syslog(level, "%s", line); 587 if (linep + n + 1 > line + sizeof(line)) { [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | parms.c | 257 /* Move p to the end of the line */ 264 /* truncate the line to remove trailing spaces */ 273 msglog("%s in line %u of "PATH_GATEWAYS, 593 parse_parms(char *line, argument 616 /* "subnet=x.y.z.u/mask[,metric]" must be alone on the line */ 617 if (strncasecmp(line, "subnet=", sizeof ("subnet=") - 1) == 0 && 618 *(val = &line[sizeof ("subnet=") -1 ]) != '\0') { 620 return (bad_str(line)); 630 return (bad_str(line)); 638 return (bad_str(line)); [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 67 char *line, *lstart; local 84 line = lstart = get_sum_line(); 85 line += snprintf(line, MAXLINE, "DHCPv6 %s", 90 (void) strlcpy(line, "?", 91 MAXLINE - (line - lstart)); 98 line += snprintf(line, MAXLINE - (line - lstart), 108 (void) strlcpy(line, " [all...] |
H A D | snoop_dns.c | 55 static size_t print_question(char *line, const uchar_t *header, 57 static size_t print_answer(char *line, const uchar_t *header, 60 static void print_ip(int af, char *line, const uchar_t *data, uint16_t len); 63 static size_t print_char_string(char *line, const uchar_t *data, uint16_t len); 66 static size_t print_domain_name(char *line, const uchar_t *header, 74 char *line; local 115 line = get_sum_line(); 116 line += sprintf(line, "%s %c ", 133 (void) print_answer(line, 334 print_question(char *line, const uchar_t *header, const uchar_t *data, const uchar_t *data_end, int detail) argument 450 print_answer(char *line, const uchar_t *header, const uchar_t *data, const uchar_t *data_end, int detail) argument 746 print_ip(int af, char *line, const uchar_t *data, uint16_t len) argument 795 print_char_string(char *line, const uchar_t *data, uint16_t len) argument 906 print_domain_name(char *line, const uchar_t *header, const uchar_t *data, const uchar_t *data_end) argument [all...] |
H A D | snoop_icmp.c | 68 char *line; local 367 line = get_sum_line(); 370 (void) sprintf(line, "ICMP %s (%s)%s", 373 (void) sprintf(line, "ICMP %s (%s)", pt, pc); 376 (void) sprintf(line, "ICMP %s", pt); 446 char *line; local 588 line = get_sum_line(); 590 (void) sprintf(line, "ICMPv6 %s (%s)", pt, pc); 592 (void) sprintf(line, "ICMPv6 %s", pt);
|
H A D | snoop_mip.c | 41 * this to be MAXLINE (the maximum verbose display line length) - 290 char *line; local 494 line = get_sum_line(); 497 (void) sprintf(line, "Mobile IP %s(%s)", pt, pc); 499 (void) sprintf(line, "Mobile IP %s", pt);
|
H A D | snoop_nlm.c | 153 char *line; local 163 line = get_sum_line(); 166 (void) sprintf(line, 169 line += strlen(line); 176 (void) strcat(line, sum_netobj("OH")); 178 (void) strcat(line, sum_lock()); 183 (void) strcat(line, sum_netobj("OH")); 186 (void) strcat(line, sum_lock()); 191 (void) strcat(line, sum_netob 517 char *line, *pl; local 806 char *line; local [all...] |
H A D | snoop_rpc.c | 308 char *p, *line; local 330 line = get_line(pos, len * 4); 332 (void) sprintf(line, " Groups = (none)"); 334 (void) sprintf(line, " Groups = "); 335 line += strlen(line); 338 (void) sprintf(line, "%d ", gid); 339 line += strlen(line); 761 check_retransmit(line, xi [all...] |
/illumos-gate/usr/src/cmd/col/ |
H A D | col.c | 54 wchar_t lbuff[LINELN], *line; variable 131 line = lbuff; 136 if (*line) { 139 *line = 'X'; 141 *line = temp_off = '\0'; 149 if (*line) 151 *line = ESC; 153 *line = 'Y'; 155 *line = '\0'; 169 case '7': /* reverse full line fee [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | crontab.c | 81 #define EOLN "unexpected end of line." 82 #define UNEXPECT "unexpected character found in line." 108 char line[CTLINESIZE]; variable 241 while (fgets(line, CTLINESIZE, fp) != NULL) 242 fputs(line, stdout); 273 while (fgets(line, CTLINESIZE, fp) != NULL) { 274 fputs(line, tmpfp); 435 while (fgets(line, CTLINESIZE, fp) != NULL) { 437 while (line[cursor] == ' ' || line[curso [all...] |
/illumos-gate/usr/src/cmd/csplit/ |
H A D | csplit.c | 30 * csplit - Context or line file splitter 56 char linbuf[LINSIZ]; /* Input line buffer */ 69 offset_t curline; /* Current line in input file */ 289 * Findline returns the line number referenced by the current argument. 294 * line after the previously referenced line. The while loop checks 295 * that there are more lines(error if none), bumps the line count, and 296 * checks for the R.E. on each line. If the R.E. matches on one of the 297 * lines the old stream location is restored, and the line number 308 if (curline != (offset_t)1 || benhere) /* If first line, firs 429 line_arg(char *line) argument [all...] |
/illumos-gate/usr/src/cmd/diff/ |
H A D | diff.h | 101 struct line { struct 104 } *file[2], line; variable in typeref:struct:line 112 int a; /* start line in old file */ 113 int b; /* end line in old file */ 114 int c; /* start line in new file */ 115 int d; /* end line in new file */ 153 struct line *sfile[2]; /* shortened by pruning common prefix and suffix */
|
/illumos-gate/usr/src/cmd/diff3/ |
H A D | diff3prog.c | 56 * from = to = line after point of insertion 66 * the "new" component of de contains line positions 81 static char line[LINE_MAX+1]; variable 84 * the number of the last-read line in each file 89 * the latest known correspondence between line 175 * pick up the line numbers of all changes from 202 p = line; 251 if (digit(line[0])) 260 for (i = 0; i < sizeof (line)-1; i++) { 263 line[ [all...] |
/illumos-gate/usr/src/cmd/lvm/util/ |
H A D | metainit.c | 123 uint_t line; local 128 for (line = 0; (line < tabp->nlines); ++line) { 129 md_tab_line_t *linep = &tabp->lines[line]; 701 * mainline. crack command line arguments. 807 /* sname is MD_LOCAL_NAME if not specified on the command line */
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | cmd2.c | 56 static int svputs(const char *line, FILE *obuf); 57 static int wrputs(const char *line, FILE *obuf); 328 svputs(const char *line, FILE *obuf) argument 331 wr_charcount += strlen(line); 332 return (fputs(line, obuf)); 336 wrputs(const char *line, FILE *obuf) argument 339 * If this is a header line or 340 * the last line, don't write it out. Since we may add a 341 * "Status" line the line coun [all...] |