File locking
45.97 KB
built 2026-10-14 01:01:37 GMT
Description
This package provides access to platform dependent file locking APIs:
*
<https://www.gnu.org/software/libc/manual/html_node/Open-File-Description-Locks.html
Open file descriptor locking> on Linux ("Lukko.OFD") * BSD-style 'flock(2)'
locks on UNIX platforms ("Lukko.FLock") * Windows locking via
<https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-lockfilee
LockFileEx> ("Lukko.Windows") * No-op locking, which throws exceptions
("Lukko.NoOp") * "Lukko" module exports the best option for the target platform
with uniform API.
There are alternative file locking packages:
* "GHC.IO.Handle.Lock" in 'base >= 4.10' is good enough for most use cases.
However, uses only 'Handle's so these locks cannot be used for intra-process
locking. (You should use e.g. 'MVar' in addition).
* <https://hackage.haskell.org/package/filelock filelock> doesn't support OFD
locking.
/Lukko/ means lock in Finnish.
Dependencies
7 totalRequires5
- ghc-Cabal-devel
- ghc-base-devel
- ghc-rpm-macros
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides2
- ghc-lukko = 0.1.2-9.fc45
- ghc-lukko-devel = 0.1.2-9.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
3Name ![]() |
Size |
|---|---|
| ghc-lukko.spec | 7.10 KB |
| lukko-0.1.2.cabal | 4.37 KB |
| lukko-0.1.2.tar.gz | 27.78 KB |
Files 1–3 of 3
Component of
buildroots that installed this RPMNo Buildroots
