-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Haskell binding to libattr -- -- Stuff @package xattr @version 0.5 -- | Relatively low-level interface to work with extended attributes on -- Unix systems. This is a fairly straightforward port of the API exposed -- by SGI's libattr. module System.Xattr -- | Set an attribute on a regular file, by path setxattr :: String -> String -> ByteString -> XattrMode -> IO () -- | Like setxattr, but if the path is a symbolic link set the attribute on -- the link itself (not the file pointed to by the link) lsetxattr :: String -> String -> ByteString -> XattrMode -> IO () -- | Like setxattr, but use the handle specified rather than a file path fsetxattr :: Handle -> String -> ByteString -> XattrMode -> IO () -- | Get an attribute on a regular file, by path getxattr :: String -> String -> IO ByteString -- | Like getxattr, but if the path is a symbolic link get the attribute on -- the link itself (not the file pointed to by the link) lgetxattr :: String -> String -> IO ByteString -- | Like getxattr, but use the handle specified rather than a file path fgetxattr :: Handle -> String -> IO ByteString -- | Get a list of all of the attributes set on a path listxattr :: String -> IO [String] -- | Like listxattr, but if the path is a symbolic link get the attributes -- on the link itsel (not the file pointed to by the link) llistxattr :: String -> IO [String] -- | Like listxattr, but use the handle specified rather than a file path flistxattr :: Handle -> IO [String] data XattrMode RegularMode :: XattrMode CreateMode :: XattrMode ReplaceMode :: XattrMode instance Enum XattrMode