Lines Matching defs:stx
112 bsd_to_linux_statx(struct stat *st, struct linux_statx *stx,
123 memset(stx, 0, sizeof(*stx));
126 stx->stx_attributes |= STATX_ATTR_NODUMP;
128 stx->stx_attributes |= STATX_ATTR_IMMUTABLE;
130 stx->stx_attributes |= STATX_ATTR_APPEND;
132 stx->stx_attributes_mask =
135 stx->stx_blksize = st->st_blksize;
137 stx->stx_nlink = st->st_nlink;
138 stx->stx_uid = st->st_uid;
139 stx->stx_gid = st->st_gid;
140 stx->stx_mode |= st->st_mode & S_IFMT;
141 stx->stx_mode |= st->st_mode & ~S_IFMT;
142 stx->stx_ino = st->st_ino;
143 stx->stx_size = st->st_size;
144 stx->stx_blocks = st->st_blocks;
146 stx->stx_atime.tv_sec = st->st_atime;
147 stx->stx_atime.tv_nsec = st->st_atimensec;
155 stx->stx_btime.tv_sec = st->st_birthtime;
156 stx->stx_btime.tv_nsec = st->st_birthtimensec;
159 stx->stx_ctime.tv_sec = st->st_ctime;
160 stx->stx_ctime.tv_nsec = st->st_ctimensec;
162 stx->stx_mtime.tv_sec = st->st_mtime;
163 stx->stx_mtime.tv_nsec = st->st_mtimensec;
166 stx->stx_rdev_major = major(st->st_rdev);
167 stx->stx_rdev_minor = minor(st->st_rdev);
169 stx->stx_dev_major = major(st->st_rdev);
170 stx->stx_dev_minor = minor(st->st_rdev);
173 stx->stx_mask = rmask;
328 struct linux_statx stx;
337 error = bsd_to_linux_statx(&st, &stx, SCARG(uap, mask));
341 return copyout(&stx, SCARG(uap, sp), sizeof stx);