Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dfortify.cpp101 size_t __fread_chk(void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fread_chk() argument
107 __check_buffer_access("fread", "write into", total, buf_size); in __fread_chk()
111 size_t __fwrite_chk(const void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fwrite_chk() argument
117 __check_buffer_access("fwrite", "read from", total, buf_size); in __fwrite_chk()
175 ssize_t __pread64_chk(int fd, void* buf, size_t count, off64_t offset, size_t buf_size) { in __pread64_chk() argument
177 __check_buffer_access("pread64", "write into", count, buf_size); in __pread64_chk()
181 ssize_t __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) { in __pread_chk() argument
183 __check_buffer_access("pread", "write into", count, buf_size); in __pread_chk()
188 size_t buf_size) { in __pwrite64_chk() argument
190 __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/linux/
Dcciss_ioctl.h49 WORD buf_size; member
57 DWORD buf_size; member
Domap3isp.h74 __u32 buf_size; member
92 __struct_group(, frame,, __u32 buf_size;
123 __u32 buf_size; member
164 __u32 buf_size; member
Drandom.h33 int buf_size; member
Dpfrut.h64 __u32 buf_size; member
Dblktrace_api.h119 __u32 buf_size; member
Dhdreg.h317 unsigned short buf_size; member
Dbtrfs.h311 __u64 buf_size; member
Dkvm.h61 __u32 buf_size; member
/bionic/libc/kernel/uapi/rdma/
Dvmw_pvrdma-abi.h117 __u32 buf_size; member
126 __u32 buf_size; member
131 __u32 buf_size; member
/bionic/libc/async_safe/
Dasync_safe_log.cpp170 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument
172 char* end = buf + buf_size - 1; in format_unsigned()
206 static void format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) { in format_integer() argument
220 buf_size -= 1; in format_integer()
223 format_unsigned(buf, buf_size, value, base, caps); in format_integer()
/bionic/docs/
DEINTR.md62 n = read(fd, buf, buf_size); // BAD!
63 n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); // GOOD!
/bionic/linker/
Dlinker.cpp985 static bool format_path(char* buf, size_t buf_size, const char* path, const char* name) { in format_path() argument
986 int n = async_safe_format_buffer(buf, buf_size, "%s/%s", path, name); in format_path()
987 if (n < 0 || n >= static_cast<int>(buf_size)) { in format_path()