xattr_other.rs 775 B

1234567891011121314151617181920212223242526272829303132
  1. //! Extended attribute support for other os
  2. use std::old_io as io;
  3. /// Extended attribute
  4. #[derive(Clone)]
  5. pub struct Attribute;
  6. impl Attribute {
  7. /// Getter for name
  8. pub fn name(&self) -> &str {
  9. unimplemented!()
  10. }
  11. /// Getter for size
  12. pub fn size(&self) -> usize {
  13. unimplemented!()
  14. }
  15. }
  16. /// Lists the extended attributes. Follows symlinks like `stat`
  17. pub fn list(_: &Path) -> io::IoResult<Vec<Attribute>> {
  18. Ok(Vec::new())
  19. }
  20. /// Lists the extended attributes. Does not follow symlinks like `lstat`
  21. pub fn llist(_: &Path) -> io::IoResult<Vec<Attribute>> {
  22. Ok(Vec::new())
  23. }
  24. /// Returns true if the extended attribute feature is implemented on this platform.
  25. #[inline(always)]
  26. pub fn feature_implemented() -> bool { false }