From 23f35ae77c968d090b606eb8cc42003f10c5fbc0 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sat, 12 Oct 2013 13:21:47 +0200 Subject: Add `changelog` file and `/Since: 2.7.0.0/` notes The changelog file will be shown on Hackage once it's included in the source tarball. Signed-off-by: Herbert Valerio Riedel --- System/Posix/Files.hsc | 6 ++++++ System/Posix/Files/Common.hsc | 4 ++++ System/Posix/Process/Internals.hs | 2 ++ System/Posix/Signals.hsc | 8 ++++++-- 4 files changed, 18 insertions(+), 2 deletions(-) (limited to 'System') diff --git a/System/Posix/Files.hsc b/System/Posix/Files.hsc index 6709e3b..8268492 100644 --- a/System/Posix/Files.hsc +++ b/System/Posix/Files.hsc @@ -344,6 +344,8 @@ setFileTimes name atime mtime = do -- | Like 'setFileTimes' but timestamps can have sub-second resolution. -- -- Note: calls @utimensat@ or @utimes@. +-- +-- /Since: 2.7.0.0/ setFileTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO () #ifdef HAVE_UTIMENSAT setFileTimesHiRes name atime mtime = @@ -363,6 +365,8 @@ setFileTimesHiRes name atime mtime = -- this function will raise an exception. -- -- Note: calls @utimensat@ or @lutimes@. +-- +-- /Since: 2.7.0.0/ setSymbolicLinkTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO () #if HAVE_UTIMENSAT setSymbolicLinkTimesHiRes name atime mtime = @@ -395,6 +399,8 @@ touchFile name = do -- this function will raise an exception. -- -- Note: calls @lutimes@. +-- +-- /Since: 2.7.0.0/ touchSymbolicLink :: FilePath -> IO () #if HAVE_LUTIMES touchSymbolicLink name = diff --git a/System/Posix/Files/Common.hsc b/System/Posix/Files/Common.hsc index f296336..9ce2f1d 100644 --- a/System/Posix/Files/Common.hsc +++ b/System/Posix/Files/Common.hsc @@ -463,6 +463,8 @@ foreign import ccall unsafe "futimes" -- this function will raise an exception. -- -- Note: calls @futimens@ or @futimes@. +-- +-- /Since: 2.7.0.0/ setFdTimesHiRes :: Fd -> POSIXTime -> POSIXTime -> IO () #if HAVE_FUTIMENS setFdTimesHiRes (Fd fd) atime mtime = @@ -482,6 +484,8 @@ setFdTimesHiRes = -- this function will raise an exception. -- -- Note: calls @futimes@. +-- +-- /Since: 2.7.0.0/ touchFd :: Fd -> IO () #if HAVE_FUTIMES touchFd (Fd fd) = diff --git a/System/Posix/Process/Internals.hs b/System/Posix/Process/Internals.hs index 8e4f451..bd3dd31 100644 --- a/System/Posix/Process/Internals.hs +++ b/System/Posix/Process/Internals.hs @@ -20,6 +20,8 @@ data ProcessStatus | Terminated Signal Bool -- ^ the process was terminated by a -- signal, the @Bool@ is @True@ if a core -- dump was produced + -- + -- /Since: 2.7.0.0/ | Stopped Signal -- ^ the process was stopped by a signal deriving (Eq, Ord, Show) diff --git a/System/Posix/Signals.hsc b/System/Posix/Signals.hsc index 16761b9..39de76b 100644 --- a/System/Posix/Signals.hsc +++ b/System/Posix/Signals.hsc @@ -314,11 +314,13 @@ data Handler = Default -- not yet: | Hold | Catch (IO ()) | CatchOnce (IO ()) - | CatchInfo (SignalInfo -> IO ()) - | CatchInfoOnce (SignalInfo -> IO ()) + | CatchInfo (SignalInfo -> IO ()) -- ^ /Since: 2.7.0.0/ + | CatchInfoOnce (SignalInfo -> IO ()) -- ^ /Since: 2.7.0.0/ deriving (Typeable) -- | Information about a received signal (derived from @siginfo_t@). +-- +-- /Since: 2.7.0.0/ data SignalInfo = SignalInfo { siginfoSignal :: Signal, siginfoError :: Errno, @@ -327,6 +329,8 @@ data SignalInfo = SignalInfo { -- | Information specific to a particular type of signal -- (derived from @siginfo_t@). +-- +-- /Since: 2.7.0.0/ data SignalSpecificInfo = NoSignalSpecificInfo | SigChldInfo { -- cgit v1.2.3