Lines Matching defs:xfd
455 int xfd;
464 if ((xfd = dfs_root_xopen(rootdir, O_RDONLY)) > 0) {
465 status = dfs_root_xread(xfd, info, infolvl);
466 dfs_root_xclose(xfd);
485 int xfd;
488 if ((xfd = dfs_root_xopen(rootdir, O_RDWR)) < 0) {
493 status = dfs_root_xread(xfd, &curinfo, DFS_INFO_ALL);
495 dfs_root_xclose(xfd);
502 status = dfs_root_xwrite(xfd, &curinfo);
504 dfs_root_xclose(xfd);
1146 int xfd;
1149 if ((xfd = dfs_root_xopen(rootdir, O_CREAT | O_TRUNC | O_RDWR)) > 0) {
1150 status = dfs_root_xwrite(xfd, info);
1151 dfs_root_xclose(xfd);
1197 int xfd = -1;
1201 xfd = openat(dfd, DFS_ROOT_XATTR, oflag | O_XATTR, 0600);
1202 if (xfd == -1)
1214 return (xfd);
1221 dfs_root_xclose(int xfd)
1223 (void) close(xfd);
1228 * extended attribute specified with xfd file descriptor.
1231 dfs_root_xwrite(int xfd, dfs_info_t *info)
1241 (void) lseek(xfd, 0, SEEK_SET);
1242 nbytes = write(xfd, buf, buflen);
1253 dfs_root_xread(int xfd, dfs_info_t *info, uint32_t infolvl)
1259 if (fstat(xfd, &statbuf) != 0)
1265 if (read(xfd, buf, statbuf.st_size) == statbuf.st_size)