/Haskell 8


Copyright (c) The University of Glasgow 2014
License BSD-style (see the file LICENSE)
Maintainer [email protected]
Stability provisional
Portability non-portable (requires POSIX)
Safe Haskell Safe
Language Haskell2010



POSIX file control support

Since: unix-

File allocation

data Advice Source

Advice parameter for fileAdvise operation.

For more details, see documentation of posix_fadvise(2).

Since: unix-

Instances details
Eq Advice
Instance details

Defined in System.Posix.Fcntl


(==) :: Advice -> Advice -> Bool

(/=) :: Advice -> Advice -> Bool

fileAdvise :: Fd -> FileOffset -> FileOffset -> Advice -> IO () Source

Performs posix_fadvise(2) operation on file-descriptor.

If platform does not provide posix_fadvise(2) fileAdvise becomes a no-op.

(use #if HAVE_POSIX_FADVISE CPP guard to detect availability)

Since: unix-

fileAllocate :: Fd -> FileOffset -> FileOffset -> IO () Source

Performs posix_fallocate(2) operation on file-descriptor.

Throws IOError ("unsupported operation") if platform does not provide posix_fallocate(2).

(use #if HAVE_POSIX_FALLOCATE CPP guard to detect availability).

Since: unix-

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).