diff options
| author | Ron Yorston <rmy@pobox.com> | 2025-10-09 11:10:40 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2025-10-09 11:10:40 +0100 |
| commit | 41bab273afa7cc9f773666622eb888aee8a340ac (patch) | |
| tree | 7da5517c3b32d853f3120c43e77323828643bf98 /include | |
| parent | 255e7ea4e2a0e3d28c0abf2750f42713eff711d7 (diff) | |
| download | busybox-w32-41bab273afa7cc9f773666622eb888aee8a340ac.tar.gz busybox-w32-41bab273afa7cc9f773666622eb888aee8a340ac.tar.bz2 busybox-w32-41bab273afa7cc9f773666622eb888aee8a340ac.zip | |
flock: enable by default
Use the Gnulib implementation of flock(2) to allow the flock
applet to be enabled.
Costs 900-984 bytes.
(GitHub issue #528)
Diffstat (limited to 'include')
| -rw-r--r-- | include/mingw.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index 3192e0a09..ea923a9e2 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
| @@ -255,6 +255,17 @@ int ffs(int i); | |||
| 255 | #endif | 255 | #endif |
| 256 | 256 | ||
| 257 | /* | 257 | /* |
| 258 | * sys/file.h | ||
| 259 | */ | ||
| 260 | |||
| 261 | int flock(int fd, int op); | ||
| 262 | |||
| 263 | #define LOCK_SH 1 | ||
| 264 | #define LOCK_EX 2 | ||
| 265 | #define LOCK_UN 8 | ||
| 266 | #define LOCK_NB 4 | ||
| 267 | |||
| 268 | /* | ||
| 258 | * sys/ioctl.h | 269 | * sys/ioctl.h |
| 259 | */ | 270 | */ |
| 260 | 271 | ||
