Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
unix System.Posix.Files Set user ID on execution.
setFdMode :: Fd -> FileMode -> IO ()unix System.Posix.Files.ByteString setFdMode fd mode acts like setFileMode but uses a file descriptor fd instead of a FilePath. Note: calls fchmod.
setFdOwnerAndGroup :: Fd -> UserID -> GroupID -> IO ()unix System.Posix.Files.ByteString Acts as setOwnerAndGroup but uses a file descriptor instead of a FilePath. Note: calls fchown.
setFdSize :: Fd -> FileOffset -> IO ()unix System.Posix.Files.ByteString Acts as setFileSize but uses a file descriptor instead of a FilePath. Note: calls ftruncate.
setFdTimesHiRes :: Fd -> POSIXTime -> POSIXTime -> IO ()unix System.Posix.Files.ByteString Like setFileTimesHiRes but uses a file descriptor instead of a path. This operation is not supported on all platforms. On these platforms, this function will raise an exception. Note: calls futimens or futimes. Support for high resolution timestamps is filesystem dependent with the following limitations:
- HFS+ volumes on OS X truncate the sub-second part of the timestamp.
setFileCreationMask :: FileMode -> IO FileModeunix System.Posix.Files.ByteString setFileCreationMask mode sets the file mode creation mask to mode. Modes set by this operation are subtracted from files and directories upon creation. The previous file creation mask is returned. Note: calls umask.
setFileMode :: RawFilePath -> FileMode -> IO ()unix System.Posix.Files.ByteString setFileMode path mode changes permission of the file given by path to mode. This operation may fail with throwErrnoPathIfMinus1_ if path doesn't exist or if the effective user ID of the current process is not that of the file's owner. Note: calls chmod.
setFileSize :: RawFilePath -> FileOffset -> IO ()unix System.Posix.Files.ByteString Truncates the file down to the specified length. If the file was larger than the given length before this operation was performed the extra is lost. Note: calls truncate.
setFileTimes :: RawFilePath -> EpochTime -> EpochTime -> IO ()unix System.Posix.Files.ByteString setFileTimes path atime mtime sets the access and modification times associated with file path to atime and mtime, respectively. Note: calls utime.
setFileTimesHiRes :: RawFilePath -> POSIXTime -> POSIXTime -> IO ()unix System.Posix.Files.ByteString Like setFileTimes but timestamps can have sub-second resolution. Note: calls utimensat or utimes. Support for high resolution timestamps is filesystem dependent with the following limitations:
- HFS+ volumes on OS X truncate the sub-second part of the timestamp.