Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 14 of 14) sorted by relevance

/bionic/libc/bionic/
Dfortify.cpp104 size_t __fread_chk(void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fread_chk() argument
110 __check_buffer_access("fread", "write into", total, buf_size); in __fread_chk()
114 size_t __fwrite_chk(const void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fwrite_chk() argument
120 __check_buffer_access("fwrite", "read from", total, buf_size); in __fwrite_chk()
178 ssize_t __pread64_chk(int fd, void* buf, size_t count, off64_t offset, size_t buf_size) { in __pread64_chk() argument
180 __check_buffer_access("pread64", "write into", count, buf_size); in __pread64_chk()
184 ssize_t __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) { in __pread_chk() argument
186 __check_buffer_access("pread", "write into", count, buf_size); in __pread_chk()
191 size_t buf_size) { in __pwrite64_chk() argument
193 __check_buffer_access("pwrite64", "read from", count, buf_size); in __pwrite64_chk()
[all …]
Dpthread_setname_np.cpp54 int pthread_getname_np(pthread_t t, char* buf, size_t buf_size) { in pthread_getname_np() argument
57 if (buf_size < MAX_TASK_COMM_LEN) return ERANGE; in pthread_getname_np()
68 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); in pthread_getname_np()
80 if (n == static_cast<ssize_t>(buf_size)) return ERANGE; in pthread_getname_np()
/bionic/tests/
Dlibgen_test.cpp44 char* buf, size_t buf_size, int expected_errno) { in TestBasename() argument
46 int rc = basename_r(in, buf, buf_size); in TestBasename()
55 char* buf, size_t buf_size, int expected_errno) { in TestDirname() argument
57 int rc = dirname_r(in, buf, buf_size); in TestDirname()
/bionic/libc/kernel/uapi/linux/hsi/
Dcs-protocol.h45 __u32 buf_size; member
55 __u32 buf_size; member
/bionic/libc/kernel/uapi/rdma/
Dvmw_pvrdma-abi.h111 __u32 buf_size; member
120 __u32 buf_size; member
125 __u32 buf_size; member
/bionic/libc/kernel/uapi/linux/
Dcciss_ioctl.h49 WORD buf_size; member
57 DWORD buf_size; member
Domap3isp.h74 __u32 buf_size; member
92 __u32 buf_size; member
122 __u32 buf_size; member
163 __u32 buf_size; member
Drandom.h33 int buf_size; member
Dblktrace_api.h119 __u32 buf_size; member
Dhdreg.h317 unsigned short buf_size; member
Dbtrfs.h296 __u64 buf_size; member
Dkvm.h60 __u32 buf_size; member
/bionic/libc/async_safe/
Dasync_safe_log.cpp159 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument
161 char* end = buf + buf_size - 1; in format_unsigned()
195 static void format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) { in format_integer() argument
209 buf_size -= 1; in format_integer()
212 format_unsigned(buf, buf_size, value, base, caps); in format_integer()
/bionic/linker/
Dlinker.cpp953 static bool format_path(char* buf, size_t buf_size, const char* path, const char* name) { in format_path() argument
954 int n = async_safe_format_buffer(buf, buf_size, "%s/%s", path, name); in format_path()
955 if (n < 0 || n >= static_cast<int>(buf_size)) { in format_path()