/illumos-gate/usr/src/cmd/saf/ |
H A D | sacadm.c | 618 * add the line 684 int line; /* line number entry is on */ local 693 if ((line = find_pm(fp, tag)) == 0) { 700 if (line != 1) { 701 if (copy_file(fp, tfp, 1, line - 1)) { 707 if (copy_file(fp, tfp, line + 1, -1)) {
|
/illumos-gate/usr/src/cmd/sendmail/aux/ |
H A D | mail.local.c | 528 bool fullline = TRUE; /* current line is terminated */ 529 bool prevfl; /* previous line was terminated */ 530 char line[MAXLINE]; local 572 line[0] = '\0'; 573 while (fgets(line, sizeof(line), stdin) != (char *)NULL) 578 prevfl = fullline; /* preserve state of previous line */ 579 while (line[line_len] != '\n' && line_len < sizeof(line) - 2) 584 if (prevfl && lmtprcpts && line[ [all...] |
H A D | vacation.c | 69 #define MAXLINE 256 /* max size of a line */ 252 /* read message from standard input (just from line) */ 377 * Reads first line from standard input. 384 static char line[MAXLINE]; local 388 /* read the from line */ 389 if (fgets(line, sizeof (line), stdin) == NULL || 390 strncmp(line, "From ", 5) != NULL) 392 usrerr("No initial From line"); 397 start = &line[ 577 char line[MAXLINE]; local 754 char line[MAXLINE]; local 1030 char line[MAXLINE]; local 1147 char line[MAXLINE]; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | headers.c | 49 ** DOCHOMPHEADER -- process and save a header line. 54 ** line -- header as a text line. 64 ** Contents of 'line' are destroyed. 71 dochompheader(line, pflag, hdrp, e) 72 char *line; 97 p = line; 182 syserr("553 5.3.0 header syntax error, line \"%s\"", line); 267 ** them and the <address> on the second line 487 xputs(sm_debug_file(), line); local [all...] |
H A D | tls.c | 1672 int line, flags; local 1679 while ((l = ERR_get_error_line_data(CP &file, &line, CP &data, &flags)) 1685 file, line,
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | trace.c | 229 "\"%s\", line %d: Implementation error! " 246 "missing argument in \"%s\" line", kw); 275 int line = LINE; /* TBD */ local 280 seterrline(line, m.mi_filename, key, value); 295 retval = collect_prototype(value, line, m.mi_ext_cnt); 300 retval = collect_include(value, line); 302 errlog(FATAL|INPUT, "Bad include line in spec file"); 308 retval = collect_binding(token, value, line); 313 retval = collect_errval("errno", line); 318 retval = collect_errval(value, line); 485 collect_include(char *p, int line) argument 524 collect_binding(int const token, char *value, int line) argument 548 collect_errval(char *p, int line) argument 717 collect_prototype(char *p, int line, int extcnt) argument [all...] |
/illumos-gate/usr/src/cmd/avs/sv/ |
H A D | svadm.c | 620 * line svn_path was set to \0, so we are finished. 808 char line[1024], rdev[1024], junk[1024]; local 829 while (fgets(line, sizeof (line), fp) != NULL) { 832 i = strlen(line); 837 if (line[i-1] == '\n') 838 line[i-1] = '\0'; 839 else if (i == (sizeof (line) - 1)) { 841 "line %d: line to [all...] |
/illumos-gate/usr/src/cmd/bart/ |
H A D | compare.c | 33 static void extract_fname_ftype(char *line, char *fname, char *type); 41 char **line, char *fname); 42 static void parse_line(char *line, char *fname, char *type, char *size, 46 static void get_token(char *line, int *curr_pos, int line_len, char *buf, 229 parse_line(char *line, char *fname, char *type, char *size, char *mode, argument 235 line_len = strlen(line); 238 get_token(line, &pos, line_len, fname, PATH_MAX); 239 get_token(line, &pos, line_len, type, TYPE_SIZE); 240 get_token(line, &pos, line_len, size, MISC_SIZE); 241 get_token(line, 263 get_token(char *line, int *curr_pos, int line_len, char *buf, int buf_size) argument 283 extract_fname_ftype(char *line, char *fname, char *type) argument 535 read_manifest_line(FILE *fd, char *buf, int buf_size, int start_pos, char **line, char *fname) argument [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | permission.c | 184 /* see if there is a default line */ 355 * Find the line of PERMISSIONS for login. 552 * parse a line in PERMISSIONS and return a vector 568 char *line = buf; local 571 line = _line; /* if no buffer specified, use default */ 576 if (getuline(Fp, line) == 0) 579 for (p=line;p && *p;) { 643 * get a line from the PERMISSIONS 647 * len of line 651 getuline(fp, line) [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | ftp_var.h | 195 EXTERN char line[BUFSIZE]; /* input line buffer */ variable 196 EXTERN char *stringbase; /* current scan point in line buffer */ 199 EXTERN int margc; /* count of arguments on input line */ 200 EXTERN char **margv; /* args parsed from input line */
|
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 175 case 'V': /* Print command line */ 353 char line[BUFSIZ]; local 363 while (fgets(line, sizeof (line), fd) != NULL) { 368 cp = next(line, " \t"); 524 char line[BUFSIZ]; local 534 while (fgets(line, sizeof (line), fd) != NULL) { 539 cp = next(line, " \t");
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | chkey.c | 735 char line[MAXROOTKEY_LINE_LEN]; local 780 while (fgets_ignorenul(line, MAXROOTKEY_LINE_LEN, bakfile)) { 781 if (sscanf(line, "%s %d", keyent, &atent) < 2) { 789 * 192-bit keys always go on the first line 797 fprintf(rootfile, "%s", line); 813 fprintf(rootfile, "%s", line);
|
/illumos-gate/usr/src/cmd/sgs/unifdef/common/ |
H A D | unifdef.c | 75 static int getlin(char *line, int maxline, FILE *inp, int expandtabs); 79 static int error(int err, int line, int depth); 80 static void putlin(char *line, FILE *fio); 172 #define PLAIN 0 /* ordinary line */ 182 int linenum; /* current line number */ 223 int stline; /* line number when called this time */ 484 * special getlin - treats form-feed as an end-of-line 488 getlin(char *line, int maxline, FILE *inp, int expandtabs) argument 512 *line++ = chr; 523 *line 568 putlin(char *line, FILE *fio) argument 584 error(int err, int line, int depth) argument [all...] |
/illumos-gate/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_services.c | 1080 char line[MAX_LEN]={0}; local 1122 while (fgets(line, MAX_LEN, pfile) != NULL) { 1123 if ((strstr(line, service_object) != NULL) && 1124 (line[strlen(service_object)] == '#')) { 1127 len = strlen(line); 1128 if (write(tmpfd, line, len) != len) { 1558 char line[MAX_LEN]; local 1793 while (fgets(line, MAX_LEN, pfile) != NULL) { 1794 if ((str = strstr(line, service_object)) != NULL) { 1795 if (line[strle 1931 char line[MAX_LEN]; local [all...] |
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | ldaptest.c | 38 getaline( char *line, int len, FILE *fp, char *prompt ) argument 42 if ( fgets( line, len, fp ) == NULL ) 45 line[ strlen( line ) - 1 ] = '\0'; 47 return( line ); 261 char line[256], command1, command2, command3; local 283 if (( argv = get_list( "cmd line arg?" )) == NULL ) { 391 (void) memset( line, '\0', sizeof(line) ); 392 while ( getaline( line, sizeo [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | ocfile.c | 445 char line[256]; local 508 (void) snprintf(line, sizeof (line), 511 vfpPuts(*a_cfTmpVfp, line);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/ |
H A D | check.c | 352 char line[PATH_MAX+1]; local 397 /* read and process each preinstall check data line */ 399 while (fgets(line, sizeof (line), fp) != (char *)NULL) { 403 /* remove all new-lines from end of line */ 405 len = strlen(line); 406 while ((len > 0) && (line[len-1] == '\n')) { 407 line[--len] = '\0'; 412 if (line[0] == '#') { 418 if (line[ [all...] |
/illumos-gate/usr/src/cmd/syseventadm/ |
H A D | syseventadm.c | 317 str_t *line; local 364 * Prepare the line to be written to the sysevent.conf file 366 line = initstr(128); 368 strcats(line, arg_class == NULL ? "-" : arg_class); 369 strcatc(line, ' '); 371 strcats(line, arg_subclass == NULL ? "-" : arg_subclass); 372 strcatc(line, ' '); 374 strcats(line, arg_vendor == NULL ? "-" : arg_vendor); 375 strcatc(line, ' '); 377 strcats(line, arg_publishe 520 str_t *line; local 555 str_t *line; local 657 str_t *line; local 683 char *line; local 737 str_t *line; local 796 str_t *line; local 812 parse_line(str_t *line) argument 1087 fstrgets(str_t *line, FILE *fp) argument [all...] |
/illumos-gate/usr/src/cmd/tip/ |
H A D | cmds.c | 89 char line[BUFSIZ], *cp; local 107 (void) snprintf(line, sizeof (line), "cat %s; echo \01", argv[0]); 108 transfer(line, fd, "\01"); 387 char line[BUFSIZ]; local 408 (void) snprintf(line, sizeof (line), "cat>%s\r", argv[1]); 410 (void) snprintf(line, sizeof (line), 412 transmit(fd, "\04", line); [all...] |
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | main.c | 560 * scanargs() - processes the command line arguments 818 char line[MAX_INPUT + 1]; local 819 char *p = line; 821 int N = sizeof (line); 855 return (get_executable(line));
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | st_parse.c | 115 char *where, /* where we were in the line of input */ 116 int line) 119 fprintf(stderr, "code line: %d, file %s\n", line, 112 _expected( char *who, char *what, char *where, int line) argument
|
/illumos-gate/usr/src/tools/pmodes/ |
H A D | pmodes.c | 176 * If a plain file is passed on the command line, we assume 282 warn(const char *file, int line) argument 284 (void) fprintf(stderr, "pmodes: %s, line %d: unexpected format\n", 285 file, line); 306 put_line(FILE *f, struct parsed_line *line) argument 309 if (line->rest) 310 (void) fprintf(f, "%s%.*o %s %s", line->start, 311 line->modelen, line->mode, line 486 struct parsed_line line; local [all...] |
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_engine.c | 1400 char line[64]; local 1405 s = line; 1406 line[0] = 0; 1416 cmn_err(CE_NOTE, "%08x:%s", i - (wrap - 1), line); 1417 line[0] = 0; 1418 s = line; 1423 cmn_err(CE_NOTE, "%08x:%s", i - (i % wrap), line); 1430 char line[64]; local 1435 s = line; 1436 line[ 1460 char line[128]; local [all...] |
/illumos-gate/usr/src/test/util-tests/tests/libnvpair_json/ |
H A D | print_json.c | 571 int line = 1; local 594 line++; 657 * This line was _just_ a command, 699 (void) fprintf(stderr, "ERROR: line not " 777 (void) fprintf(stderr, "ERROR: (line %d) unexpected " 778 "character: %c\n", line, c);
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | astlicense.c | 219 * center and copy comment line s to p 221 * n>0 first frame line 222 * n=0 blank line 223 * n<0 last frame line 392 int line; local 443 line = 0; 449 while (c == ' ' || c == '\t' || c == '\n' && ++line || c == '\r' || c == ',' || c == ';' || c == ')') 458 line++; 464 line++; 521 line [all...] |