From 8baa2cda484f360d96b186c36719dc0707b357ab Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Thu, 2 Jan 2003 19:05:45 -0800 Subject: [PATCH] compat_flock: generic This moves struct flock32 to struct compat_flock and consolidates the functions used to copy it to/from user mode. This is just the generic part - subarchitectures will follow. --- include/linux/compat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux/compat.h') diff --git a/include/linux/compat.h b/include/linux/compat.h index 3f634baef539..39405f5a06ea 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -10,6 +10,7 @@ #include #include /* for HZ */ +#include /* for struct flock */ #include #define compat_jiffies_to_clock_t(x) \ @@ -33,6 +34,8 @@ struct compat_tms { }; extern int cp_compat_stat(struct kstat *, struct compat_stat *); +extern int get_compat_flock(struct flock *, struct compat_flock *); +extern int put_compat_flock(struct flock *, struct compat_flock *); #endif /* CONFIG_COMPAT */ #endif /* _LINUX_COMPAT_H */ -- cgit v1.2.3