/openbsd/usr.bin/indent/ |
H A D | indent_globs.h | 56 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/usr.sbin/makefs/ffs/ |
H A D | ffs_balloc.c | 79 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() 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() 422 nsize = fs->fs_bsize; in ffs_balloc_ufs2() [all …]
|
/openbsd/sys/ufs/ffs/ |
H A D | ffs_balloc.c | 150 nsize = fragroundup(fs, size); in ffs1_balloc() 151 if (nsize <= osize) { 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() 495 if (nsize <= osize) { in ffs2_balloc() 531 nsize = fs->fs_bsize; in ffs2_balloc() 540 if (nsize < fs->fs_bsize) in ffs2_balloc() [all …]
|
H A D | ffs_alloc.c | 186 (u_int)nsize > fs->fs_bsize || fragoff(fs, nsize) != 0) { in ffs_realloccg() 219 quota_updated = btodb(nsize - osize); in ffs_realloccg() 232 if (nsize > bp->b_bufsize) in ffs_realloccg() 235 buf_adjcnt(bp, nsize); in ffs_realloccg() 259 request = nsize; in ffs_realloccg() 295 if (nsize < request) in ffs_realloccg() 297 (long)(request - nsize)); in ffs_realloccg() 298 DIP_ADD(ip, blocks, btodb(nsize - osize)); in ffs_realloccg() 303 if (nsize > bp->b_bufsize) in ffs_realloccg() 306 buf_adjcnt(bp, nsize); in ffs_realloccg() [all …]
|
/openbsd/sys/arch/sparc64/dev/ |
H A D | ce4231.c | 895 size_t nsize = MAX_AUDIO_DEV_LEN; in ce4231_query_devinfo() local 903 strlcpy(dip->label.name, AudioCinputs, 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() 933 strlcpy(dip->label.name, AudioNmute, nsize); in ce4231_query_devinfo() 940 strlcpy(dip->label.name, AudioNoutput, nsize); in ce4231_query_devinfo() 955 strlcpy(dip->label.name, AudioNcd, nsize); in ce4231_query_devinfo() 965 strlcpy(dip->label.name, AudioNmute, nsize); in ce4231_query_devinfo() 973 strlcpy(dip->label.name, AudioNline, nsize); in ce4231_query_devinfo() 983 strlcpy(dip->label.name, AudioNmute, nsize); in ce4231_query_devinfo() [all …]
|
/openbsd/usr.sbin/makefs/msdos/ |
H A D | msdosfs_vnops.c | 408 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/lib/libc/gen/ |
H A D | pw_dup.c | 51 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/bin/ksh/ |
H A D | table.c | 53 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/usr.sbin/nsd/ |
H A D | udb.c | 303 udb->glob_data->fsize = nsize; in udb_base_shrink() 311 (unsigned)nsize, strerror(errno)); in udb_base_shrink() 322 if(nsize < udb->base_size) in udb_base_close() 323 udb_base_shrink(udb, nsize); in udb_base_close() 564 udb->base_size = nsize; in udb_base_remap() 567 (void)udb; (void)alloc; (void)nsize; in udb_base_remap() 588 assert(nsize > 0); 604 udb->fname, (unsigned)nsize); 607 udb->glob_data->fsize = nsize; 1681 uint64_t nsize = alloc->disk->nextgrow; local [all …]
|
/openbsd/usr.sbin/amd/amd/ |
H A D | map.c | 91 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/gnu/lib/libiberty/src/ |
H A D | hashtab.c | 477 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 D | regex.c | 319 # 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/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/ |
H A D | unroll1.C | 244 int nsize = newsize * sizeof(double); 245 char *tmp = new char[nsize]; 248 pEndOfStorageNew = pBeginNew + (nsize / sizeof(double));
|
/openbsd/gnu/usr.bin/gcc/gcc/fixinc/ |
H A D | gnu-regex.c | 225 # 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/bin/pax/ |
H A D | pat_rep.c | 907 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/sys/dev/pci/drm/radeon/ |
H A D | radeon_legacy_crtc.c | 450 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/gnu/usr.bin/perl/win32/ |
H A D | vmem.h | 860 size_t nsize = SIZE(next); in Free() local 861 if((nsize&1) == 0) { in Free() 870 size += nsize; in Free()
|
/openbsd/gnu/usr.bin/binutils/include/ |
H A D | bfdlink.h | 435 bfd *nbfd, enum bfd_link_hash_type ntype, bfd_vma nsize);
|
/openbsd/gnu/usr.bin/binutils-2.17/include/ |
H A D | bfdlink.h | 489 bfd *nbfd, enum bfd_link_hash_type ntype, bfd_vma nsize);
|
/openbsd/gnu/usr.bin/cvs/lib/ |
H A D | regex.c | 265 #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/gnu/usr.bin/binutils/ld/ |
H A D | ldmain.c | 1016 bfd_vma nsize) in multiple_common() argument 1044 if (osize > nsize) in multiple_common() 1051 else if (nsize > osize) in multiple_common()
|
/openbsd/sys/uvm/ |
H A D | uvm_unix.c | 74 new = round_page((vaddr_t)SCARG(uap, nsize)); in sys_obreak()
|
/openbsd/gnu/usr.bin/binutils-2.17/ld/ |
H A D | ldmain.c | 1074 bfd_vma nsize) in multiple_common() argument 1102 if (osize > nsize) in multiple_common() 1109 else if (nsize > osize) in multiple_common()
|
/openbsd/regress/sys/sys/tree/rb/ |
H A D | rb-test.c | 924 mix_operations(int *perm, int psize, struct node *nodes, int nsize, in mix_operations() argument 930 assert(psize == nsize); in mix_operations()
|
H A D | rbt-test.c | 923 mix_operations(int *perm, int psize, struct node *nodes, int nsize, in mix_operations() argument 929 assert(psize == nsize); in mix_operations()
|