Lines Matching refs:buf

72 char* getcwd(char* const __pass_object_size buf, size_t size)
74 __error_if_overflows_objectsize(size, __bos(buf), getcwd) {
75 size_t bos = __bos(buf);
78 return __call_bypassing_fortify(getcwd)(buf, size);
81 return __getcwd_chk(buf, size, bos);
87 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, off_t offset)
90 __error_if_overflows_objectsize(count, __bos0(buf), pread) {
91 size_t bos = __bos0(buf);
94 return __PREAD_PREFIX(real)(fd, buf, count, offset);
97 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos);
101 ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, off64_t offset)
104 __error_if_overflows_objectsize(count, __bos0(buf), pread64) {
105 size_t bos = __bos0(buf);
108 return __pread64_real(fd, buf, count, offset);
111 return __pread64_chk(fd, buf, count, offset, bos);
117 ssize_t pwrite(int fd, const void* const __pass_object_size0 buf, size_t count, off_t offset)
120 __error_if_overflows_objectsize(count, __bos0(buf), pwrite) {
121 size_t bos = __bos0(buf);
124 return __PWRITE_PREFIX(real)(fd, buf, count, offset);
127 return __PWRITE_PREFIX(chk)(fd, buf, count, offset, bos);
131 ssize_t pwrite64(int fd, const void* const __pass_object_size0 buf, size_t count, off64_t offset)
134 __error_if_overflows_objectsize(count, __bos0(buf), pwrite64) {
135 size_t bos = __bos0(buf);
138 return __pwrite64_real(fd, buf, count, offset);
141 return __pwrite64_chk(fd, buf, count, offset, bos);
147 ssize_t read(int fd, void* const __pass_object_size0 buf, size_t count)
150 __error_if_overflows_objectsize(count, __bos0(buf), read) {
151 size_t bos = __bos0(buf);
154 return __call_bypassing_fortify(read)(fd, buf, count);
157 return __read_chk(fd, buf, count, bos);
163 ssize_t write(int fd, const void* const __pass_object_size0 buf, size_t count)
166 __error_if_overflows_objectsize(count, __bos0(buf), write) {
167 size_t bos = __bos0(buf);
170 return __call_bypassing_fortify(write)(fd, buf, count);
173 return __write_chk(fd, buf, count, bos);
179 ssize_t readlink(const char* path, char* const __pass_object_size buf, size_t size)
182 __error_if_overflows_objectsize(size, __bos(buf), readlink) {
183 size_t bos = __bos(buf);
186 return __call_bypassing_fortify(readlink)(path, buf, size);
189 return __readlink_chk(path, buf, size, bos);
193 ssize_t readlinkat(int dirfd, const char* path, char* const __pass_object_size buf, size_t size)
196 __error_if_overflows_objectsize(size, __bos(buf), readlinkat) {
197 size_t bos = __bos(buf);
200 return __call_bypassing_fortify(readlinkat)(dirfd, path, buf, size);
203 return __readlinkat_chk(dirfd, path, buf, size, bos);
238 char* getcwd(char* buf, size_t size) __overloadable {
239 size_t bos = __bos(buf);
242 return __getcwd_real(buf, size);
250 return __getcwd_real(buf, size);
253 return __getcwd_chk(buf, size, bos);
259 ssize_t pread(int fd, void* buf, size_t count, off_t offset) {
260 size_t bos = __bos0(buf);
267 return __PREAD_PREFIX(real)(fd, buf, count, offset);
275 return __PREAD_PREFIX(real)(fd, buf, count, offset);
278 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos);
282 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) {
283 size_t bos = __bos0(buf);
290 return __pread64_real(fd, buf, count, offset);
298 return __pread64_real(fd, buf, count, offset);
301 return __pread64_chk(fd, buf, count, offset, bos);
307 ssize_t pwrite(int fd, const void* buf, size_t count, off_t offset) {
308 size_t bos = __bos0(buf);
315 return __PWRITE_PREFIX(real)(fd, buf, count, offset);
323 return __PWRITE_PREFIX(real)(fd, buf, count, offset);
326 return __PWRITE_PREFIX(chk)(fd, buf, count, offset, bos);
330 ssize_t pwrite64(int fd, const void* buf, size_t count, off64_t offset) {
331 size_t bos = __bos0(buf);
338 return __pwrite64_real(fd, buf, count, offset);
346 return __pwrite64_real(fd, buf, count, offset);
349 return __pwrite64_chk(fd, buf, count, offset, bos);
355 ssize_t read(int fd, void* buf, size_t count) {
356 size_t bos = __bos0(buf);
363 return __read_real(fd, buf, count);
371 return __read_real(fd, buf, count);
374 return __read_chk(fd, buf, count, bos);
380 ssize_t write(int fd, const void* buf, size_t count) {
381 size_t bos = __bos0(buf);
384 return __write_real(fd, buf, count);
392 return __write_real(fd, buf, count);
395 return __write_chk(fd, buf, count, bos);
401 ssize_t readlink(const char* path, char* buf, size_t size) {
402 size_t bos = __bos(buf);
409 return __readlink_real(path, buf, size);
417 return __readlink_real(path, buf, size);
420 return __readlink_chk(path, buf, size, bos);
424 ssize_t readlinkat(int dirfd, const char* path, char* buf, size_t size) {
425 size_t bos = __bos(buf);
432 return __readlinkat_real(dirfd, path, buf, size);
440 return __readlinkat_real(dirfd, path, buf, size);
443 return __readlinkat_chk(dirfd, path, buf, size, bos);