| /plan9/sys/src/cmd/sam/ |
| H A D | file.c | 20 uint seq; /* sequence number */ member 28 uint seq; /* of logged change */ member 51 f->seq = 0; in fileopen() 61 return f->seq != f->cleanseq; in fileisdirty() 65 wrinsert(Buffer *delta, int seq, int mod, uint p0, Rune *s, uint ns) in wrinsert() argument 71 u.seq = seq; in wrinsert() 79 wrdelete(Buffer *delta, int seq, int mod, uint p0, uint p1) in wrdelete() argument 85 u.seq = seq; in wrdelete() 99 if(merge.seq != f->seq) in flushmerge() 102 wrdelete(&f->epsilon, f->seq, TRUE, merge.p0, merge.p0+merge.n); in flushmerge() [all …]
|
| /plan9/sys/src/cmd/cifs/ |
| H A D | ping.c | 33 uchar seq[2]; member 66 int rtt, fd, i, seq; in ping() local 88 for(seq = 0; seq < Npings; seq++){ in ping() 91 buf[i] = i + seq; in ping() 94 ip->seq[0] = seq; in ping() 95 ip->seq[1] = seq; in ping() 102 ip->seq[0] != seq || ip->seq[1] != seq) in ping() 105 if((uchar)buf[i] != (uchar)(i + seq)) in ping()
|
| H A D | auth.c | 28 dmp(char *s, int seq, void *buf, int n) in dmp() argument 33 print("%s %3d ", s, seq); in dmp() 370 genmac(uchar *buf, int len, int seq, uchar key[MACkeylen], uchar ours[MAClen]) in genmac() argument 379 sig[0] = seq; in genmac() 380 sig[1] = seq >> 8; in genmac() 381 sig[2] = seq >> 16; in genmac() 382 sig[3] = seq >> 24; in genmac() 392 macsign(Pkt *p, int seq) in macsign() argument 402 if(seq & 1) in macsign() 403 dmp("rx", seq, sig, MAClen); in macsign() [all …]
|
| H A D | auth-testcase.c | 29 dmp(char *s, int seq, void *buf, int n) in dmp() argument 34 print("%s %3d ", s, seq); in dmp() 422 genmac(uchar *buf, int len, int seq, uchar key[MACkeylen], uchar mine[MAClen]) 430 sig[0] = seq; 431 sig[1] = seq >> 8; 432 sig[2] = seq >> 16; 433 sig[3] = seq >> 24; 455 if(genmac(buf, len, p->seq+i, zeros, mac) == 0){ 457 dmp("Zero OK", p->seq, mac, MAClen); 461 if(genmac(buf, len, p->seq+i, p->s->auth->mackey[0], mac) == 0){ [all …]
|
| H A D | cifs.c | 39 s->seq = 0; in cifsdial() 82 p->seq = s->seq; in cifshdr() 83 s->seq = (s->seq + 2) % 0x10000; in cifshdr() 94 pl32(p, p->seq); /* MAC / sequence number */ in cifshdr() 124 dmp(int seq, uchar *buf) in dmp() argument 128 if(seq == 99) in dmp() 131 print("%+2d ", seq); in dmp() 141 uint tid, uid, seq; in cifsrpc() local 153 macsign(p, p->seq); in cifsrpc() 173 seq = gl32(p); /* reserved */ in cifsrpc() [all …]
|
| /plan9/sys/src/cmd/ip/imap4d/ |
| H A D | debug.c | 29 ulong seq, uid, recent; in boxVerify() local 34 seq = 0; in boxVerify() 37 if(m->seq == 0) in boxVerify() 38 fprint(2, "m->seq == 0: m->seq=%lud\n", m->seq); in boxVerify() 39 else if(m->seq <= seq) in boxVerify() 40 fprint(2, "m->seq=%lud out of order: last=%lud\n", m->seq, seq); in boxVerify() 41 seq = m->seq; in boxVerify() 44 fprint(2, "m->uid == 0: m->seq=%lud\n", m->seq); in boxVerify() 52 if(seq != box->max) in boxVerify() 53 fprint(2, "max=%lud, should be %lud\n", box->max, seq); in boxVerify()
|
| /plan9/sys/src/9/port/ |
| H A D | unthwack.c | 65 ulong bseq, seq; in unthwackstate() local 68 seq = ~0UL; in unthwackstate() 79 bseq = ut->blocks[slot].seq; in unthwackstate() 80 if(seq == ~0UL) in unthwackstate() 81 seq = bseq; in unthwackstate() 82 else if(seq - bseq > MaxSeqMask) in unthwackstate() 85 m |= 1 << (seq - bseq - 1); in unthwackstate() 88 return seq; in unthwackstate() 98 unthwackinsert(Unthwack *ut, int len, ulong seq) in unthwackinsert() argument 108 if(ut->blocks[slot].seq <= seq || ut->blocks[slot].maxoff == 0) in unthwackinsert() [all …]
|
| H A D | thwack.c | 71 thwackack(Thwack *tw, ulong seq, ulong mask) in thwackack() argument 82 if(tw->blocks[slot].seq != seq) in thwackack() 91 seq--; in thwackack() 112 then = b->hash[(h ^ b->seq) & HashMask]; in thwmatch() 162 thwack(Thwack *tw, uchar *dst, uchar *src, int n, ulong seq, ulong stats[ThwStats]) in thwack() argument 181 b->seq = seq; in thwack() 193 cseq = seq; in thwack() 208 bseq = tw->blocks[slot].seq; in thwack() 209 if(cseq == seq){ in thwack() 210 if(seq - bseq >= MaxSeqStart) in thwack() [all …]
|
| H A D | thwack.h | 32 ulong seq; /* sequence number for this data */ member 51 ulong seq; /* sequence number for this data */ member 65 int thwack(Thwack*, uchar *dst, uchar *src, int nsrc, ulong seq, ulong stats[ThwStats]); 66 void thwackack(Thwack*, ulong seq, ulong mask); 67 int unthwack(Unthwack*, uchar *dst, int ndst, uchar *src, int nsrc, ulong seq);
|
| /plan9/sys/src/cmd/ip/ppp/ |
| H A D | unthwack.c | 64 ulong bseq, seq; in unthwackstate() local 67 seq = ~0UL; in unthwackstate() 78 bseq = ut->blocks[slot].seq; in unthwackstate() 79 if(seq == ~0UL) in unthwackstate() 80 seq = bseq; in unthwackstate() 81 else if(seq - bseq > MaxSeqMask) in unthwackstate() 84 m |= 1 << (seq - bseq - 1); in unthwackstate() 87 return seq; in unthwackstate() 97 unthwackinsert(Unthwack *ut, int len, ulong seq) in unthwackinsert() argument 107 if(ut->blocks[slot].seq <= seq || ut->blocks[slot].maxoff == 0) in unthwackinsert() [all …]
|
| H A D | thw.c | 11 ulong seq; member 116 ulong seq, acked; in comp() local 152 seq = cs->seq; in comp() 158 nn = thwack(&cs->th, mustadd, bb->wptr + 3, n - 3, b, seq, cs->stats); in comp() 179 cs->seq = (seq + 1) & ThwSeqMask; in comp() 183 seq |= ThwUncompAdd; in comp() 185 seq |= ThwCompressed; in comp() 186 seq |= acked; in comp() 187 bb->wptr[0] = seq>>16; in comp() 188 bb->wptr[1] = seq>>8; in comp() [all …]
|
| H A D | thwack.h | 33 ulong seq; /* sequence number for this data */ member 53 ulong seq; /* sequence number for this data */ member 69 int thwack(Thwack*, int mustadd, uchar *dst, int ndst, Block *bsrc, ulong seq, ulong stats[ThwStats… 70 void thwackack(Thwack*, ulong seq, ulong mask); 71 int unthwack(Unthwack*, uchar *dst, int ndst, uchar *src, int nsrc, ulong seq); 73 int unthwackadd(Unthwack *ut, uchar *src, int nsrc, ulong seq);
|
| H A D | thwack.c | 90 thwackack(Thwack *tw, ulong seq, ulong mask) in thwackack() argument 102 if(tw->blocks[slot].seq != seq) in thwackack() 111 seq--; in thwackack() 133 then = b->hash[(h ^ b->seq) & HashMask]; in thwmatch() 183 thwack(Thwack *tw, int mustadd, uchar *dst, int ndst, Block *bsrc, ulong seq, ulong stats[ThwStats]) in thwack() argument 204 b->seq = seq; in thwack() 220 cseq = seq; in thwack() 235 bseq = tw->blocks[slot].seq; in thwack() 236 if(cseq == seq){ in thwack() 237 if(seq - bseq >= MaxSeqStart) in thwack() [all …]
|
| /plan9/sys/src/cmd/acme/ |
| H A D | file.c | 29 uint seq; /* sequence number */ member 78 if(f->seq > 0) in fileinsert() 93 u.seq = f->seq; in fileuninsert() 104 if(f->seq > 0) in filedelete() 121 u.seq = f->seq; in fileundelete() 140 if(f->seq > 0) in filesetname() 157 u.seq = f->seq; in fileunsetname() 168 if(f->seq > 0) in fileload() 184 return u.seq; in fileredoseq() 200 stop = f->seq; in fileundo() [all …]
|
| /plan9/sys/src/cmd/aux/ |
| H A D | mklatinkbd.c | 33 char seq[MAXLD+1]; member 41 mktrie(char *seq) in mktrie() argument 51 assert(seq[0] != '\0'); in mktrie() 54 for(q=(uchar*)seq; *(q+1) != '\0'; q++) { in mktrie() 60 strcpy((*tp)->seq, seq); in mktrie() 61 (*tp)->seq[q+1-(uchar*)seq] = '\0'; in mktrie() 130 cprints(b, t->seq); in printtrie() 158 char *seq; in readfile() local 183 for(inseq=1, seq=p; (uchar)*p < Runeself; p++) { in readfile() 185 if(inseq && p-seq >= 2) { in readfile() [all …]
|
| /plan9/sys/src/cmd/ip/ |
| H A D | ping.c | 21 ushort seq; /* sequence number */ member 37 void (*prlost)(ushort seq, void *v); 87 prlost4(ushort seq, void *v) in prlost4() argument 91 print("lost %ud: %V -> %V\n", seq, ip4->src, ip4->dst); in prlost4() 95 prlost6(ushort seq, void *v) in prlost6() argument 99 print("lost %ud: %I -> %I\n", seq, ip6->src, ip6->dst); in prlost6() 108 r->seq - firstseq, ip4->src, ip4->dst, r->rtt, sum/rcvdmsgs, in prreply4() 118 r->seq - firstseq, ip6->src, ip6->dst, r->rtt, sum/rcvdmsgs, in prreply6() 147 clean(ushort seq, vlong now, void *v) in clean() argument 164 if(v && r->seq == seq){ in clean() [all …]
|
| /plan9/sys/src/cmd/auth/secstore/ |
| H A D | SConn.c | 44 uchar seq[4]; in hash() local 46 seq[0] = seqno>>24; in hash() 47 seq[1] = seqno>>16; in hash() 48 seq[2] = seqno>>8; in hash() 49 seq[3] = seqno; in hash() 53 sha1(seq, 4, d, &sha); in hash() 60 uchar seq[4]; in verify() local 63 seq[0] = seqno>>24; in verify() 64 seq[1] = seqno>>16; in verify() 65 seq[2] = seqno>>8; in verify() [all …]
|
| /plan9/sys/src/cmd/ip/snoopy/ |
| H A D | rtp.c | 11 uchar seq[2]; /* Sequence number */ member 24 ushort seq; in p_seprint() local 38 seq = NetS(h->seq); in p_seprint() 43 (h->hdr >> 6) & 3, (h->hdr >> 4) & 1, cc, seq, ts, ssrc); in p_seprint()
|
| H A D | cec.c | 10 uchar seq; member 61 return h->seq = f->ulv; in p_filter() 102 s, h->conn, h->seq, h->len, in p_seprint()
|
| /plan9/sys/src/cmd/aux/flashfs/ |
| H A D | journal.c | 33 ulong seq; member 108 fprint(2, "new %d %ld\n", g->gnum, s->seq); in newsect() 116 n = putc3(&hdr[m], s->seq); in newsect() 132 newsum(Gen *g, ulong seq) in newsum() argument 139 t->seq = seq; in newsum() 230 long off, seq, soff; in checksweep() local 248 seq = -1; in checksweep() 268 seq = j.seq; in checksweep() 295 seq--; in checksweep() 298 if(seq >= 0) { in checksweep() [all …]
|
| /plan9/sys/src/cmd/ip/dhcpd/ |
| H A D | ping.c | 47 ip->seq[0] = sseq; in icmpecho() 48 ip->seq[1] = sseq>>8; in icmpecho() 63 x = (ip->seq[1]<<8) | ip->seq[0]; in icmpecho()
|
| /plan9/sys/src/cmd/postscript/common/ |
| H A D | tempnam.c | 18 static int seq = 0; in tempnam() local 34 sprintf(tnm, "%s/%s.%d.%d", dir, pfx, pid, seq++); in tempnam() 36 } while (stat(tnm, &stb) >= 0 && seq < 256); in tempnam()
|
| /plan9/sys/lib/lp/process/ |
| H A D | pdfgs | 37 GSPGLIST=($GSPGLIST `{seq 1 `{echo $i|tr -d '-'}}) 40 GSPGLIST=($GSPGLIST `{seq `{echo $i|tr -d '-'} 100}) 42 GSPGLIST=($GSPGLIST `{seq `{echo $i|tr '-' ' '}})
|
| H A D | pdfgsijs | 28 GSPGLIST=($GSPGLIST `{seq 1 `{echo $i|tr -d '-'}}) 31 GSPGLIST=($GSPGLIST `{seq `{echo $i|tr -d '-'} 100}) 33 GSPGLIST=($GSPGLIST `{seq `{echo $i|tr '-' ' '}})
|
| /plan9/sys/src/cmd/auth/factotum/ |
| H A D | secstore.c | 114 uchar seq[4]; in hash() local 116 seq[0] = seqno>>24; in hash() 117 seq[1] = seqno>>16; in hash() 118 seq[2] = seqno>>8; in hash() 119 seq[3] = seqno; in hash() 123 sha1(seq, 4, d, &sha); in hash() 130 uchar seq[4]; in verify() local 133 seq[0] = seqno>>24; in verify() 134 seq[1] = seqno>>16; in verify() 135 seq[2] = seqno>>8; in verify() [all …]
|