/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | exportent.c | 88 static char *line = NULL; local 93 if (line == NULL) { 94 line = (char *)malloc(LINESIZE + 1); 96 if (fgets(line, LINESIZE, f) == NULL) { 99 len = strlen(line); 100 if (line[len-1] == '\n') { 101 line[len-1] = 0; 103 xent.xent_dirname = line; 105 p = skipnonwhite(line);
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_class.c | 212 char line[256]; local 227 while (fgets(line, 256, fp) != NULL) { 228 s = line + strspn(line, " \t\r\n");
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getvfsent.c | 172 char *tmp, *line; local 174 line = tsdalloc(_T_GETVFSENT, VFS_LINE_MAX, NULL); 175 if (line == NULL) 179 if ((ret = getaline(line, fd)) != 0) 183 GETTOK_R(vfs_special, line, &tmp);
|
/illumos-gate/usr/src/lib/libipsecutil/common/ |
H A D | ipsec_libssl_setup.c | 268 solaris_locking_callback(int mode, int type, char *file, int line) argument
|
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | revnetgroup.c | 46 * one of "-h" means reverse by hostname. Each line in the output file 274 char *line; local 292 STRCPY(line, p); 293 store(ngtable, group, line);
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | stdhosts.c | 72 char line[INPUTSIZ]; local 80 int lineno = 0; /* Input line counter */ 116 (fgetsp = fgets(line, sizeof (line), fp)) != NULL) { 120 if ((commentp = strchr(line, '#')) != NULL) { 121 if ((line[strlen(line) - 1] != '\n') && 122 (strlen(line) >= (sizeof (line) - 1))) { 124 * Discard the remainder of the line [all...] |
H A D | ypserv_net_secure.c | 71 int items = 0, line = 0; local 76 line++; 79 "%s: %s line %d: too long\n", 80 daemon_name, ACCFILE, line); 89 "%s: %s line %d: missing fields\n", 90 daemon_name, ACCFILE, line); 96 "%s: %s line %d: error in address\n", 97 daemon_name, ACCFILE, line); 104 "%s: %s line %d: error in netmask\n", 105 daemon_name, ACCFILE, line); [all...] |
/illumos-gate/usr/src/common/net/wanboot/ |
H A D | bootconf.c | 88 * B_FALSE - error (return code in handle->bc_error_code, line number 96 char line[BC_MAX_LINE_LENGTH]; local 108 while (fgets(line, sizeof (line), fp) != NULL) { 110 char *p = line; 117 * Strip off the '\n' at the end of the line. 119 if ((i = strlen(line)) < 1) { 122 } else if (line[i - 1] != '\n') { 126 line[i - 1] = '\0'; 134 * Blank line/commen [all...] |
/illumos-gate/usr/src/head/ |
H A D | dial.h | 59 #define L_PROB (-6) /* line problem (open() failure) */ 72 char *line; /* device name for out-going line */ member in struct:__anon2247
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | addbib.c | 92 "Invalid command line flag: %s\n"), argv[i]); 111 char line[BUFSIZ]; local 115 fgets(line, BUFSIZ, stdin); 116 if (line[0] == 'y' || line[0] == 'Y') 123 if (fgets(line, BUFSIZ, stdin) == NULL) { 127 if (line[0] == '-' && line[1] == '\n') { 134 } else if (line[strlen(line) 190 trim(char line[]) argument [all...] |
H A D | refer2.c | 47 char answer[ANSLEN], temp[TLEN], line[BUFSIZ]; local 55 while (input(line)) { /* get query */ 57 if (prefix(".]", line)) 59 if (biblio && line[0] == '\n') 61 if (biblio && line[0] == '%' && line[1] == *convert) 63 if (control(line[0])) 65 strcat(query ? dbuff : buff, line); 69 err(gettext("record at line %d too long"), Iline-1); 71 if (biblio && line[ [all...] |
H A D | refer6.c | 134 tabs(char *sv[], char *line) argument 139 sv[n++] = line; 140 for (p = line; *p; p++) {
|
H A D | sortbib.c | 94 int rsmode = 0; /* record separator: 1 = null line, 2 = bracket */ 102 char line[BUF], fld[4][BUF]; /* one line, the sort fields */ local 104 /* measure byte offset, then get new line */ 105 while (offset = ftell(fp), fgets(line, BUF, fp)) { 108 if (line[0] == '\n') { /* accept null line record separator */ 110 rsmode = 1; /* null line mode */ 114 if (line[0] == '.' && line[ 208 parse(char line[], char fld[][BUF]) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcp.c | 702 char *line, *tmp, *ap, *fmt; local 705 line = get_line(0, 0); 710 (void) sprintf(line, "\t%s <TOO LONG>", msg); 745 (void) sprintf(line, fmt, msg, buffer);
|
H A D | snoop_nis.c | 131 char *line; local 143 line = get_sum_line(); 146 (void) sprintf(line, 149 line += strlen(line); 154 (void) sprintf(line, " %s", 158 (void) sprintf(line, " %s", 164 check_retransmit(line, xid); 166 (void) sprintf(line, "NISBIND R %s ", 168 line 257 char *line; local [all...] |
H A D | snoop_rpcsec.c | 88 char *handle, *line; local 123 line = get_line(pos, getxdr_pos()); 124 sprintf(line, " handle: length = %d, data = [%s]", 214 char *line; local 229 line = get_sum_line(); 230 sprintf(line, "RPC RPCSEC_GSS C (checksum)"); 330 char *token, *line; local 352 line = get_line(pos, getxdr_pos()); 353 sprintf(line, " gss token: length = %d, data = [%d bytes]", 366 char *handle, *token, *line; local [all...] |
H A D | snoop_tcp.c | 85 char *line, *endline; local 98 line = get_sum_line(); 99 endline = line + MAXLINE; 100 (void) snprintf(line, endline - line, "TCP D=%d S=%d", 102 line += strlen(line); 106 (void) snprintf(line, endline - line, " %s", 108 line 229 char *line; local 339 print_tcpoptions_summary(uchar_t *opt, int optlen, char *line) argument [all...] |
/illumos-gate/usr/src/cmd/dispadmin/ |
H A D | dispadmin.c | 260 int line; local 262 for (line = 1; fgets(buf, BUFSZ, fp) != NULL; line++) { 273 fatalerr("\"%s\", line %d: invalid " 274 "token: %s\n", CONFIGPATH, line, name); 279 fatalerr("\"%s\", line %d: syntax error\n", CONFIGPATH, 280 line); 284 if (line == 1)
|
H A D | fssdispadmin.c | 197 int line; local 214 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) { 222 * side, terminated by a newline, and consuming the whole line. 233 fatalerr("%s, line %d: illegal " 234 "resolution value\n", infile, line); 243 fatalerr("%s, line %d: illegal time " 244 "quantum value\n", infile, line); 249 fatalerr("%s, line %d: invalid token\n", 250 infile, line); [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_debug.c | 162 mdb_dassert(const char *expr, const char *file, int line) argument 164 fail("\"%s\", line %d: assertion failed: %s\n", file, line, expr);
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | out.c | 241 * out -- spew a line of output, with various options 258 outfl(int flags, const char *fname, int line, const char *fmt, ...) argument 264 out(flags|O_NONL, "%s:%d: ", fname, line);
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_subr.c | 49 fmd_assert(const char *expr, const char *file, int line) argument 51 fmd_panic("\"%s\", line %d: assertion failed: %s\n", file, line, expr); 254 fmd_trace_cpp(void *ptr, const char *file, int line) argument 260 trp->tr_line = line;
|
/illumos-gate/usr/src/cmd/fold/ |
H A D | fold.c | 68 static wchar_t line[LINE_MAX]; variable 69 static wchar_t *lastout = line; 70 static wchar_t *curc = line; 105 * the new command line without -width. 107 * new command line. 119 /* Build the new command line */ 258 (void) wscpy(tline, line); 265 * for the new line. 267 (void) wscpy(line, tline); 279 if ((curc + 1) >= (line [all...] |
/illumos-gate/usr/src/cmd/sendmail/aux/ |
H A D | mailcompat.c | 97 /* read message from standard input (just from line) */ 113 ** Reads first line from standard input. 123 static char line[MAXLINE]; local 136 /* read the line */ 137 while (fgets(line, sizeof line, stdin) != NULL) 139 if (line[0] == (char)'\n') /* end of mail headers */ 141 if (in_body && (strncmp(line, "From ", 5) == 0)) 143 if (in_body || (strncasecmp(line, L_HEADER, LL_HEADER) != 0)) 144 fputs(line, mail_f 153 static char line[MAXLINE]; local 270 char line[MAXLINE]; local 326 char line[MAXLINE]; local [all...] |
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | pnpsplit.c | 188 register int line = 0, local 212 else if(++line == 1) { /* format: year p-start np-start */
|