/ast/src/cmd/dsslib/netflow/ |
H A D | flow-fixed.c | 31 #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 D | flow-dump.c | 30 #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 D | flow-tool.c | 30 #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/cmd/dsslib/bgp/ |
H A D | bgp-fixed.c | 44 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/lib/libardir/ |
H A D | ar-pdp11.c | 27 #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 D | ar-s5r0.c | 27 #include <swap.h> 62 int swap; /* swapget() op if necessary */ member in struct:State_s
|
/ast/src/lib/libast/misc/ |
H A D | findlib.h | 65 int swap; member in struct:__anon278
|
H A D | magic.c | 43 #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...] |
/ast/src/cmd/pax/ |
H A D | pax-rpm.c | 83 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 D | pax-cpio.c | 707 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);
|
/ast/src/lib/libbz/ |
H A D | blocksort.c | 256 #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/std/ |
H A D | dd.c | 67 #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/cmd/builtin/ |
H A D | od.c | 69 "[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/cmd/coshell/ |
H A D | event.c | 123 #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/dsslib/flat/ |
H A D | flat.c | 190 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...] |