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

1234567891011>>

/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/
H A Derr.zerobuf.d31 * Test with a bufsize of 0 - should return an error.
35 * Options and Tunables/bufsize
38 #pragma D option bufsize=0
H A Derr.resize1.d35 * Options and Tunables/bufsize;
41 #pragma D option bufsize=100t
H A Dtst.resize1.d33 * Options and Tunables/bufsize;
38 #pragma D option bufsize=100t
H A Derr.end.d38 * Options and Tunables/bufsize;
43 #pragma D option bufsize=32
/freebsd-head/lib/libc/gen/
H A Dgetmntinfo.c52 static long bufsize; local
57 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
59 while (tries++ < MAX_TRIES && bufsize <= mntsize * sizeof(*mntbuf)) {
60 bufsize = (mntsize * SCALING_FACTOR) * sizeof(*mntbuf);
61 if ((mntbuf = reallocf(mntbuf, bufsize)) == NULL)
63 if ((mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
67 if (mntsize > (bufsize / sizeof(*mntbuf)))
68 return (bufsize / sizeof(*mntbuf));
H A Dgetmntinfo-compat11.c50 static long bufsize; local
55 if (bufsize > 0 &&
56 (mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0)
58 while (bufsize <= mntsize * sizeof(struct freebsd11_statfs)) {
61 bufsize = (mntsize + 1) * sizeof(struct freebsd11_statfs);
62 if ((mntbuf = (struct freebsd11_statfs *)malloc(bufsize)) == 0)
64 if ((mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0)
/freebsd-head/lib/libc/iconv/
H A Dcitrus_aliasname_local.h37 void *buf, size_t bufsize)
41 buf, bufsize, _LOOKUP_CASE_SENSITIVE));
36 __unaliasname(const char *dbname, const char *alias, void *buf, size_t bufsize) argument
/freebsd-head/contrib/apr/file_io/unix/
H A Dbuffer.c23 apr_size_t bufsize)
39 file->bufsize = bufsize;
45 if (file->bufsize == 0) {
59 return file->bufsize;
/freebsd-head/tests/sys/fs/fusefs/
H A Dread.cc115 ssize_t bufsize = strlen(CONTENTS); local
116 uint8_t buf[bufsize];
119 expect_lookup(RELPATH, ino, bufsize);
121 expect_read(ino, 0, bufsize, bufsize, CONTENTS);
126 iocb.aio_nbytes = bufsize;
132 ASSERT_EQ(bufsize, aio_waitcomplete(&piocb, NULL)) << strerror(errno);
133 ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
148 ssize_t bufsize = 50; local
149 char buf0[bufsize], buf
228 ssize_t bufsize = 50; local
329 ssize_t bufsize = strlen(CONTENTS); local
362 ssize_t bufsize = strlen(CONTENTS); local
386 ssize_t bufsize = strlen(CONTENTS); local
419 ssize_t bufsize = strlen(CONTENTS); local
449 ssize_t bufsize = strlen(CONTENTS); local
485 ssize_t bufsize = strlen(CONTENTS); local
520 ssize_t bufsize = strlen(CONTENTS); local
554 size_t bufsize = strlen(CONTENTS); local
599 size_t bufsize = strlen(CONTENTS); local
648 ssize_t bufsize = strlen(CONTENTS); local
684 ssize_t bufsize = strlen(CONTENTS); local
706 ssize_t bufsize = strlen(CONTENTS); local
729 ssize_t bufsize = strlen(CONTENTS); local
756 ssize_t bufsize = 8; local
791 size_t bufsize = strlen(CONTENTS); local
837 ssize_t bufsize = strlen(CONTENTS); local
871 ssize_t bufsize = 4 * m_maxbcachebuf; local
[all...]
H A Dwrite.cc211 ssize_t bufsize = strlen(CONTENTS); local
216 expect_write(ino, offset, bufsize, bufsize, CONTENTS);
221 iocb.aio_nbytes = bufsize;
227 ASSERT_EQ(bufsize, aio_waitcomplete(&piocb, NULL)) << strerror(errno);
335 ssize_t bufsize = strlen(CONTENTS0) + 1; local
336 char readbuf[bufsize];
338 expect_lookup(RELPATH, ino, bufsize);
340 expect_read(ino, 0, bufsize, bufsize, CONTENTS
377 ssize_t bufsize = strlen(CONTENTS); local
405 ssize_t bufsize = strlen(CONTENTS); local
460 ssize_t bufsize = strlen(CONTENTS); local
495 ssize_t bufsize = strlen(CONTENTS); local
528 ssize_t bufsize = strlen(CONTENTS); local
578 ssize_t bufsize = strlen(CONTENTS); local
598 ssize_t bufsize = strlen(CONTENTS); local
630 ssize_t bufsize = strlen(CONTENTS); local
651 ssize_t halfbufsize, bufsize; local
683 ssize_t bufsize = 0; local
702 ssize_t bufsize = strlen(CONTENTS); local
723 ssize_t bufsize = strlen(CONTENTS); local
755 ssize_t bufsize = m_maxbcachebuf; local
802 ssize_t bufsize = m_maxbcachebuf; local
844 ssize_t bufsize = strlen(CONTENTS); local
869 ssize_t bufsize = strlen(CONTENTS); local
901 ssize_t bufsize = strlen(CONTENTS); local
931 ssize_t bufsize = strlen(CONTENTS); local
964 ssize_t bufsize = strlen(CONTENTS0) + 1; local
1136 ssize_t bufsize = strlen(CONTENTS); local
1193 ssize_t bufsize = strlen(CONTENTS); local
1228 ssize_t bufsize = strlen(CONTENTS); local
1271 ssize_t bufsize = strlen(CONTENTS); local
1300 ssize_t bufsize = strlen(CONTENTS); local
[all...]
/freebsd-head/contrib/dtc/libfdt/
H A Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) argument
62 err = fdt_create(buf, bufsize);
82 return fdt_open_into(buf, buf, bufsize);
/freebsd-head/sys/contrib/libfdt/
H A Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) argument
62 err = fdt_create(buf, bufsize);
82 return fdt_open_into(buf, buf, bufsize);
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/cpc/
H A Dtst.genericevent.d37 #pragma D option bufsize=128k
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/drops/
H A Ddrp.DTRACEDROP_PRINCIPAL.d30 #pragma D option bufsize=512
H A Ddrp.DTRACEDROP_PRINCIPAL.end.d30 #pragma D option bufsize=512
/freebsd-head/lib/libstdbuf/
H A Dstdbuf.c56 size_t bufsize; local
59 bufsize = 0;
66 bufsize = 0;
74 bufsize = strtol(bufmode, &unit, 0);
80 bufsize *= 1024 * 1024 * 1024;
83 bufsize *= 1024 * 1024;
86 bufsize *= 1024;
97 if (setvbuf(s, NULL, mode, bufsize) != 0)
/freebsd-head/lib/libc/tests/string/
H A Dstpncpy_test.c60 size_t size, len, bufsize, x; local
66 for (bufsize = 0; bufsize <= size + 10; bufsize++) {
69 dst = makebuf(bufsize, j);
70 memset(dst, 'X', bufsize);
71 len = (bufsize < size) ? bufsize : size - 1;
72 assert(stpncpy(dst, src, bufsize) == dst+len);
74 for (x = len; x < bufsize;
[all...]
H A Dwcsnlen_test.c61 size_t size, len, bufsize; local
66 for (bufsize = 0; bufsize <= size + 10; bufsize++) {
67 s1 = makebuf(bufsize * sizeof(wchar_t), i);
68 wmemcpy(s1, s, bufsize <= size ? bufsize : size);
69 len = (size > bufsize) ? bufsize : size - 1;
70 ATF_CHECK(wcsnlen(s1, bufsize)
[all...]
/freebsd-head/contrib/apr/misc/unix/
H A Derrorcodes.c33 static char *stuffbuffer(char *buf, apr_size_t bufsize, const char *s) argument
35 apr_cpystrn(buf,s,bufsize);
153 static char *apr_os_strerror(char* buf, apr_size_t bufsize, int err) argument
162 return stuffbuffer(buf, bufsize,
190 return stuffbuffer(buf, bufsize, result);
252 static char *apr_os_strerror(char *buf, apr_size_t bufsize, apr_status_t errcode) argument
264 (DWORD)bufsize,
274 (DWORD) (bufsize/sizeof(TCHAR)),
290 apr_cpystrn(buf, gaErrorList[i].msg, bufsize);
314 apr_snprintf(buf, bufsize, "Unrecognize
324 apr_os_strerror(char* buf, apr_size_t bufsize, int err) argument
357 native_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize) argument
379 native_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize) argument
397 native_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize) argument
416 apr_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize) argument
[all...]
/freebsd-head/contrib/netbsd-tests/fs/nfs/nfsservice/
H A Dgetmntinfo.c64 static size_t bufsize; local
71 if (bufsize > 0 &&
72 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
74 while (bufsize <= mntsize * sizeof(struct statvfs)) {
77 bufsize = (mntsize + 1) * sizeof(struct statvfs);
78 if ((mntbuf = malloc(bufsize)) == NULL)
80 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
/freebsd-head/lib/libcasper/services/cap_pwd/
H A Dcap_pwd.h45 size_t bufsize, struct passwd **result);
47 char *buffer, size_t bufsize, struct passwd **result);
49 char *buffer, size_t bufsize, struct passwd **result);
66 #define cap_getpwent_r(chan, pwd, buffer, bufsize, result) \
67 getpwent_r(pwd, buffer, bufsize, result)
68 #define cap_getpwnam_r(chan, name, pwd, buffer, bufsize, result) \
69 getpwnam_r(name, pwd, buffer, bufsize, result)
70 #define cap_getpwuid_r(chan, uid, pwd, buffer, bufsize, result) \
71 getpwuid_r(uid, pwd, buffer, bufsize, result)
/freebsd-head/lib/libcasper/services/cap_grp/
H A Dcap_grp.h45 size_t bufsize, struct group **result);
47 char *buffer, size_t bufsize, struct group **result);
49 char *buffer, size_t bufsize, struct group **result);
76 #define cap_getgrent_r(chan, grp, buffer, bufsize, result) \
77 getgrent_r(grp, buffer, bufsize, result)
78 #define cap_getgrnam_r(chan, name, grp, buffer, bufsize, result) \
79 getgrnam_r(name, grp, buffer, bufsize, result)
80 #define cap_getgrgid_r(chan, gid, grp, buffer, bufsize, result) \
81 getgrgid_r(gid, grp, buffer, bufsize, result)
/freebsd-head/contrib/netbsd-tests/kernel/
H A Dt_sysctl.c40 ATF_TC(bufsize); variable
41 ATF_TC_HEAD(bufsize, tc)
46 ATF_TC_BODY(bufsize, tc)
71 ATF_TP_ADD_TC(tp, bufsize);
/freebsd-head/contrib/ntp/lib/isc/unix/include/isc/
H A Dstrerror.h41 isc__strerror(int num, char *buf, size_t bufsize);
/freebsd-head/contrib/ntp/lib/isc/win32/include/isc/
H A Dstrerror.h38 isc__strerror(int num, char *buf, size_t bufsize);

Completed in 484 milliseconds

1234567891011>>