Merge pull request #1432 from def-/posix-tflock

Add "struct" to POSIX flock
This commit is contained in:
Andreas Rumpf
2014-08-01 02:08:33 +02:00

View File

@@ -90,7 +90,7 @@ type
d_ino*: Tino ## File serial number.
d_name*: array [0..255, char] ## Name of entry.
Tflock* {.importc: "flock", final, pure,
Tflock* {.importc: "struct flock", final, pure,
header: "<fcntl.h>".} = object ## flock type
l_type*: cshort ## Type of lock; F_RDLCK, F_WRLCK, F_UNLCK.
l_whence*: cshort ## Flag for starting offset.