Lines Matching defs:xfd
766 int xfd;
775 if ((xfd = dfs_root_xopen(rootdir, O_RDONLY)) > 0) {
776 status = dfs_root_xread(xfd, info, infolvl);
777 dfs_root_xclose(xfd);
803 int xfd;
806 if ((xfd = dfs_root_xopen(rootdir, O_RDWR)) < 0) {
811 status = dfs_root_xread(xfd, &curinfo, DFS_INFO_LEVEL_ALL);
813 dfs_root_xclose(xfd);
819 dfs_root_xclose(xfd);
827 status = dfs_root_xwrite(xfd, &curinfo);
829 dfs_root_xclose(xfd);
1356 int xfd;
1359 if ((xfd = dfs_root_xopen(rootdir, O_CREAT | O_TRUNC | O_RDWR)) > 0) {
1360 status = dfs_root_xwrite(xfd, info);
1361 dfs_root_xclose(xfd);
1407 int xfd = -1;
1411 xfd = openat(dfd, DFS_ROOT_XATTR, oflag | O_XATTR, 0600);
1412 if (xfd == -1)
1424 return (xfd);
1431 dfs_root_xclose(int xfd)
1433 (void) close(xfd);
1438 * extended attribute specified with xfd file descriptor.
1441 dfs_root_xwrite(int xfd, dfs_info_t *info)
1451 (void) lseek(xfd, 0, SEEK_SET);
1452 nbytes = write(xfd, buf, buflen);
1463 dfs_root_xread(int xfd, dfs_info_t *info, uint32_t infolvl)
1469 if (fstat(xfd, &statbuf) != 0)
1475 if (read(xfd, buf, statbuf.st_size) == statbuf.st_size)