| /src/lib/libc/gen/ |
| getmntinfo.c | 58 static size_t bufsize; local 65 if (bufsize > 0 && 66 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 68 while (bufsize <= mntsize * sizeof(struct statvfs)) { 71 bufsize = (mntsize + 1) * sizeof(struct statvfs); 72 if ((mntbuf = malloc(bufsize)) == NULL) 74 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
|
| /src/lib/libc/compat/gen/ |
| compat___getmntinfo13.c | 62 static size_t bufsize; local 69 if (bufsize > 0 && 70 (mntsize = __compat_getvfsstat(mntbuf, bufsize, flags)) == -1) 72 while (bufsize <= mntsize * sizeof(struct statvfs90)) { 75 bufsize = (mntsize + 1) * sizeof(struct statvfs90); 76 if ((mntbuf = malloc(bufsize)) == NULL) 78 if ((mntsize = __compat_getvfsstat(mntbuf, bufsize,
|
| compat_getmntinfo.c | 63 static size_t bufsize; local 70 if (bufsize > 0 && 71 (mntsize = __compat_getfsstat(mntbuf, (long)bufsize, flags)) == -1) 73 while (bufsize <= mntsize * sizeof(struct statfs12)) { 76 bufsize = (mntsize + 1) * sizeof(struct statfs12); 77 if ((mntbuf = malloc(bufsize)) == NULL) 79 if ((mntsize = __compat_getfsstat(mntbuf, (long)bufsize,
|
| /src/sys/miscfs/procfs/ |
| procfs_auxv.c | 47 size_t bufsize; local 52 if ((error = proc_getauxv(p, &buffer, &bufsize)) != 0) 55 if ((uintmax_t)uio->uio_offset < bufsize) 57 bufsize - uio->uio_offset, uio); 61 kmem_free(buffer, bufsize);
|
| procfs_limit.c | 91 size_t bufsize, pos, i; local 105 bufsize = (64 * 3) * __arraycount(rl); 106 buffer = malloc(bufsize, M_TEMP, M_WAITOK); 109 pos += snprintf(buffer + pos, bufsize - pos, "%20.20s ", 111 pos += prl(buffer + pos, bufsize - pos, rl[i].rlim_cur, ' '); 112 pos += prl(buffer + pos, bufsize - pos, rl[i].rlim_max, '\n'); 134 size_t bufsize, pos; local 148 bufsize = (64 * 3) * __arraycount(linux_rlimits_ident); 149 buffer = malloc(bufsize, M_TEMP, M_WAITOK); 150 pos = snprintf(buffer, bufsize, "%-26s%-21s%-21s%-21s\n" [all...] |
| /src/tests/fs/nfs/nfsservice/ |
| getmntinfo.c | 65 static size_t bufsize; local 72 if (bufsize > 0 && 73 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 75 while (bufsize <= mntsize * sizeof(struct statvfs)) { 78 bufsize = (mntsize + 1) * sizeof(struct statvfs); 79 if ((mntbuf = malloc(bufsize)) == NULL) 81 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
|
| /src/external/gpl2/dtc/dist/tests/ |
| check_header.c | 18 size_t bufsize = fdt_totalsize(dt); local 19 void *buf = xmalloc(bufsize); 20 fdt_move(dt, buf, bufsize);
|
| incbin.c | 26 int bufsize = 0, n; local 35 if (bufsize < (*len + CHUNKSIZE)) { 37 bufsize = *len + CHUNKSIZE;
|
| open_pack.c | 25 int oldsize, bufsize, packsize; local 36 bufsize = oldsize * 2; 38 buf = xmalloc(bufsize); 40 memset(buf, 0, bufsize); 43 err = fdt_open_into(fdt, fdt1, bufsize); 57 verbose_printf("oldsize = %d, bufsize = %d, packsize = %d\n", 58 oldsize, bufsize, packsize);
|
| move_and_save.c | 26 int bufsize; local 36 bufsize = fdt_totalsize(fdt) + shuntsize; 37 buf = xmalloc(bufsize); 40 err = fdt_move(fdt, fdt1, bufsize); 48 err = fdt_move(fdt1, fdt2, bufsize-shuntsize); 56 err = fdt_move(fdt2, fdt3, bufsize);
|
| /src/tests/kernel/ |
| t_sysctl.c | 40 ATF_TC(bufsize); variable 41 ATF_TC_HEAD(bufsize, tc) 46 ATF_TC_BODY(bufsize, tc) 71 ATF_TP_ADD_TC(tp, bufsize);
|
| /src/external/bsd/openpam/dist/t/ |
| t_openpam_subst.c | 62 size_t bufsize = sizeof(buf); variable 65 pam_err = openpam_subst(NULL, buf, &bufsize, template); 67 ret &= t_compare_sz(sizeof("test%"), bufsize);
|
| /src/external/gpl3/gdb/dist/gnulib/import/ |
| openat-proc.c | 99 size_t bufsize = PROC_SELF_FD_DIR_SIZE_BOUND + strlen (file); local 100 if (OPENAT_BUFFER_SIZE < bufsize) 102 result = malloc (bufsize); 114 size_t bufsize; local 120 bufsize = dirlen + 1 + strlen (file) + 1; /* 1 for '/', 1 for null */ 121 if (OPENAT_BUFFER_SIZE < bufsize) 123 result = malloc (bufsize);
|
| /src/external/gpl3/gdb.old/dist/gnulib/import/ |
| openat-proc.c | 99 size_t bufsize = PROC_SELF_FD_DIR_SIZE_BOUND + strlen (file); local 100 if (OPENAT_BUFFER_SIZE < bufsize) 102 result = malloc (bufsize); 114 size_t bufsize; local 120 bufsize = dirlen + 1 + strlen (file) + 1; /* 1 for '/', 1 for null */ 121 if (OPENAT_BUFFER_SIZE < bufsize) 123 result = malloc (bufsize);
|
| /src/lib/libresolv/ |
| res_sendsigned.c | 39 int newmsglen, bufsize, siglen; local 55 bufsize = msglen + 1024; 56 newmsg = (u_char *) malloc(bufsize); 81 ret = ns_sign(newmsg, &newmsglen, bufsize, NOERROR, dstkey, NULL, 0,
|
| /src/usr.sbin/mopd/common/ |
| loop-linux2.c | 99 int bufsize = 1100, maxfd =0; local 108 buf = (u_char *) malloc((unsigned) bufsize); 139 cc = read(ii->fd, (char *) buf, bufsize);
|
| pf.c | 77 u_int bufsize; local 107 bufsize = 32768; 108 if (ioctl(fd, BIOCSBLEN, &bufsize) < 0) { 109 mopLogWarn("pfInit: BIOCSBLEN(%d)", bufsize);
|
| /src/crypto/external/apache2/openssl/dist/crypto/asn1/ |
| f_string.c | 48 int i, j, k, m, n, again, bufsize; local 53 bufsize = BIO_gets(bp, buf, size); 55 if (bufsize < 1) { 63 i = bufsize; 120 bufsize = BIO_gets(bp, buf, size);
|
| /src/external/bsd/ipf/dist/ipsend/ |
| sbpf.c | 60 static int bufsize = 0, timeout = 1; variable 121 if (ioctl(fd, BIOCGBLEN, &bufsize) == -1) 126 buf = (u_char*)malloc(bufsize);
|
| /src/external/bsd/libbind/dist/resolv/ |
| res_sendsigned.c | 38 int newmsglen, bufsize, siglen; local 54 bufsize = msglen + 1024; 55 newmsg = (u_char *) malloc(bufsize); 80 ret = ns_sign(newmsg, &newmsglen, bufsize, NOERROR, dstkey, NULL, 0,
|
| /src/external/bsd/tmux/dist/ |
| cmd-paste-buffer.c | 54 size_t seplen, bufsize; local 89 bufdata = paste_buffer_data(pb, &bufsize); 90 bufend = bufdata + bufsize;
|
| cmd-save-buffer.c | 80 size_t bufsize; local 96 bufdata = paste_buffer_data(pb, &bufsize); 103 evbuffer_add(evb, bufdata, bufsize); 115 file_write(cmdq_get_client(item), path, flags, bufdata, bufsize, local
|
| cmd-set-buffer.c | 63 size_t bufsize, newsize; local 114 bufsize = 0; 118 olddata = paste_buffer_data(pb, &bufsize); 119 bufdata = xmalloc(bufsize); 120 memcpy(bufdata, olddata, bufsize); 123 bufdata = xrealloc(bufdata, bufsize + newsize); 124 memcpy(bufdata + bufsize, args_string(args, 0), newsize); 125 bufsize += newsize; 127 if (paste_set(bufdata, bufsize, bufname, &cause) != 0) { 134 tty_set_selection(&tc->tty, "", bufdata, bufsize); [all...] |
| /src/external/gpl3/gdb/dist/gdb/target/ |
| target.c | 95 unsigned long bufsize = 0; local 111 nfetch = std::min ((unsigned long) chunksize, fetchlimit - bufsize); 117 (nfetch + bufsize) * width)); 119 bufptr = buffer->get () + bufsize * width; 120 bufsize += nfetch;
|
| /src/external/gpl3/gdb.old/dist/gdb/target/ |
| target.c | 95 unsigned long bufsize = 0; local 111 nfetch = std::min ((unsigned long) chunksize, fetchlimit - bufsize); 117 (nfetch + bufsize) * width)); 119 bufptr = buffer->get () + bufsize * width; 120 bufsize += nfetch;
|