Skip to content
Snippets Groups Projects
Commit 23f35ae7 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

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's avatarHerbert Valerio Riedel <hvr@gnu.org>
parent 43de23c7
No related branches found
No related tags found
No related merge requests found
......@@ -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 =
......
......@@ -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) =
......
......@@ -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)
......
......@@ -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 {
......
-*-changelog-*-
2.7.0.0 Oct 2013
* Add new `Bool` flag to `ProcessStatus(Terminated)` constructor
indicating whether a core dump occured
* New functions in "System.Posix.Files(.ByteString)" for operating
on high resolution file timestamps:
+ `setFdTimesHiRes :: Fd -> POSIXTime -> POSIXTime -> IO ()`
+ `setFileTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()`
+ `setSymbolicLinkTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()`
+ `touchFd :: Fd -> IO ()`
+ `touchSymbolicLink :: FilePath -> IO ()`
* Export `SignalInfo(..)` and `SignalSpecificInfo(..)` as well as
the two `Handler` constructors `CatchInfo` and `CatchInfoOnce`
from "System.Posix.Signals".
* Don't export `seekDirStream` and `tellDirStream` if the
underlying `seekdir(3)`/`telldir(3)` system calls are not
available (as on Android).
* Fix library detection of `shm*` on openSUSE (#8350)
* Update package to `cabal-version >= 1.10` format
2.6.0.1 Jan 2013
* Bundled with GHC 7.6.2
* Fix memory corruption issue in `putEnv`
* Use `pthread_kill(3)` instead of `raise(2)` on OS X too
2.6.0.0 Sep 2012
* Bundled with GHC 7.6.1
* New functions `mkdtemp` and `mkstemps` in "System.Posix.Temp"
* New functions `setEnvironment` and `cleanEnv`
* New functions `accessTimeHiRes`, `modificationTimeHiRes`, and
`statusChangeTimeHiRes` for accessing high resolution timestamps
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment