/illumos-gate/usr/src/lib/libtecla/ |
H A D | libtecla.h | 80 * The getline module provides interactive command-line input, recall 99 * Read a line into an internal buffer of gl. 300 * input line. It is up to this function to figure out where the token 311 * line const char * The current input line. 312 * word_end int The index of the character in line[] which 320 const char *line, int word_end) 390 * know the index at which the filename prefix starts in the input line. 393 * the cursor, or the start of the line, which ever comes first. 451 * gl GetLine * The resource object of the command-line inpu 845 const char *line; /* The requested history line */ member in struct:__anon4105 [all...] |
/illumos-gate/usr/src/lib/libnsl/ipsec/ |
H A D | algs.c | 191 char line[1024]; local 206 while (fgets(line, sizeof (line), f) != NULL) { 207 if (strncasecmp(line, LIBIPSEC_ALGS_LINE_PROTO, 209 strncasecmp(line, LIBIPSEC_ALGS_LINE_ALG, 211 strncasecmp(line, LIBIPSEC_ALGS_LINE_PKGSTART, 213 strncasecmp(line, LIBIPSEC_ALGS_LINE_PKGEND, 215 if ((token = strtok_r(line, " \t\n", &lasts)) == NULL || 220 "non-recognized start of line"); 225 if (strncasecmp(line, LIBIPSEC_ALGS_LINE_PROT [all...] |
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_files.c | 147 * Parse line into name and object list of properties. 148 * Each line has the format: 153 nwam_line_to_object(char *line, char **objname, void *proplist) argument 155 char *next = line, *prop, *nextprop, *propname, *proptypestr, *nextval; 168 *objname = line; 170 if ((*objname = nwam_tokenize_by_unescaped_delim(line, '\t', &prop)) 420 char line[NWAM_FILE_LINE_MAX]; local 535 while (fgets(line, sizeof (line), fp) != NULL) { 536 if (line[strle [all...] |
/illumos-gate/usr/src/lib/libpam/ |
H A D | pam_impl.h | 157 char line[256]; member in struct:pam_fh 183 int pam_err; /* error if line overflow */
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | dstream.c | 297 char line[LSIZE+1]; local 437 while (ret = ds_gets(line, LSIZE)) { 438 if (strcmp(line, HDR_SUFFIX) == 0) 440 if (!line[0] || line[0] == '#') 451 if (sscanf(line, "%s %d %d %[ 0-9]", toc_pt->pkg,
|
H A D | p12lib.c | 2499 * the SUNWerr macro provides a filename and line #. 2502 ERR_SUNW_error(int function, int reason, char *file, int line) argument 2506 ERR_PUT_error(SUNW_lib_error_code, function, reason, file, line);
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | b.c | 92 int line; variable 121 line = 0; 123 point[line] = p1; /* FINAL NODE */ 136 left(p) = (NODE *)line; 137 point[line++] = p; 242 for (i = 1; i <= line; i++) 330 case FINAL: if (setvec[line] != 1) { 331 setvec[line] = 1; 418 for (i = 1; i <= line; i++) 464 for (i = 0; i <= line; [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvd.c | 790 int line, len, val, toklen; local 820 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) { 844 continue; /* blank line */ 849 /* Get possible location for value (within current line) */ 870 fname, line, tok); 886 fname, line, tok); 891 "file:%s line:%d %s = %d\n", 892 fname, line, tok, val); 909 fname, line, to [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | filesys_rcm.c | 493 get_spec(char *line, char *spec, size_t ssz) argument 498 if (strlcpy(spec, line, ssz) >= ssz) { 500 "line: %s\n", line); 570 char line[MNT_LINE_MAX + 1]; local 591 while (fgets(line, sizeof (line), vfp)) { 597 if (get_spec(line, spec, sizeof (spec)) == -1) { 598 l = line; 603 l = line; [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 81 static char line[200]; variable 250 if (prompt_for_arg(line, sizeof (line), "to") == -1) 378 if (prompt_for_arg(line, sizeof (line), "file") == -1) 496 if (prompt_for_arg(line, sizeof (line), "files") == -1) 590 if (prompt_for_arg(line, sizeof (line), "value") == -1) 611 if (prompt_for_arg(line, sizeo [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | config.c | 76 static int parse_line(char *line, char *argvec[], int argcount); 77 static int readline(FILE *fp, char *line, int length); 229 char line[MAXLINELEN]; local 249 while (readline(fp, line, sizeof (line)) != 0) { 250 (void) strncpy(pline, line, sizeof (pline)); 263 /* Empty line - or comment only line */ 377 * Read from fp. Handle \ at the end of the line by joining lines together. 381 readline(FILE *fp, char *line, in argument 419 parse_line(char *line, char *argvec[], int argcount) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa_supplicant.c | 652 wpa_config_parse_ssid(struct wpa_ssid *ssid, int line, const char *value) argument 660 wpa_printf(MSG_ERROR, "Invalid SSID '%s'.", line, value); 665 wpa_printf(MSG_ERROR, "Too long SSID '%s'.", line, value); 794 "the command line; please use dladm(1M).\n");
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop.c | 70 static char *line; variable 147 line = output_area; 559 * line display. 570 char *lp = line; 630 (void) printf("%s%s%s\n", line, sumline[start], 635 (void) printf("%s%s\n", line, sumline[i]); 689 * gets a buffer which stores one line of information. In summary mode, 690 * the last line generated is the line printed. Instead of changing each 691 * interpreter to add VLAN information to the summary line, th [all...] |
H A D | snoop_nfs3.c | 163 char *line; local 173 line = get_sum_line(); 176 (void) sprintf(line, "NFS C %s", 178 line += strlen(line); 185 (void) sprintf(line, sum_nfsfh3()); 188 (void) sprintf(line, sum_nfsfh3()); 195 (void) sprintf(line, "%s Cookie=%llu for %lu", 203 (void) sprintf(line, 209 (void) sprintf(line, " [all...] |
H A D | snoop_nfs_acl.c | 197 char *line; local 207 line = get_sum_line(); 210 (void) sprintf(line, "NFS_ACL C %s", 212 line += strlen(line); 217 (void) sprintf(line, "%s mask=0x%lx", fh, mask); 220 (void) sprintf(line, sum_nfsfh()); 223 (void) sprintf(line, sum_nfsfh()); 227 (void) sprintf(line, "%s (%s)", fh, 232 (void) sprintf(line, " 291 char *line; local 366 char *line; local 427 sum_nfsstat4(char *line) argument [all...] |
/illumos-gate/usr/src/cmd/coreadm/ |
H A D | coreadm.c | 499 yes(char *name, char *value, int line) argument 506 "\"%s\", line %d: warning: value must be yes or no: %s=%s\n"), 507 PATH_CONFIG, line, name, value); 515 int line; local 533 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) { 541 * side, terminated by a newline, and consuming the whole line. 566 if (yes(name, value, line)) 571 if (yes(name, value, line)) 578 if (yes(name, value, line)) [all...] |
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cpustat.c | 318 char line[1024]; local 328 ccnt = snprintf(line, sizeof (line), "%7.3f %3d %5s ", 331 ccnt += snprintf(line + ccnt, sizeof (line) - ccnt, 335 ccnt += snprintf(line + ccnt, sizeof (line) - ccnt, 339 ccnt += snprintf(line + ccnt, sizeof (line) - ccnt, 342 ccnt += snprintf(line [all...] |
/illumos-gate/usr/src/cmd/deroff/ |
H A D | deroff.c | 42 * Has three flags argument, -w, to cause output one word per line 93 static char *line = NULL; variable 337 if (line == NULL) { 338 if ((line = (char *)malloc(linesize * sizeof (char))) == NULL) { 344 line[lindx] = c; 347 line[lindx] = ' '; 357 * We're just about to add another character to the line 362 if ((line = (char *)realloc(line, 368 line[lind [all...] |
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_drive.c | 451 char line[256], expr1[256], expr2[256], scan[256]; local 486 while (fgets(line, sizeof (line), fp) != NULL) { 492 if ((line[0] == '\0') || (line[0] == '\n') || (line[0] == '#')) 495 /* parse line */ 496 if (((sscanf(line, "\"%[^\"]\" %u %u \"%[^\"]\" \"%[^\"]\"", 501 METACTLRMAP, line);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | init.c | 94 int flgt = 0; /* 1 ==> 't' option -- add To: line to letter */ 97 int fnuhdrtype = 0; /* type of first non-UNIX header line */ 107 /* Default_display indicates whether to display this header line to the TTY */ 186 char line[LSIZE]; /* holds a line of a letter in many places */ variable 227 /* Any header line prefixes listed here WILL be displayed in default mode */
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | collect.c | 65 static int tabputs(const char *line, FILE *obuf); 271 /* got blank line after header, ignore it */ 276 /* got non-header line, save it */ 392 * line to sh -c. 1075 * message, preceding each line with a tab. 1121 tabputs(const char *line, FILE *obuf) argument 1127 else if (line[0] != '\n') 1129 return (fputs(line, obuf)); 1221 /* Read line from stdin, noting any NULL characters. 1226 getaline(char *line, in argument [all...] |
/illumos-gate/usr/src/cmd/man/ |
H A D | makewhatis.c | 75 * While the whatis line is being formed, it is stored in whatis_proto. 336 char *line = whatis_lines->sl_str[i]; local 337 if (i > 0 && strcmp(line, prev) == 0) 339 prev = line; 340 (void) fputs(line, output); 397 * Return whether the line is of one of the forms: 404 name_section_line(char *line, const char *section_start) argument 408 if (strncmp(line, section_start, 3) != 0) 410 line = skip_spaces(line 505 process_man_line(char *line) argument 532 process_mdoc_line(char *line) argument 633 char *line = NULL; local [all...] |
/illumos-gate/usr/src/cmd/drd/ |
H A D | drd_rcm.c | 922 char line[LINEWIDTH]; local 939 bzero(line, LINEWIDTH); 940 curr = line; 944 curr = line + strlen(line); 946 /* format the CPUs for this line */ 949 curr = line + strlen(line); 952 drd_dbg("%s", line); 1154 * Compute the total line widt [all...] |
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | tree.c | 213 newnode(enum nodetype t, const char *file, int line) argument 223 ret->line = line; 470 (left) ? left->line : right->line); 538 ret = newnode(T_EVENT, ename->file, ename->line); 550 tree_name(const char *s, enum itertype it, const char *file, int line) argument 552 struct node *ret = newnode(T_NAME, file, line); 579 outfl(O_ERR, file, line, "unknown class: %s", s); 585 tree_iname(const char *s, const char *file, int line) argument 619 tree_globid(const char *s, const char *file, int line) argument 720 tree_timeval(const char *s, const char *suffix, const char *file, int line) argument 741 tree_num(const char *s, const char *file, int line) argument 750 tree_quote(const char *s, const char *file, int line) argument 759 tree_func(const char *s, struct node *np, const char *file, int line) argument 1017 dodecl(enum nodetype t, const char *file, int line, struct node *np, struct node *nvpairs, struct lut **lutpp, struct stats *countp, int justpath) argument 1081 tree_decl(enum nodetype t, struct node *np, struct node *nvpairs, const char *file, int line) argument 1241 tree_stmt(enum nodetype t, struct node *np, const char *file, int line) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | auto_subr.c | 339 * get_line attempts to get a line from the map, upto LINESZ. A line in 341 * is used at the end of the line. Returns line on success, a NULL on 345 get_line(FILE *fp, char *map, char *line, int linesz) argument 347 register char *p = line; 354 if (fgets(p, linesz - (p-line), fp) == NULL) { 355 return (*line ? line : NULL); /* EOF */ 358 len = strlen(line); [all...] |