/titanic_44/usr/src/cmd/csh/ |
H A D | sh.tconst.c | 28 tchar S_[] = {0}; 29 tchar S_0[]={'0', 0}; 30 tchar S_1[]={'1', 0}; 31 tchar S_AND[] = {'&', 0}; /* & */ 32 tchar S_ANDAND[] = {'&', '&', 0}; /* && */ 33 tchar S_AST[]={'*', 0}; 34 tchar S_AT[] = { '@', 0 }; 35 tchar S_BAR[] = {'|', 0}; /* | */ 36 tchar S_BARBAR[] = {'|','|', 0}; /* || */ 37 tchar S_BRABRA[] = {'{', '}', 0}; /* {} */ [all …]
|
H A D | sh.h | 93 typedef long int tchar; typedef 97 typedef unsigned short int tchar; typedef 133 tchar *arginp; /* Argument input for sh -c and internal `xx` */ 135 tchar *file; /* Name of shell file for $0 */ 144 tchar *doldol; /* Character pid for $$ */ 159 tchar *bname; 166 tchar *s_name; 200 tchar *gointr; /* Label for an onintr transfer */ 217 tchar **Bfbuf; /* The array of buffer blocks */ 248 tchar *word; [all …]
|
H A D | sh.misc.c | 25 tchar **blkcat(tchar **, tchar **); 26 tchar **blkend(tchar **); 29 any(int c, tchar *s) in any() 39 onlyread(tchar *cp) in onlyread() 46 tchar * 47 savestr(tchar *s) in savestr() 49 tchar *n; in savestr() 50 tchar *p; in savestr() 57 n = p = (tchar *)xalloc((unsigned)(p - s)*sizeof (tchar)); in savestr() 62 p = (tchar *) xalloc((strlen_(s) + 1)*sizeof (tchar)); in savestr() [all …]
|
H A D | sh.glob.c | 32 tchar *gpath, *gpathp, *lastgpathp; 36 tchar *entp; 37 tchar **sortbas; 38 int sortscmp(tchar **, tchar **); 39 void ginit(tchar **); 40 void collect(tchar *); 41 void acollect(tchar *); 42 void expand(tchar *); 43 void matchdir_(tchar *); 44 void Gcat(tchar *, tchar *); [all …]
|
H A D | sh.tchar.c | 66 tchar * 67 strtots(tchar *to, char *from) in strtots() 80 to = (tchar *)xalloc(i * sizeof (tchar)); in strtots() 90 tstostr(char *to, tchar *from) in tstostr() 92 tchar *ptc; in tstostr() 140 mbstotcs(tchar *to, char *from, int tosize) in mbstotcs() 142 tchar *ptc = to; in mbstotcs() 150 if (to == (tchar *)NULL) { in mbstotcs() 167 *(ptc++) = (tchar)wc; in mbstotcs() 174 *ptc = (tchar)0; in mbstotcs() [all …]
|
H A D | sh.set.c | 25 void asx(tchar *, int, tchar *); 27 void set(tchar *, tchar *); 28 void set1(tchar *, tchar **, struct varent *); 29 void setq(tchar *, tchar **, struct varent *); 30 void unset1(tchar *[], struct varent *); 32 void exportpath(tchar **); 34 tchar *operate(tchar, tchar *, tchar *); 35 tchar *getinx(tchar *, int *); 36 tchar *xset(tchar *, tchar ***); 37 struct varent *getvx(tchar *, int); [all …]
|
H A D | sh.dir.c | 25 struct directory *dfind(tchar *); 26 tchar *dfollow(tchar *); 27 tchar *dcanon(tchar *, tchar *); 28 void dtildepr(tchar *, tchar *); 34 static tchar *fakev[] = { S_dirs, NOSTR }; 40 dinit(tchar *hp) in dinit() 42 tchar *cp; in dinit() 44 tchar path[MAXPATHLEN]; in dinit() 78 dodirs(tchar **v) in dodirs() 82 tchar *hp = value(S_home); in dodirs() [all …]
|
H A D | sh.file.c | 38 extern DIR *opendir_(tchar *); 49 static int is_prefix(tchar *, tchar *); 50 static int is_suffix(tchar *, tchar *); 51 static int ignored(tchar *); 155 pushback(tchar *string, int echoflag) in pushback() 157 tchar *p; in pushback() 201 catn(tchar *des, tchar *src, int count) in catn() 227 copyn(tchar *des, tchar *src, int count) in copyn() 243 fcompare(tchar **file1, tchar **file2) in fcompare() 253 filetype(tchar *dir, tchar *file, int nosym) in filetype() [all …]
|
H A D | sh.exp.c | 41 int exp0(tchar ***, bool); 42 int exp1(tchar ***, bool); 43 int exp2(tchar ***, bool); 44 int exp2a(tchar ***, bool); 45 int exp2b(tchar ***, bool); 46 int exp2c(tchar ***, bool); 47 tchar *exp3(tchar ***, bool); 48 tchar *exp3a(tchar ***, bool); 49 tchar *exp4(tchar ***, bool); 50 tchar *exp5(tchar ***, bool); [all …]
|
H A D | sh.func.c | 32 tchar *limname; 34 tchar *limscale; 54 static int getval(struct limits *lp, tchar **v, rlim_t *); 62 void echo(tchar sep, tchar **v); 63 void local_setenv(tchar *name, tchar *val); 64 void local_unsetenv(tchar *name); 65 void limtail(tchar *cp, tchar *str0); 66 void plim(struct limits *lp, tchar hard); 78 tchar *cp = t->t_dcom[0]; in isbfunc() 153 doonintr(tchar **v) in doonintr() [all …]
|
H A D | sh.lex.c | 33 tchar *word(void); 34 tchar getC1(int); 35 tchar *subword(tchar *, int, bool *); 37 void addla(tchar *); 38 void getexcl(tchar); 39 void noev(tchar *); 40 void setexclp(tchar *); 41 void unreadc(tchar); 44 struct Hist *findev(tchar *, bool); 65 tchar peekc, peekd; [all …]
|
H A D | sh.exec.c | 41 void texec(struct command *, tchar *, tchar **); 42 void xechoit(tchar **); 45 static void tconvert(struct command *, tchar *, tchar **); 48 extern DIR *opendir_(tchar *); 53 tchar *sav; in doexec() 54 tchar *dp, **pv, **av; in doexec() 58 tchar *blk[2]; in doexec() 192 texec(struct command *cmd, tchar *f, tchar **t) in texec() 195 tchar **vp; in texec() 196 tchar *lastsh[2]; in texec() [all …]
|
H A D | sh.dol.c | 35 tchar *Dcp, **Dvp; /* Input vector for Dreadc */ 49 tchar *dolp; /* Remaining chars from this word */ 50 tchar **dolnxt; /* Further words */ 52 tchar dolmod; /* : modifier character */ 55 void Dfix2(tchar **); 57 void setDolp(tchar *); 67 tchar **pp; in Dfix() 68 tchar *p; in Dfix() 90 tchar * 91 Dfix1(tchar *cp) in Dfix1() [all …]
|
H A D | sh.c | 35 tchar *pathlist[] = { S_usrbin /* "/usr/bin" */, S_DOT /* "." */, 0 }; 36 tchar *dumphist[] = { S_history /* "history" */, S_h /* "-h" */, 0, 0 }; 37 tchar *loadhist[] = { S_source /* "source" */, S_h /* "-h" */, 39 tchar HIST = '!'; 40 tchar HISTSUB = '^'; 53 extern tchar **strblktotsblk(/* char **, int */); 59 void importpath(tchar *); 60 void srccat(tchar *, tchar *); 61 void srccat_inlogin(tchar *, tchar *); 67 void dosource(tchar **); [all …]
|
H A D | sh.err.c | 32 tchar one[2] = { '1', 0 }; 33 tchar *onev[2] = { one, NOSTR }; 56 tchar **v; 120 Perror(tchar *s) in Perror() 164 seterr2(tchar *cp, char *dp) in seterr2() 184 seterrc(char *cp, tchar d) in seterrc()
|
H A D | sh.hist.c | 34 tchar *cp; in savehist() 44 tchar *p = cp; in savehist() 93 xfree( (tchar *)hp); in hfree() 97 dohist(tchar **vp) in dohist() 108 tchar *vp2 = *vp; in dohist()
|
/titanic_44/usr/src/cmd/troff/ |
H A D | tdef.h | 232 #define setsbits(n,s) n = (n & ~SMASK) | (tchar)(s) << 24 233 #define setfbits(n,f) n = (n & ~FMASK) | (tchar)(f) << 16 234 #define setsfbits(n,sf) n = (n & ~SFMASK) | (tchar)(sf) << 16 327 #define ENV_BLK ((NEV * sizeof(env) / sizeof(tchar) + BLK-1) / BLK) 330 typedef long tchar; typedef 332 extern tchar getch(), getch0(); 333 extern tchar rbf(), rbf0(); 334 extern tchar mot(), hmot(), vmot(); 335 extern tchar makem(), sethl(); 336 extern tchar popi(); [all …]
|
H A D | n3.c | 59 tchar *argtop; 64 tchar *wbuf; 65 tchar corebuf[(ENV_BLK + NBLIST + 1) * BLK]; 67 tchar wbuf[BLK]; 68 tchar rbuf[BLK]; 242 wbt((tchar) IMP); in casede() 338 tchar i; in skip() 351 tchar ii; in copyb() 408 wbt((tchar)0); in copyb() 418 tchar i; in copys() [all …]
|
H A D | n8.c | 55 tchar *hyend; 61 tchar *wp; in hyphen() 64 tchar *i; 143 tchar t; in casehw() 184 tchar *w; in exword() 225 tchar *w; in suffix() 227 tchar i; in suffix() 229 extern tchar *chkvow(); in suffix() 303 tchar *chkvow(w) in chkvow() 304 tchar *w; in chkvow() [all …]
|
H A D | nii.c | 77 tchar pbbuf[NC]; /* pushback buffer for arguments, \n, etc. */ 78 tchar *pbp = pbbuf; /* next free slot in pbbuf */ 79 tchar *lastpbp = pbbuf; /* pbp in previous stack frame */ 82 tchar ch = 0; 118 tchar nrbits; 144 tchar **hyp; 145 tchar *olinep;
|
H A D | ext.h | 175 extern tchar **hyp; 176 extern tchar *olinep; 177 extern tchar pbbuf[NC]; 178 extern tchar *pbp; 179 extern tchar *lastpbp; 180 extern tchar ch; 181 extern tchar nrbits; 182 extern tchar oline[];
|
H A D | n7.c | 55 tchar gettch(); 78 tchar mtbuf[MB_LEN_MAX + 1]; 79 tchar *mtbufp; 90 tchar *i, j; in tbreak() 94 tchar l; in tbreak() 187 pchar((tchar) WORDSP); in tbreak() 258 tchar i; in text() 349 tchar i; in nofill() 385 storeline((tchar)FILLER, 0); in nofill() 429 tchar c; in storeline() [all …]
|
H A D | n9.c | 74 tchar 77 tchar i; in setz() 87 tchar *i; in setline() 88 tchar c; in setline() 91 tchar linebuf[NC]; in setline() 158 tchar i, o[NOV]; in setov() 207 tchar i, *j, dwn; in setbra() 209 tchar brabuf[NC]; in setbra() 252 tchar c, rem, ver, neg; in setvline() 254 tchar vlbuf[NC]; in setvline() [all …]
|
/titanic_44/usr/src/cmd/troff/nroff.d/ |
H A D | n6.c | 57 tchar j; in width() 111 tchar setch() in setch() 127 tchar setabs() /* set absolute char from \C'...' */ in setabs() 202 tchar setht() /* set character height from \H'...' */ in setht() 205 tchar c; in setht() 214 tchar setslant() /* set slant from \S'...' */ in setslant() 217 tchar c; in setslant() 268 tchar i; in setwd() 304 setn1(wid, 0, (tchar) 0); in setwd() 319 tchar vmot() in vmot() [all …]
|
/titanic_44/usr/src/cmd/troff/troff.d/ |
H A D | t6.c | 68 tchar j; in width() 223 tchar i; in xbits() 254 tchar setch() in setch() 273 tchar setabs() /* set absolute char from \C'...' */ in setabs() 421 tchar setht() /* set character height from \H'...' */ in setht() 424 tchar c; in setht() 437 tchar setslant() /* set slant from \S'...' */ in setslant() 440 tchar c; in setslant() 497 tchar i; in setwd() 533 setn1(wid, 0, (tchar) 0); in setwd() [all …]
|