Lines Matching refs:tbuf

143 	struct l_newstat tbuf;  in newstat_copyout()  local
145 bzero(&tbuf, sizeof(tbuf)); in newstat_copyout()
146 tbuf.st_dev = linux_new_encode_dev(buf->st_dev); in newstat_copyout()
147 tbuf.st_ino = buf->st_ino; in newstat_copyout()
148 tbuf.st_mode = buf->st_mode; in newstat_copyout()
149 tbuf.st_nlink = buf->st_nlink; in newstat_copyout()
150 tbuf.st_uid = buf->st_uid; in newstat_copyout()
151 tbuf.st_gid = buf->st_gid; in newstat_copyout()
152 tbuf.st_rdev = linux_new_encode_dev(buf->st_rdev); in newstat_copyout()
153 tbuf.st_size = buf->st_size; in newstat_copyout()
154 tbuf.st_atim.tv_sec = buf->st_atim.tv_sec; in newstat_copyout()
155 tbuf.st_atim.tv_nsec = buf->st_atim.tv_nsec; in newstat_copyout()
156 tbuf.st_mtim.tv_sec = buf->st_mtim.tv_sec; in newstat_copyout()
157 tbuf.st_mtim.tv_nsec = buf->st_mtim.tv_nsec; in newstat_copyout()
158 tbuf.st_ctim.tv_sec = buf->st_ctim.tv_sec; in newstat_copyout()
159 tbuf.st_ctim.tv_nsec = buf->st_ctim.tv_nsec; in newstat_copyout()
160 tbuf.st_blksize = buf->st_blksize; in newstat_copyout()
161 tbuf.st_blocks = buf->st_blocks; in newstat_copyout()
163 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in newstat_copyout()
658 struct l_statx tbuf; in statx_copyout() local
660 bzero(&tbuf, sizeof(tbuf)); in statx_copyout()
661 tbuf.stx_mask = STATX_ALL; in statx_copyout()
662 tbuf.stx_blksize = buf->st_blksize; in statx_copyout()
663 tbuf.stx_attributes = 0; in statx_copyout()
664 tbuf.stx_nlink = buf->st_nlink; in statx_copyout()
665 tbuf.stx_uid = buf->st_uid; in statx_copyout()
666 tbuf.stx_gid = buf->st_gid; in statx_copyout()
667 tbuf.stx_mode = buf->st_mode; in statx_copyout()
668 tbuf.stx_ino = buf->st_ino; in statx_copyout()
669 tbuf.stx_size = buf->st_size; in statx_copyout()
670 tbuf.stx_blocks = buf->st_blocks; in statx_copyout()
672 tbuf.stx_atime.tv_sec = buf->st_atim.tv_sec; in statx_copyout()
673 tbuf.stx_atime.tv_nsec = buf->st_atim.tv_nsec; in statx_copyout()
674 tbuf.stx_btime.tv_sec = buf->st_birthtim.tv_sec; in statx_copyout()
675 tbuf.stx_btime.tv_nsec = buf->st_birthtim.tv_nsec; in statx_copyout()
676 tbuf.stx_ctime.tv_sec = buf->st_ctim.tv_sec; in statx_copyout()
677 tbuf.stx_ctime.tv_nsec = buf->st_ctim.tv_nsec; in statx_copyout()
678 tbuf.stx_mtime.tv_sec = buf->st_mtim.tv_sec; in statx_copyout()
679 tbuf.stx_mtime.tv_nsec = buf->st_mtim.tv_nsec; in statx_copyout()
680 tbuf.stx_rdev_major = linux_encode_major(buf->st_rdev); in statx_copyout()
681 tbuf.stx_rdev_minor = linux_encode_minor(buf->st_rdev); in statx_copyout()
682 tbuf.stx_dev_major = linux_encode_major(buf->st_dev); in statx_copyout()
683 tbuf.stx_dev_minor = linux_encode_minor(buf->st_dev); in statx_copyout()
685 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in statx_copyout()