Lines Matching refs:fd

69 _haiku_build_fs_fopen_attr_dir(int fd)
72 status_t error = localFD.Init(fd);
108 _haiku_build_fs_fopen_attr(int fd, const char *attribute, uint32 type, int openMode)
110 if (fd < 0) {
116 status_t error = localFD.Init(fd);
132 _haiku_build_fs_close_attr(int fd)
134 return fs_close_attr(fd);
139 _haiku_build_fs_read_attr(int fd, const char* attribute, uint32 type, off_t pos,
143 status_t error = localFD.Init(fd);
151 int fd = open(localFD.Path(), O_RDONLY | O_NOTRAVERSE);
152 bytesRead = fs_read_attr(fd, attribute, type,
154 close(fd);
172 _haiku_build_fs_write_attr(int fd, const char* attribute, uint32 type, off_t pos,
176 status_t error = localFD.Init(fd);
184 int fd = open(localFD.Path(), O_NOTRAVERSE | O_WRONLY);
185 written = fs_write_attr(fd, attribute, type,
187 close(fd);
198 _haiku_build_fs_remove_attr(int fd, const char* attribute)
201 status_t error = localFD.Init(fd);
210 int fd = open(localFD.Path(), O_NOTRAVERSE | O_WRONLY);
211 result = fs_remove_attr(fd, attribute);
212 close(fd);
229 _haiku_build_fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo)
237 status_t error = localFD.Init(fd);
245 int fd = open(localFD.Path(), O_NOTRAVERSE | O_RDONLY);
246 result = fs_stat_attr(fd, attribute, attrInfo);
247 close(fd);
263 _kern_open_attr_dir(int fd, const char *path)
267 status_t error = _kern_read_stat(fd, path, false, &st,
279 status_t error = get_path(fd, path, realPath);
285 dir = _haiku_build_fs_fopen_attr_dir(fd);
306 _kern_remove_attr(int fd, const char *name)
311 if (_haiku_build_fs_remove_attr(fd, name) < 0)