Home
last modified time | relevance | path

Searched refs:nsize (Results 1 – 25 of 28) sorted by relevance

12

/openbsd-src/usr.bin/indent/
H A Dindent_globs.h56 int nsize = l_code-s_code+400; \
58 codebuf = realloc(codebuf, nsize); \
62 l_code = codebuf + nsize - 5; \
67 int nsize = l_com-s_com+400; \
69 combuf = realloc(combuf, nsize); \
73 l_com = combuf + nsize - 5; \
78 int nsize = l_lab-s_lab+400; \
80 labbuf = realloc(labbuf, nsize); \
84 l_lab = labbuf + nsize - 5; \
89 int nsize = l_token-s_token+400; \
[all …]
/openbsd-src/usr.sbin/makefs/ffs/
H A Dffs_balloc.c79 int osize, nsize, num, i, error; in ffs_balloc_ufs1() local
141 nsize = fragroundup(fs, size); in ffs_balloc_ufs1()
142 if (nsize <= osize) { in ffs_balloc_ufs1()
171 nsize = fragroundup(fs, size); in ffs_balloc_ufs1()
173 nsize = fs->fs_bsize; in ffs_balloc_ufs1()
177 nsize, &newb); in ffs_balloc_ufs1()
181 bp = getblk(ip->i_devvp, lbn, nsize, 0, 0); in ffs_balloc_ufs1()
328 int osize, nsize, num, i, error; in ffs_balloc_ufs2() local
390 nsize = fragroundup(fs, size); in ffs_balloc_ufs2()
391 if (nsize <= osize) { in ffs_balloc_ufs2()
[all …]
/openbsd-src/sys/ufs/ffs/
H A Dffs_balloc.c80 int deallocated, osize, nsize, num, i, error; in ffs1_balloc() local
150 nsize = fragroundup(fs, size); in ffs1_balloc()
151 if (nsize <= osize) { in ffs1_balloc()
175 osize, nsize, cred, bpp, &newb); in ffs1_balloc()
186 nsize = fragroundup(fs, size); in ffs1_balloc()
188 nsize = fs->fs_bsize; in ffs1_balloc()
191 nsize, cred, &newb); in ffs1_balloc()
196 if (nsize < fs->fs_bsize) in ffs1_balloc()
197 (*bpp)->b_bcount = nsize; in ffs1_balloc()
410 int deallocated, osize, nsize, num, i, error, unwindidx, r; in ffs2_balloc() local
[all …]
H A Dffs_alloc.c171 int nsize, struct ucred *cred, struct buf **bpp, daddr_t *blknop) in ffs_realloccg() argument
186 (u_int)nsize > fs->fs_bsize || fragoff(fs, nsize) != 0) { in ffs_realloccg()
189 ip->i_dev, fs->fs_bsize, osize, nsize, fs->fs_fsmnt); in ffs_realloccg()
215 if ((error = ufs_quota_alloc_blocks(ip, btodb(nsize - osize), cred)) in ffs_realloccg()
219 quota_updated = btodb(nsize - osize); in ffs_realloccg()
225 if ((bno = ffs_fragextend(ip, cg, bprev, osize, nsize)) != 0) { in ffs_realloccg()
226 DIP_ADD(ip, blocks, btodb(nsize - osize)); in ffs_realloccg()
232 if (nsize > bp->b_bufsize) in ffs_realloccg()
235 buf_adjcnt(bp, nsize); in ffs_realloccg()
237 memset(bp->b_data + osize, 0, nsize - osize); in ffs_realloccg()
[all …]
/openbsd-src/sys/arch/sparc64/dev/
H A Dce4231.c895 size_t nsize = MAX_AUDIO_DEV_LEN; in ce4231_query_devinfo() local
903 strlcpy(dip->label.name, AudioCinputs, nsize); in ce4231_query_devinfo()
909 strlcpy(dip->label.name, AudioCoutputs, nsize); in ce4231_query_devinfo()
915 strlcpy(dip->label.name, AudioCrecord, nsize); in ce4231_query_devinfo()
923 strlcpy(dip->label.name, AudioNdac, nsize); in ce4231_query_devinfo()
926 strlcpy(dip->un.v.units.name, AudioNvolume, nsize); in ce4231_query_devinfo()
933 strlcpy(dip->label.name, AudioNmute, nsize); in ce4231_query_devinfo()
940 strlcpy(dip->label.name, AudioNoutput, nsize); in ce4231_query_devinfo()
942 strlcpy(dip->un.s.member[0].label.name, AudioNline, nsize); in ce4231_query_devinfo()
944 strlcpy(dip->un.s.member[1].label.name, AudioNheadphone, nsize); in ce4231_query_devinfo()
[all …]
/openbsd-src/usr.sbin/makefs/msdos/
H A Dmsdosfs_vnops.c408 size_t nsize, offs; in msdosfs_wfile() local
426 nsize = st->st_size; in msdosfs_wfile()
427 DPRINTF(("%s(nsize=%zu, osize=%zu)\n", __func__, nsize, osize)); in msdosfs_wfile()
428 if (nsize > osize) { in msdosfs_wfile()
429 if ((error = deextend(dep, nsize)) != 0) { in msdosfs_wfile()
442 if ((dat = mmap(0, nsize, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0)) in msdosfs_wfile()
451 for (offs = 0; offs < nsize;) { in msdosfs_wfile()
477 cpsize = MINIMUM((nsize - offs), blsize - on); in msdosfs_wfile()
483 munmap(dat, nsize); in msdosfs_wfile()
486 munmap(dat, nsize); in msdosfs_wfile()
/openbsd-src/lib/libc/gen/
H A Dpw_dup.c51 size_t nsize, psize, csize, gsize, dsize, ssize, total; in pw_dup() local
56 PW_SIZE(pw_name, nsize); in pw_dup()
74 PW_COPY(pw_name, nsize); in pw_dup()
/openbsd-src/bin/ksh/
H A Dtable.c53 texpand(struct table *tp, int nsize) in texpand() argument
60 ntblp = areallocarray(NULL, nsize, sizeof(struct tbl *), tp->areap); in texpand()
61 for (i = 0; i < nsize; i++) in texpand()
63 tp->size = nsize; in texpand()
64 tp->nfree = 7*nsize/10; /* table can get 70% full */ in texpand()
/openbsd-src/usr.sbin/nsd/
H A Dudb.c300 udb_base_shrink(udb_base* udb, uint64_t nsize) in udb_base_shrink() argument
303 udb->glob_data->fsize = nsize; in udb_base_shrink()
309 if(ftruncate(udb->fd, (off_t)nsize) != 0) { in udb_base_shrink()
311 (unsigned)nsize, strerror(errno)); in udb_base_shrink()
321 uint64_t nsize = udb->alloc->disk->nextgrow; in udb_base_close() local
322 if(nsize < udb->base_size) in udb_base_close()
323 udb_base_shrink(udb, nsize); in udb_base_close()
517 udb_base_remap(udb_base* udb, udb_alloc* alloc, uint64_t nsize) in udb_base_remap() argument
523 nb = mremap(udb->base, udb->base_size, nsize, MREMAP_MAYMOVE); in udb_base_remap()
526 udb->fname, (unsigned)nsize, strerror(errno)); in udb_base_remap()
[all …]
/openbsd-src/usr.sbin/amd/amd/
H A Dmap.c91 exported_ap_realloc_map(int nsize) in exported_ap_realloc_map() argument
96 if (nsize < 0 || nsize == exported_ap_size) in exported_ap_realloc_map()
99 exported_ap = xreallocarray(exported_ap, nsize, sizeof *exported_ap); in exported_ap_realloc_map()
101 if (nsize > exported_ap_size) in exported_ap_realloc_map()
103 (nsize - exported_ap_size) * sizeof(am_node*)); in exported_ap_realloc_map()
104 exported_ap_size = nsize; in exported_ap_realloc_map()
/openbsd-src/gnu/lib/libiberty/src/
H A Dhashtab.c477 size_t nsize, osize, elts; in htab_expand() local
491 nsize = prime_tab[nindex].prime; in htab_expand()
496 nsize = osize; in htab_expand()
500 nentries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_expand()
503 nentries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); in htab_expand()
507 htab->size = nsize; in htab_expand()
H A Dregex.c319 # define REGEX_REALLOCATE(source, osize, nsize) realloc (source, nsize) argument
341 # define REGEX_REALLOCATE(source, osize, nsize) \ argument
342 (destination = (char *) alloca (nsize), \
356 # define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument
357 r_re_alloc (&failure_stack_ptr, (nsize))
366 # define REGEX_REALLOCATE_STACK(source, osize, nsize) realloc (source, nsize) argument
373 # define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument
374 REGEX_REALLOCATE (source, osize, nsize)
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/
H A Dunroll1.C244 int nsize = newsize * sizeof(double);
245 char *tmp = new char[nsize];
248 pEndOfStorageNew = pBeginNew + (nsize / sizeof(double));
/openbsd-src/gnu/usr.bin/gcc/gcc/fixinc/
H A Dgnu-regex.c225 # define REGEX_REALLOCATE(source, osize, nsize) realloc (source, nsize) argument
247 # define REGEX_REALLOCATE(source, osize, nsize) \ argument
248 (destination = (char *) alloca (nsize), \
262 # define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument
263 r_re_alloc (&failure_stack_ptr, (nsize))
272 # define REGEX_REALLOCATE_STACK(source, osize, nsize) realloc (source, nsize) argument
279 # define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument
280 REGEX_REALLOCATE (source, osize, nsize)
/openbsd-src/bin/pax/
H A Dpat_rep.c907 rep_name(char *name, size_t nsize, int *nlen, int prnt) in rep_name() argument
1040 *nlen = strlcpy(name, nname, nsize); in rep_name()
/openbsd-src/sys/dev/pci/drm/radeon/
H A Dradeon_legacy_crtc.c450 unsigned long nsize, osize; in radeon_crtc_do_set_base() local
454 nsize = radeon_bo_size(rbo); in radeon_crtc_do_set_base()
455 if (nsize <= osize && !radeon_bo_reserve(old_rbo, false)) { in radeon_crtc_do_set_base()
/openbsd-src/gnu/usr.bin/perl/win32/
H A Dvmem.h860 size_t nsize = SIZE(next); in Free() local
861 if((nsize&1) == 0) { in Free()
870 size += nsize; in Free()
/openbsd-src/gnu/usr.bin/binutils-2.17/include/
H A Dbfdlink.h489 bfd *nbfd, enum bfd_link_hash_type ntype, bfd_vma nsize);
/openbsd-src/gnu/usr.bin/binutils/include/
H A Dbfdlink.h435 bfd *nbfd, enum bfd_link_hash_type ntype, bfd_vma nsize);
/openbsd-src/gnu/usr.bin/cvs/lib/
H A Dregex.c265 #define REGEX_REALLOCATE(source, osize, nsize) realloc (source, nsize) argument
293 #define REGEX_REALLOCATE(source, osize, nsize) \ argument
294 (destination = (char *) alloca (nsize), \
309 #define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument
310 r_re_alloc (&failure_stack_ptr, (nsize))
319 #define REGEX_REALLOCATE_STACK(source, osize, nsize) realloc (source, nsize) argument
326 #define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument
327 REGEX_REALLOCATE (source, osize, nsize)
/openbsd-src/gnu/usr.bin/binutils/ld/
H A Dldmain.c1016 bfd_vma nsize) in multiple_common() argument
1044 if (osize > nsize) in multiple_common()
1051 else if (nsize > osize) in multiple_common()
/openbsd-src/sys/uvm/
H A Duvm_unix.c74 new = round_page((vaddr_t)SCARG(uap, nsize)); in sys_obreak()
/openbsd-src/gnu/usr.bin/binutils-2.17/ld/
H A Dldmain.c1074 bfd_vma nsize) in multiple_common() argument
1102 if (osize > nsize) in multiple_common()
1109 else if (nsize > osize) in multiple_common()
/openbsd-src/regress/sys/sys/tree/rb/
H A Drbt-test.c923 mix_operations(int *perm, int psize, struct node *nodes, int nsize, in mix_operations() argument
929 assert(psize == nsize); in mix_operations()
H A Drb-test.c924 mix_operations(int *perm, int psize, struct node *nodes, int nsize, in mix_operations() argument
930 assert(psize == nsize); in mix_operations()

12