Searched refs:bufsize (Results 1 - 25 of 181) sorted by relevance

12345678

/src/lib/libc/gen/
H A Dshquotev.c52 shquotev(int argc, char * const * argv, char *buf, size_t bufsize) argument
60 if (bufsize != 0)
66 callrv = shquote(argv[i], buf, bufsize);
71 bufsize = (bufsize > callrv) ? (bufsize - callrv) : 0;
75 if (bufsize > 1) {
77 bufsize--;
H A Dgetmntinfo.c58 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)
H A Dshquote.c77 * 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/
H A Dcompat___getmntinfo13.c62 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,
H A Dcompat_getmntinfo.c63 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/
H A Dfdt_empty_tree.c15 int fdt_create_empty_tree(void *buf, int bufsize) argument
19 err = fdt_create(buf, bufsize);
39 return fdt_open_into(buf, buf, bufsize);
/src/lib/libc/citrus/
H A Dcitrus_aliasname_local.h34 void *buf, size_t bufsize)
37 buf, bufsize, _LOOKUP_CASE_SENSITIVE);
33 __unaliasname(const char * dbname,const char * alias,void * buf,size_t bufsize) argument
/src/sys/miscfs/procfs/
H A Dprocfs_auxv.c47 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);
H A Dprocfs_limit.c91 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, "
[all...]
H A Dprocfs_map.c116 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/
H A Dgetmntinfo.c65 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/
H A Dv7.local.c57 findmail(const char *user, char *buf, size_t bufsize) argument
62 (void)snprintf(buf, bufsize, "%s/%s", _PATH_MAILDIR, user);
64 (void)strlcpy(buf, mbox, bufsize);
/src/tests/kernel/
H A Dt_sysctl.c40 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/
H A Dg_dfmt.c38 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);
H A Dg_ffmt.c38 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);
H A Dg_xLfmt.c54 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);
H A Dg_Qfmt.c56 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);
H A Dg_xfmt.c58 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);
H A Dg_ddfmt.c38 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/
H A Dsnprintb.c59 size_t const bufsize; member in struct:__anon7c8e2bb60108
83 if (s->total_len < s->bufsize)
91 int num_len = s->total_len < s->bufsize
92 ? snprintf(s->buf + s->total_len, s->bufsize - s->total_len,
265 if (s->total_len <= s->bufsize)
267 if (s->bufsize >= 3)
268 s->buf[s->bufsize - 3] = '#';
269 if (s->bufsize >= 2)
270 s->buf[s->bufsize - 2] = '\0';
271 if (s->bufsize >
285 snprintb_m(char * buf,size_t bufsize,const char * bitfmt,uint64_t val,size_t line_max) argument
331 snprintb(char * buf,size_t bufsize,const char * bitfmt,uint64_t val) argument
[all...]
/src/usr.bin/sort/
H A Dfsort.c87 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/
H A Dmidirecord.c108 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) argument
321 size_t bufsize)
329 if (bufsize <
318 midi_event_timer_wait_abs_to_output(seq_event_t e,u_char * buffer,size_t bufsize) argument
379 midi_event_timer_to_output(seq_event_t e,u_char * buffer,size_t bufsize) argument
418 midi_event_chn_common_to_output(seq_event_t e,u_char * buffer,size_t bufsize) argument
486 midi_event_chn_voice_to_output(seq_event_t e,u_char * buffer,size_t bufsize) argument
549 midi_event_sysex_to_output(seq_event_t e,u_char * buffer,size_t bufsize) argument
562 midi_event_fullsize_to_output(seq_event_t e,u_char * buffer,size_t bufsize) argument
575 midi_event_to_output(seq_event_t e,u_char * buffer,size_t bufsize) argument
[all...]
/src/lib/libc/stdio/
H A Dmakebuf.c160 __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty) argument
165 _DIAGASSERT(bufsize != NULL);
170 *bufsize = BUFSIZ;
177 *bufsize = BUFSIZ;
186 *bufsize = st.st_blksize;
/src/usr.sbin/mopd/common/
H A Dloop-bsd.c104 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) {
H A Dloop-linux2.c99 int bufsize = 1100, maxfd =0; local in function:Loop
108 buf = (u_char *) malloc((unsigned) bufsize);
139 cc = read(ii->fd, (char *) buf, bufsize);

Completed in 28 milliseconds

12345678