Searched refs:hdr (Results 1 - 25 of 45) sorted by relevance

12

/ast/src/cmd/dsslib/netflow/
H A Dflow-fixed.c97 Fixedheader_t hdr; local
99 memset(&hdr, 0, sizeof(hdr));
100 hdr.magic.magic = MAGICID;
101 strcpy(hdr.magic.name, MAGIC_NAME);
102 strcpy(hdr.magic.type, MAGIC_TYPE);
103 hdr.magic.version = MAGIC_VERSION;
104 hdr.magic.size = sizeof(Netflow_t);
105 sfwrite(file->io, &hdr, sizeof(hdr));
[all...]
/ast/src/cmd/paxlib/lha/
H A Dlha.c100 register unsigned char* hdr; local
110 if (paxread(pax, ap, ss, sizeof(ss), 0, 0) != sizeof(ss) || !(hdr = paxget(pax, ap, n = ss[0], NiL)) || lha_method(hdr))
113 h += hdr[i];
116 f->st->st_size = swapget(3, hdr+5, 4);
117 f->uncompressed = swapget(3, hdr+9, 4);
118 ar->method[4] = hdr[1];
119 ar->method[5] = hdr[2];
120 ar->method[6] = hdr[3];
121 dostime = swapget(3, hdr
[all...]
/ast/src/lib/libardir/
H A Dar-port.c114 Header_t* hdr; local
128 hdr = (Header_t*)(buf + MAGIC_SIZE);
129 if (hdr->ar_fmag[0] != FMAG_port_0 || hdr->ar_fmag[1] != FMAG_port_1)
140 name = hdr->ar_name;
146 name = (char*)(hdr + 1);
151 if (sfsscanf(hdr->ar_size, "%ld", &size) != 1)
155 if ((ar->flags & ARDIR_RANLIB) && (sfsscanf(hdr->ar_date, "%lu", &ar->symtime) != 1 || (unsigned long)ar->st.st_mtime > ar->symtime + (strmatch(name, SYMDIR_strict) ? 0 : SYMDIR_age)))
157 if (!(ar->flags & ARDIR_RANLIB) && hdr->ar_uid[0] == ' ' && hdr
[all...]
H A Dar-s5r0.c106 Header_t* hdr; local
111 hdr = (Header_t*)buf;
112 if (memcmp(hdr->ar_magic, MAGIC, MAGIC_SIZE))
118 state->offset = sizeof(Header_t) + swapget(0, hdr->ar_syms, sizeof(hdr->ar_syms)) * sizeof(Symbol_t);
H A Dar-aix.c95 Header_t* hdr; local
101 hdr = (Header_t*)buf;
102 if (memcmp(hdr->fl_magic, MAGIC, MAGIC_SIZE))
107 if (sfsscanf(hdr->fl_gstoff, "%ld", &m) != 1)
109 if (sfsscanf(hdr->fl_fstmoff, "%ld", &m) != 1)
112 if (sfsscanf(hdr->fl_memoff, "%ld", &m) != 1)
H A Dar-aixbig.c96 Header_t* hdr; local
102 hdr = (Header_t*)buf;
103 if (memcmp(hdr->fl_magic, MAGIC, MAGIC_SIZE))
108 if (sfsscanf(hdr->fl_gstoff, "%ld", &m) != 1)
110 if (sfsscanf(hdr->fl_fstmoff, "%ld", &m) != 1)
113 if (sfsscanf(hdr->fl_memoff, "%ld", &m) != 1)
/ast/src/cmd/paxlib/zip/
H A Dzip.c125 unsigned char* hdr; local
146 (hdr = paxget(pax, ap, ZIP_END_HEADER, NiL)) &&
147 swapget(0, &hdr[0], 4) == ZIP_END_MAGIC)
154 pos = swapget(3, &hdr[ZIP_END_OFF], 4);
162 while ((hdr = paxget(pax, ap, -ZIP_CEN_HEADER, NiL)) && swapget(0, &hdr[0], 4) == ZIP_CEN_MAGIC)
164 n = swapget(3, &hdr[ZIP_CEN_NAM], 2);
170 mem->encoded = swapget(3, &hdr[ZIP_CEN_SIZ], 4);
171 mem->decoded = swapget(3, &hdr[ZIP_CEN_LEN], 4);
172 mem->checksum = swapget(3, &hdr[ZIP_CEN_CR
215 unsigned char* hdr; local
[all...]
/ast/src/cmd/dsslib/bgp/
H A Dbgp-fixed.c96 Fixedheader_t hdr; local
98 memset(&hdr, 0, sizeof(hdr));
99 hdr.magic.magic = MAGICID;
100 strcpy(hdr.magic.name, MAGIC_NAME);
101 strcpy(hdr.magic.type, MAGIC_TYPE);
102 hdr.magic.version = MAGIC_VERSION;
103 hdr.magic.size = sizeof(Bgproute_t);
104 sfwrite(file->io, &hdr, sizeof(hdr));
[all...]
/ast/src/lib/libcs/
H A Dcsrecv.c46 struct cmsghdr hdr; member in struct:__anon338
63 ctl.hdr.cmsg_len = msg.msg_controllen;
64 ctl.hdr.cmsg_level = SOL_SOCKET;
65 ctl.hdr.cmsg_type = SCM_RIGHTS;
76 if (ctl.hdr.cmsg_level != SOL_SOCKET || ctl.hdr.cmsg_type != SCM_RIGHTS)
78 n = (ctl.hdr.cmsg_len - sizeof(ctl.hdr)) / sizeof(fds[0]);
115 struct csfdhdr hdr; local
240 if (!(m = read(fd, &hdr, sizeo
[all...]
H A Dcssend.c37 struct csfdhdr hdr; local
45 hdr.count = n;
46 hdr.pid = getpid();
50 if (putmsg(fd, NiL, &dat, 0) < 0 || write(fd, &hdr, sizeof(hdr)) != sizeof(hdr))
52 if (write(fd, &hdr, sizeof(hdr)) != sizeof(hdr))
55 messagef((state->id, NiL, -1, "send: %d: hdr writ
[all...]
/ast/src/lib/libdll/
H A Ddlfcn.c121 struct hdr struct
192 static char* getloc(struct hdr* hdr, char* data, char* name) argument
205 datareloc = (ulong)data - hdr->s[hdr->a.o_sndata-1].s_vaddr;
206 /*hdr is address of header, not text, so add text s_scnptr */
207 textreloc = (ulong)hdr + hdr->s[hdr->a.o_sntext-1].s_scnptr
208 - hdr
[all...]
/ast/src/cmd/paxlib/calib/
H A Dcalib.c284 unsigned char hdr[30]; local
292 if (sizeof(hdr) <= size)
293 memcpy(hdr, buf, sizeof(hdr));
294 else if (paxread(pax, ap, hdr, (off_t)sizeof(hdr), (off_t)sizeof(hdr), 0) <= 0)
297 paxunread(pax, ap, hdr, sizeof(hdr));
298 if (memcmp(hdr, MAGI
372 unsigned char* hdr; local
441 (*pax->errorf)(NiL, pax, 0, "%03d %3u %3u %5u %3u %03o %4u %4u %4u %4u %4u %4o %4o %4o %4u %4u", error_info.line, ar->count, ar->next - hdr, ar->next - ar->buffer, hdr[0], hdr[1], hdr[2], hdr[3], hdr[4], hdr[5], hdr[6], hdr[7], hdr[8], hdr[9], hdr[10], hdr[11]); local
443 (*pax->errorf)(NiL, pax, 0, "%03d %3u %3u %3u %03o %04..4u %04..4u %04..4u %04..4u %04..4u %04..4u %04..4u %04..4u %04..4u %04..4u", error_info.line, ar->count, ar->next - hdr, hdr[0], hdr[1], hdr[2], hdr[3], hdr[4], hdr[5], hdr[6], hdr[7], hdr[8], hdr[9], hdr[10], hdr[11]); local
[all...]
/ast/src/cmd/paxlib/ico/
H A Dico.c161 unsigned char hdr[ICO_HEADER]; local
167 swapput(3, hdr+0, 2, ICO_MAGIC);
168 swapput(3, hdr+2, 2, ICO_TYPE);
169 swapput(3, hdr+4, 2, 1);
170 sfwrite(sp, hdr, ICO_HEADER);
171 if (paxdata(pax, ap, f, fd, hdr, ICO_HEADER))
189 unsigned char hdr[ICO_HEADER]; local
195 swapput(3, hdr+0, 2, ICO_MAGIC);
196 swapput(3, hdr+2, 2, ICO_TYPE);
197 swapput(3, hdr
[all...]
/ast/src/cmd/ksh93/bltins/
H A Denum.c91 Namfun_t hdr; member in struct:Enum
128 return(&ep->hdr);
139 nv_disc(np,&ep->hdr,NV_POP);
140 if(!ep->hdr.nofree)
260 ep->hdr.dsize = sizeof(struct Enum)+sz;
261 ep->hdr.disc = &ENUM_disc;
262 ep->hdr.type = tp;
264 nv_disc(tp, &ep->hdr,NV_FIRST);
H A Dgetopts.c68 Optdisc_t hdr; member in struct:__anon106
72 disc.hdr.version = OPT_VERSION;
73 disc.hdr.infof = infof;
124 opt_info.disc = &disc.hdr;
/ast/src/cmd/kshlib/dss/
H A Ddss.c113 Namtype_t hdr; member in struct:parent
140 int n = (char**)bp->ptr-dp->hdr.names;
149 if(!(qp = cxquery(cx, dp->hdr.names[n], cx->disc)))
260 if(nv_isattr(pp->hdr.np,NV_INTEGER))
264 op->value.number = nv_getnum(pp->hdr.np);
299 if(!dp->hdr.np->nvalue)
309 rp->data = dp->hdr.np->nvalue;
310 rp->size = nv_size(dp->hdr.np);
358 if(cxcast(dp->cx,&ret,vp,dp->state->type_number,dp->hdr.np->nvalue,(char*)0)==0)
360 if(cxcast(dp->cx,&ret,vp,dp->state->type_number,dp->hdr
[all...]
/ast/src/lib/libast/port/
H A Dmnt.c163 Header_t hdr;
309 set(&mp->hdr, mp->next->f_mntfromname, mp->next->f_mntonname, TYPE(mp->next), n ? (mp->opt + 1) : (char*)0);
311 return &mp->hdr.mnt;
346 Header_t hdr;
438 set(&mp->hdr, s, vmt2dataptr(mp->next, VMT_STUB), t, o);
441 return &mp->hdr.mnt;
534 Header_t hdr;
562 set(&mp->hdr, mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, OPTIONS(mnt));
563 return &mp->hdr.mnt;
643 Header_t hdr;
[all...]
/ast/src/cmd/pax/
H A Dpax-cpio.c720 Binary_header_t hdr; local
722 if (paxread(pax, ap, &hdr, (off_t)BINARY_HEADER, (off_t)BINARY_HEADER, 0) <= 0)
726 memcpy(state.tmp.buffer, &hdr, BINARY_HEADER);
727 swapmem(ap->swap, &hdr, &hdr, BINARY_HEADER);
729 f->magic = hdr.magic;
732 f->namesize = hdr.namesize;
733 f->st->st_dev = hdr.dev;
734 f->st->st_ino = hdr.ino;
735 f->st->st_mode = hdr
751 Binary_header_t hdr; local
[all...]
H A Dpax-tar.c271 if (!ap->tmp.hdr && !(ap->tmp.hdr = sfstropen()))
273 listprintf(ap->tmp.hdr, ap, f, fmt);
274 if (sfstrtell(ap->tmp.hdr) > TARSIZEOF(name))
276 sfstrseek(ap->tmp.hdr, 0, SEEK_SET);
282 listprintf(ap->tmp.hdr, ap, f, fmt);
285 if (!(s = sfstruse(ap->tmp.hdr)))
936 register Tarheader_t* hdr; local
946 hdr = (Tarheader_t*)data;
947 if (!isdigit(hdr
[all...]
H A Dpax-slt.c188 char hdr[HDR_SIZE + 1]; local
194 memcpy(hdr, buf, HDR_SIZE);
197 ccmapstr(state.map.e2n, hdr, HDR_SIZE);
198 if (!strneq(hdr, key, sizeof(key) - 1))
200 ccmapstr(state.map.e2n, hdr, HDR_SIZE);
207 ccmapstr(state.map.a2n, hdr, HDR_SIZE);
208 if (!strneq(hdr, key, sizeof(key) - 1))
220 getlabstr(hdr, 5, 6, state.volume);
221 getlabstr(hdr, 25, 6, slt->format);
222 getlabstr(hdr, 3
[all...]
/ast/src/cmd/kshlib/dbm_t/
H A Ddbm_t.c84 dp = ap->hdr.disc;
85 nv_disc(np,&ap->hdr,NV_POP);
126 if(!ap->header.hdr.type && data.dsize>1 && *val==0 && val[1])
143 if(ap->header.hdr.type)
189 ap->header.hdr.disc = array_disc(np);
193 ap->header.hdr.nofree = 0;
194 ap->header.hdr.dsize = sizeof(struct dbm_array);
411 nv_settype(&ap->node, ap->header.hdr.type,0);
/ast/src/lib/libvcodex/
H A Dvcsfxsort.c48 #define MAXHEADER 1024 /* max hdr to limit sfxqsort recursion */
187 static void sfxqsort(Vcsfx_t* sfx, Vcsfxint_t* min, Vcsfxint_t* max, Vcsfxint_t hdr, int period) argument
189 static void sfxqsort(sfx, min, max, hdr, period)
193 Vcsfxint_t hdr; /* common header */
205 { le = inv + (pi+hdr); re = inv + (*r+hdr); /**/DEBUG_ASSERT(le != re);
224 { ln = inv[min[RAND()%sz]+hdr];
225 mn = inv[min[RAND()%sz]+hdr];
226 rn = inv[min[RAND()%sz]+hdr];
234 { if((k = inv[*l + hdr]
[all...]
/ast/src/cmd/ksh93/sh/
H A Dinit.c149 Namfun_t hdr; member in struct:seconds
155 Namfun_t hdr; member in struct:rand
162 Namfun_t hdr; member in struct:ifs
168 Namfun_t hdr; member in struct:match
779 if(ap->hdr.next != &mp->hdr)
783 SH_MATCHNOD->nvfun = &ap->hdr;
797 if(!nv_hasdisc(SH_MATCHNOD,mp->hdr.disc))
798 nv_disc(SH_MATCHNOD,&mp->hdr,NV_LAST);
1704 Namfun_t hdr; member in struct:Stats
2158 Namfun_t hdr; member in struct:Mapchar
[all...]
H A Darray.c87 size_t size = ap->hdr.dsize;
89 size = ap->hdr.disc->dsize;
93 aq->hdr.nofree &= ~1;
94 aq->hdr.nofree |= (flags&NV_RDONLY)?1:0;
157 while(*fp && *fp!= &old->header.hdr)
161 new->header.hdr.next = (*fp)->next;
162 *fp = &new->header.hdr;
257 Namfun_t *fp = &arp->hdr;
475 return(&ap->hdr);
557 return(&ap->hdr);
[all...]
/ast/src/cmd/INIT/
H A Diffe.sh61 is_hdr() # [ - ] [ file.c ] hdr
71 is hdr $1
156 hdr) mm="a header" ;;
761 defines *_SOURCE feature test macros.]:[hdr:=NONE]
769 [O:stdio?Sets the standard io header to \ahdr\a.]:[hdr:=stdio.h]
917 [+def \aname\a?Equivalent to \bcmd,dat,hdr,key,lib,mth,sys,typ\b
933 [+hdr \aname\a?Defines \b_hdr_\b\aname\a if the header
1876 hdr=
2127 -) com_hdr=$hdr
2196 *) hdr
[all...]

Completed in 143 milliseconds

12