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

1234567891011>>

/netbsd-current/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
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)
/netbsd-current/lib/libc/compat/gen/
H A Dcompat_getmntinfo.c63 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,
H A Dcompat___getmntinfo13.c62 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,
/netbsd-current/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);
/netbsd-current/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
/netbsd-current/sys/miscfs/procfs/
H A Dprocfs_auxv.c47 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);
/netbsd-current/tests/fs/nfs/nfsservice/
H A Dgetmntinfo.c65 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)
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/
H A Dopenat-proc.c99 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);
H A Dreadlink.c33 size_t bufsize _GL_UNUSED)
54 rpl_readlink (const char *name, char *buf, size_t bufsize) argument
71 return readlink (name, buf, bufsize);
H A Dsetlocale_null.c91 setlocale_null_unlocked (int category, char *buf, size_t bufsize) argument
102 if (bufsize > 0)
112 if (length < bufsize)
124 if (bufsize > 0)
132 for (i = 0; i < bufsize; i++)
134 buf[bufsize - 1] = '\0';
145 if (bufsize > 0)
155 if (length < bufsize)
162 if (bufsize > 0)
167 memcpy (buf, result, bufsize
189 setlocale_null_with_lock(int category, char *buf, size_t bufsize) argument
226 setlocale_null_with_lock(int category, char *buf, size_t bufsize) argument
250 setlocale_null_with_lock(int category, char *buf, size_t bufsize) argument
269 setlocale_null_r(int category, char *buf, size_t bufsize) argument
[all...]
H A Dsetlocale_null.h64 extern int setlocale_null_r (int category, char *buf, size_t bufsize)
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dopenat-proc.c99 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);
H A Dsetlocale_null.c91 setlocale_null_unlocked (int category, char *buf, size_t bufsize) argument
102 if (bufsize > 0)
112 if (length < bufsize)
124 if (bufsize > 0)
132 for (i = 0; i < bufsize; i++)
134 buf[bufsize - 1] = '\0';
145 if (bufsize > 0)
155 if (length < bufsize)
162 if (bufsize > 0)
167 memcpy (buf, result, bufsize
189 setlocale_null_with_lock(int category, char *buf, size_t bufsize) argument
226 setlocale_null_with_lock(int category, char *buf, size_t bufsize) argument
250 setlocale_null_with_lock(int category, char *buf, size_t bufsize) argument
269 setlocale_null_r(int category, char *buf, size_t bufsize) argument
[all...]
H A Dsetlocale_null.h64 extern int setlocale_null_r (int category, char *buf, size_t bufsize)
/netbsd-current/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);
/netbsd-current/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);
/netbsd-current/external/bsd/ntp/dist/lib/isc/unix/include/isc/
H A Dstrerror.h43 isc__strerror(int num, char *buf, size_t bufsize);
/netbsd-current/external/bsd/ntp/dist/lib/isc/win32/include/isc/
H A Dstrerror.h40 isc__strerror(int num, char *buf, size_t bufsize);
/netbsd-current/lib/libc/gdtoa/
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_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);
/netbsd-current/external/gpl2/dtc/dist/tests/
H A Dopen_pack.c25 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);
H A Dmove_and_save.c26 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);

Completed in 413 milliseconds

1234567891011>>