Home
last modified time | relevance | path

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

/external/libedit/src/
Dfgetln.c51 static size_t bufsiz = 0; in fgetln() local
56 bufsiz = BUFSIZ; in fgetln()
57 if ((buf = malloc(bufsiz)) == NULL) in fgetln()
61 if (fgets(buf, bufsiz, fp) == NULL) in fgetln()
66 size_t nbufsiz = bufsiz + BUFSIZ; in fgetln()
78 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL) { in fgetln()
79 buf[bufsiz] = '\0'; in fgetln()
84 *len = bufsiz; in fgetln()
85 bufsiz = nbufsiz; in fgetln()
/external/valgrind/coregrind/
Dlauncher-linux.c415 unsigned bufsiz = 0; in main() local
419 bufsiz += 500; in main()
420 buf = realloc(buf, bufsiz); in main()
423 r = readlink(linkname, buf, bufsiz); in main()
436 if (r == bufsiz) continue; // buffer to small; retry in main()
438 assert(r < bufsiz); // paranoia in main()
Dm_libcfile.c83 static SizeT bufsiz = 0; in VG_() local
86 bufsiz = 500; in VG_()
87 buf = VG_(malloc)("resolve_filename", bufsiz); in VG_()
100 SSizeT res = VG_(readlink)(tmp, buf, bufsiz); in VG_()
102 if (res == bufsiz) { // buffer too small; increase and retry in VG_()
103 bufsiz += 500; in VG_()
104 buf = VG_(realloc)("resolve_filename", buf, bufsiz); in VG_()
107 vg_assert(bufsiz > res); // paranoia in VG_()
641 SSizeT VG_(readlink) (const HChar* path, HChar* buf, SizeT bufsiz) in VG_()
647 (UWord)path, (UWord)buf, bufsiz); in VG_()
[all …]
Dm_main.c1445 const SizeT bufsiz = 255; in print_preamble() local
1446 HChar version_buf[bufsiz+1]; in print_preamble()
1450 n = VG_(read)(fdno, version_buf, bufsiz); in print_preamble()
1457 } while (n == bufsiz); in print_preamble()
/external/valgrind/coregrind/m_aspacemgr/
Daspacemgr-common.c286 Int ML_(am_readlink)(const HChar* path, HChar* buf, UInt bufsiz) in ML_()
291 (UWord)path, (UWord)buf, bufsiz); in ML_()
294 (UWord)buf, bufsiz); in ML_()
296 res = VG_(do_syscall3)(__NR_readlink, (UWord)path, (UWord)buf, bufsiz); in ML_()
299 (UWord)buf, bufsiz); in ML_()
Dpriv_aspacemgr.h115 extern Int ML_(am_readlink) ( const HChar* path, HChar* buf, UInt bufsiz );
/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/valgrind/include/
Dpub_tool_libcfile.h94 extern SSizeT VG_(readlink)( const HChar* path, HChar* buf, SizeT bufsiz);
/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/toybox/lib/
Dportability.h124 int readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz);
/external/valgrind/coregrind/m_debuginfo/
Ddebuginfo.c2171 putStr( SizeT n, HChar** buf, SizeT *bufsiz, const HChar* str ) in putStr() argument
2176 if (need > *bufsiz) { in putStr()
2178 *bufsiz = need; in putStr()
2179 *buf = ML_(dinfo_realloc)("putStr", *buf, *bufsiz); in putStr()
2189 putStrEsc( SizeT n, HChar** buf, SizeT *bufsiz, const HChar* str ) in putStrEsc() argument
2196 n = putStr( n, buf, bufsiz, "&amp;"); in putStrEsc()
2199 n = putStr( n, buf, bufsiz, "&lt;"); in putStrEsc()
2202 n = putStr( n, buf, bufsiz, "&gt;"); in putStrEsc()
2207 n = putStr( n, buf, bufsiz, alt ); in putStrEsc()
2217 static SizeT bufsiz = 0; in VG_() local
[all …]
/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))
2445 void __sanitizer_syscall_pre_impl_readlink(long path, long buf, long bufsiz);
2447 long bufsiz);
[all …]
/external/valgrind/memcheck/tests/solaris/
Dscalar_obsolete.stderr.exp195 Syscall param readlink(bufsiz) contains uninitialised byte(s)
Dscalar.stderr.exp261 Syscall param readlinkat(bufsiz) contains uninitialised byte(s)
4425 Syscall param resolvepath(bufsiz) contains uninitialised byte(s)
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc126 INTERCEPTOR(SSIZE_T, readlink, const char *path, char *buf, SIZE_T bufsiz) { in INTERCEPTOR() argument
129 SSIZE_T res = REAL(readlink)(path, buf, bufsiz); in INTERCEPTOR()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc1380 PRE_SYSCALL(readlink)(const void *path, void *buf, long bufsiz) {
1385 POST_SYSCALL(readlink)(long res, const void *path, void *buf, long bufsiz) {
2610 PRE_SYSCALL(readlinkat)(long dfd, const void *path, void *buf, long bufsiz) {
2616 long bufsiz) {
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-generic.c4128 const char *, path, char *, buf, int, bufsiz); in PRE()
Dsyswrap-solaris.c2294 char *, buf, int, bufsiz); in PRE()
9360 vki_size_t, bufsiz);
Dsyswrap-darwin.c9704 int, dfd, const char *, path, char *, buf, int, bufsiz); in PRE()
Dsyswrap-linux.c4677 int, dfd, const char *, path, char *, buf, vki_size_t, bufsiz); in PRE()
/external/valgrind/memcheck/tests/x86-linux/
Dscalar.stderr.exp951 Syscall param readlink(bufsiz) contains uninitialised byte(s)