[GHC] #6160: support sub-second resolutions for file timestamps
GHC
cvs-ghc at haskell.org
Thu Jul 19 15:08:59 CEST 2012
#6160: support sub-second resolutions for file timestamps
-------------------------------+--------------------------------------------
Reporter: redneb | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.6.1
Component: libraries/unix | Version: 7.4.2
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
Changes (by redneb):
* owner: pcapriotti =>
* status: closed => new
* resolution: fixed =>
Comment:
I am reopening this to post the second part of what I promised earlier, ie
operations for changing file timestamps.
The above patch introduces 5 new functions:
{{{
setFileTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()
setFdTimesHiRes :: Fd -> POSIXTime -> POSIXTime -> IO ()
setSymbolicLinkTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()
touchFd :: Fd -> IO ()
touchSymbolicLink :: FilePath -> IO ()
}}}
This should complete the file timestamp related operations.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6160#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list