Searched defs:hdr (Results 1 - 25 of 35) sorted by relevance

12

/ast/src/lib/libcs/
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...]
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...]
/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/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/cmd/ksh93/bltins/
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;
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 Dprint.c58 Sffmt_t hdr; member in struct:printf
318 pdata.hdr.version = SFIO_VERSION;
319 pdata.hdr.extf = extend;
327 pdata.hdr.form = format;
/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-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)
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);
/ast/src/cmd/ksh93/sh/
H A Dbash.c169 Namfun_t hdr; member in struct:funcname
/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/coshell/
H A Dcommand.c370 int hdr; local
381 hdr = 0;
589 if (!hdr)
591 hdr = 1;
794 if (!hdr)
796 hdr = 1;
/ast/src/lib/libcodex/
H A Dcodex.c714 void* hdr; local
725 if (!(hdr = sfreserve(ip, siz, 1)) && (!(siz = sfvalue(ip)) || !(hdr = sfreserve(ip, siz, 1))))
727 meth = codexid(hdr, siz, buf, sizeof(buf));
728 sfread(ip, hdr, 0);
/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/lib/libast/port/
H A Dlcgen.c280 char* hdr; local
295 if (!(hdr = *argv++) || !(lib = *argv++) || *argv)
297 fprintf(stderr, "%s: { hdr lib tab } arguments expected\n", command);
300 if (!(hf = fopen(hdr, "w")))
302 fprintf(stderr, "%s: %s: cannot write\n", command, hdr);
/ast/src/cmd/mailx/port/
H A Dcdt.h191 { Dtlink_t hdr; /* header */ member in struct:_dthold_s
/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-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...]
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.c363 setoptions(char* line, size_t hdr, char** argv, char* usage, Archive_t* ap, int type) argument
390 if (line && hdr)
391 end = line + hdr;
394 if (hdr)
846 if (line && !hdr)
1059 if (line && !hdr)
1243 if (line && !hdr)
1297 if (line && !hdr)
/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/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...]

Completed in 49 milliseconds

12