Lines Matching refs:buf

102 nxt_file_write(nxt_file_t *file, const u_char *buf, size_t size,  in nxt_file_write()  argument
109 n = pwrite(file->fd, buf, size, offset); in nxt_file_write()
116 file->fd, buf, size, offset, n); in nxt_file_write()
123 file->fd, file->name, buf, size, in nxt_file_write()
131 nxt_file_read(nxt_file_t *file, u_char *buf, size_t size, nxt_off_t offset) in nxt_file_read() argument
137 n = pread(file->fd, buf, size, offset); in nxt_file_read()
144 file->fd, buf, size, offset, n); in nxt_file_read()
151 file->fd, file->name, buf, size, in nxt_file_read()
166 u_char buf; in nxt_file_read_ahead() local
174 (void) nxt_file_read(file, &buf, 1, offset); in nxt_file_read_ahead()
228 u_char buf; in nxt_file_read_ahead() local
235 (void) nxt_file_read(file, &buf, 1, offset); in nxt_file_read_ahead()
248 u_char buf; in nxt_file_read_ahead() local
250 (void) nxt_file_read(file, &buf, 1, offset); in nxt_file_read_ahead()
448 nxt_fd_write(nxt_fd_t fd, u_char *buf, size_t size) in nxt_fd_write() argument
453 n = write(fd, buf, size); in nxt_fd_write()
457 nxt_thread_log_debug("write(%FD, %p, %uz): %z", fd, buf, size, n); in nxt_fd_write()
468 nxt_fd_read(nxt_fd_t fd, u_char *buf, size_t size) in nxt_fd_read() argument
473 n = read(fd, buf, size); in nxt_fd_read()
477 nxt_thread_log_debug("read(%FD, %p, %uz): %z", fd, buf, size, n); in nxt_fd_read()
630 nxt_dir_current(char *buf, size_t len) in nxt_dir_current() argument
632 if (nxt_fast_path(getcwd(buf, len) != NULL)) { in nxt_dir_current()
633 return nxt_strlen(buf); in nxt_dir_current()