POSIX File Locking option group.
More...
|
| struct | flock |
| | File segment locking structure used with F_GETLK, F_SETLK, and F_SETLKW. More...
|
| |
|
| #define | F_GETLK ZVFS_F_GETLK |
| | Get the first lock that blocks the lock described by the argument.
|
| |
| #define | F_SETLK ZVFS_F_SETLK |
| | Set or clear a file segment lock (non-blocking).
|
| |
| #define | F_SETLKW ZVFS_F_SETLKW |
| | Set or clear a file segment lock (blocking).
|
| |
| #define | F_RDLCK ZVFS_F_RDLCK |
| | Lock type: shared read lock.
|
| |
| #define | F_UNLCK ZVFS_F_UNLCK |
| | Lock type: unlock (release a lock).
|
| |
| #define | F_WRLCK ZVFS_F_WRLCK |
| | Lock type: exclusive write lock.
|
| |
|
| void | flockfile (FILE *file) |
| | Acquire a stdio stream lock.
|
| |
| int | ftrylockfile (FILE *file) |
| | Try to acquire a stdio stream lock without blocking.
|
| |
| void | funlockfile (FILE *file) |
| | Release a stdio stream lock.
|
| |
| int | getc_unlocked (FILE *stream) |
| | Read a byte from a stream without acquiring the stream lock.
|
| |
| int | getchar_unlocked (void) |
| | Read a byte from stdin without acquiring the stream lock.
|
| |
| int | putc_unlocked (int c, FILE *stream) |
| | Write a byte to a stream without acquiring the stream lock.
|
| |
| int | putchar_unlocked (int c) |
| | Write a byte to stdout without acquiring the stream lock.
|
| |
POSIX File Locking option group.
◆ F_GETLK
| #define F_GETLK ZVFS_F_GETLK |
Get the first lock that blocks the lock described by the argument.
Definition at line 48 of file fcntl.h.
◆ F_RDLCK
| #define F_RDLCK ZVFS_F_RDLCK |
Lock type: shared read lock.
Definition at line 66 of file fcntl.h.
◆ F_SETLK
| #define F_SETLK ZVFS_F_SETLK |
Set or clear a file segment lock (non-blocking).
Definition at line 50 of file fcntl.h.
◆ F_SETLKW
| #define F_SETLKW ZVFS_F_SETLKW |
Set or clear a file segment lock (blocking).
Definition at line 52 of file fcntl.h.
◆ F_UNLCK
| #define F_UNLCK ZVFS_F_UNLCK |
Lock type: unlock (release a lock).
Definition at line 68 of file fcntl.h.
◆ F_WRLCK
| #define F_WRLCK ZVFS_F_WRLCK |
Lock type: exclusive write lock.
Definition at line 70 of file fcntl.h.
◆ flockfile()
| void flockfile |
( |
FILE * |
file | ) |
|
◆ ftrylockfile()
| int ftrylockfile |
( |
FILE * |
file | ) |
|
◆ funlockfile()
| void funlockfile |
( |
FILE * |
file | ) |
|
◆ getc_unlocked()
| int getc_unlocked |
( |
FILE * |
stream | ) |
|
◆ getchar_unlocked()
| int getchar_unlocked |
( |
void |
| ) |
|
◆ putc_unlocked()
| int putc_unlocked |
( |
int |
c, |
|
|
FILE * |
stream |
|
) |
| |
◆ putchar_unlocked()
| int putchar_unlocked |
( |
int |
c | ) |
|