Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 25 of 146) sorted by relevance

123456

/original-bsd/lib/librpc/rpc/
H A Dclnt_tcp.c130 ct = (struct ct_data *)mem_alloc(sizeof(*ct));
131 if (ct == NULL) {
173 ct->ct_sock = *sockp;
176 ct->ct_addr = *raddr;
191 xdrmem_create(&(ct->ct_xdrs), ct->ct_mcall, MCALL_MSG_SIZE,
199 ct->ct_mpos = XDR_GETPOS(&(ct->ct_xdrs));
252 if ((! XDR_PUTBYTES(xdrs, ct->ct_mcall, ct->ct_mpos)) ||
327 *errp = ct->ct_error;
381 if (ct->ct_closeit) {
395 readtcp(ct, buf, len) in readtcp() argument
[all …]
/original-bsd/games/hack/
H A Dhack.makemon.c23 register tmp, ct; local
31 ct = CMNUM - strlen(fut_geno);
33 if(index(fut_geno, '@')) ct++;
35 tmp = rn2(ct*dlevel/24 + 7);
37 if(tmp >= ct) tmp = rn1(ct - ct/2, ct/2);
38 for(ct = 0; ct < CMNUM; ct++){
39 ptr = &mons[ct];
49 for(ct = 0; ct < ptr->pxlth; ct++)
189 register int ct; local
192 for(ct = 0; ct < CMNUM; ct++) {
[all …]
/original-bsd/old/eqn/common_source/
H A De.y46 matrix : MATRIX { $$ = ct; } ;
58 lcol : LCOL { $$ = ct++; } ;
59 ccol : CCOL { $$ = ct++; } ;
60 rcol : RCOL { $$ = ct++; } ;
61 col : COL { $$ = ct++; } ;
76 | lpile '{' list '}' { lpile('L', $1, ct); ct = $1; }
77 | cpile '{' list '}' { lpile('C', $1, ct); ct = $1; }
78 | rpile '{' list '}' { lpile('R', $1, ct); ct = $1; }
79 | pile '{' list '}' { lpile('-', $1, ct); ct = $1; }
140 lpile : LPILE { $$ = ct; } ;
[all …]
H A Dmatrix.c17 lp[p1] = ct - p1 - 1;
20 for( i=p1+1; i<ct; i++ )
24 lp[ct++] = type;
34 for( i=p1; i<ct; i += lp[i]+2 ){
72 ct = p1;
/original-bsd/local/ditroff/ditroff.okeeffe/eqn/
H A De.y37 matrix : MATRIX { $$ = ct; } ;
49 lcol : LCOL { $$ = ct++; } ;
50 ccol : CCOL { $$ = ct++; } ;
51 rcol : RCOL { $$ = ct++; } ;
52 col : COL { $$ = ct++; } ;
67 | lpile '{' list '}' { lpile('L', $1, ct); ct = $1; }
68 | cpile '{' list '}' { lpile('C', $1, ct); ct = $1; }
69 | rpile '{' list '}' { lpile('R', $1, ct); ct = $1; }
70 | pile '{' list '}' { lpile('-', $1, ct); ct = $1; }
132 lpile : LPILE { $$ = ct; } ;
[all …]
H A Dmatrix.c9 int oct = ct;
11 lp[ct++] = type;
12 lp[ct++] = 0; /* count, to come */
13 lp[ct++] = 0; /* separation, to come */
22 lp[oct+1] = ct - oct - 3;
27 for (i = oct+3; i < ct; i++ )
46 for (i = oct+1; i < ct; i += lp[i]+3 ) {
/original-bsd/local/sccscmds/sccscmds.ok/cmd/
H A Dctime.c96 register struct tm *ct; local
103 ct = gmtime(&copyt);
104 dayno = ct->tm_yday;
107 if (ct->tm_year==74 || ct->tm_year==75) {
108 daylbegin = daytab[ct->tm_year-74].daylb;
109 daylend = daytab[ct->tm_year-74].dayle;
111 daylbegin = sunday(ct, daylbegin);
112 daylend = sunday(ct, daylend);
117 ct = gmtime(&copyt);
118 ct->tm_isdst++;
[all …]
/original-bsd/local/sccscmds/sccscmds.2/cmd/
H A Dctime.c96 register struct tm *ct; local
103 ct = gmtime(&copyt);
104 dayno = ct->tm_yday;
107 if (ct->tm_year==74 || ct->tm_year==75) {
108 daylbegin = daytab[ct->tm_year-74].daylb;
109 daylend = daytab[ct->tm_year-74].dayle;
111 daylbegin = sunday(ct, daylbegin);
112 daylend = sunday(ct, daylend);
117 ct = gmtime(&copyt);
118 ct->tm_isdst++;
[all …]
/original-bsd/local/transcript/lib/troff.font/
H A DMakefile12 .SUFFIXES: .ct .map
17 FAMILIES = Times.ct Helvetica.ct
18 FILES= Times.head Times.ct ftR ftI ftB ftS \
19 Helvetica.head Helvetica.ct ftH ftHI ftHB ftHS
27 .map.ct:
41 rm -f - *.ct *.head *.c *.o ft? ft?? *BAK *CKP .emacs_[0-9]*
/original-bsd/old/refer/NOTUSED/whatabout/
H A Dwhat4.c20 int ct; member
58 word[j].ct = 1;
62 word[j].ct++;
67 for(nw=0; word[nw].ct >0 && nw<TSIZE; nw++)
68 if (nw>=nin*2 && word[nw].ct != word[0].ct)
135 return (word[n1].ct >= word[n2].ct); in wcomp()
142 tt.ct = word[n1].ct; in wexch()
144 word[n1].ct = word[n2].ct; in wexch()
146 word[n2].ct = tt.ct; in wexch()
/original-bsd/usr.bin/file/
H A Dfile.c509 int ct[NASC], j, vow, freq, rare; local
513 ct[j]=0;
517 ct[bp[j]|040]++;
536 vow = ct['a'] + ct['e'] + ct['i'] + ct['o'] + ct['u'];
537 freq = ct['e'] + ct['t'] + ct['a'] + ct['i'] + ct['o'] + ct['n'];
538 rare = ct['v'] + ct['j'] + ct['k'] + ct['q'] + ct['x'] + ct['z'];
539 if (2*ct[';'] > ct['e']) return(0);
540 if ( (ct['>']+ct['<']+ct['/'])>ct['e']) return(0); /* shell file test */
541 return (vow*5 >= n-ct[' '] && freq >= 10*rare);
/original-bsd/local/transcript/src/
H A Dpscatmap.c481 while ((ct->catcode < curcode) && (ct <= &ctab[nchars])) { in WriteTable()
482 ct++; in WriteTable()
488 map.x = ct->x; in WriteTable()
489 map.y = ct->y; in WriteTable()
494 ct++; in WriteTable()
571 ct = ctab;
573 while ((ct < &ctab[nchars]) && (ct->trcode < curcode) ||
574 ((ct->trcode == curcode) && ((ct->catcode>>7) < fontno))) {
575 ct++;
578 if ((ct >= &ctab[nchars]) || (curcode != ct->trcode) ||
[all …]
/original-bsd/usr.bin/uucp/libuu/
H A Dgnxseq.c32 int count = 0, ct, ret, i; local
61 ret = sscanf(buf, "%s%d", name, &ct);
63 ct = 0;
65 if (ct > 9998)
66 ct = 0;
73 count = ++ct;
77 fprintf(fp1, "%s %d %d/%d-%2.2d:%2.2d\n", name, ct,
82 fprintf(fp1, "%s %d %d/%d-%02d:%02d\n", name, ct,
/original-bsd/usr.bin/last/
H A Dlast.c140 char *ct, *crmsg; in wtmp() local
167 ct = ctime(&bp->ut_time); in wtmp()
173 bp->ut_host, ct, ct + 11); in wtmp()
186 ct = ctime(&bp->ut_time); in wtmp()
191 ct, ct + 11); in wtmp()
208 ct = ctime(&bp->ut_time); in wtmp()
213 ct, ct + 11); in wtmp()
239 ct = ctime(&buf[0].ut_time); in wtmp()
240 printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11); in wtmp()
387 char *ct; local
[all …]
/original-bsd/local/ditroff/ditroff.okeeffe/tbl/
H A Dvertlines.c172 int ct; in midbcol() local
174 while((ct = ctype(i, c)) == 's') in midbcol()
176 if(ct == '-' || ct == '=') in midbcol()
177 return(ct); in midbcol()
178 if(ct = barent(table[i][c].col)) in midbcol()
179 return(ct); in midbcol()
H A Dwrite1line.c12 #define realsplit ((ct == 'a' || ct == 'n') && table[nl][c].rcol)
62 switch(ct = fullbot[nl]){ in putline()
65 fullwide(nl, ct); in putline()
134 ct = (int) reg(c, CLEFT); in putline()
136 ct = (int) reg(c, CMID); in putline()
138 ct = (int) reg(c, CMID); in putline()
139 printf("\\h'|\\n(%2su'", ct); in putline()
148 switch(ct = ctype(vforml, c)){ in putline()
212 makeline(i, c, ct); in putline()
348 int c, s, pl, lwid, dv, lf, ct; in funnies() local
[all …]
/original-bsd/old/tbl/
H A Dtv.c130 int ct; in midbcol() local
131 while ( (ct=ctype(i,c)) == 's') in midbcol()
133 if (ct=='-' || ct == '=') in midbcol()
134 return(ct); in midbcol()
135 if (ct=barent(table[i][c].col)) in midbcol()
136 return(ct); in midbcol()
H A Dt8.c11 # define realsplit ((ct=='a'||ct=='n') && table[nl][c].rcol)
19 int c, lf, ct, form, lwid, vspf, ip = -1, cmidx, exvspen, vforml; in putline() local
53 switch (ct=fullbot[nl]) in putline()
57 fullwide(nl,ct); in putline()
116 ct = c+CLEFT; in putline()
117 if (form=='a') ct = c+CMID; in putline()
119 fprintf(tabout, "\\h'|\\n(%du'", ct); in putline()
125 switch(ct=ctype(vforml, c)) in putline()
165 makeline(i,c,ct); in putline()
261 int c, s, pl, lwid, dv, lf, ct; in funnies() local
[all …]
/original-bsd/local/local.cmd/
H A Dncpio.c141 register ct; local
331 Cflag? writehdr(BBuf,ct): bwrite(Buf,ct);
364 Cflag? readhdr(BBuf,ct): bread(Buf, ct);
367 Cflag? swap(BBuf,ct): swap(Buf,ct);
1159 register ct; in swap()
1170 if (ct % 2) buf[ct] = 0;
1171 ct = (ct + 1) / 2;
1187 ct = (ct + (sizeof(union swp) -1)) / sizeof(union swp);
1200 ct = (ct + (sizeof(union swp) -1)) / sizeof(union swp);
1276 if (ct == 2) ct = 0; /* the file already exists */
[all …]
/original-bsd/usr.bin/pascal/src/
H A Drec.c171 struct nl *ct; variable
176 ct = gtype(r->varpt.type_id);
177 if ( ( ct != NLNIL ) && ( isnta( ct , "bcsi" ) ) ) {
186 p->ptr[NL_TAG] = deffld(p, r->varpt.cptr, ct);
204 (void) defvnt(p, v->list_node.list, vr, ct);
265 defvnt(p, t, vr, ct) in defvnt() argument
268 register struct nl *ct;
273 if (ct != NIL && incompat(con.ctype, ct , t )) {
277 ct = NIL;
279 av = defnl((char *) 0, VARNT, ct, 0);
[all …]
H A Dpccaseop.c29 struct ct { struct
77 struct ct *ctab;
78 struct ct *ctp;
148 ctab = (struct ct *) malloc( count * sizeof( struct ct ) );
149 if ( ctab == (struct ct *) 0 ) {
259 struct ct *ctab;
403 struct ct *ctab;
415 struct ct *ctab;
456 struct ct *ctab;
476 struct ct *this; in casecmp()
[all …]
/original-bsd/usr.bin/tftp/
H A Dtftpsubs.c148 writeit(file, dpp, ct, convert) in writeit() argument
151 int ct, convert;
153 bfs[current].counter = ct; /* set size of data to write */
159 return ct; /* this is a lie of course */
175 register int ct; local
197 ct = count;
198 while (ct--) { /* loop over the buffer */
/original-bsd/old/sdb/
H A Dre.c211 int ct; local
252 ct = braelist[*ep++] - bbeg;
253 if(ecmp(bbeg, lp, ct)) {
254 lp += ct;
263 ct = braelist[*ep++] - bbeg;
265 while(ecmp(bbeg, lp, ct))
266 lp += ct;
269 lp -= ct;
/original-bsd/old/refer/inv/
H A Dinv6.c20 int ct = 0; local
44 hfreq[hash]=ct;
52 ct=0;
61 ct++;
/original-bsd/games/dm/
H A Ddm.c127 static struct tm *ct; local
130 if (!ct)
131 ct = localtime(&now);
132 if (strcasecmp(s_day, days[ct->tm_wday]))
138 if (ct->tm_hour >= start && ct->tm_hour < stop) {

123456