Lines Matching refs:tbuf

176 	struct l_newstat tbuf;  in newstat_copyout()  local
178 bzero(&tbuf, sizeof(tbuf)); in newstat_copyout()
179 tbuf.st_dev = dev_to_ldev(buf->st_dev); in newstat_copyout()
180 tbuf.st_ino = buf->st_ino; in newstat_copyout()
181 tbuf.st_mode = buf->st_mode; in newstat_copyout()
182 tbuf.st_nlink = buf->st_nlink; in newstat_copyout()
183 tbuf.st_uid = buf->st_uid; in newstat_copyout()
184 tbuf.st_gid = buf->st_gid; in newstat_copyout()
185 tbuf.st_rdev = buf->st_rdev; in newstat_copyout()
186 tbuf.st_size = buf->st_size; in newstat_copyout()
187 tbuf.st_atim.tv_sec = buf->st_atim.tv_sec; in newstat_copyout()
188 tbuf.st_atim.tv_nsec = buf->st_atim.tv_nsec; in newstat_copyout()
189 tbuf.st_mtim.tv_sec = buf->st_mtim.tv_sec; in newstat_copyout()
190 tbuf.st_mtim.tv_nsec = buf->st_mtim.tv_nsec; in newstat_copyout()
191 tbuf.st_ctim.tv_sec = buf->st_ctim.tv_sec; in newstat_copyout()
192 tbuf.st_ctim.tv_nsec = buf->st_ctim.tv_nsec; in newstat_copyout()
193 tbuf.st_blksize = buf->st_blksize; in newstat_copyout()
194 tbuf.st_blocks = buf->st_blocks; in newstat_copyout()
196 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in newstat_copyout()
202 struct l_statx tbuf; in statx_copyout() local
204 bzero(&tbuf, sizeof(tbuf)); in statx_copyout()
205 tbuf.stx_mask = STATX_ALL; in statx_copyout()
206 tbuf.stx_blksize = buf->st_blksize; in statx_copyout()
207 tbuf.stx_attributes = 0; in statx_copyout()
208 tbuf.stx_nlink = buf->st_nlink; in statx_copyout()
209 tbuf.stx_uid = buf->st_uid; in statx_copyout()
210 tbuf.stx_gid = buf->st_gid; in statx_copyout()
211 tbuf.stx_mode = buf->st_mode; in statx_copyout()
212 tbuf.stx_ino = buf->st_ino; in statx_copyout()
213 tbuf.stx_size = buf->st_size; in statx_copyout()
214 tbuf.stx_blocks = buf->st_blocks; in statx_copyout()
216 tbuf.stx_atime.tv_sec = buf->st_atim.tv_sec; in statx_copyout()
217 tbuf.stx_atime.tv_nsec = buf->st_atim.tv_nsec; in statx_copyout()
218 tbuf.stx_btime.tv_sec = buf->st_birthtim.tv_sec; in statx_copyout()
219 tbuf.stx_btime.tv_nsec = buf->st_birthtim.tv_nsec; in statx_copyout()
220 tbuf.stx_ctime.tv_sec = buf->st_ctim.tv_sec; in statx_copyout()
221 tbuf.stx_ctime.tv_nsec = buf->st_ctim.tv_nsec; in statx_copyout()
222 tbuf.stx_mtime.tv_sec = buf->st_mtim.tv_sec; in statx_copyout()
223 tbuf.stx_mtime.tv_nsec = buf->st_mtim.tv_nsec; in statx_copyout()
225 tbuf.stx_rdev_major = buf->st_rdev >> 8; in statx_copyout()
226 tbuf.stx_rdev_minor = buf->st_rdev & 0xff; in statx_copyout()
227 tbuf.stx_dev_major = buf->st_dev >> 8; in statx_copyout()
228 tbuf.stx_dev_minor = buf->st_dev & 0xff; in statx_copyout()
230 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in statx_copyout()