/illumos-gate/usr/src/cmd/mailx/ |
H A D | send.c | 114 if (line[0] == '\n') { in msend() 148 if (!headerp(line)) { in msend() 163 cp = line; in msend() 184 snprintf(line, sizeof (line), in msend() 187 (*fp)(line, obuf); in msend() 197 if (line[0] == '\n') in msend() 201 n = clen < sizeof line ? clen : sizeof line; in msend() 222 (*fp)(line, obuf); in msend() 735 char line[BUFSIZ]; in savemail() local 754 while (fgets(line, sizeof line, fi)) { in savemail() [all …]
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddent.c | 228 line->str = (char *)realloc(line->str, line->alloc); in line_buf_expand() 240 (void) memset((char *)line, 0, sizeof (*line)); in line_buf_init() 3912 line->len = n; in fget_line_at() 3918 if (line->len >= line->alloc) in fget_line_at() 3920 line->str[line->len++] = c; in fget_line_at() 3927 if (line->len >= line->alloc) in fget_line_at() 3929 line->str[line->len++] = 0; in fget_line_at() 3958 line->str[len-2] == '\\' && line->str[len-1] == '\n') { in filedbmline_comment() 3978 if (line->str[i] != ' ' && line->str[i] != '\t') in filedbmline_comment() 4022 line->str[0] != '+' && line->str[0] != '-' && in filedbmline_plus() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_http.c | 58 static int printable(const char *line, const char *endp); 61 interpret_http(int flags, char *line, int fraglen) in interpret_http() argument 67 endp = line + fraglen; in interpret_http() 70 c = printable(line, endp - 1); in interpret_http() 76 "HTTP %.*s", MIN(c, MAXCHARS), line); in interpret_http() 85 for (p = line; p < endp && lineno < NLINES; p = q + 1) { in interpret_http()
|
H A D | snoop_ip.c | 594 char *line; in print_ipoptions() local 677 char *line; in print_route() local 1220 (void) snprintf(line, sizeof (line), "Protection Authority = "); in print_ripso() 1221 ptr = line; in print_ripso() 1230 sizeof (line) - (ptr - line)); in print_ripso() 1234 sizeof (line) - (ptr - line), in print_ripso() 1248 line); in print_ripso() 1319 ptr = line; in interpret_cipso_tagtype1() 1321 (void) snprintf(ptr, sizeof (line) - (ptr - line), "%02x", in interpret_cipso_tagtype1() 1329 line); in interpret_cipso_tagtype1() [all …]
|
H A D | snoop_dhcpv6.c | 68 char *line, *lstart; in interpret_dhcpv6() local 85 line = lstart = get_sum_line(); in interpret_dhcpv6() 86 line += snprintf(line, MAXLINE, "DHCPv6 %s", in interpret_dhcpv6() 91 (void) strlcpy(line, "?", in interpret_dhcpv6() 99 line += snprintf(line, MAXLINE - (line - lstart), in interpret_dhcpv6() 109 (void) strlcpy(line, "?", in interpret_dhcpv6() 114 line += snprintf(line, MAXLINE - (line - lstart), in interpret_dhcpv6() 125 line += snprintf(line, MAXLINE - (line - lstart), in interpret_dhcpv6() 133 line += snprintf(line, MAXLINE - (line - lstart), in interpret_dhcpv6() 137 line += snprintf(line, in interpret_dhcpv6() [all …]
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | cddlchk.py | 57 for line in fh: 58 line = line.strip() 60 if line.strip().endswith('/'): 61 self.dirs.append(line[0:-1]) 62 elif line.startswith('*.'): 63 self.extensions.append(line) 65 self.files.append(line)
|
H A D | mapfilechk.py | 57 for line in fh: 58 line = line.strip() 60 if line.strip().endswith('/'): 61 self.dirs.append(line[0:-1]) 62 elif line.startswith('*.'): 63 self.extensions.append(line) 65 self.files.append(line)
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | read2.cc | 740 line->body.line.target = target; in enter_dependencies() 748 if (line->body.line.command_template != NULL) { in enter_dependencies() 749 line->body.line.command_template_redefined = in enter_dependencies() 753 line->body.line.command_template = in enter_dependencies() 757 line->body.line.command_template = command; in enter_dependencies() 762 line->body.line.command_template = command; in enter_dependencies() 789 line->body.line.command_used = command; in enter_dependencies() 803 for (dp = line->body.line.dependencies; in enter_dependencies() 817 if (line->body.line.target_group != NULL) { in enter_dependencies() 823 line->body.line.target_group = target_group; in enter_dependencies() [all …]
|
H A D | parallel.cc | 127 Name target = line->body.line.target; in execute_parallel() 176 for (rule = line->body.line.command_used; in execute_parallel() 779 Property line; in process_next() local 830 for (dep = line->body.line.dependencies; in process_next() 840 for (target_group = line->body.line.target_group; in process_next() 1030 Property line; in dependency_conflict() local 1047 for (dp = line->body.line.dependencies; dp != NULL; dp = dp->next) { in dependency_conflict() 1172 Property line; in finish_children() local 1256 line->body.line.command_used = NULL; in finish_children() 1687 Property line; in parallel_ok() local [all …]
|
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | rmtlib.c | 320 char line[30]; in rmtread() local 323 (void) snprintf(line, sizeof (line), "R%d\n", count); in rmtread() 324 n = rmtcall("read", line); in rmtread() 350 char line[64]; /* numbers can get big */ in rmtwrite() local 352 (void) snprintf(line, sizeof (line), "W%d\n", count); in rmtwrite() 353 retval = rmtpush(line, strlen(line)); in rmtwrite() 381 char line[80]; in rmtseek() local 383 (void) snprintf(line, sizeof (line), "L%d\n%d\n", offset, pos); in rmtseek() 384 return (rmtcall("seek", line)); in rmtseek()
|
/illumos-gate/usr/src/cmd/sort/ |
H A D | streams_stdio.c | 375 if (line->l_data_length >= 0) { in stream_stdio_put_line() 376 if (cxwrite(str->s_type.SF.s_fd, line->l_data.sp, in stream_stdio_put_line() 377 line->l_data_length) < 0) in stream_stdio_put_line() 383 safe_free(line->l_raw_collate.sp); in stream_stdio_put_line() 384 line->l_raw_collate.sp = NULL; in stream_stdio_put_line() 397 collated(&pvs, line, 0, COLL_UNIQUE) == 0) { in stream_stdio_put_line_unique() 403 stream_stdio_put_line(str, line); in stream_stdio_put_line_unique() 407 line->l_collate_length + 1); in stream_stdio_put_line_unique() 408 collate_buf_len = line->l_collate_length + 1; in stream_stdio_put_line_unique() 412 line->l_collate_length); in stream_stdio_put_line_unique() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 92 const char *prefix, const char *line, 96 const char *line, int word_start, int word_end, 113 const char *line; /* The line from which the prefix was extracted */ member 235 const char *line, int word_start, int word_end, in _cf_complete_file() argument 244 if(!cpl || !cf || !line || word_end < word_start) { in _cf_complete_file() 262 lptr = line + word_start; in _cf_complete_file() 332 word_start = (lptr + seglen) - line + FS_DIR_SEP_LEN; in _cf_complete_file() 438 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP, in _cf_complete_file() 522 const char *prefix, const char *line, in cf_complete_username() argument 533 args.line = line; in cf_complete_username() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | systat.c | 49 char filename[MAXFULLNAME], line[S_SIZE]; local 54 line[0] = '\0'; 61 if (fgets(line, S_SIZE, fp) != NULL) 62 if (getargs(line, vec, 4) == 4) { 141 char filename[MAXFULLNAME], line[S_SIZE]; local 149 if (fgets(line, S_SIZE, fp) == NULL) { 159 sscanf(line, "%d%d%ld%ld", &type, &count, &lasttime, &retrytime);
|
H A D | uuglist.c | 129 char line[BUFSIZ]; in rproc() local 134 while (rdfulline(cfd, line, BUFSIZ) != 0) { in rproc() 136 (void) getargs(line, carray, C_MAX); in rproc() 148 char line[BUFSIZ]; in uproc() local 154 while (rdfulline(cfd, line, BUFSIZ) != 0) { in uproc() 156 na = getargs(line, carray, C_MAX); in uproc() 184 errent(char *s1, char *s2, int i1, char *file, int line) in errent() argument
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | man_validate.c | 282 n->line, n->pos + (int)(p - cp), NULL); in check_text() 308 n->line, n->pos, "OP ... %s", n->string); in post_OP() 364 nc->line, nc->pos, "%s at the end of %s", in post_SH() 374 mandoc_msg(MANDOCERR_UR_NOHEAD, n->line, n->pos, in post_UR() 384 mandoc_msg(MANDOCERR_BLK_EMPTY, n->line, n->pos, in check_part() 401 n->child->line, n->child->pos, in check_par() 407 mandoc_msg(MANDOCERR_PAR_SKIP, n->line, n->pos, in check_par() 413 n->line, n->pos, "%s %s%s", in check_par() 435 mandoc_msg(MANDOCERR_PAR_SKIP, n->line, n->pos, in post_IP() 499 mandoc_msg(MANDOCERR_TITLE_CASE, n->line, in post_TH() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | deltat.c | 11 #line 38 "./x-deltat.y" 96 #line 125 "./x-deltat.y" 779 #line 138 "./x-deltat.y" in yyparse() 783 #line 140 "./x-deltat.y" in yyparse() 787 #line 141 "./x-deltat.y" in yyparse() 791 #line 143 "./x-deltat.y" in yyparse() 795 #line 144 "./x-deltat.y" in yyparse() 799 #line 145 "./x-deltat.y" in yyparse() 803 #line 146 "./x-deltat.y" in yyparse() 807 #line 147 "./x-deltat.y" in yyparse() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | mail.local.c | 528 char line[MAXLINE]; local 570 line[0] = '\0'; 571 while (fgets(line, sizeof(line), stdin) != (char *)NULL) 577 while (line[line_len] != '\n' && line_len < sizeof(line) - 2) 584 if (line[1] == '\n' || 585 (line[1] == '\r' && line[2] == '\n')) 587 memcpy(line, line + 1, line_len); 600 line[line_len - 2] = '\n'; 601 line[line_len - 1] = '\0'; 612 line[line_len - 1] = '\n'; [all …]
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | t3.c | 47 char line[200], *cp, nb[25], *t; in getcomm() local 55 gets1(line, sizeof line); in getcomm() 57 if (strchr(line,';') == NULL) in getcomm() 59 backrest(line); in getcomm() 62 for(cp=line; (c = *cp) != ';'; cp++) in getcomm()
|
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 72 int line; /* line counter */ in doconfig() local 87 line = 0; in doconfig() 89 line++; in doconfig() 94 return (line); in doconfig() 126 return (line); in doconfig() 131 return (line); in doconfig() 136 return (line); in doconfig() 141 return (line); in doconfig() 146 return (line); in doconfig() 151 return (line); in doconfig()
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lparser.c | 85 int line = fs->f->linedefined; in errorlimit() local 389 l->arr[n].line = line; in newlabelentry() 861 luaK_fixline(fs, line); in funcargs() 1300 luaK_fixline(fs, line); in forbody() 1304 luaK_fixline(fs, line); in forbody() 1335 int line; in forlist() local 1348 line = ls->linenumber; in forlist() 1537 ifstat(ls, line); in statement() 1541 whilestat(ls, line); in statement() 1551 forstat(ls, line); in statement() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_tx.c | 152 char line[513]; local 155 while (fgets(line, sizeof(line)-1, tfp)) { 156 if ((s = strchr(line, '\n'))) 158 if ((s = strchr(line, '\r'))) 160 if ((s = strchr(line, '#'))) 162 if (!*line) 165 printf("input: %s\n", line); 168 if (!parseline(line, (ip_t *)buf, ifn, dir)) 178 static int parseline(line, ip, ifn, out) in parseline() argument 179 char *line; in parseline() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | alloc.c | 88 alloc_malloc(size_t nbytes, const char *fname, int line) in alloc_malloc() argument 117 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) in alloc_realloc() argument 119 void *retval = alloc_malloc(nbytes, fname, line); in alloc_realloc() 130 alloc_free((char *)ptr, fname, line); in alloc_realloc() 142 alloc_strdup(const char *ptr, const char *fname, int line) in alloc_strdup() argument 144 char *retval = alloc_malloc(strlen(ptr) + 1, fname, line); in alloc_strdup() 158 alloc_free(void *ptr, const char *fname, int line) in alloc_free() argument
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | graph.c | 72 bb, bb->pos.line, bb->pos.line, bb->pos.pos); in graph_ep() 109 (bb->pos.line > child->pos.line) ? "weight=5" : "weight=10"); in graph_ep() 153 insn->pos.line, insn->pos.line, insn->pos.pos); in graph_calls() 158 insn->pos.line, insn->pos.line, insn->pos.pos); in graph_calls()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | is_linetou.c | 46 is_linetouched(WINDOW *win, int line) in is_linetouched() argument 48 if (line < 0 || line >= win->_maxy) in is_linetouched() 50 if (win->_firstch[line] == _INFINITY) in is_linetouched()
|
/illumos-gate/usr/src/data/locale/tools/ |
H A D | mkwidths.py | 46 for line in lines: 47 items = line.split() 59 for line in open(filename).readlines(): 60 if line.startswith("#"): 62 vals = line.split()
|