Searched refs:swap (Results 1 - 25 of 36) sorted by relevance

12

/ast/src/lib/libardir/
H A Dar-pdp11.c27 #include <swap.h>
47 int swap; /* swapget() op if necessary */ member in struct:State_s
73 int swap; local
79 swap = 0;
81 swap = 3;
87 state->swap = swap;
119 ar->dirent.mtime = swapget(state->swap, (char*)&state->header.ar_date, sizeof(state->header.ar_date));
120 ar->dirent.uid = swapget(state->swap, (char*)&state->header.ar_uid, sizeof(state->header.ar_uid));
121 ar->dirent.gid = swapget(state->swap, (cha
[all...]
H A Dar-s5r0.c27 #include <swap.h>
62 int swap; /* swapget() op if necessary */ member in struct:State_s
/ast/src/cmd/dsslib/bgp/
H A Dbgp-fixed.c44 int swap; member in struct:Fixedstate_s
56 int swap; local
60 (swap = swapop(&magic, &mp->magic, sizeof(magic))) >= 0 &&
62 swapget(swap ^ int_swap, &mp->size, sizeof(mp->size)) == sizeof(Bgproute_t))
65 file->ident = swap;
92 ((Fixedstate_t*)file->data)->swap = file->ident;
129 if (state->swap)
131 swapmem(state->swap, rp, rp, (char*)&rp->path - (char*)rp);
133 swapmem(state->swap, rp->data + rp->cluster.offset, rp->data + rp->cluster.offset, rp->cluster.size * sizeof(Bgpnum_t));
134 if (state->swap
[all...]
/ast/src/cmd/dsslib/netflow/
H A Dflow-fixed.c31 #include <swap.h>
45 int swap; member in struct:State_s
57 int swap; local
61 (swap = swapop(&magic, &mp->magic, sizeof(magic))) >= 0 &&
63 swapget(swap ^ int_swap, &mp->size, sizeof(mp->size)) == sizeof(Netflow_t))
66 file->ident = swap;
93 ((State_t*)file->data)->swap = file->ident;
130 if (state->swap)
H A Dflow-dump.c30 #include <swap.h>
151 int swap; member in struct:State_s
231 state->swap = 0;
239 if (state->swap)
249 if (state->swap)
263 if (state->swap)
272 if (state->swap)
278 state->swap = 7;
291 if (state->swap)
306 if (state->swap)
[all...]
H A Dflow-tool.c30 #include <swap.h>
193 int swap; member in struct:State_s
208 int swap; local
219 swap = 0;
222 swap = 7;
233 version = swapget(swap, (char*)buf, 2);
238 file->ident = swapget(swap, (char*)buf + 4, 4);
246 type = swapget(swap, dp, 2);
248 size = swapget(swap, dp, 2);
254 version = swapget(swap, d
[all...]
/ast/src/lib/libast/string/
H A Dswapput.c31 #include <swap.h>
H A Dswapget.c31 #include <swap.h>
H A Dswapop.c31 #include <swap.h>
34 * return the swap operation for external to internal conversion
36 * this is a workaround for 4 byte magic predicting 8 byte swap
H A Dswapmem.c31 #include <swap.h>
34 * swap n bytes according to op
/ast/src/cmd/pax/
H A Dpax-rpm.c83 int swap; local
91 if ((swap = swapop(&verify.magic, &magic.magic, sizeof(magic.magic))) < 0)
93 message((-2, "%s: magic swap=%d magic=%08x major=%d minor=%d", ap->name, swap, magic.magic, magic.major, magic.minor));
101 if (swap)
102 swapmem(swap, &lead_old, &lead_old, sizeof(lead_old));
117 if (swap & 1)
118 swapmem(swap & 1, &lead, &lead, sizeof(lead));
183 if (swap)
185 swapmem(swap,
[all...]
H A Dpax-tnef.c47 if ((ap->swap = swapop(&magic, buf, 4)) < 0 || paxread(pax, ap, NiL, (off_t)6, (off_t)6, 0) != 6)
52 ap->swap = 3;
86 level = swapget(ap->swap, s + 0, 1);
87 n = swapget(ap->swap, s + 1, 4);
91 size = swapget(ap->swap, s + 5, 4);
119 checksum = swapget(ap->swap, s + size, 2);
141 tm.tm_year = swapget(ap->swap, s + 0, 2) - 1900;
142 tm.tm_mon = swapget(ap->swap, s + 2, 2) - 1;
143 tm.tm_mday = swapget(ap->swap, s + 4, 2);
144 tm.tm_hour = swapget(ap->swap,
[all...]
H A Dpax-flash.c89 ap->swap = 0;
H A Dpax-cpio.c707 int swap; local
709 if (size >= BINARY_HEADER && (swap = swapop(&magic, buf, 2)) >= 0)
711 ap->swap = swap;
724 if (ap->swap)
727 swapmem(ap->swap, &hdr, &hdr, BINARY_HEADER);
H A Dpax.h42 #include <swap.h>
360 typedef union Integral_u /* byte|half swap probe */
462 int swap; /* swap operation */ \
463 int swapio; /* io swap operation */ \
/ast/src/lib/libast/comp/
H A Dswab.c47 #include <swap.h>
/ast/src/lib/libast/misc/
H A Dmagic.c43 #include <swap.h>
96 char swap; /* forced swap order */ member in struct:Entry
174 int swap; /* swap() operation */ \
346 n = swapget(mp->swap, p, 2);
354 n = swapget(mp->swap, p, 8);
362 n = swapget(mp->swap, p, 4);
494 mp->swap = 0;
531 mp->swap
[all...]
H A Dfindlib.h65 int swap; member in struct:__anon278
/ast/src/lib/libdss/
H A Ddsslib.h36 #include <swap.h>
/ast/src/cmd/builtin/
H A Dod.c69 "[B:swap?Swap input bytes according to the bit mask \aop\a, which is the "
72 "[+01?swap 8-bit bytes]"
73 "[+02?swap 16-bit words]"
74 "[+04?swap 32-bit longs]"
75 "[+0?swap for big endian testing]"
128 #include <swap.h>
258 int swap; member in struct:State_s
666 sfprintf(op, fp->form, (int16_t)swapget(state->swap, u, fp->size.external));
672 sfprintf(op, fp->form, (int32_t)swapget(state->swap, u, fp->size.external));
678 sfprintf(op, fp->form, (intmax_t)swapget(state->swap,
[all...]
/ast/src/lib/libbz/
H A Dblocksort.c256 #define swap(lv1, lv2) \ macro
262 swap(zptr[p1], zptr[p2]);
345 if (n == 0) { swap(zptr[unLo], zptr[ltLo]); ltLo++; unLo++; continue; };
352 if (n == 0) { swap(zptr[unHi], zptr[gtHi]); gtHi--; unHi--; continue; };
357 swap(zptr[unLo], zptr[unHi]); unLo++; unHi--;
/ast/src/cmd/dsslib/flat/
H A Dflat.c190 int swap; /* swap op */ member in struct:Magic_s
238 int swap; member in struct:Flat_s
692 int swap; local
705 if ((swap = swapop(&magic, &magicid->magic, sizeof(magic))) < 0)
707 if (swap)
709 swapmem(swap, &magicid->size, &magicid->size, sizeof(magicid->size));
710 swapmem(swap, &magicid->version, &magicid->version, sizeof(magicid->version));
735 if (flat->magic->swap == SWAP_native)
736 file->ident = swap;
[all...]
/ast/src/cmd/coshell/
H A Devent.c123 #include <swap.h>
207 int swap; /* datum <=> native int32_ swap */ member in struct:State_s
579 swapmem(state->swap, val.dptr, &dat, sizeof(dat));
595 swapmem(state->swap, val.dptr, &dat, val.dsize);
626 swapmem(state->swap, val.dptr, &dat, val.dsize);
865 swapmem(state->swap, val.dptr, &data, val.dsize);
885 swapmem(state->swap, val.dptr, &data, val.dsize);
1023 if (state->swap = swapop(&u4, &data.time, 4))
1024 swapmem(state->swap,
[all...]
/ast/src/cmd/std/
H A Ddd.c67 #include <swap.h>
149 Operand_t swap; member in struct:__anon225
260 "swap",
365 "swap byte pairs",
650 state.swap.value.number = 1;
651 else if (state.swap.value.number)
904 swapmem(state.swap.value.number, s, s, n);
/ast/src/lib/libsum/
H A Dsumlib.c38 #include <swap.h>

Completed in 59 milliseconds

12