/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | ids.c | 51 /** Initialize the pci.ids line iterator to the beginning of the file */ 61 /** Get the next line from pci.ids 63 * @param line_len Pointer to where number of bytes in line will 65 * @return Pointer to the line; only valid until the 72 static char line[PCI_IDS_MAX_LINE_LEN]; local 78 line[i] = pci_ids[pci_ids_iter_pos]; 81 line[i] = '\0'; 87 return line; 121 char *line; local 147 line 349 static char line[USB_IDS_MAX_LINE_LEN]; local 391 char *line; local [all...] |
/illumos-gate/usr/src/cmd/hal/probing/xkb/ |
H A D | probe-xkb.c | 40 static char line[MAXLINELEN + 1]; variable 154 ptr = fgets(line, MAXLINELEN, fp); 162 /* Comment line */ 167 /* Blank line */ 207 if ((type = strtok(line, " \t\n")) == NULL) {
|
/illumos-gate/usr/src/cmd/idmap/idmap/ |
H A D | idmap_engine.c | 40 /* The maximal line length. Longer lines may not be parsed OK. */ 218 line2array(const char *line) argument 224 for (cur = line; len = get_param(¶m, cur); cur += len) { 262 * WordCompletion *cpl; const char *line; int word_end are 270 (void) line2array(line); 273 /* Beginning of the line: */ 276 (void) cpl_add_completion(cpl, line, word_end, 282 if (isspace(line[word_end - 1])) 292 (void) cpl_add_completion(cpl, line, 324 (void) cpl_add_completion(cpl, line, 351 const char *line; local 432 char line[MAX_CMD_LINE_SZ]; local [all...] |
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipnat_y.y | 113 file: line 115 | file line 119 line: xx rule { while ((nat = nattop) != NULL) { label
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keylogin.c | 116 char line[MAXROOTKEY_LINE_LEN]; local 161 while (fgets_ignorenul(line, MAXROOTKEY_LINE_LEN, bakfile)) { 162 if (sscanf(line, "%s %d", keyent, &atent) < 2) { 170 * 192-bit keys always go on the first line 178 fprintf(rootfile, "%s", line); 194 fprintf(rootfile, "%s", line);
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | convutf8.c | 570 const char *line; local 573 line = CHARCONVTABLE[i]; 574 while (line != NULL) 576 if (*line == 0) 581 strcpy(buf, line); 582 line = CHARCONVTABLE[++i];
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | lsdbf.c | 64 static char *dbfrderror = "Error reading data base file: line %d"; 65 static char *dbfbadlmsg = "Data base file: Error on line %d"; 67 static char *dbfunknown = "Unknown error reading data base file: line %d"; 71 static int Dbflineno; /* current line number in dbf */ 167 DEBUG((7, "svc code <%s>; id: %s; private address: %s; modules: %s; cmd line: %s; sflags: %x, prognum: %d version: %d", 178 DEBUG((7, "svc code <%s>; id: %s; r1: %s; r2: %s; r3: %s; private address: %s; modules: %s; cmd line: %s; sflags: %x, prognum: %d version: %d", 309 cmd_p += strlen(module_p) + 1; /* cmd line + null char */ 388 * rd_dbf_line: Returns the next non-comment line into the 393 * other = cmd line size incl. terminating null. 403 * cnd_line_p points to null terminated cmd line; 723 char *line, *p, *tmp; local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | dockdeps.c | 312 char *pt, *new, line[LSIZE]; local 335 if (!fgets(line, LSIZE, fp)) 338 for (pt = line; isspace(*pt); /* void */) 343 if (pt == line) { 346 (void) sscanf(line, SSCANF_FORMAT, &type, abbrev, name);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | special.c | 51 /* This specifies the maximum length of a contents file line read in. */ 244 char line[2048]; local 282 for (i = 0; fgets(line, 2048, fp) != NULL; i++); 289 for (i = 0; fgets(line, 2048, fp) != NULL; ) { 291 if (line[0] == '#' || line[0] == ' ' || line[0] == '\n' || 292 line[0] == '\t' || line[0] == '\r') 294 n = strlen(line); 509 char line[LINESZ]; /* Reads in and writes out contents lines. */ local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/ |
H A D | check.c | 242 char line[PATH_MAX+1]; local 286 /* read and process each preremove check data line */ 288 while (fgets(line, sizeof (line), fp) != (char *)NULL) { 292 /* remove all new-lines from end of line */ 294 len = strlen(line); 295 while ((len > 0) && (line[len-1] == '\n')) { 296 line[--len] = '\0'; 301 if (line[0] == '#') { 307 if (line[ [all...] |
/illumos-gate/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 120 (void) fprintf(stderr, gettext("line %1$d: %2$s:\n"), linenum, 247 /* was a template name provided on the command line? */ 250 /* use common tnrhdb line conversion function */ 406 char line[2048], *cp; local 418 while (fgets(line, sizeof (line), fp) != NULL) { 419 if ((cp = strchr(line, '\n')) != NULL) 423 if ((zc = tsol_sgetzcent(line, &err, &errstr)) == NULL) {
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmttydefs.c | 70 static char line[BUFSIZ]; local 97 /* Start searching for the line with the proper "id". */ 100 line[0] = '\0'; 101 for (ptr= line,oldc = '\0'; ptr < &line[sizeof(line)-1] && 109 /* skip rest of the line */ 118 if (ptr == line) break; 122 /* if empty line, skip */ 123 for (ptr=line; *pt [all...] |
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | forth.c | 45 * blank line. In the specific-member case, an optional format specifier can 292 fth_process_line(char *line) argument 299 if (strlen(line) == 0) { 310 if (line[0] == '\\') 313 if (strcmp(line, "model_end") == 0) { 322 if (strncmp(line, word, strlen(word)) == 0) { 323 for (c = line + strlen(word); isspace(*c); c++); 332 if (strcmp(line, "verbatim_end") == 0 || 333 strcmp(line, "forth_end") == 0) { 334 char *start = (strcmp(line, "verbatim_en [all...] |
H A D | genassym.c | 90 ga_parse_tokens(char *line, int max, char ***wret) argument 92 char *c = line; 99 for (n = 1, word = strtok(line, " \t"); word != NULL; 111 ga_parse_common(char *line, int min, int max, char **w1, char **w2, char **w3) argument 120 if ((nread = ga_parse_tokens(line, max, wret)) < min) 137 ga_parse_name(char *line, char **cnp, char **szdp, char **shdp) argument 139 return (ga_parse_common(line, 1, 3, cnp, szdp, shdp)); 146 ga_parse_member(char *line, char **mnp, char **offp) argument 148 return (ga_parse_common(line, 1, 2, mnp, offp, NULL)); 156 ga_process_name(char *line) argument 288 ga_process_member(ctf_id_t curtype, char *line) argument 299 ga_process_line(char *line) argument [all...] |
/illumos-gate/usr/src/tools/lintdump/ |
H A D | lintdump.c | 189 LINE line; local 196 line = rec.l; 197 if (line.decflag & LND) /* end-of-pass marker */ 205 if (line.decflag & LFN) { 216 nargs = line.nargs; 217 if (line.decflag & (LIB|LDS|LDI|LPR|LDX|LDC|LRV|LUE|LUV|LUM)) { 221 if (line.decflag & LDS) 223 else if (line.decflag & (LPR|LDX|LDC)) 233 print_atype(&line.type, line [all...] |
/illumos-gate/usr/src/tools/protocmp/ |
H A D | protodir.c | 84 parse_proto_line(const char *basedir, char *line, elem_list *list, short arch, argument 92 (void) strcpy(p_line, line); 99 (void) fprintf(stderr, "error: bad line(type) : %s\n", line); 106 (void) fprintf(stderr, "error: bad line(class) : %s\n", line); 118 (void) fprintf(stderr, "error: bad line(file_name) : %s\n", 119 line); 163 "error: bad line(major number) : %s\n", 164 line); 257 parse_proto_link(const char *basedir, char *line, elem_list *list, short arch, const char *pkgname) argument [all...] |
/illumos-gate/usr/src/tools/stabs/ |
H A D | main.c | 35 int line; variable 170 * field name and name of struct type needs to be included in the next line. 213 fprintf(stderr, "line %d has bad character %c\n", line, c); 329 /* grab each line and add them to our table */ 330 for (line = 1; (cp = fgets(linebuf, MAXLINE, sp)) != NULL; line++) { 372 for (line++; 374 *cp != '\n'; line++) {
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_msg.h | 84 uint32_t line; /* Line number */ member in struct:emlxs_msg_entry
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | pkgparam.c | 155 /* If it's end of line, look for the next parameter. */ 180 begline = B_TRUE; /* Value's line begins */ 225 * Value spans to next line. 236 begline = B_TRUE; /* New input line */ 322 char *pt, *copy, *value, line[PATH_MAX]; local 342 (void) strcpy(line, pkgfile); /* filename was passed */ 344 (void) pkginfofind(line, pkgdir, pkg); 346 if (fp && strcmp(line, lastfname)) { 352 (void) strcpy(lastfname, line);
|
/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
H A D | vmtrace.c | 114 int line = 0; local 129 VMFLF(vm,file,line,func); 154 if(file && file[0] && line > 0) 171 bufp = trstrcpy(bufp, "line", '='); 172 bufp = trstrcpy(bufp, tritoa((Vmulong_t)line,1), 0);
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | err.c | 61 * err_fileline -- record the filename/line number for err(EF_FILE, ...) 64 err_fileline(const char *file, int line) argument 67 Line = line; 115 (void) fprintf(stderr, "%s line %d: ", File, Line); 118 "%s line %d: ", File, Line); 206 #define MAXLINE 8192 /* for tmp file line buffer */ 218 char line[MAXLINE]; local 234 while (fgets(line, MAXLINE, Errorfile) != NULL) 235 (void) fputs(line, pfp); 256 err_malloc(int nbytes, const char *fname, int line) argument 272 err_realloc(void *ptr, int nbytes, const char *fname, int line) argument 288 err_strdup(const char *ptr, const char *fname, int line) argument 311 err_free(void *ptr, const char *fname, int line) argument [all...] |
/illumos-gate/usr/src/cmd/lp/cmd/ |
H A D | lpfilter.c | 274 int line, local 297 line = bad_headings = 0; 302 line++; 329 LP_ERRMSG1 (WARNING, E_FL_HEADING, line);
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postprint/ |
H A D | postprint.c | 66 * line. 93 * adding -l0 to the command line forces the guess to be made. 133 int line = 1; /* on this line */ variable 262 options(); /* handle the command line options */ 287 * Reads and processes the command line options. Added the -P option so arbitrary 525 * Makes sure all the non-option command line arguments are processed. If we get 714 endline(); /* print the last line */ 733 line = 1; 753 endline(); /* print the current line */ [all...] |
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | fabric_conf.c | 43 static int parse_line(char *line, char *path, char *wwn, char *filename); 45 char *filename, char *line); 95 char *line; local 140 line = tmp_ptr; 151 /* If the line is a comment, read another line */ 152 if (*line == COMMENT_CHAR) { 155 ret = parse_line(line, path, wwn, repos_filename); 158 wwn, repos_filename, line); 168 * Input is paramater 1 - a line fro 180 parse_line(char *line, char *path, char *wwn, char *filename) argument 282 create_ap_instance(char *ap_id, char *wwn_string, char *filename, char *line) argument [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_msg.c | 141 emlxs_msg_log(emlxs_port_t *port, const uint32_t fileno, const uint32_t line, argument 174 (entry->line == line) && 218 entry2->line = entry->line; 248 entry->line = line; 375 const uint32_t line, emlxs_msg_t *msg, 408 if (emlxs_msg_log(port, fileno, line, msg, va_str)) { 457 line, drive 374 emlxs_msg_printf(emlxs_port_t *port, const uint32_t fileno, const uint32_t line, emlxs_msg_t *msg, const char *fmt, ...) argument [all...] |