/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 65 static int dir_dev_acc(char *, char *, uid_t, gid_t, mode_t, char *line, 164 char line[MAX_LINELEN], errstring[MAX_LINELEN]; local 190 while (fgets(line, MAX_LINELEN, fp) != NULL) { 196 if ((ptr = strchr(line, '#')) != NULL) 199 (void) strcpy(saveline, line); 201 console = strtok_r(line, field_delims, &last); 218 ": line %d, invalid entry -- %s\n", 219 lineno, line); 232 ": line %d, invalid mode -- %s\n", 245 ": line 335 check_driver_match(char *path, char *line) argument 429 dir_dev_acc(char *path, char *left_to_do, uid_t uid, gid_t gid, mode_t mode, char *line, void (*errmsg)(char *)) argument 788 char line[MAX_MINOR_PERM_LINE]; local 1118 is_blank(char *line) argument [all...] |
/illumos-gate/usr/src/lib/libdhcputil/common/ |
H A D | dhcp_inittab.c | 170 unsigned long line = 0; local 196 line++; 202 inittab_msg("inittab_lookup: line %li: too long, " 203 "skipping", line); 221 inittab_msg("inittab_lookup: line %li: syntax error, " 222 "skipping", line); 230 inittab_msg("inittab_lookup: line %li: granularity `%s'" 231 " out of range, skipping", line, fields[ITAB_GRAN]); 236 inittab_msg("inittab_lookup: line %li: maximum `%s' " 237 "out of range, skipping", line, field [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | history.c | 67 GlhLineSeg *next; /* The next sub-string of the history line */ 69 /* substring of a line, as indicated by 'next' */ 85 * Each history line will be represented in the hash table by a 93 GlhLineSeg *head; /* The list of sub-strings which make up a line */ 94 int len; /* The length of the line, excluding any '\0' */ 98 /* a line isn't reported redundantly. */ 106 static int _glh_is_line(GlhHashNode *hash, const char *line, size_t n); 107 static int _glh_line_matches_prefix(GlhHashNode *line, GlhHashNode *prefix); 108 static void _glh_return_line(GlhHashNode *hash, char *line, size_t dim); 118 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line, 139 GlhHashNode *line; /* The hash-table entry of the history line */ member in struct:GlhLineNode 403 _glh_add_history(GlHistory *glh, const char *line, int force) argument 530 _glh_find_backwards(GlHistory *glh, char *line, size_t dim) argument 618 _glh_find_forwards(GlHistory *glh, char *line, size_t dim) argument 741 _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len) argument 792 _glh_oldest_line(GlHistory *glh, char *line, size_t dim) argument 865 _glh_current_line(GlHistory *glh, char *line, size_t dim) argument 956 _glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim) argument 1155 _glh_load_history(GlHistory *glh, const char *filename, const char *comment, char *line, size_t dim) argument 1955 _glh_lookup_history(GlHistory *glh, GlhLineID id, const char **line, unsigned *group, time_t *timestamp) argument 2169 _glh_acquire_copy(GlHistory *glh, const char *line, size_t n) argument 2331 glh_find_bucket(GlHistory *glh, const char *line, size_t n) argument 2355 glh_find_hash_node(GlhHashBucket *bucket, const char *line, size_t n) argument 2383 _glh_is_line(GlhHashNode *hash, const char *line, size_t n) argument 2417 _glh_line_matches_prefix(GlhHashNode *line, GlhHashNode *prefix) argument 2467 _glh_return_line(GlhHashNode *hash, char *line, size_t dim) argument 2497 _glh_prepare_for_recall(GlHistory *glh, char *line) argument 2555 glh_init_stream(GlhLineStream *str, GlhHashNode *line) argument [all...] |
/illumos-gate/usr/src/lib/libzoneinfo/common/ |
H A D | libzone.c | 102 char *lp; /* line pointer */ 208 char *lp, *lptr, *lp_coord, *lp_cc, *lp_tz; /* line pointer */ 1323 * skipline() checks if the line begins with a comment 1324 * comment character anywhere in the line, or if the 1325 * line is only whitespace. 1326 * skipline() also checks if the line read is too long to 1328 * skipline() returns 1 if the line can be skipped, -1 if 1329 * the line read is too long, and 0 if the line should not be skipped. 1332 skipline(char *line) argument [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_db.c | 437 char line[MDDB_BOOTLIST_MAX_LEN]; local 548 while (fgets(line, MDDB_BOOTLIST_MAX_LEN, cfp) != NULL) { 549 if (fputs(line, mfp) == NULL) 1184 char line[MDDB_BOOTLIST_MAX_LEN]; local 1247 while (fgets(line, sizeof (line), tsfp) != NULL) { 1248 if (fputs(line, mfp) == NULL) 1719 * on the metadb command line. This does not calculate the number
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_sec_mechs.c | 55 /* the min number of fields allowable per line */ 57 /* the max number of fields processed per line */ 178 nextline(fd, line) 180 char *line; 184 if (fgets(line, NIS_SEC_CF_MAX_LINELEN, fd) == NULL) 186 cp = index(line, '\n'); 189 return (line); 343 * Return a ptr to a mechanism entry read from a line of the sec conf file. 357 char **flds; /* line fields */ 360 char line[NIS_SEC_CF_MAX_LINELE local 926 char line[MF_MAX_LINELEN] = {0}; local [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgtrans.c | 89 #define MAP_STAT_SIZE 60 /* 1st line of pkgmap (3 numbers & a : */ 199 * file. Note that we read three values from pkgmap first line in order 214 /* First read the null terminated first line */ 518 char line[128]; local 589 /* skip past first line in header */ 590 (void) mgets(line, 128); 991 * temporary string allowing for the first line 1078 * temporary string allowing for the first line 1461 char line[128]; local 1462 (void) mgets(line, 12 [all...] |
/illumos-gate/usr/src/lib/libpp/common/ |
H A D | ppproto.c | 69 int line; /* input line count */ member in struct:proto 268 if (proto->line) 278 p = strcopy(p, "line "); 279 p = number(p, proto->line); 333 * generate line sync 345 p = strcopy(p, "\n#line "); 561 int line; local 634 proto->line++; 853 proto->line [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | crypt.c | 373 char line[BUFSIZ]; local 389 (fgets(line, sizeof (line), pconf) != NULL)) { 390 if (strncasecmp(CRYPT_DEFAULT, line, 395 policy->cp_default = getval(line); 398 if (strncasecmp(CRYPT_ALGORITHMS_ALLOW, line, 406 policy->cp_allow = getval(line); 409 if (strncasecmp(CRYPT_ALGORITHMS_DEPRECATE, line, 417 policy->cp_deny = getval(line); 491 char line[CRYPT_CONFLINELENGT local [all...] |
H A D | getutx.c | 409 * USER_PROCESS with the same "line" as the specified "entry". 447 * USER_PROCESS with the same "line" as the specified "entry". 492 char user[STRSZ], id[STRSZ], line[STRSZ], pid[STRSZ], type[STRSZ], local 504 * Convert the utmp struct to strings for command line arguments. 510 (void) strncpy(line, entryx->ut_line, sizeof (entryx->ut_line)); 511 line[sizeof (entryx->ut_line)] = '\0'; 533 argvec[3] = line;
|
/illumos-gate/usr/src/cmd/vi/misc/ |
H A D | ctags.c | 80 bool f; /* use pattern or line no */ 91 number, /* T if on line starting with # */ 92 gotone, /* found a func already on line */ 109 static int lineno; /* line number of current line */ 111 line[4*BUFSIZ], /* current input line */ variable 494 sp = tp = token = line; 576 if (sp == line) 590 if (sp == line) [all...] |
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_icap.c | 680 /* Reserve space to later insert encapsulation offsets, & blank line */ 691 /* Encapsulated request header (req_hdr) & blank line */ 708 /* Encapsulated response header (res_hdr) & blank line */ 787 /* Break on error or non-blank line. */ 814 * As each line is read it is parsed and passed to the appropriate handler. 826 /* Break on error or blank line. */ 833 /* Empty line (CR/LF) normal break */ 944 /* Break on error or blank line. */ 949 /* Empty line (CR/LF) normal break */ 1124 syslog(LOG_ERR, "ICAP protocol error - expected blank line"); 1319 vs_icap_parse_hdrs(char delimiter, char *line, char **name, char **val) argument 1354 vs_icap_resp_violations(vs_scan_ctx_t *ctx, int hdr_id, char *line) argument 1432 vs_icap_opt_value(vs_scan_ctx_t *ctx, int hdr_id, char *line) argument 1504 vs_icap_resp_istag(vs_scan_ctx_t *ctx, int hdr_id, char *line) argument 1562 vs_icap_opt_ext(vs_scan_ctx_t *ctx, int hdr_id, char *line) argument 1610 vs_icap_resp_infection(vs_scan_ctx_t *ctx, int hdr_id, char *line) argument 1680 vs_icap_resp_virus_id(vs_scan_ctx_t *ctx, int hdr_id, char *line) argument 1705 vs_icap_resp_encap(vs_scan_ctx_t *ctx, int hdr_id, char *line) argument 1831 vs_icap_make_strvec(char *line, const char *sep) argument [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/ |
H A D | picld_pluginutil.c | 69 "%s::%s[line %d]: Insufficient token\n", /* 1 */ 70 "%s::%s[line %d]: Syntax error\n", /* 2 */ 71 "%s::%s[line %d]: Unsupported or missing version\n", /* 3 */ 72 "%s::%s[line %d]: Illegal use of nodepath or namepath\n", /* 4 */ 73 "%s::%s[line %d]: Node and endnode mismatch\n", /* 5 */ 74 "%s::%s[line %d]: General system failure\n", /* 6 */ 76 "%s::%s[line %d]: Table and endtable mismatch\n", /* 8 */ 77 "%s::%s[line %d]: Row and endrow mismatch\n", /* 9 */ 78 "%s::%s[line %d]: Row has no entries \n" /* 10 */ 213 parse_version(cmdbuf_t *cmds, char *line) argument 261 parse_path(char *line, command_t *command) argument 310 parse_node(char *line, command_t *command) argument 521 get_string_token(char *line, char **valtok) argument 593 parse_prop(char *line, command_t *command) argument 762 parse_refnode(char *line, command_t *command) argument 854 parse_refprop(char *line, command_t *command) argument 954 parse_table(char *line, command_t *command) argument 1083 parse_verbose(cmdbuf_t *cmds, char *line, command_t *command) argument [all...] |
/illumos-gate/usr/src/cmd/ptools/pstack/ |
H A D | pstack.c | 500 int line, void *handle) 508 if (line) 509 (void) printf(" (line %d)", line); 499 print_java_frame(void *cld, prgregset_t gregs, const char *name, int bci, int line, void *handle) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 71 /* maximum allowed length of an inetd.conf format line */ 78 /* fields as read from inetd.conf format line */ 422 (void) fprintf(stderr, gettext("%s: Error %s line %d " 473 "%s: Error %s line %d invalid RPC " 485 (void) fprintf(stderr, gettext("%s: Error %s line %d " 497 gettext("%s: Error %s line %d invalid wait-status: %s\n"), 506 gettext("%s: Error %s line %d unknown user: %s\n"), 533 "%s: Error %s line %d the SUNWcnsr and SUNWcnsu" 537 (void) fprintf(stderr, gettext("%s: Error %s line %d " 544 "%s: Error %s line 575 line_to_inetconfent(char *line) argument 661 char line[MAX_SRC_LINELEN]; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_display.c | 197 char *line; local 199 line = get_detail_line(begin, end); 200 (void) strcpy(line, prot_nest_prefix); 201 (void) strcat(line, prot_prefix); 202 return (line + strlen(line)); 760 int chunk = 16; /* 16 bytes per line */
|
H A D | snoop_ether.c | 784 static char line[512]; local 786 sprintf(line, "TR Source Route dir=%d, mtu=%d", 792 sprintf(line+strlen(line), ", Route: "); 795 sprintf(line+strlen(line), "(%d)", 798 sprintf(line+strlen(line), "(%d)%d", 803 return (&line[0]);
|
H A D | snoop_ip.c | 230 * a fragmented packet, print out a little line stating this. 594 char *line; local 607 line = get_line(0, 0); 613 (void) strlcpy(line, " - End of option list", remain); 616 (void) strlcpy(line, " - No op", remain); 620 (void) snprintf(line, remain, 625 (void) snprintf(line, remain, 629 (void) snprintf(line, remain, " - RIPSO (%d bytes%s)", 634 (void) snprintf(line, remain, " - CIPSO (%d bytes%s)", 639 (void) snprintf(line, remai 677 char *line; local 1193 char line[100], *ptr; local 1308 char line[CIPSO_GENERIC_ARRAY_LEN], *ptr; local 1421 char line[CIPSO_GENERIC_ARRAY_LEN]; local [all...] |
/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.c | 1187 * default line length is 70 characters including newline 1637 * as we output digits, we have to watch the line length (ll) 1981 char line[100], *sl; local 1994 sl = line; 2000 execl("/usr/bin/sh", "sh", "-c", line, 0);
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | tree.h | 28 * a "variant record" with a type, the filename and line number 93 * regardless of the type of node, filename and line number 96 int line:24; member in struct:node 274 struct node *newnode(enum nodetype t, const char *file, int line); 282 const char *file, int line); 284 const char *file, int line); 285 struct node *tree_iname(const char *s, const char *file, int line); 286 struct node *tree_globid(const char *s, const char *file, int line); 292 const char *file, int line); 293 struct node *tree_num(const char *s, const char *file, int line); [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_conf.c | 712 int line, errs = 0; local 726 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) { 740 fmd_error(EFMD_CONF_KEYWORD, "\"%s\", line %d: " 742 file, line, tokv[0]); 748 fmd_error(errno, "\"%s\", line %d", file, line);
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | symtab.c | 119 symtab_new_function(const int line, const char *file) argument 122 Symtab.Line = line; /* Set, don't clear. */ 140 * values. Called on each prototype line and at beginning 353 symtab_set_function(char *name, int line, char *file, argument 359 name, line, file, PRIMITIVE, type, basetype, levels, "", -1, -1); 374 symtab_set_exception(char *value, int line, char *file) argument 379 value, line, file, COMPOSITE, "", "", 0, "", -1, -1); 395 symtab_set_errval(char *name, int line, char *file, char *type, char *basetype, argument 401 name, line, file, PRIMITIVE, type, basetype, levels, 421 symtab_add_args(char *name, int line, cha argument 462 symtab_add_varargs(char *name, int line, char *file, char *type, char *print) argument 494 symtab_add_globals(char *name, int line, char *file, char *type, char *basetype, int levels) argument 768 allocate_entry(ENTRY *e, char *name, int line, char *file, int kind, char *type, char *basetype, int levels, char *attribute, int npre, int npost) argument 791 set_entry(ENTRY *e, char *name, int line, char *file, int kind, char *type, char *basetype, int levels, char *attribute, int npre, int npost) argument 863 add_entry_table(EHEAD *t, char *name, int line, char *file, int kind, char *type, char *basetype, int levels, char *attribute, int npre, int npost) argument [all...] |
/illumos-gate/usr/src/cmd/audio/audioctl/ |
H A D | audioctl.c | 395 char line[128]; local 412 line[0] = '\0'; 423 (void) strlcat(line, cbuf, sizeof (line)); 425 (void) strlcat(line, colsep, sizeof (line)); 428 (void) fprintf(sfp ? sfp : stdout, "%s\n", line); 532 * display the first choice on the same line, then display 1126 warn(_("Warning: line too long at line [all...] |
/illumos-gate/usr/src/cmd/avs/sdbc/ |
H A D | sd_trace.c | 136 char buf[8192], c, *cp = buf, *line, *blank, *empty; local 141 line = cp; 153 if (line != cp) 445 (void) mvprintw(20 + j, 1, "* -- disk off-line"); 960 (void) mvprintw(25 + j, 1, "* -- disk off-line");
|
/illumos-gate/usr/src/cmd/captoinfo/ |
H A D | captoinfo.c | 1396 /* Look at the current line to see if it is a list of names. */ 1402 getterm_name(char *line) argument 1404 char *lineptr = line; 1407 (void) fprintf(trace, "extracting name from '%s'.\n", line); 1410 if (*line == '#') { 1412 (void) printf("%s", line); 1415 else if (isspace (*line)) { 1430 "returning %s.\n", line); 1431 return (line);
|