/netbsd-src/external/bsd/ipf/dist/lib/ |
H A D | parseipfexpr.c | 41 int not, items, asize, *oplist, osize, i; local 125 osize = asize; 135 ipfe = (ipfexp_t *)(oplist + osize); 136 osize += 4; 143 for (s = arg; (*s != '\0') && (osize < asize); s = t) { 175 oplist[osize++] = addr.in4.s_addr; 176 oplist[osize++] = mask.in4.s_addr; 204 oplist[osize++] = addr.i6[0]; 205 oplist[osize++] = addr.i6[1]; 206 oplist[osize++] = addr.i6[2]; [all …]
|
/netbsd-src/external/mit/lua/dist/src/ |
H A D | lmem.c | 154 void luaM_free_ (lua_State *L, void *block, size_t osize) { in luaM_free_() argument 156 lua_assert((osize == 0) == (block == NULL)); in luaM_free_() 157 callfrealloc(g, block, osize, 0); in luaM_free_() 158 g->GCdebt -= osize; in luaM_free_() 167 size_t osize, size_t nsize) { in tryagain() argument 171 return callfrealloc(g, block, osize, nsize); /* try again */ in tryagain() 180 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument 183 lua_assert((osize == 0) == (block == NULL)); in luaM_realloc_() 184 newblock = firsttry(g, block, osize, nsize); in luaM_realloc_() 186 newblock = tryagain(L, block, osize, nsize); in luaM_realloc_() [all …]
|
H A D | lstring.c | 66 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash() argument 68 for (i = osize; i < nsize; i++) /* clear new elements */ in tablerehash() 70 for (i = 0; i < osize; i++) { /* rehash old part of the array */ in tablerehash() 91 int osize = tb->size; in luaS_resize() local 93 if (nsize < osize) /* shrinking table? */ in luaS_resize() 94 tablerehash(tb->hash, osize, nsize); /* depopulate shrinking part */ in luaS_resize() 95 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize() 97 if (nsize < osize) /* was it shrinking table? */ in luaS_resize() 98 tablerehash(tb->hash, nsize, osize); /* restore to original size */ in luaS_resize() 104 if (nsize > osize) in luaS_resize() [all …]
|
/netbsd-src/external/bsd/openpam/dist/lib/libpam/ |
H A D | pam_set_item.c | 68 size_t nsize, osize; in pam_set_item() local 72 osize = nsize = 0; in pam_set_item() 91 osize = strlen(*slot) + 1; in pam_set_item() 96 osize = nsize = sizeof(struct pam_repository); in pam_set_item() 99 osize = nsize = sizeof(struct pam_conv); in pam_set_item() 102 osize = nsize = sizeof(struct sockaddr_storage); in pam_set_item() 108 memset(*slot, 0xd0, osize); in pam_set_item()
|
/netbsd-src/external/gpl3/binutils/dist/opcodes/ |
H A D | s12z-dis.c | 344 short osize = -1; in print_insn_s12z() local 346 decode_s12z (&operator, &osize, &n_operands, operands, in print_insn_s12z() 353 if (osize == -1) in print_insn_s12z() 359 if (operands[o] && operands[o]->osize != -1) in print_insn_s12z() 367 osize = operands[o]->osize; in print_insn_s12z() 369 if (osize < 0 || osize >= S12Z_N_SIZES) in print_insn_s12z() 373 shift_size_table[osize]); in print_insn_s12z() 379 if (osize < 0 || osize >= S12Z_N_SIZES) in print_insn_s12z() 383 shift_size_table[osize]); in print_insn_s12z()
|
/netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
H A D | s12z-dis.c | 344 short osize = -1; in print_insn_s12z() local 346 decode_s12z (&operator, &osize, &n_operands, operands, in print_insn_s12z() 353 if (osize == -1) in print_insn_s12z() 359 if (operands[o] && operands[o]->osize != -1) in print_insn_s12z() 367 osize = operands[o]->osize; in print_insn_s12z() 369 if (osize < 0 || osize >= S12Z_N_SIZES) in print_insn_s12z() 373 shift_size_table[osize]); in print_insn_s12z() 379 if (osize < 0 || osize >= S12Z_N_SIZES) in print_insn_s12z() 383 shift_size_table[osize]); in print_insn_s12z()
|
/netbsd-src/sys/ufs/lfs/ |
H A D | ulfs_readwrite.c | 239 off_t osize, origoff, oldoff, preallocoff, endallocoff, nsize; in WRITE() local 275 osize = ip->i_size; in WRITE() 284 preallocoff = round_page(lfs_blkroundup(fs, MAX(osize, uio->uio_offset))); in WRITE() 286 nsize = MAX(osize, uio->uio_offset + uio->uio_resid); in WRITE() 294 if (nsize > osize && lfs_lblkno(fs, osize) < ULFS_NDADDR && in WRITE() 295 lfs_lblkno(fs, osize) != lfs_lblkno(fs, nsize) && in WRITE() 296 lfs_blkroundup(fs, osize) != osize) { in WRITE() 299 eob = lfs_blkroundup(fs, osize); in WRITE() 301 error = ulfs_balloc_range(vp, osize, eob - osize, cred, aflag); in WRITE() 306 VOP_PUTPAGES(vp, trunc_page(osize & lfs_sb_getbmask(fs)), in WRITE() [all …]
|
H A D | lfs_balloc.c | 131 int error, frags, i, nsize, osize, num; in lfs_balloc() local 187 osize = lfs_blksize(fs, ip, lastblock); in lfs_balloc() 188 if (osize < lfs_sb_getbsize(fs) && osize > 0) { in lfs_balloc() 189 if ((error = lfs_fragextend(vp, osize, lfs_sb_getbsize(fs), in lfs_balloc() 213 osize = lfs_blksize(fs, ip, lbn); in lfs_balloc() 244 if (nsize <= osize) { in lfs_balloc() 246 if (bpp && (error = bread(vp, lbn, osize, in lfs_balloc() 252 lfs_fragextend(vp, osize, nsize, lbn, in lfs_balloc() 491 lfs_fragextend(struct vnode *vp, int osize, int nsize, daddr_t lbn, in lfs_fragextend() argument 514 frags = (long)lfs_numfrags(fs, nsize - osize); in lfs_fragextend() [all …]
|
H A D | lfs_inode.c | 227 off_t osize; in lfs_truncate() local 263 osize = oip->i_size; in lfs_truncate() 272 if (osize < length) { in lfs_truncate() 279 if (lfs_lblkno(fs, osize) < ULFS_NDADDR && in lfs_truncate() 280 lfs_lblkno(fs, osize) != lfs_lblkno(fs, length) && in lfs_truncate() 281 lfs_blkroundup(fs, osize) != osize) { in lfs_truncate() 284 eob = lfs_blkroundup(fs, osize); in lfs_truncate() 286 error = ulfs_balloc_range(ovp, osize, in lfs_truncate() 287 eob - osize, cred, aflags); in lfs_truncate() 289 (void) lfs_truncate(ovp, osize, in lfs_truncate() [all …]
|
/netbsd-src/sys/ufs/ufs/ |
H A D | ufs_readwrite.c | 247 off_t osize, origoff, oldoff, preallocoff, endallocoff, nsize; in WRITE() 284 osize = ip->i_size; in WRITE() 322 preallocoff = round_page(ufs_blkroundup(fs, MAX(osize, uio->uio_offset))); in WRITE() 324 nsize = MAX(osize, uio->uio_offset + uio->uio_resid); in WRITE() 332 if (nsize > osize && ufs_lblkno(fs, osize) < UFS_NDADDR && in WRITE() 333 ufs_lblkno(fs, osize) != ufs_lblkno(fs, nsize) && in WRITE() 334 ufs_blkroundup(fs, osize) != osize) { in WRITE() 337 eob = ufs_blkroundup(fs, osize); in WRITE() 245 off_t osize, origoff, oldoff, preallocoff, endallocoff, nsize; WRITE() local 466 off_t osize; BUFWR() local 554 ufs_post_write_update(struct vnode * vp,struct uio * uio,int ioflag,kauth_cred_t cred,off_t osize,int resid,int oerror) ufs_post_write_update() argument [all...] |
/netbsd-src/tests/sbin/resize_ffs/ |
H A D | common.sh | 113 local osize=$3 121 if [ $avail -lt $osize ] || [ $avail -lt $nsize ]; then 136 -s ${osize} ${i} -F ${IMG} 138 newfs -O${fslevel} -b ${bs} -f ${fragsz} -s ${osize} ${i} \ 156 if [ ${nsize} -lt ${osize} ]; then 158 local remove=$((numdata-numdata*nsize/osize)) 170 if [ ${nsize} -lt ${osize} ]; then
|
/netbsd-src/sys/fs/ptyfs/ |
H A D | ptyfs_subr.c | 202 int osize, nsize; in ptyfs_set_active() local 212 osize = pmnt->pmnt_bitmap_size; in ptyfs_set_active() 216 if (osize > 0) in ptyfs_set_active() 217 memcpy(pmnt->pmnt_bitmap, obitmap, osize); in ptyfs_set_active() 218 memset(pmnt->pmnt_bitmap + osize, 0, nsize - osize); in ptyfs_set_active() 220 if (osize > 0) in ptyfs_set_active() 221 kmem_free(obitmap, osize); in ptyfs_set_active()
|
/netbsd-src/sys/ufs/ffs/ |
H A D | ffs_balloc.c | 121 int deallocated, osize, nsize, num, i, error; in ffs_balloc_ufs1() local 150 osize = ffs_blksize(fs, ip, nb); in ffs_balloc_ufs1() 151 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1() 156 osize, (int)fs->fs_bsize, flags, cred, bpp, in ffs_balloc_ufs1() 204 osize = ffs_fragroundup(fs, ffs_blkoff(fs, ip->i_size)); in ffs_balloc_ufs1() 206 if (nsize <= osize) { in ffs_balloc_ufs1() 215 error = bread(vp, lbn, osize, in ffs_balloc_ufs1() 233 osize, nsize, flags, cred, bpp, &newb); in ffs_balloc_ufs1() 539 int deallocated, osize, nsize, num, i, error; in ffs_balloc_ufs2() local 576 osize = ffs_sblksize(fs, dp->di_extsize, nb); in ffs_balloc_ufs2() [all …]
|
H A D | ffs_inode.c | 220 off_t osize; in ffs_truncate() local 261 osize = oip->i_din2->di_extsize; in ffs_truncate() 275 bsize = ffs_sblksize(fs, osize, i); in ffs_truncate() 312 osize = oip->i_size; in ffs_truncate() 321 if (osize < length) { in ffs_truncate() 322 if (ffs_lblkno(fs, osize) < UFS_NDADDR && in ffs_truncate() 323 ffs_lblkno(fs, osize) != ffs_lblkno(fs, length) && in ffs_truncate() 324 ffs_blkroundup(fs, osize) != osize) { in ffs_truncate() 327 eob = ffs_blkroundup(fs, osize); in ffs_truncate() 329 error = ufs_balloc_range(ovp, osize, eob - osize, in ffs_truncate() [all …]
|
/netbsd-src/usr.sbin/makefs/ffs/ |
H A D | ffs_balloc.c | 95 int osize, nsize, num, i, error; in ffs_balloc_ufs1() local 119 osize = ffs_blksize(fs, ip, nb); in ffs_balloc_ufs1() 120 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1() 156 osize = ffs_fragroundup(fs, ffs_blkoff(fs, ip->i_ffs1_size)); in ffs_balloc_ufs1() 158 if (nsize <= osize) { in ffs_balloc_ufs1() 167 error = bread(ip->i_devvp, lbn, osize, in ffs_balloc_ufs1() 341 int osize, nsize, num, i, error; in ffs_balloc_ufs2() local 365 osize = ffs_blksize(fs, ip, nb); in ffs_balloc_ufs2() 366 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2() 402 osize = ffs_fragroundup(fs, ffs_blkoff(fs, ip->i_ffs2_size)); in ffs_balloc_ufs2() [all …]
|
/netbsd-src/external/gpl2/libmalloc/dist/ |
H A D | mcheck.c | 136 __malloc_size_t osize = hdr->size; local 139 if (size < osize) 140 flood ((char *) ptr + size, FREEFLOOD, osize - size); 154 if (size > osize) 155 flood ((char *) (hdr + 1) + osize, MALLOCFLOOD, size - osize);
|
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/ |
H A D | hashtab.h | 294 size_t osize, elts; in htab_expand() local 296 osize = htab->size; in htab_expand() 297 olimit = htab->entries + osize; in htab_expand() 302 if (elts * 2 > osize || (elts * 8 < osize && osize > 32)) in htab_expand() 305 nhtab = htab_create (osize - 1); in htab_expand()
|
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 365 size_t osize; in KRB5KDF() local 408 for (osize = 0; osize < okey_len; osize += cipherlen) { in KRB5KDF() 426 if (cipherlen > okey_len - osize) in KRB5KDF() 427 cipherlen = okey_len - osize; in KRB5KDF() 428 memcpy(okey + osize, cipherblock, cipherlen); in KRB5KDF() 430 if (okey_len > osize + cipherlen) { in KRB5KDF()
|
/netbsd-src/external/gpl3/gcc/dist/libgomp/ |
H A D | hashtab.h | 300 size_t osize, elts; in htab_expand() local 302 osize = htab->size; in htab_expand() 303 olimit = htab->entries + osize; in htab_expand() 308 if (elts * 2 > osize || (elts * 8 < osize && osize > 32)) in htab_expand() 311 nhtab = htab_create (osize - 1); in htab_expand()
|
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | lz4.c | 38 int osize); 43 int isize, int osize); 45 int isize, int osize); 466 int osize) in LZ4_compressCtx() argument 479 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx() 661 int osize) in LZ4_compress64kCtx() argument 674 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx() 841 real_LZ4_compress(const char *source, char *dest, int isize, int osize) in real_LZ4_compress() argument 860 result = LZ4_compress64kCtx(ctx, source, dest, isize, osize); in real_LZ4_compress() 862 result = LZ4_compressCtx(ctx, source, dest, isize, osize); in real_LZ4_compress() [all …]
|
/netbsd-src/lib/libc/stdlib/ |
H A D | malloc.c | 817 size_t osize, idx; in irealloc() local 847 for (osize = malloc_pagesize; *++mp == MALLOC_FOLLOW;) in irealloc() 848 osize += malloc_pagesize; in irealloc() 851 size <= osize && /* .. or are too small, */ in irealloc() 852 size > (osize - malloc_pagesize)) { /* .. or can free a page, */ in irealloc() 854 memset((u_char *)ptr + size, SOME_JUNK, osize-size); in irealloc() 875 osize = (*mp)->size; in irealloc() 878 size <= osize && /* ..or are too small, */ in irealloc() 879 (size > osize / 2 || /* ..or could use a smaller size, */ in irealloc() 880 osize == malloc_minsize)) { /* ..(if there is one) */ in irealloc() [all …]
|
/netbsd-src/sys/ufs/ext2fs/ |
H A D | ext2fs_readwrite.c | 270 off_t osize; in ext2fs_write() 304 osize = ext2fs_size(ip); in ext2fs_write() 352 error = ext2fs_post_write_update(vp, uio, ioflag, ap->a_cred, osize, in ext2fs_write() 368 off_t osize; in ext2fs_bufwr() 392 osize = ext2fs_size(ip); in ext2fs_bufwr() 432 error = ext2fs_post_write_update(vp, uio, ioflag, cred, osize, resid, in ext2fs_bufwr() 439 kauth_cred_t cred, off_t osize, int resid, int oerror) in ext2fs_post_write_update() 473 (void) ext2fs_truncate(vp, osize, ioflag & IO_SYNC, cred); in ext2fs_post_write_update() 269 off_t osize; ext2fs_write() local 366 off_t osize; ext2fs_bufwr() local 437 ext2fs_post_write_update(struct vnode * vp,struct uio * uio,int ioflag,kauth_cred_t cred,off_t osize,int resid,int oerror) ext2fs_post_write_update() argument
|
/netbsd-src/external/gpl3/binutils/dist/ld/emultempl/ |
H A D | spu_ovl.S | 87 #define osize save2 macro 299 rotqbyi osize, vma, 4 # 1,4 1 329 cgt cmp, osize, maxsize # 0,2 17 332 selb sz, osize, maxsize, cmp # 0,2 19 338 sf osize, sz, osize # 0,2 22 343 brnz osize, __ovly_xfer_loop # 1,4 24
|
/netbsd-src/external/gpl3/binutils.old/dist/ld/emultempl/ |
H A D | spu_ovl.S | 87 #define osize save2 macro 299 rotqbyi osize, vma, 4 # 1,4 1 329 cgt cmp, osize, maxsize # 0,2 17 332 selb sz, osize, maxsize, cmp # 0,2 19 338 sf osize, sz, osize # 0,2 22 343 brnz osize, __ovly_xfer_loop # 1,4 24
|
/netbsd-src/sbin/fsck_lfs/ |
H A D | lfs.c | 1015 int error, frags, i, nsize, osize, num; in lfs_balloc() local 1044 osize = lfs_blksize(fs, ip, lastblock); in lfs_balloc() 1045 if (osize < lfs_sb_getbsize(fs) && osize > 0) { in lfs_balloc() 1046 if ((error = lfs_fragextend(vp, osize, lfs_sb_getbsize(fs), in lfs_balloc() 1066 osize = lfs_blksize(fs, ip, lbn); in lfs_balloc() 1079 if (nsize <= osize) { in lfs_balloc() 1081 if (bpp && (error = bread(vp, lbn, osize, in lfs_balloc() 1087 lfs_fragextend(vp, osize, nsize, lbn, in lfs_balloc() 1219 lfs_fragextend(struct uvnode *vp, int osize, int nsize, daddr_t lbn, in lfs_fragextend() argument 1229 frags = (long)lfs_numfrags(fs, nsize - osize); in lfs_fragextend() [all …]
|