HomeSort by: relevance | last modified time | path
    Searched defs:bufsize (Results 1 - 25 of 76) sorted by relevancy

1 2 3 4

  /src/lib/libc/compat/gen/
compat___getmntinfo13.c 62 static size_t bufsize; variable in typeref:typename:size_t
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 in function:__strong_alias
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/lib/libc/gen/
getmntinfo.c 58 static size_t bufsize; local in function:getmntinfo
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/sys/miscfs/procfs/
procfs_auxv.c 47 size_t bufsize; local in function:procfs_doauxv
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_map.c 116 size_t bufsize = BUFFERSIZE; local in function:procfs_domap
143 buffer = malloc(bufsize, M_TEMP, M_WAITOK);
168 pos += snprintf(buffer + pos, bufsize - pos,
181 pos += snprintf(buffer + pos, bufsize - pos,
198 if (pos >= bufsize) {
199 bufsize <<= 1;
200 if (bufsize > MAXBUFFERSIZE) {
procfs_limit.c 91 size_t bufsize, pos, i; local in function:procfs_dolimit
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 in function:procfs_dolimits
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 in function:getmntinfo
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/lib/libresolv/
res_sendsigned.c 39 int newmsglen, bufsize, siglen; local in function:res_nsendsigned
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 in function:Loop
108 buf = (u_char *) malloc((unsigned) bufsize);
139 cc = read(ii->fd, (char *) buf, bufsize);
pf.c 77 u_int bufsize; local in function:pfInit
107 bufsize = 32768;
108 if (ioctl(fd, BIOCSBLEN, &bufsize) < 0) {
109 mopLogWarn("pfInit: BIOCSBLEN(%d)", bufsize);
loop-bsd.c 104 int bufsize; local in function:Loop
110 if (ioctl(iflist->fd, BIOCGBLEN, (caddr_t) & bufsize) < 0)
114 buf = (u_char *) malloc((unsigned) bufsize);
136 cc = read(ii->fd, (char *) buf, bufsize);
145 (lseek(ii->fd, 0, SEEK_CUR) + bufsize) < 0) {
  /src/usr.bin/sort/
fsort.c 87 size_t bufsize = DEFBUFSIZE; local in function:fsort
98 buffer = allocrec(NULL, bufsize);
99 bufend = (u_char *)buffer + bufsize;
150 || (bufsize >= MAXBUFSIZE && nelem > 8))
156 bufsize *= 2;
157 nbuffer = allocrec(buffer, bufsize);
160 bufsize);
169 bufend = (u_char *)buffer + bufsize;
  /src/sys/modules/examples/fopsmapper/
fopsmapper.c 90 size_t bufsize; member in struct:fopsmapper_softc
125 fo->bufsize = size;
134 error = uvm_map(kernel_map, &va, fo->bufsize, fo->uobj, 0, 0,
163 uvm_deallocate(kernel_map, (vaddr_t)fo->buf, fo->bufsize);
  /src/bin/sh/
output.h 44 int bufsize; member in struct:output
  /src/share/examples/refuse/ian/libfetch/
common.h 52 size_t bufsize; /* buffer size */ member in struct:fetchconn
  /src/sys/dev/dkwedge/
dkwedge_rdb.c 109 uint32_t blk_per_cyl, bufsize, newsecsize, nextb, secsize, tabsize; local in function:dkwedge_discover_rdb
115 bufsize = roundup(MAX(sizeof(struct partblock), sizeof(struct rdblock)),
117 bp = geteblk(bufsize);
126 bufsize);
153 bufsize = roundup(MAX(sizeof(struct partblock),
156 bp = geteblk(bufsize);
171 bufsize);
  /src/sys/ufs/lfs/
lfs_kernel.h 78 size_t bufsize; /* Size of kept data */ member in struct:lfs_cluster
  /src/usr.sbin/ndbootd/config/
ndbootd-bpf.c 109 u_int bufsize; local in function:ndbootd_raw_open
153 bufsize = 32768;
154 if (ioctl(network_fd, BIOCSBLEN, &bufsize) < 0) {
156 bufsize, strerror(errno)));
  /src/usr.sbin/rbootd/
bpf.c 94 u_int bufsize = 32768; local in function:BpfOpen
103 if (ioctl(BpfFd, BIOCSBLEN, &bufsize) < 0) {
104 syslog(LOG_ERR, "bpf: ioctl(BIOCSBLEN,%d): %m", bufsize);
  /src/lib/libc/gdtoa/
hdtoa.c 155 size_t bufsize; local in function:hdtoa
198 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits;
199 s0 = rv_alloc(bufsize);
211 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--)
268 size_t bufsize; local in function:hldtoa
304 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits;
305 s0 = rv_alloc(bufsize);
317 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--)
  /src/lib/libc/time/
asctime.c 99 size_t bufsize = (buf == buf_asctime local in function:asctime_r
136 ? snprintf (buf, bufsize,
143 : snprintf (buf, bufsize,
148 < bufsize)
  /src/sys/dev/dtv/
dtv_buffer.c 132 dtv_buffer_realloc(struct dtv_softc *sc, size_t bufsize)
140 nbufs = BLOCK_ALIGN(bufsize) / BLOCK_SIZE;
142 error = dtv_scatter_buf_set_size(&ds->ds_data, bufsize);
305 size_t bufsize = 0; local in function:dtv_buffer_poll
312 bufsize += db->db_bytesused;
321 device_printf(sc->sc_dev, "%s: bufsize=%zu\n", __func__, bufsize);
  /src/sys/kern/
kern_history.c 424 size_t bufsize, xlate_s; local in function:sysctl_kernhist_helper
486 bufsize = sizeof(struct sysctl_history) +
489 buf = kmem_alloc(bufsize, KM_SLEEP);
546 error = copyout(buf, oldp, uimin(bufsize, *oldlenp));
549 if (error == 0 && *oldlenp < bufsize)
552 *oldlenp = bufsize; /* inform userland of space requirements */
555 kmem_free(buf, bufsize);
  /src/usr.bin/audio/record/
record.c 91 size_t len, bufsize = 0; local in function:main
113 bufsize = strsuftoll("read buffer size", optarg,
251 if (bufsize == 0) {
252 bufsize = oinfo.record.buffer_size;
253 if (bufsize < 32 * 1024)
254 bufsize = 32 * 1024;
258 buffer = malloc(bufsize);
260 err(1, "couldn't malloc buffer of %d size", (int)bufsize);
357 if ((nread = read(audiofd, buffer, bufsize)) == -1)
  /src/common/lib/libutil/
snprintb.c 59 size_t const bufsize; member in struct:__anon033aa2900108
74 if (s->total_len < s->bufsize)
82 int num_len = s->total_len < s->bufsize
83 ? snprintf(s->buf + s->total_len, s->bufsize - s->total_len,
255 if (s->total_len <= s->bufsize)
257 if (s->bufsize >= 3)
258 s->buf[s->bufsize - 3] = '#';
259 if (s->bufsize >= 2)
260 s->buf[s->bufsize - 2] = '\0';
261 if (s->bufsize >= 1
    [all...]

Completed in 23 milliseconds

1 2 3 4