diff options
Diffstat (limited to 'usr/src/uts/common/sys/flock.h')
| -rw-r--r-- | usr/src/uts/common/sys/flock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/flock.h b/usr/src/uts/common/sys/flock.h index 3ea7afb23b..39542a4c16 100644 --- a/usr/src/uts/common/sys/flock.h +++ b/usr/src/uts/common/sys/flock.h @@ -29,6 +29,7 @@ */ /* * Copyright 2011 Nexenta Systems, Inc. All rights reserved. + * Copyright 2015 Joyent, Inc. */ #ifndef _SYS_FLOCK_H @@ -41,6 +42,9 @@ #include <sys/callb.h> #include <sys/param.h> #include <sys/zone.h> +#if defined(_KERNEL) +#include <sys/file.h> +#endif #ifdef __cplusplus extern "C" { @@ -221,6 +225,8 @@ typedef struct locklist { #define FLK_QUERY_ACTIVE 0x1 #define FLK_QUERY_SLEEPING 0x2 +int ofdlock(file_t *, int, struct flock64 *, int, u_offset_t); +void ofdcleanlock(file_t *); int reclock(struct vnode *, struct flock64 *, int, int, u_offset_t, flk_callback_t *); int chklock(struct vnode *, int, u_offset_t, ssize_t, int, |
