zkFcntl.h is a portable wrapper for the Unix 98 header <fcntl.h>. It is part of the libzk library because <sys/stat.h> doesn't exist in Standard C.
Type | Description |
---|---|
struct flock, with members: | |
short l_type |
type of lock; F_RDLCK, F_WRLCK, F_UNLCK |
short l_whence |
flag for starting offset |
off_t l_start |
relative offset in bytes |
off_t l_len |
size; if 0 then until EOF |
Don't Call This | Instead, Call This | Reason |
---|---|---|
creat | zkCreat | Not in Standard C. |
fcntl | zkFcntl | Not in Standard C. |
open | zkOpen | Not in Standard C. |