Lines Matching refs:sz
284 #define COMMON_INTERCEPTOR_MMAP_IMPL(ctx, mmap, addr, sz, prot, flags, fd, \
286 { return REAL(mmap)(addr, sz, prot, flags, fd, off); }
983 SSIZE_T sz = Min(iovec[i].iov_len, maxlen);
984 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, iovec[i].iov_base, sz);
985 maxlen -= sz;
993 SSIZE_T sz = Min(iovec[i].iov_len, maxlen);
994 COMMON_INTERCEPTOR_READ_RANGE(ctx, iovec[i].iov_base, sz);
995 maxlen -= sz;
2497 uptr sz = __sanitizer_in_addr_sz(af);
2498 if (sz) COMMON_INTERCEPTOR_READ_RANGE(ctx, src, sz);
2517 uptr sz = __sanitizer_in_addr_sz(af);
2518 if (sz) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, sz);
2539 uptr sz = __sanitizer_in_addr_sz(af_inet);
2540 if (sz) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, sz);
3762 SIZE_T sz = internal_strnlen(buf, buflen);
3763 if (sz < buflen) ++sz;
3764 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, sz);
4572 unsigned sz = 0;
4574 sz = sizeof(__sanitizer_shmid_ds);
4576 sz = struct_shminfo_sz;
4578 sz = struct_shm_info_sz;
4579 if (sz) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, sz);
4615 #define INTERCEPTOR_PTHREAD_OBJECT_ATTR_GET(fn, sz) \
4620 if (!res && r) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, r, sz); \
4623 #define INTERCEPTOR_PTHREAD_ATTR_GET(what, sz) \
4624 INTERCEPTOR_PTHREAD_OBJECT_ATTR_GET(pthread_attr_get##what, sz)
4625 #define INTERCEPTOR_PTHREAD_MUTEXATTR_GET(what, sz) \
4626 INTERCEPTOR_PTHREAD_OBJECT_ATTR_GET(pthread_mutexattr_get##what, sz)
4627 #define INTERCEPTOR_PTHREAD_RWLOCKATTR_GET(what, sz) \
4628 INTERCEPTOR_PTHREAD_OBJECT_ATTR_GET(pthread_rwlockattr_get##what, sz)
4629 #define INTERCEPTOR_PTHREAD_CONDATTR_GET(what, sz) \
4630 INTERCEPTOR_PTHREAD_OBJECT_ATTR_GET(pthread_condattr_get##what, sz)
4631 #define INTERCEPTOR_PTHREAD_BARRIERATTR_GET(what, sz) \
4632 INTERCEPTOR_PTHREAD_OBJECT_ATTR_GET(pthread_barrierattr_get##what, sz)
5195 SIZE_T sz = (char *)*outbuf - (char *)outbuf_orig;
5196 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, outbuf_orig, sz);
6030 INTERCEPTOR(int, _obstack_begin_1, __sanitizer_obstack *obstack, int sz,
6031 int align, void *(*alloc_fn)(uptr arg, uptr sz),
6034 COMMON_INTERCEPTOR_ENTER(ctx, _obstack_begin_1, obstack, sz, align, alloc_fn,
6036 int res = REAL(_obstack_begin_1)(obstack, sz, align, alloc_fn, free_fn);
6040 INTERCEPTOR(int, _obstack_begin, __sanitizer_obstack *obstack, int sz,
6041 int align, void *(*alloc_fn)(uptr sz), void (*free_fn)(void *p)) {
6043 COMMON_INTERCEPTOR_ENTER(ctx, _obstack_begin, obstack, sz, align, alloc_fn,
6045 int res = REAL(_obstack_begin)(obstack, sz, align, alloc_fn, free_fn);
7175 INTERCEPTOR(void *, mmap, void *addr, SIZE_T sz, int prot, int flags, int fd,
7181 return (void *)internal_mmap(addr, sz, prot, flags, fd, off);
7182 COMMON_INTERCEPTOR_ENTER(ctx, mmap, addr, sz, prot, flags, fd, off);
7183 COMMON_INTERCEPTOR_MMAP_IMPL(ctx, mmap, addr, sz, prot, flags, fd, off);
7186 INTERCEPTOR(int, mprotect, void *addr, SIZE_T sz, int prot) {
7191 return (int)internal_mprotect(addr, sz, prot);
7192 COMMON_INTERCEPTOR_ENTER(ctx, mprotect, addr, sz, prot);
7194 return REAL(mprotect)(addr, sz, prot);
7204 INTERCEPTOR(void *, mmap64, void *addr, SIZE_T sz, int prot, int flags, int fd,
7210 return (void *)internal_mmap(addr, sz, prot, flags, fd, off);
7211 COMMON_INTERCEPTOR_ENTER(ctx, mmap64, addr, sz, prot, flags, fd, off);
7212 COMMON_INTERCEPTOR_MMAP_IMPL(ctx, mmap64, addr, sz, prot, flags, fd, off);