| /netbsd-src/lib/libc/db/btree/ |
| H A D | bt_open.c | 127 if (b.psize && in __bt_open() 128 (b.psize < MINPSIZE || b.psize > MAX_PAGE_OFFSET + 1 || in __bt_open() 129 b.psize & (sizeof(indx_t) - 1))) in __bt_open() 155 b.psize = 0; in __bt_open() 235 M_32_SWAP(m.psize); in __bt_open() 242 if (m.psize < MINPSIZE || m.psize > MAX_PAGE_OFFSET + 1 || in __bt_open() 243 m.psize & (sizeof(indx_t) - 1)) in __bt_open() 247 b.psize = m.psize; in __bt_open() 256 if (b.psize == 0) { in __bt_open() 257 b.psize = sb.st_blksize; in __bt_open() [all …]
|
| /netbsd-src/usr.bin/uniq/ |
| H A D | uniq.c | 72 size_t prevlinesize, thislinesize, psize; in main() local 125 if ((p = fgetln(ifp, &psize)) == NULL) in main() 127 prevlinesize = prevlen = psize; in main() 138 thislinesize = psize; in main() 142 while ((p = fgetln(ifp, &psize)) != NULL) { in main() 143 if (psize > thislinesize) { in main() 144 if ((thisline = realloc(thisline, psize + 1)) == NULL) in main() 146 thislinesize = psize; in main() 148 thislen = psize; in main() 149 (void)memcpy(thisline, p, psize); in main() [all …]
|
| /netbsd-src/sys/dev/pcmcia/ |
| H A D | if_malo_pcmcia.c | 998 uint16_t psize; in cmalo_rx() local 1002 psize = MALO_READ_2(sc, MALO_REG_DATA_READ_LEN); in cmalo_rx() 1003 if (psize > MALO_DATA_BUFFER_SIZE) { in cmalo_rx() 1005 "received data too large: %dbyte\n", psize); in cmalo_rx() 1010 (uint16_t *)sc->sc_data, psize / sizeof(uint16_t)); in cmalo_rx() 1011 if (psize & 0x0001) in cmalo_rx() 1012 sc->sc_data[psize - 1] = MALO_READ_1(sc, MALO_REG_DATA_READ); in cmalo_rx() 1059 uint16_t psize; in cmalo_tx() local 1062 psize = sizeof(*txdesc) + m->m_pkthdr.len; in cmalo_tx() 1075 MALO_WRITE_2(sc, MALO_REG_DATA_WRITE_LEN, psize); in cmalo_tx() [all …]
|
| /netbsd-src/sys/lib/libsa/ |
| H A D | cd9660.c | 141 size_t buf_size, nread, psize, dsize; in cd9660_open() local 177 psize = isonum_733(vd->path_table_size); in cd9660_open() 179 if (psize > ISO_DEFAULT_BLOCK_SIZE) { in cd9660_open() 181 buf = alloc(buf_size = roundup(psize, ISO_DEFAULT_BLOCK_SIZE)); in cd9660_open() 210 if ((char *)pp >= (char *)buf + psize) in cd9660_open() 222 while ((char *)pp < (char *)buf + psize) { in cd9660_open() 236 for (psize = 0; psize < dsize;) { in cd9660_open() 237 if (!(psize % ISO_DEFAULT_BLOCK_SIZE)) { in cd9660_open() 256 psize += ISO_DEFAULT_BLOCK_SIZE; in cd9660_open() 258 psize = roundup(psize, ISO_DEFAULT_BLOCK_SIZE); in cd9660_open() [all …]
|
| /netbsd-src/tests/lib/libc/db/ |
| H A D | t_db.sh | 223 for psize in 512 16384 65536; do 224 echo "checking page size: $psize" 235 cmp -s exp out || atf_fail "test failed for page size: $psize" 287 for psize in 512 16384 65536; do 288 echo "checking page size: $psize" 291 cmp -s exp out || atf_fail "test failed for page size: $psize" 745 atf_check -o file:exp "$(prog_db)" -i psize=512 btree in 949 for psize in 512 1024 2048 4096 8192; do 950 echo " page size $psize" 952 psize = '$psize'; hsize = int(psize/2); [all …]
|
| /netbsd-src/external/bsd/cron/dist/ |
| H A D | pw_dup.c | 59 size_t nsize, psize, gsize, dsize, ssize, total; in pw_dup() local 73 psize = strlen(pw->pw_passwd) + 1; in pw_dup() 74 total += psize; in pw_dup() 76 psize = 0; in pw_dup() 115 (void)memcpy(cp, pw->pw_passwd, psize); in pw_dup() 117 cp += psize; in pw_dup()
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/generated/ |
| H A D | reshape_c4.c | 71 index_type psize; in reshape_c4() local 128 psize = 1; in reshape_c4() 141 if (psize == pstride[n]) in reshape_c4() 142 psize *= pextent[n]; in reshape_c4() 144 psize = 0; in reshape_c4() 151 psize = 1; in reshape_c4() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_c4() 266 psize *= sizeof (GFC_COMPLEX_4); in reshape_c4() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_c4()
|
| H A D | reshape_r4.c | 71 index_type psize; in reshape_r4() local 128 psize = 1; in reshape_r4() 141 if (psize == pstride[n]) in reshape_r4() 142 psize *= pextent[n]; in reshape_r4() 144 psize = 0; in reshape_r4() 151 psize = 1; in reshape_r4() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r4() 266 psize *= sizeof (GFC_REAL_4); in reshape_r4() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r4()
|
| H A D | reshape_r10.c | 71 index_type psize; in reshape_r10() local 128 psize = 1; in reshape_r10() 141 if (psize == pstride[n]) in reshape_r10() 142 psize *= pextent[n]; in reshape_r10() 144 psize = 0; in reshape_r10() 151 psize = 1; in reshape_r10() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r10() 266 psize *= sizeof (GFC_REAL_10); in reshape_r10() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r10()
|
| H A D | reshape_c10.c | 71 index_type psize; in reshape_c10() local 128 psize = 1; in reshape_c10() 141 if (psize == pstride[n]) in reshape_c10() 142 psize *= pextent[n]; in reshape_c10() 144 psize = 0; in reshape_c10() 151 psize = 1; in reshape_c10() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_c10() 266 psize *= sizeof (GFC_COMPLEX_10); in reshape_c10() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_c10()
|
| H A D | reshape_i8.c | 71 index_type psize; in reshape_8() local 128 psize = 1; in reshape_8() 141 if (psize == pstride[n]) in reshape_8() 142 psize *= pextent[n]; in reshape_8() 144 psize = 0; in reshape_8() 151 psize = 1; in reshape_8() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_8() 266 psize *= sizeof (GFC_INTEGER_8); in reshape_8() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_8()
|
| H A D | reshape_r8.c | 71 index_type psize; in reshape_r8() local 128 psize = 1; in reshape_r8() 141 if (psize == pstride[n]) in reshape_r8() 142 psize *= pextent[n]; in reshape_r8() 144 psize = 0; in reshape_r8() 151 psize = 1; in reshape_r8() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r8() 266 psize *= sizeof (GFC_REAL_8); in reshape_r8() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r8()
|
| H A D | reshape_r17.c | 71 index_type psize; in reshape_r17() local 128 psize = 1; in reshape_r17() 141 if (psize == pstride[n]) in reshape_r17() 142 psize *= pextent[n]; in reshape_r17() 144 psize = 0; in reshape_r17() 151 psize = 1; in reshape_r17() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r17() 266 psize *= sizeof (GFC_REAL_17); in reshape_r17() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r17()
|
| H A D | reshape_c17.c | 71 index_type psize; in reshape_c17() local 128 psize = 1; in reshape_c17() 141 if (psize == pstride[n]) in reshape_c17() 142 psize *= pextent[n]; in reshape_c17() 144 psize = 0; in reshape_c17() 151 psize = 1; in reshape_c17() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_c17() 266 psize *= sizeof (GFC_COMPLEX_17); in reshape_c17() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_c17()
|
| H A D | reshape_r16.c | 71 index_type psize; in reshape_r16() local 128 psize = 1; in reshape_r16() 141 if (psize == pstride[n]) in reshape_r16() 142 psize *= pextent[n]; in reshape_r16() 144 psize = 0; in reshape_r16() 151 psize = 1; in reshape_r16() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r16() 266 psize *= sizeof (GFC_REAL_16); in reshape_r16() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r16()
|
| H A D | reshape_c16.c | 71 index_type psize; in reshape_c16() local 128 psize = 1; in reshape_c16() 141 if (psize == pstride[n]) in reshape_c16() 142 psize *= pextent[n]; in reshape_c16() 144 psize = 0; in reshape_c16() 151 psize = 1; in reshape_c16() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_c16() 266 psize *= sizeof (GFC_COMPLEX_16); in reshape_c16() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_c16()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/generated/ |
| H A D | reshape_c8.c | 71 index_type psize; in reshape_c8() local 128 psize = 1; in reshape_c8() 141 if (psize == pstride[n]) in reshape_c8() 142 psize *= pextent[n]; in reshape_c8() 144 psize = 0; in reshape_c8() 151 psize = 1; in reshape_c8() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_c8() 266 psize *= sizeof (GFC_COMPLEX_8); in reshape_c8() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_c8()
|
| H A D | reshape_c16.c | 71 index_type psize; in reshape_c16() local 128 psize = 1; in reshape_c16() 141 if (psize == pstride[n]) in reshape_c16() 142 psize *= pextent[n]; in reshape_c16() 144 psize = 0; in reshape_c16() 151 psize = 1; in reshape_c16() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_c16() 266 psize *= sizeof (GFC_COMPLEX_16); in reshape_c16() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_c16()
|
| H A D | reshape_r8.c | 71 index_type psize; in reshape_r8() local 128 psize = 1; in reshape_r8() 141 if (psize == pstride[n]) in reshape_r8() 142 psize *= pextent[n]; in reshape_r8() 144 psize = 0; in reshape_r8() 151 psize = 1; in reshape_r8() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r8() 266 psize *= sizeof (GFC_REAL_8); in reshape_r8() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r8()
|
| H A D | reshape_r16.c | 71 index_type psize; in reshape_r16() local 128 psize = 1; in reshape_r16() 141 if (psize == pstride[n]) in reshape_r16() 142 psize *= pextent[n]; in reshape_r16() 144 psize = 0; in reshape_r16() 151 psize = 1; in reshape_r16() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r16() 266 psize *= sizeof (GFC_REAL_16); in reshape_r16() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r16()
|
| H A D | reshape_c4.c | 71 index_type psize; in reshape_c4() local 128 psize = 1; in reshape_c4() 141 if (psize == pstride[n]) in reshape_c4() 142 psize *= pextent[n]; in reshape_c4() 144 psize = 0; in reshape_c4() 151 psize = 1; in reshape_c4() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_c4() 266 psize *= sizeof (GFC_COMPLEX_4); in reshape_c4() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_c4()
|
| H A D | reshape_r10.c | 71 index_type psize; in reshape_r10() local 128 psize = 1; in reshape_r10() 141 if (psize == pstride[n]) in reshape_r10() 142 psize *= pextent[n]; in reshape_r10() 144 psize = 0; in reshape_r10() 151 psize = 1; in reshape_r10() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_r10() 266 psize *= sizeof (GFC_REAL_10); in reshape_r10() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_r10()
|
| H A D | reshape_i8.c | 71 index_type psize; in reshape_8() local 128 psize = 1; in reshape_8() 141 if (psize == pstride[n]) in reshape_8() 142 psize *= pextent[n]; in reshape_8() 144 psize = 0; in reshape_8() 151 psize = 1; in reshape_8() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_8() 266 psize *= sizeof (GFC_INTEGER_8); in reshape_8() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_8()
|
| H A D | reshape_i4.c | 71 index_type psize; in reshape_4() local 128 psize = 1; in reshape_4() 141 if (psize == pstride[n]) in reshape_4() 142 psize *= pextent[n]; in reshape_4() 144 psize = 0; in reshape_4() 151 psize = 1; in reshape_4() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_4() 266 psize *= sizeof (GFC_INTEGER_4); in reshape_4() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_4()
|
| H A D | reshape_i16.c | 71 index_type psize; in reshape_16() local 128 psize = 1; in reshape_16() 141 if (psize == pstride[n]) in reshape_16() 142 psize *= pextent[n]; in reshape_16() 144 psize = 0; in reshape_16() 151 psize = 1; in reshape_16() 262 if (rsize != 0 && ssize != 0 && psize != 0) in reshape_16() 266 psize *= sizeof (GFC_INTEGER_16); in reshape_16() 268 ssize, pad ? (char *)pad->base_addr : NULL, psize); in reshape_16()
|