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

1 2 3 4 5 6 7 8

  /src/lib/libc/gen/
shquotev.c 52 shquotev(int argc, char * const * argv, char *buf, size_t bufsize)
60 if (bufsize != 0)
66 callrv = shquote(argv[i], buf, bufsize);
71 bufsize = (bufsize > callrv) ? (bufsize - callrv) : 0;
75 if (bufsize > 1) {
77 bufsize--;
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)
shquote.c 77 * The buffer supplied is filled in and NUL-terminated. If 'bufsize'
79 * first (bufsize - 1) bytes of quoted argument are filled in and the
113 if (bufsize != 0) { \
114 if (bufsize < outchlen || \
115 (bufsize == outchlen && \
118 bufsize = 0; \
122 bufsize -= outchlen; \
128 shquote(const char *arg, char *buf, size_t bufsize)
  /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/sys/external/bsd/libfdt/dist/
fdt_empty_tree.c 15 int fdt_create_empty_tree(void *buf, int bufsize)
19 err = fdt_create(buf, bufsize);
39 return fdt_open_into(buf, buf, bufsize);
  /src/lib/libc/citrus/
citrus_aliasname_local.h 34 void *buf, size_t bufsize)
37 buf, bufsize, _LOOKUP_CASE_SENSITIVE);
  /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_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...]
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) {
  /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/usr.bin/mail/
v7.local.c 57 findmail(const char *user, char *buf, size_t bufsize)
62 (void)snprintf(buf, bufsize, "%s/%s", _PATH_MAILDIR, user);
64 (void)strlcpy(buf, mbox, bufsize);
  /src/tests/kernel/
t_sysctl.c 40 ATF_TC(bufsize);
41 ATF_TC_HEAD(bufsize, tc)
46 ATF_TC_BODY(bufsize, tc)
71 ATF_TP_ADD_TC(tp, bufsize);
  /src/lib/libc/gdtoa/
g_dfmt.c 38 g_dfmt(buf, d, ndig, bufsize) char *buf; double *d; int ndig; size_t bufsize;
40 g_dfmt(char *buf, double *d, int ndig, size_t bufsize)
55 if (bufsize < ndig + 10)
62 if (bufsize < 10)
98 return g__fmt(buf, s, se, decpt, sign, bufsize);
g_ffmt.c 38 g_ffmt(buf, f, ndig, bufsize) char *buf; float *f; int ndig; size_t bufsize;
40 g_ffmt(char *buf, float *f, int ndig, size_t bufsize)
55 if (bufsize < ndig + 10)
88 if (bufsize < 16)
96 return g__fmt(buf, s, se, decpt, sign, bufsize);
g_xLfmt.c 54 g_xLfmt(buf, V, ndig, bufsize) char *buf; char *V; int ndig; size_t bufsize;
56 g_xLfmt(char *buf, void *V, int ndig, size_t bufsize)
71 if (bufsize < ndig + 10)
109 if (bufsize < 32)
116 return g__fmt(buf, s, se, decpt, sign, bufsize);
g_Qfmt.c 56 g_Qfmt(buf, V, ndig, bufsize) char *buf; char *V; int ndig; size_t bufsize;
58 g_Qfmt(char *buf, void *V, int ndig, size_t bufsize)
73 if (bufsize < ndig + 10)
115 if (bufsize < 48)
122 return g__fmt(buf, s, se, decpt, sign, bufsize);
g_xfmt.c 58 g_xfmt(buf, V, ndig, bufsize) char *buf; char *V; int ndig; size_t bufsize;
60 g_xfmt(char *buf, void *V, int ndig, size_t bufsize)
76 if (bufsize < ndig + 10)
115 if (bufsize < 32)
122 return g__fmt(buf, s, se, decpt, sign, bufsize);
g_ddfmt.c 38 g_ddfmt(buf, dd0, ndig, bufsize) char *buf; double *dd0; int ndig; size_t bufsize;
40 g_ddfmt(char *buf, double *dd0, int ndig, size_t bufsize)
65 if (bufsize < 10 || bufsize < ndig + 8)
170 if (bufsize < (int)(fpi.nbits * .301029995664) + 10) {
184 b = g__fmt(buf, s, se, decpt, z->sign, bufsize);
  /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...]
  /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/usr.bin/midirecord/
midirecord.c 108 size_t bufsize = 0; local in function:main
117 bufsize = strsuftoll("read buffer size", optarg,
178 if (bufsize < 32)
179 bufsize = 32 * 1024;
180 buffer = malloc(bufsize);
182 err(1, "couldn't malloc buffer of %d size", (int)bufsize);
272 wrsize = midi_event_to_output(e, buffer, bufsize);
305 midi_event_local_to_output(seq_event_t e, u_char *buffer, size_t bufsize)
321 size_t bufsize)
329 if (bufsize < 4)
    [all...]
  /src/lib/libc/stdio/
makebuf.c 160 __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty)
165 _DIAGASSERT(bufsize != NULL);
170 *bufsize = BUFSIZ;
177 *bufsize = BUFSIZ;
186 *bufsize = st.st_blksize;
  /src/usr.sbin/mopd/common/
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/sys/rump/librump/rumpkern/
accessors.c 45 rump_uio_setup(void *buf, size_t bufsize, off_t offset, enum rump_uiorw rw)
65 uio->uio_iov->iov_len = bufsize;
69 uio->uio_resid = bufsize;

Completed in 47 milliseconds

1 2 3 4 5 6 7 8