Home
last modified time | relevance | path

Searched refs:bufsiz (Results 1 – 20 of 20) sorted by relevance

/external/iperf3/src/
Diperf_util.c519 getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) in getdelim() argument
524 if (*buf == NULL || *bufsiz == 0) { in getdelim()
525 *bufsiz = BUFSIZ; in getdelim()
526 if ((*buf = malloc(*bufsiz)) == NULL) in getdelim()
530 for (ptr = *buf, eptr = *buf + *bufsiz;;) { in getdelim()
549 size_t nbufsiz = *bufsiz * 2; in getdelim()
554 *bufsiz = nbufsiz; in getdelim()
562 getline(char **buf, size_t *bufsiz, FILE *fp) in getline() argument
564 return getdelim(buf, bufsiz, '\n', fp); in getline()
Diperf_util.h64 ssize_t getline(char **buf, size_t *bufsiz, FILE *fp);
/external/ltp/testcases/network/stress/ns-tools/
Dns-common.c98 int bufsiz; /* buffer size of socket */ in maximize_sockbuf() local
105 if ((fscanf(fp, "%d", &bufsiz)) != 1) { in maximize_sockbuf()
111 (sd, SOL_SOCKET, level[idx], &bufsiz, sizeof(int))) { in maximize_sockbuf()
121 optlen = sizeof(bufsiz); in maximize_sockbuf()
123 (sd, SOL_SOCKET, level[idx], &bufsiz, in maximize_sockbuf()
128 bufsiz); in maximize_sockbuf()
/external/ltp/include/lapi/
Dreadlinkat.h27 int readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz) in readlinkat() argument
29 return ltp_syscall(__NR_readlinkat, dirfd, pathname, buf, bufsiz); in readlinkat()
/external/openssh/openbsd-compat/
Dreadpassphrase.c62 readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) in readpassphrase() argument
72 if (bufsiz == 0) { in readpassphrase()
138 end = buf + bufsiz - 1; in readpassphrase()
/external/ltp/testcases/kernel/syscalls/readlinkat/
Dreadlinkat02.c49 size_t bufsiz; member
100 TEST(readlinkat(*test->dirfd, test->pathname, buf, test->bufsiz)); in readlinkat_verify()
/external/python/cpython3/PC/
Dgetpathp.c575 size_t bufsiz = MAXPATHLEN; in read_pth_file() local
578 wchar_t *buf = (wchar_t*)PyMem_RawMalloc(bufsiz * sizeof(wchar_t)); in read_pth_file()
616 while (usedsiz + wn + prefixlen + 4 > bufsiz) { in read_pth_file()
617 bufsiz += MAXPATHLEN; in read_pth_file()
618 wchar_t *tmp = (wchar_t*)PyMem_RawRealloc(buf, (bufsiz + 1) * in read_pth_file()
628 wcscat_s(buf, bufsiz, L";"); in read_pth_file()
634 result = wcscat_s(buf, bufsiz, prefix); in read_pth_file()
/external/ipsec-tools/src/libipsec/
Dpfkey.c1715 int bufsiz = 128 * 1024; /*is 128K enough?*/ in pfkey_open() local
1726 (void)setsockopt(so, SOL_SOCKET, SO_SNDBUF, &bufsiz, sizeof(bufsiz)); in pfkey_open()
1727 (void)setsockopt(so, SOL_SOCKET, SO_RCVBUF, &bufsiz, sizeof(bufsiz)); in pfkey_open()
1728 bufsiz = 256 * 1024; in pfkey_open()
1729 (void)setsockopt(so, SOL_SOCKET, SO_RCVBUF, &bufsiz, sizeof(bufsiz)); in pfkey_open()
1730 bufsiz = 512 * 1024; in pfkey_open()
1731 (void)setsockopt(so, SOL_SOCKET, SO_RCVBUF, &bufsiz, sizeof(bufsiz)); in pfkey_open()
1732 bufsiz = 1024 * 1024; in pfkey_open()
1733 (void)setsockopt(so, SOL_SOCKET, SO_RCVBUF, &bufsiz, sizeof(bufsiz)); in pfkey_open()
/external/u-boot/include/linux/usb/
Dcomposite.h323 unsigned bufsiz; member
/external/libxml2/os400/dlfcn/
Ddlfcn.c406 dlresolveLink(const char * path, char * buf, size_t bufsiz) in dlresolveLink() argument
425 if (!path || !*path || !bufsiz) { in dlresolveLink()
477 if (l1 >= bufsiz) { in dlresolveLink()
/external/wpa_supplicant_8/src/utils/
Dxml_libxml2.c205 int bufsiz; in xml_node_to_str() local
213 xmlDocDumpFormatMemory(doc, &buf, &bufsiz, 0); in xml_node_to_str()
/external/python/cpython3/Include/
Dfileutils.h149 size_t bufsiz);
/external/openssh/
Dssh-keyscan.c482 size_t bufsiz; in congreet() local
487 bufsiz = sizeof(buf); in congreet()
489 while (bufsiz-- && in congreet()
/external/u-boot/fs/yaffs2/
Dyaffsfs.h171 int yaffs_readlink(const YCHAR *path, YCHAR *buf, int bufsiz);
Dyaffsfs.c3035 int yaffs_readlink(const YCHAR *path, YCHAR *buf, int bufsiz) in yaffs_readlink() argument
3062 memset(buf, 0, bufsiz); in yaffs_readlink()
3063 yaffs_strncpy(buf, alias, bufsiz - 1); in yaffs_readlink()
/external/python/cpython3/Python/
Dfileutils.c1543 _Py_wreadlink(const wchar_t *path, wchar_t *buf, size_t bufsiz) in _Py_wreadlink() argument
1570 if (bufsiz <= r1) { in _Py_wreadlink()
1575 wcsncpy(buf, wbuf, bufsiz); in _Py_wreadlink()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h795 #define __sanitizer_syscall_pre_readlink(path, buf, bufsiz) \ argument
797 (long)(bufsiz))
798 #define __sanitizer_syscall_post_readlink(res, path, buf, bufsiz) \ argument
800 (long)(bufsiz))
1652 #define __sanitizer_syscall_pre_readlinkat(dfd, path, buf, bufsiz) \ argument
1654 (long)(buf), (long)(bufsiz))
1655 #define __sanitizer_syscall_post_readlinkat(res, dfd, path, buf, bufsiz) \ argument
1657 (long)(buf), (long)(bufsiz))
2452 void __sanitizer_syscall_pre_impl_readlink(long path, long buf, long bufsiz);
2454 long bufsiz);
[all …]
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc129 INTERCEPTOR(SSIZE_T, readlink, const char *path, char *buf, SIZE_T bufsiz) { in INTERCEPTOR() argument
132 SSIZE_T res = REAL(readlink)(path, buf, bufsiz); in INTERCEPTOR()
/external/u-boot/drivers/usb/gadget/
Dcomposite.c991 cdev->bufsiz = USB_BUFSIZ; in composite_bind()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc1378 PRE_SYSCALL(readlink)(const void *path, void *buf, long bufsiz) {
1383 POST_SYSCALL(readlink)(long res, const void *path, void *buf, long bufsiz) {
2606 PRE_SYSCALL(readlinkat)(long dfd, const void *path, void *buf, long bufsiz) {
2612 long bufsiz) {