diff options
| author | Stephen Rothwell <sfr@canb.auug.org.au> | 2003-01-02 19:05:45 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-01-02 19:05:45 -0800 |
| commit | 8baa2cda484f360d96b186c36719dc0707b357ab (patch) | |
| tree | b3a94ab4abd61d8c87422d8b72643c0b283b1ff4 /include/linux/compat.h | |
| parent | 24b79d7cb40d6a3455ea6b17d62194bd38c2f124 (diff) | |
[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.
Diffstat (limited to 'include/linux/compat.h')
| -rw-r--r-- | include/linux/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <linux/stat.h> #include <linux/param.h> /* for HZ */ +#include <linux/fcntl.h> /* for struct flock */ #include <asm/compat.h> #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 */ |
