Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 62) sorted by relevance

123

/original-bsd/sys/netiso/
H A Dtp_emit.c423 dump_buf( hdr, hdr->tpdu_li + 1 );
429 dump_buf( hdr, hdr->tpdu_li + 1 );
603 hdr, hdr->tpdu_li);
639 ASSERT( ((int)hdr->tpdu_li > 0) && ((int)hdr->tpdu_li < MLEN) );
687 tptraceTPCB(TPPTtpduout, dutype, hdr, hdr->tpdu_li+1, datalen, 0);
803 hdr->tpdu_cdt = 0;
809 hdr->tpdu_li = 6;
869 P = (caddr_t)hdr + (int)(hdr->tpdu_li);
890 dump_buf( (char *)hdr, hdr->tpdu_li );
896 hdr->tpdu_li --;
[all …]
H A Dtp_input.c207 caddr_t PLIM = 1 + hdr->tpdu_li + (caddr_t)hdr;\
473 tptraceTPCB(TPPTtpduin, hdr->tpdu_type, hdr, hdr->tpdu_li+1, tpdu_len,
686 (1 + 2 + (caddr_t)&hdr->_tpduf - (caddr_t)hdr))
912 (1 + 2 + (caddr_t)&hdr->_tpduf - (caddr_t)hdr))
922 (1 + 2 + (caddr_t)&hdr->_tpduf - (caddr_t)hdr))
925 (1 + 2 + (caddr_t)&hdr->_tpduf - (caddr_t)hdr))
928 (1 + 2 + (caddr_t)&hdr->_tpduf - (caddr_t)hdr))
939 (1 + 2 + (caddr_t)&hdr->_tpduf - (caddr_t)hdr))
1192 (1 + (caddr_t)&hdr->tpdu_DCsref - (caddr_t)hdr))
1210 (1 + (caddr_t)&hdr->tpdu_DRsref - (caddr_t)hdr))
[all …]
H A Dte.c103 struct qhdr *hdr; local
109 hdr = &eon_FREE_hdr;
110 ent = qtocentry( hdr->link,
116 hdr = &eon_ES_hdr;
117 ent = qtocentry( hdr->link,
123 hdr = &eon_IS_hdr;
124 ent = qtocentry( hdr->link,
130 hdr = &eon_LINK_hdr;
131 ent = qtocentry( hdr->link,
135 if(hdr == centrytoq(ent, off)->link )
[all …]
H A Dif_eon.c181 eoniphdr(hdr, loc, ro, class, zero)
183 register struct eon_iphdr *hdr; variable
189 bzero((caddr_t)hdr, sizeof (*hdr));
212 hdr->ei_ip.ip_dst = sin->sin_addr;
213 hdr->ei_ip.ip_p = IPPROTO_EON;
214 hdr->ei_ip.ip_ttl = MAXTTL;
215 hdr->ei_eh.eonh_class = class;
216 hdr->ei_eh.eonh_vers = EON_VERSION;
217 hdr->ei_eh.eonh_csum = 0;
218 mhead.m_data = (caddr_t) &hdr->ei_eh;
H A Dclnp_frag.c100 struct mbuf *hdr = NULL; /* save copy of clnp hdr */ variable
115 if ((hdr = m_copy(m, 0, hdr_len)) == NULL) {
165 frag_hdr = hdr;
170 clnp_discard(hdr, GEN_CONGEST);
175 clnp_discard(hdr, GEN_CONGEST);
231 if (frag_hdr != hdr) {
236 clnp_discard(hdr, GEN_NOREAS);
716 struct mbuf *hdr = cfh->cfl_orighdr; local
724 m_cat(hdr, data);
727 struct mbuf *mdump = hdr;
[all …]
/original-bsd/usr.bin/ar/
H A Dheader.c42 struct ar_hdr *hdr; local
55 hdr = (struct ar_hdr *)hb;
63 AR_ATOI(hdr->ar_date, chdr.date, sizeof(hdr->ar_date), DECIMAL);
64 AR_ATOI(hdr->ar_uid, chdr.uid, sizeof(hdr->ar_uid), DECIMAL);
65 AR_ATOI(hdr->ar_gid, chdr.gid, sizeof(hdr->ar_gid), DECIMAL);
66 AR_ATOI(hdr->ar_mode, chdr.mode, sizeof(hdr->ar_mode), OCTAL);
67 AR_ATOI(hdr->ar_size, chdr.size, sizeof(hdr->ar_size), DECIMAL);
70 if (hdr->ar_name[0] == ' ')
78 len = atoi(hdr->ar_name + sizeof(AR_EFMT1) - 1);
90 bcopy(hdr->ar_name, chdr.name, sizeof(hdr->ar_name));
[all …]
H A Darchive.c106 struct ar_hdr *hdr; local
119 hdr = (struct ar_hdr *)hb;
120 if (strncmp(hdr->ar_fmag, ARFMAG, sizeof(ARFMAG) - 1))
127 AR_ATOI(hdr->ar_date, chdr.date, sizeof(hdr->ar_date), DECIMAL);
128 AR_ATOI(hdr->ar_uid, chdr.uid, sizeof(hdr->ar_uid), DECIMAL);
129 AR_ATOI(hdr->ar_gid, chdr.gid, sizeof(hdr->ar_gid), DECIMAL);
130 AR_ATOI(hdr->ar_mode, chdr.mode, sizeof(hdr->ar_mode), OCTAL);
131 AR_ATOI(hdr->ar_size, chdr.size, sizeof(hdr->ar_size), DECIMAL);
134 if (hdr->ar_name[0] == ' ')
155 memmove(chdr.name, hdr->ar_name, sizeof(hdr->ar_name));
[all …]
/original-bsd/lib/libc/db/hash/
H A Dhash.h63 HASHHDR hdr; /* Header */ member
239 #define BSIZE hdr.bsize
240 #define BSHIFT hdr.bshift
241 #define DSIZE hdr.dsize
242 #define SGSIZE hdr.ssize
243 #define SSHIFT hdr.sshift
244 #define LORDER hdr.lorder
248 #define FFACTOR hdr.ffactor
251 #define NKEYS hdr.nkeys
253 #define SPARES hdr.spares
[all …]
/original-bsd/old/enpload/
H A Denpload.c91 struct exec hdr; local
93 if (read(fd, &hdr, sizeof (hdr)) != sizeof (hdr)) {
98 if (N_BADMAG(hdr)) {
102 size = hdr.a_text + hdr.a_data;
103 lstart = (ENPMSTART + (hdr.a_entry & RELO)) - 0x1000;
107 while (hdr.a_bss >= BSIZE) {
112 hdr.a_bss -= BSIZE;
114 if (hdr.a_bss > 0 && write(enp, zbuf, hdr.a_bss) != hdr.a_bss) {
/original-bsd/local/sccscmds/sccscmds.ok/cmd/
H A Dmakefile12 admin.o: admin.c ../hdr/defines.h ../hdr/had.h
18 cmt.o: cmt.c ../hdr/defines.h ../hdr/had.h
24 bdiff.o: bdiff.c ../hdr/defines.h ../hdr/had.h
30 comb.o: comb.c ../hdr/defines.h ../hdr/had.h
36 scv.o: scv.c ../hdr/defines.h ../hdr/had.h
48 delta.o: delta.c ../hdr/defines.h ../hdr/had.h
54 get.o: get.c ../hdr/defines.h ../hdr/had.h
60 help.o: help.c ../hdr/defines.h ../hdr/had.h
66 prt.o: prt.c ../hdr/defines.h ../hdr/had.h
72 prs.o: prs.c ../hdr/defines.h ../hdr/had.h
[all …]
/original-bsd/local/sccscmds/sccscmds.2/cmd/
H A Dmakefile12 admin.o: admin.c ../hdr/defines.h ../hdr/had.h
18 cmt.o: cmt.c ../hdr/defines.h ../hdr/had.h
24 bdiff.o: bdiff.c ../hdr/defines.h ../hdr/had.h
30 comb.o: comb.c ../hdr/defines.h ../hdr/had.h
36 scv.o: scv.c ../hdr/defines.h ../hdr/had.h
48 delta.o: delta.c ../hdr/defines.h ../hdr/had.h
54 get.o: get.c ../hdr/defines.h ../hdr/had.h
60 help.o: help.c ../hdr/defines.h ../hdr/had.h
66 prt.o: prt.c ../hdr/defines.h ../hdr/had.h
72 prs.o: prs.c ../hdr/defines.h ../hdr/had.h
[all …]
/original-bsd/old/as.vax/
H A Dasmain.c67 struct exec hdr; variable
555 hdr.a_bss = dsize; in roundsegments()
578 hdr.a_text = tsize; in build_hdr()
582 hdr.a_entry = 0; in build_hdr()
583 hdr.a_trsize = 0; in build_hdr()
584 hdr.a_drsize = 0; in build_hdr()
586 bwrite((char *)&hdr, sizeof(hdr), usefile[0]); in build_hdr()
654 hdr.a_text += hdr.a_data; in reloc_syms()
655 hdr.a_data = 0; in reloc_syms()
656 hdr.a_trsize += hdr.a_drsize; in reloc_syms()
[all …]
/original-bsd/old/as.tahoe/
H A Dasmain.c59 struct exec hdr; variable
528 hdr.a_bss = dsize; in roundsegments()
551 hdr.a_text = tsize; in build_hdr()
555 hdr.a_entry = 0; in build_hdr()
556 hdr.a_trsize = 0; in build_hdr()
557 hdr.a_drsize = 0; in build_hdr()
559 bwrite((char *)&hdr, sizeof(hdr), usefile[0]); in build_hdr()
646 hdr.a_text += hdr.a_data; in reloc_syms()
647 hdr.a_data = 0; in reloc_syms()
648 hdr.a_trsize += hdr.a_drsize; in reloc_syms()
[all …]
/original-bsd/sys/tests/netiso/
H A Dte.c103 struct qhdr *hdr; local
109 hdr = &eon_FREE_hdr;
110 ent = qtocentry( hdr->link,
116 hdr = &eon_ES_hdr;
117 ent = qtocentry( hdr->link,
123 hdr = &eon_IS_hdr;
124 ent = qtocentry( hdr->link,
130 hdr = &eon_LINK_hdr;
131 ent = qtocentry( hdr->link,
135 if(hdr == centrytoq(ent, off)->link )
[all …]
/original-bsd/contrib/emacs-18.57/src/
H A Dunexec.c237 static struct bhdr hdr, ohdr; variable
614 if (read (a_out, &ohdr, sizeof hdr) != sizeof hdr)
623 hdr = ohdr;
627 bzero (hdr, sizeof hdr);
638 hdr.a_trsize = 0;
639 hdr.a_drsize = 0;
646 hdr.a_text = ohdr.a_text;
656 if (write (new, &hdr, sizeof hdr) != sizeof hdr)
771 lseek (new, (off_t) N_TXTOFF (hdr) + sizeof (hdr), 0);
778 end = ptr + hdr.a_text;
[all …]
/original-bsd/lib/libedit/
H A Dmakelist35 hdr="_h_`basename $1`_$2"
39 printf("#ifndef %s\n#define %s\n", "'$hdr'", "'$hdr'");
49 printf("#endif /* %s */\n", "'$hdr'");
/original-bsd/usr.bin/ranlib/
H A Dtouch.c48 struct ar_hdr *hdr; local
52 size = SARMAG + sizeof(hdr->ar_name);
56 if (write(afd, buf, sizeof(hdr->ar_date)) != sizeof(hdr->ar_date))
/original-bsd/sbin/restore/
H A Dsymtab.c490 hdr.volno = checkpt;
491 hdr.maxino = maxino;
493 hdr.stringsize = stroff;
494 hdr.dumptime = dumptime;
495 hdr.dumpdate = dumpdate;
496 hdr.ntrec = ntrec;
569 dumptime = hdr.dumptime;
570 dumpdate = hdr.dumpdate;
572 newtapebuf(hdr.ntrec);
573 getvol(hdr.volno);
[all …]
/original-bsd/lib/libc/gmon/
H A Dgmon.c109 struct gmonhdr gmonhdr, *hdr; in _mcleanup() local
152 hdr = (struct gmonhdr *)&gmonhdr; in _mcleanup()
153 hdr->lpc = p->lowpc; in _mcleanup()
154 hdr->hpc = p->highpc; in _mcleanup()
155 hdr->ncnt = p->kcountsize + sizeof(gmonhdr); in _mcleanup()
156 hdr->version = GMONVERSION; in _mcleanup()
157 hdr->profrate = clockinfo.profhz; in _mcleanup()
158 write(fd, (char *)hdr, sizeof *hdr); in _mcleanup()
/original-bsd/old/ar11/
H A Dar11.c26 #define fixhdr(hdr) (hdr) argument
32 #define fixhdr(hdr) swaphdr(hdr) argument
669 swaphdr(hdr) in swaphdr() argument
670 struct ar_hdr hdr; in swaphdr()
672 hdr.ar_sdate[0] = fixshort(hdr.ar_sdate[0]);
673 hdr.ar_sdate[1] = fixshort(hdr.ar_sdate[1]);
674 hdr.ar_ssize[0] = fixshort(hdr.ar_ssize[0]);
675 hdr.ar_ssize[1] = fixshort(hdr.ar_ssize[1]);
676 hdr.ar_mode = fixshort(hdr.ar_mode);
677 return (hdr);
/original-bsd/usr.bin/pascal/pdx/object/
H A Dreadobj.c37 struct pxhdr hdr; local
42 get(fp, hdr);
43 if (hdr.magicnum != MAGICNUM) {
45 get(fp, hdr);
46 if (hdr.magicnum != MAGICNUM) {
50 if (hdr.symtabsize == 0) {
53 objsize = hdr.objsize;
61 printf("\tsymtab size %d\n", hdr.symtabsize);
/original-bsd/old/dbx/
H A Dcoredump.c37 private struct exec hdr; variable
89 get(objfile, hdr);
116 switch (hdr.a_magic) {
130 fatal("bad magic number 0x%x", hdr.a_magic);
136 if (hdr.a_magic != 0 and up->u_exdata.ux_mag != 0 and
137 hdr.a_magic != up->u_exdata.ux_mag) {
158 if (hdr.a_magic == OMAGIC or vaddrs) {
161 fseek(objfile, N_TXTOFF(hdr) + addr - CODESTART, 0);
175 if (hdr.a_magic == OMAGIC) {
/original-bsd/usr.bin/file/
H A Dfile.c114 struct exec *hdr; local
166 hdr = (struct exec *) buf;
168 switch (hdr->a_mid) {
185 if (hdr->a_magic == 0406) {
193 if (hdr->a_magic == 0x106) {
214 hdr->a_magic = ((hdr->a_mid & 0xff) << 8) | (hdr->a_mid >> 8);
219 switch (hdr->a_magic) {
241 (hdr->a_trsize || hdr->a_drsize)) {
261 if (hdr->a_syms != 0)
/original-bsd/sys/hp300/dev/
H A Dac.c457 struct ac_restathdr *hdr; local
462 hdr = (struct ac_restathdr *)&sbuf[0];
463 sbuf += sizeof *hdr;
467 hdr->ac_felt, hdr->ac_nelt, hdr->ac_bcount);
468 if (hdr->ac_nelt != ne) {
470 hdr->ac_nelt, ne);
471 if (hdr->ac_nelt < ne)
472 ne = hdr->ac_nelt;
474 bcount = hdr->ac_bcount;
/original-bsd/usr.sbin/amd/amd/
H A Dsched.c31 qelem hdr; /* Linked list */ member
77 ins_que(&p->hdr, &proc_wait_list);
128 rem_que(&p->hdr);
129 ins_que(&p->hdr, &proc_list_head);
236 rem_que(&p->hdr); in do_task_notify()

123