/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/ |
H A D | msggen.c | 266 sfprintf(sfstdout, "%d\n", mcindex(catfile, NiL, NiL, NiL)); in main() 281 sfprintf(sfstdout, "$set %d\n", set); in main() 284 sfprintf(sfstdout, "%d \"%s\"\n", num, fmtfmt(s)); in main() 291 ccsfprintf(CC_NATIVE, CC_ASCII, sfstdout, "$translation "); in main() 292 sfprintf(sfstdout, "%s", mc->translation); in main() 293 ccsfprintf(CC_NATIVE, CC_ASCII, sfstdout, "\n"); in main() 295 ccsfprintf(CC_NATIVE, CC_ASCII, sfstdout, "$quote \"\n"); in main() 299 ccsfprintf(CC_NATIVE, CC_ASCII, sfstdout, "$set %d\n", set); in main() 303 ccsfprintf(CC_NATIVE, CC_ASCII, sfstdout, "%d \"", num); in main() 312 sfputc(sfstdout, 0x5C); in main() [all …]
|
H A D | msgcpp.c | 242 sfprintf(sfstdout, "str \"%s\"\n", pp.token); in main() 249 sfprintf(sfstdout, "var %s %s\n", pp.token, s); in main() 251 sfprintf(sfstdout, "var %s\n", s); in main() 256 sfprintf(sfstdout, "cmd %s\n", s + 2); in main() 272 sfprintf(sfstdout, "def %s \"%s\"\n", s, pp.token); in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | tee.c | 101 sfdisc(sfstdout, NiL); in tee_cleanup() 103 sfset(sfstdout, SF_LINE, tp->line); in tee_cleanup() 141 line = sfset(sfstdout, 0, 0) & SF_LINE; in b_tee() 145 sfset(sfstdout, SF_LINE, !!opt_info.num); in b_tee() 192 sfdisc(sfstdout, &tp->disc); in b_tee() 198 …if ((sfmove(sfstdin, sfstdout, SF_UNBOUND, -1) < 0 || !sfeof(sfstdin)) && !ERROR_PIPE(errno) && er… in b_tee() 200 if (sfsync(sfstdout)) in b_tee()
|
H A D | cmp.c | 231 …sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u\n", file1, file2, sizeof(pos), pos - (last … in cmp() 234 sfprintf(sfstdout, "%6I*d", sizeof(pos), pos - (last - p1)); in cmp() 235 pretty(sfstdout, c1, -1, flags); in cmp() 236 pretty(sfstdout, *(p2-1), '\n', flags); in cmp() 240 sfprintf(sfstdout, "%6I*d", sizeof(pos), pos - (last - p1)); in cmp() 242 …sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u", file1, file2, sizeof(pos), pos - (last - … in cmp() 245 sfputc(sfstdout, (flags & CMP_VERBOSE) ? ' ' : ','); in cmp() 246 pretty(sfstdout, c1, -1, flags); in cmp() 247 pretty(sfstdout, *(p2-1), '\n', flags); in cmp() 250 sfputc(sfstdout, '\n'); in cmp()
|
H A D | wc.c | 77 sfprintf(sfstdout," %7I*d",sizeof(wp->lines),wp->lines); in printout() 79 sfprintf(sfstdout," %7I*d",sizeof(wp->words),wp->words); in printout() 81 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->chars); in printout() 83 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->longest); in printout() 85 sfprintf(sfstdout," %s",name); in printout() 86 sfputc(sfstdout,'\n'); in printout()
|
H A D | stty.c | 450 sfprintf(sfstdout,":%x",sp->c_iflag); in gout() 451 sfprintf(sfstdout,":%x",sp->c_oflag); in gout() 452 sfprintf(sfstdout,":%x",sp->c_cflag); in gout() 453 sfprintf(sfstdout,":%x",sp->c_lflag); in gout() 455 sfprintf(sfstdout,":%x",sp->c_cc[i]); in gout() 457 sfprintf(sfstdout,":%x", sp->c_line); in gout() 459 sfprintf(sfstdout,":%x", 0); in gout() 461 sfprintf(sfstdout,":%x",cfgetispeed(sp)); in gout() 462 sfprintf(sfstdout,":%x",cfgetospeed(sp)); in gout() 463 sfprintf(sfstdout,":\n"); in gout() [all …]
|
H A D | date.c | 400 …sfprintf(sfstdout, "%3s %4s %4s %4d %4d\n", s, *listzones->standard ? listzones->standard : "-", l… in b_date() 422 sfputr(sfstdout, fmtelapsed((unsigned long)tmxsec(e), 1), '\n'); in b_date() 432 sfprintf(sfstdout, "%lu\n", u); in b_date() 461 sfprintf(sfstdout, "%s: %s\n", s, buf); in b_date() 463 sfprintf(sfstdout, "%s\n", buf); in b_date() 489 sfprintf(sfstdout, "%s\n", buf); in b_date() 500 sfprintf(sfstdout, "%s\n", buf); in b_date() 512 if (show && sfsync(sfstdout)) in b_date()
|
H A D | uname.c | 241 sfputc(sfstdout, ' '); \ 245 sfputr(sfstdout, v, -1); \ 247 sfprintf(sfstdout, "[%s]", u); \ 359 …astconflist(sfstdout, NiL, ASTCONF_base|ASTCONF_defined|ASTCONF_lower|ASTCONF_quote|ASTCONF_matchc… in b_uname() 372 …sfprintf(sfstdout, "%s%c", *(t = astconf(buf, NiL, NiL)) ? t : *(t = astconf(buf+3, NiL, NiL)) ? t… in b_uname() 498 sfputc(sfstdout, ' '); in b_uname() 501 sfputr(sfstdout, t, -1); in b_uname() 511 sfputc(sfstdout, '\n'); in b_uname()
|
H A D | head.c | 139 sfprintf(sfstdout, format, cp); in b_head() 148 if ((moved = sfmove(fp, sfstdout, keep, delim)) < 0 && !ERROR_PIPE(errno) && errno != EINTR || in b_head() 149 …delim >= 0 && moved < keep && sfmove(fp, sfstdout, SF_UNBOUND, -1) < 0 && !ERROR_PIPE(errno) && er… in b_head() 155 if (sfsync(sfstdout)) in b_head()
|
H A D | tail.c | 326 sfprintf(sfstdout, *format, tp->name); in init() 329 op = (flags & REVERSE) ? sftmp(4*SF_BUFSIZE) : sfstdout; in init() 334 rev_line(op, sfstdout, (Sfoff_t)0); in init() 682 sfprintf(sfstdout, format, fp->name); in b_tail() 686 sfwrite(sfstdout, s, w); in b_tail() 733 if (sfsync(sfstdout)) in b_tail() 759 sfprintf(sfstdout, format, file); in b_tail() 768 rev_line(ip, sfstdout, sfseek(ip, (Sfoff_t)0, SEEK_CUR)); in b_tail() 770 sfmove(ip, sfstdout, SF_UNBOUND, -1); in b_tail() 778 rev_line(ip, sfstdout, offset); in b_tail() [all …]
|
H A D | cksum.c | 241 sfprintf(sfstdout, " %04o %s %s", in pr() 414 pr(state, sfstdout, sp, file, state->permissions, NiL, state->check); in list() 569 sfprintf(sfstdout, "method=%s\n", state.sum->name); in b_cksum() 571 sfprintf(sfstdout, "permissions\n"); in b_cksum() 591 pr(&state, sfstdout, sfstdin, "/dev/stdin", state.permissions, NiL, state.check); in b_cksum() 606 pr(&state, sfstdout, sp, ent->fts_path, state.permissions, ent->fts_statp, state.check); in b_cksum() 627 sumprint(state.sum, sfstdout, state.flags|SUM_TOTAL|SUM_SCALE, state.scale); in b_cksum() 628 sfputc(sfstdout, '\n'); in b_cksum()
|
H A D | cat.c | 514 sfopen(sfstdout, NiL, "wt"); in b_cat() 535 n = vcat(states, fp, sfstdout, reserve, flags); in b_cat() 536 else if (sfmove(fp, sfstdout, SF_UNBOUND, -1) >= 0 && sfeof(fp)) in b_cat() 549 if (sferror(sfstdout)) in b_cat() 552 if (sfsync(sfstdout)) in b_cat() 555 sfopen(sfstdout, NiL, "w"); in b_cat()
|
H A D | getconf.c | 242 astconflist(sfstdout, path, flags, pattern); in b_getconf() 278 sfputr(sfstdout, name, ' '); in b_getconf() 279 sfputr(sfstdout, path ? path : empty, ' '); in b_getconf() 281 sfputr(sfstdout, s, '\n'); in b_getconf()
|
H A D | join.c | 452 #define getrec(p,n,d) (u1 = getrec(p, n, d), sfprintf(sfstdout, "[G%d#%d@%I*d:%-.8s]", __LINE__, n,… 546 #define outfield(p,i,n,f) (sfprintf(sfstdout, "[F%d#%d:%d,%d]", __LINE__, i1=i, i2=n, i3=f), outfie… 626 #define outrec(p,n) (sfprintf(sfstdout, "[R#%d,%d,%lld,%lld:%-.*s{%d}:%-.*s{%d}]", __LINE__, i1=n, … 654 sfprintf(sfstdout, "[C#%d:%d(%c-%c),%d,%lld,%lld%s]", __LINE__, cmp, *cp1, *cp2, same, lo, hi, (jp-… in join() 693 sfprintf(sfstdout, "[2#%d:0,%lld,%lld]", __LINE__, lo, hi); in join() 737 sfprintf(sfstdout, "[2#%d:0,%lld,%lld]", __LINE__, lo, hi); in join() 773 sfprintf(sfstdout, "[X#%d:?,%p,%p,%d,%d,%d%s]", __LINE__, cp1, cp2, cmp, lo, hi, (jp->outmode & C_C… in join() 785 sfprintf(sfstdout, "[O#%d:%02o:%02o]", __LINE__, jp->ooutmode, jp->outmode); in join() 797 sfprintf(sfstdout, "[X#%d:%d,%p,%p,%d,%02o,%02o%s]", __LINE__, n, cp1, cp2, cmp, jp->ooutmode, jp->… in join() 972 jp->outfile = sfstdout; in b_join()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | whence.c | 161 sfprintf(sfstdout,"%s%s\n",name,(flags&V_FLAG)?sh_translate(is_reserved):""); in whence() 177 sfprintf(sfstdout,msg,name); in whence() 179 sfputr(sfstdout,sh_fmtq(cp),'\n'); in whence() 209 sfprintf(sfstdout,"%s%s\n",name,cp); in whence() 252 sfprintf(sfstdout,"%s %s %s/%s\n",name,sh_translate(is_talias),path_pwd(shp,0),cp); in whence() 254 sfprintf(sfstdout,"%s%s\n",name,sh_translate(is_ufunction)); in whence() 257 sfputr(sfstdout,sh_fmtq(name),' '); in whence() 266 sfputr(sfstdout,msg,' '); in whence() 268 sfputr(sfstdout,sh_fmtq(cp),'\n'); in whence()
|
H A D | trap.c | 115 sfputr(sfstdout,sh_fmtq(arg),'\n'); in b_trap() 153 sfputr(sfstdout,arg,'\n'); in b_trap() 240 sfprintf(sfstdout,"%d\n",sig); in b_kill() 250 if(job_walk(sfstdout,job_kill,sig,argv)) in b_kill() 403 sfprintf(sfstdout,"%s\n",tp->sh_name); in sig_list() 412 sfputr(sfstdout, sig_name(shp,flag-1,name,0), '\n'); in sig_list() 426 sfprintf(sfstdout,trapfmt,sh_fmtq(trap),sname); in sig_list() 432 sfprintf(sfstdout,trapfmt,sh_fmtq(trap),traps[sig]); in sig_list() 449 sfputr(sfstdout,sname,'\n'); in sig_list() 454 sh_menu(sfstdout,shp->gd->sigmax,(char**)names+1); in sig_list()
|
H A D | ulimit.c | 197 sfprintf(sfstdout,"%-30s (-%c) ",tmp,tp->option); in b_ulimit() 203 sfputr(sfstdout,conf,'\n'); in b_ulimit() 208 sfprintf(sfstdout,"%I*d\n",sizeof(i),i/unit); in b_ulimit() 211 sfputr(sfstdout,e_unlimited,'\n'); in b_ulimit()
|
H A D | umask.c | 92 sfprintf(sfstdout,"%s\n",fmtperm(~flag&0777)); in b_umask() 94 sfprintf(sfstdout,"%0#4o\n",flag); in b_umask()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | subshell.c | 119 if(sfset(sfstdout,0,0)&SF_STRING) in sh_subtmpfile() 135 sfdisc(sfstdout,SF_POPDISC); in sh_subtmpfile() 136 if((fd=sffileno(sfstdout))<0) in sh_subtmpfile() 146 if(off = sftell(sfstdout)) in sh_subtmpfile() 147 write(fds[1],sfsetbuf(sfstdout,(Void_t*)sfstdout,0),(size_t)off); in sh_subtmpfile() 148 sfclose(sfstdout); in sh_subtmpfile() 157 sfsync(sfstdout); in sh_subtmpfile() 162 sfsetfd(sfstdout,1); in sh_subtmpfile() 168 sfset(sfstdout,SF_SHARE|SF_PUBLIC,1); in sh_subtmpfile() 169 sfpool(sfstdout,shp->outpool,SF_WRITE); in sh_subtmpfile() [all …]
|
H A D | args.c | 227 sfputr(sfstdout, "ksh bash emulation, version ",-1); in sh_argopts() 229 sfputr(sfstdout, nv_getval(np),-1); in sh_argopts() 231 sfprintf(sfstdout, " (%s)\n", nv_getval(np)); in sh_argopts() 605 sfputr(sfstdout,sh_translate(e_heading),'\n'); in sh_printopts() 644 sfprintf(sfstdout, "%s%s\n", on ? "" : "no", name); in sh_printopts() 647 sfprintf(sfstdout, "%s%-*s", on ? "" : "no", on ? c : (c-2), name); in sh_printopts() 650 sfputc(sfstdout,'\n'); in sh_printopts() 659 sfwrite(sfstdout,"shopt -s",3); in sh_printopts() 661 sfwrite(sfstdout,"set --default",13); in sh_printopts() 683 sfputr(sfstdout,name,' '); in sh_printopts() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfextern.c | 35 (void)vtmtxopen(sfstdout->mutex, VT_INIT); in _sfoncef() 86 #undef sfstdout 90 Sfio_t* sfstdout = &_Sfstdout; variable 98 __EXTERN__(Sfio_t*,sfstdout);
|
H A D | sfwalk.c | 45 if(sfstdout->mode & SF_INIT) 46 _sfmode(sfstdout, (sfstdout->mode & SF_RDWR), 0);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regnexec.c | 316 …sfstdout, " %-*.*sold ", (level + 3) * 4, (level + 3) * 4, "");for (oe = os; oe < oend; oe++)sfp… in better() 369 sfputc(sfstdout, '('); in showmatch() 371 sfputc(sfstdout, '?'); in showmatch() 373 sfprintf(sfstdout, "%z", p->rm_so); in showmatch() 374 sfputc(sfstdout, ','); in showmatch() 376 sfputc(sfstdout, '?'); in showmatch() 378 sfprintf(sfstdout, "%z", p->rm_eo); in showmatch() 379 sfputc(sfstdout, ')'); in showmatch() 387 …sfstdout, "AHA better old ");for (i = 0; i <= env->nsub; i++)showmatch(&env->best[i]);sfprintf(sfs… in _better() 389 DEBUG_TEST(0x0040,(sfprintf(sfstdout, " %s\n", i <= 0 ? "OLD" : "NEW")),(0)); in _better() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | ccmap.c | 722 sfprintf(sfstdout, "\n /* %s => %s */\n\n", ccmapname(from), ccmapname(to)); in dump() 725 sfprintf(sfstdout, " 0x%02x,", m ? m[c] : c); in dump() 729 sfprintf(sfstdout, "\n"); in dump()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astdynamic.c | 46 #undef sfstdout 73 sfstdout = sp; in _ast_libinit()
|