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()
332 char *buf; in nxt_file_chown() local
349 buf = nxt_malloc(bufsize); in nxt_file_chown()
350 if (buf == NULL) { in nxt_file_chown()
354 err = getpwnam_r(owner, &pwd, buf, bufsize, &result); in nxt_file_chown()
364 nxt_free(buf); in nxt_file_chown()
375 buf = nxt_malloc(bufsize); in nxt_file_chown()
376 if (buf == NULL) { in nxt_file_chown()
380 err = getgrnam_r(group, &grp, buf, bufsize, &result); in nxt_file_chown()
390 nxt_free(buf); in nxt_file_chown()
404 nxt_free(buf); in nxt_file_chown()
530 nxt_fd_write(nxt_fd_t fd, u_char *buf, size_t size) in nxt_fd_write() argument
535 n = write(fd, buf, size); in nxt_fd_write()
539 nxt_thread_log_debug("write(%FD, %p, %uz): %z", fd, buf, size, n); in nxt_fd_write()
550 nxt_fd_read(nxt_fd_t fd, u_char *buf, size_t size) in nxt_fd_read() argument
555 n = read(fd, buf, size); in nxt_fd_read()
559 nxt_thread_log_debug("read(%FD, %p, %uz): %z", fd, buf, size, n); in nxt_fd_read()
768 nxt_dir_current(char *buf, size_t len) in nxt_dir_current() argument
770 if (nxt_fast_path(getcwd(buf, len) != NULL)) { in nxt_dir_current()
771 return nxt_strlen(buf); in nxt_dir_current()