File tree Expand file tree Collapse file tree 7 files changed +17
-17
lines changed Expand file tree Collapse file tree 7 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 16
16
--
17
17
-- POSIX file control support
18
18
--
19
- -- /Since: 2.7.1.0/
19
+ -- @since 2.7.1.0
20
20
-----------------------------------------------------------------------------
21
21
22
22
#include "HsUnix.h"
@@ -44,7 +44,7 @@ import GHC.IO.Exception ( unsupportedOperation )
44
44
--
45
45
-- For more details, see documentation of @posix_fadvise(2)@.
46
46
--
47
- -- /Since: 2.7.1.0/
47
+ -- @since 2.7.1.0
48
48
data Advice
49
49
= AdviceNormal
50
50
| AdviceRandom
@@ -61,7 +61,7 @@ data Advice
61
61
--
62
62
-- (use @#if HAVE_POSIX_FADVISE@ CPP guard to detect availability)
63
63
--
64
- -- /Since: 2.7.1.0/
64
+ -- @since 2.7.1.0
65
65
fileAdvise :: Fd -> FileOffset -> FileOffset -> Advice -> IO ()
66
66
#if HAVE_POSIX_FADVISE
67
67
fileAdvise fd off len adv = do
@@ -88,7 +88,7 @@ fileAdvise _ _ _ _ = return ()
88
88
--
89
89
-- (use @#if HAVE_POSIX_FALLOCATE@ CPP guard to detect availability).
90
90
--
91
- -- /Since: 2.7.1.0/
91
+ -- @since 2.7.1.0
92
92
fileAllocate :: Fd -> FileOffset -> FileOffset -> IO ()
93
93
#if HAVE_POSIX_FALLOCATE
94
94
fileAllocate fd off len = do
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ setFileTimes name atime mtime = do
347
347
--
348
348
-- Note: calls @utimensat@ or @utimes@.
349
349
--
350
- -- /Since: 2.7.0.0/
350
+ -- @since 2.7.0.0
351
351
setFileTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()
352
352
#ifdef HAVE_UTIMENSAT
353
353
setFileTimesHiRes name atime mtime =
@@ -368,7 +368,7 @@ setFileTimesHiRes name atime mtime =
368
368
--
369
369
-- Note: calls @utimensat@ or @lutimes@.
370
370
--
371
- -- /Since: 2.7.0.0/
371
+ -- @since 2.7.0.0
372
372
setSymbolicLinkTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()
373
373
#if HAVE_UTIMENSAT
374
374
setSymbolicLinkTimesHiRes name atime mtime =
@@ -402,7 +402,7 @@ touchFile name = do
402
402
--
403
403
-- Note: calls @lutimes@.
404
404
--
405
- -- /Since: 2.7.0.0/
405
+ -- @since 2.7.0.0
406
406
touchSymbolicLink :: FilePath -> IO ()
407
407
#if HAVE_LUTIMES
408
408
touchSymbolicLink name =
Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ foreign import ccall unsafe "futimes"
467
467
--
468
468
-- Note: calls @futimens@ or @futimes@.
469
469
--
470
- -- /Since: 2.7.0.0/
470
+ -- @since 2.7.0.0
471
471
setFdTimesHiRes :: Fd -> POSIXTime -> POSIXTime -> IO ()
472
472
#if HAVE_FUTIMENS
473
473
setFdTimesHiRes (Fd fd) atime mtime =
@@ -488,7 +488,7 @@ setFdTimesHiRes =
488
488
--
489
489
-- Note: calls @futimes@.
490
490
--
491
- -- /Since: 2.7.0.0/
491
+ -- @since 2.7.0.0
492
492
touchFd :: Fd -> IO ()
493
493
#if HAVE_FUTIMES
494
494
touchFd (Fd fd) =
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ foreign import ccall "forkProcess" forkProcessPrim :: StablePtr (IO ()) -> IO CP
301
301
302
302
-- | Variant of 'forkProcess' in the style of 'forkIOWithUnmask'.
303
303
--
304
- -- /Since: 2.7.0.0/
304
+ -- @since 2.7.0.0
305
305
forkProcessWithUnmask :: ((forall a . IO a -> IO a ) -> IO () ) -> IO ProcessID
306
306
forkProcessWithUnmask action = forkProcess (action unsafeUnmask)
307
307
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ data ProcessStatus
19
19
-- signal, the @Bool@ is @True@ if a core
20
20
-- dump was produced
21
21
--
22
- -- /Since: 2.7.0.0/
22
+ -- @since 2.7.0.0
23
23
| Stopped Signal -- ^ the process was stopped by a signal
24
24
deriving (Eq , Ord , Show )
25
25
Original file line number Diff line number Diff line change @@ -310,13 +310,13 @@ data Handler = Default
310
310
-- not yet: | Hold
311
311
| Catch (IO () )
312
312
| CatchOnce (IO () )
313
- | CatchInfo (SignalInfo -> IO () ) -- ^ /Since: 2.7.0.0/
314
- | CatchInfoOnce (SignalInfo -> IO () ) -- ^ /Since: 2.7.0.0/
313
+ | CatchInfo (SignalInfo -> IO () ) -- ^ @since 2.7.0.0
314
+ | CatchInfoOnce (SignalInfo -> IO () ) -- ^ @since 2.7.0.0
315
315
deriving (Typeable )
316
316
317
317
-- | Information about a received signal (derived from @siginfo_t@).
318
318
--
319
- -- /Since: 2.7.0.0/
319
+ -- @since 2.7.0.0
320
320
data SignalInfo = SignalInfo {
321
321
siginfoSignal :: Signal ,
322
322
siginfoError :: Errno ,
@@ -326,7 +326,7 @@ data SignalInfo = SignalInfo {
326
326
-- | Information specific to a particular type of signal
327
327
-- (derived from @siginfo_t@).
328
328
--
329
- -- /Since: 2.7.0.0/
329
+ -- @since 2.7.0.0
330
330
data SignalSpecificInfo
331
331
= NoSignalSpecificInfo
332
332
| SigChldInfo {
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ foreign import ccall unsafe "sysconf"
227
227
-- provide @fsync(2)@ (use @#if HAVE_FSYNC@ CPP guard to
228
228
-- detect availability).
229
229
--
230
- -- /Since: 2.7.1.0/
230
+ -- @since 2.7.1.0
231
231
fileSynchronise :: Fd -> IO ()
232
232
#if HAVE_FSYNC
233
233
fileSynchronise fd = do
@@ -248,7 +248,7 @@ fileSynchronise _ = ioError (ioeSetLocation unsupportedOperation
248
248
-- provide @fdatasync(2)@ (use @#if HAVE_FDATASYNC@ CPP guard to
249
249
-- detect availability).
250
250
--
251
- -- /Since: 2.7.1.0/
251
+ -- @since 2.7.1.0
252
252
fileSynchroniseDataOnly :: Fd -> IO ()
253
253
#if HAVE_FDATASYNC
254
254
fileSynchroniseDataOnly fd = do
You can’t perform that action at this time.
0 commit comments