Lines Matching refs:name
29 writeAttrValue(int fd, const char* name, type_code type, Type value)
31 ssize_t bytes = fs_write_attr(fd, name, type, 0, &value, sizeof(Type));
46 writeAttr(int fd, type_code type, const char* name, const char* value, size_t length)
78 return writeAttrValue<int8>(fd, name, type, (int8)int64value);
80 return writeAttrValue<int16>(fd, name, type, (int16)int64value);
82 return writeAttrValue<int32>(fd, name, type, (int32)int64value);
84 return writeAttrValue<int64>(fd, name, type, int64value);
87 return writeAttrValue<uint8>(fd, name, type, (uint8)uint64value);
89 return writeAttrValue<uint16>(fd, name, type, (uint16)uint64value);
91 return writeAttrValue<uint32>(fd, name, type, (uint32)uint64value);
93 return writeAttrValue<uint64>(fd, name, type, uint64value);
96 return writeAttrValue<float>(fd, name, type, (float)floatValue);
98 return writeAttrValue<double>(fd, name, type, (double)floatValue);
115 return writeAttrValue<uint8>(fd, name, B_BOOL_TYPE, boolValue);
125 return writeAttrValue<time_t>(fd, name, B_TIME_TYPE, timeValue);
135 ssize_t bytes = fs_write_attr(fd, name, type, 0, value,
145 /*! Adds an attribute to a file for the given type, name and value
151 addAttr(const char* file, type_code type, const char* name,
158 fs_remove_attr(fd, name);
159 ssize_t bytes = writeAttr(fd, type, name, value, length);