Lines Matching defs:attribute

22 // used to tag files with unique IDs to identify their attribute directory.
31 # error No attribute support for this host platform!
61 // the attribute dir base dir is no directory
284 // init the base directory and get the attribute directory path
298 // the attribute dir is no directory
334 const char *attribute, string &attrPath, string &typePath)
336 if (!attribute || strlen(attribute) == 0)
339 // make sure the attribute dir for the node exits
346 // construct the attribute path
348 string attrName(escape_attr_name(attribute));
358 get_attribute_path_virtual_fd(int fd, const char *attribute, string &attrPath,
373 // get the attribute path
375 (pathValid ? -1 : fd), attribute, attrPath, typePath);
381 get_attribute_path(int fd, const char *attribute, string &attrPath,
387 return get_attribute_path_virtual_fd(fd, attribute, attrPath,
399 return get_attribute_path(ref, NULL, fd, attribute, attrPath, typePath);
436 // get the attribute path
477 fs_fopen_attr(int fd, const char *attribute, uint32 type, int openMode)
479 if (!attribute) {
484 // get the attribute path
487 status_t error = get_attribute_path(fd, attribute, attrPath, typePath);
493 // check, if the attribute already exists
497 // open the attribute
502 // set the type, if the attribute didn't exist yet
516 // remove type and attribute file, if something went wrong
542 fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos,
545 // open the attribute
546 int attrFD = fs_fopen_attr(fd, attribute, type, O_RDONLY);
554 // close the attribute
567 fs_write_attr(int fd, const char *attribute, uint32 type, off_t pos,
570 // open the attribute
571 int attrFD = fs_fopen_attr(fd, attribute, type,
576 // attribute we silently pretend to have succeeded.
578 if (strcmp(attribute, "BEOS:TYPE") == 0 && fstat(fd, &st) == 0
589 // close the attribute
602 fs_remove_attr(int fd, const char *attribute)
604 if (!attribute) {
609 // get the attribute path
612 status_t error = get_attribute_path(fd, attribute, attrPath, typePath);
618 // remove the attribute
629 fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo)
631 if (!attribute || !attrInfo) {
636 // get the attribute path
639 status_t error = get_attribute_path(fd, attribute, attrPath, typePath);
645 // stat the attribute file to get the size of the attribute
652 // now open the attribute type file and read the attribute's type
719 // get the attribute paths
734 // rename the attribute and type files
739 // renaming the type file failed: try to rename back the attribute file
757 // get the attribute path
765 // remove the attribute