HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulelukko-0.1.2Haskell2010

Lukko.OFD

Linux open file descriptor locking.

https://www.gnu.org/software/libc/manual/html_node/Open-File-Description-Locks.html

We prefer this over BSD locking (e.g. flock) since the latter appears to break in some NFS configurations. Note that we intentionally do not try to use ordinary POSIX file locking due to its peculiar semantics under multi-threaded environments.

Contents
  1. Types
  2. File descriptors
  3. Handles
Synopsis
  • Packagelukko-0.1.2
  • Exports15
  • LanguageHaskell2010
  • LicenceGPL-2.0-or-later AND BSD-3-Clause
  • SourceOFD.hsc

Types

Potentially availble lock methods.

Constructors

Instances5Bounded, Enum, Eq, Ord, Show

File descriptors

newtypenewtype FD

Opaque file descriptor

This is a wrapper over CInt

Handles