Date: Sun, 25 Jun 2017 19:20:13 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r320333 - head/sys/compat/linuxkpi/common/include/linux Message-ID: <201706251920.v5PJKDEZ068169@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sun Jun 25 19:20:12 2017 New Revision: 320333 URL: https://svnweb.freebsd.org/changeset/base/320333 Log: Add noop_lseek() to the LinuxKPI. MFC after: 1 week Modified: head/sys/compat/linuxkpi/common/include/linux/fs.h Modified: head/sys/compat/linuxkpi/common/include/linux/fs.h ============================================================================== --- head/sys/compat/linuxkpi/common/include/linux/fs.h Sun Jun 25 18:40:59 2017 (r320332) +++ head/sys/compat/linuxkpi/common/include/linux/fs.h Sun Jun 25 19:20:12 2017 (r320333) @@ -261,7 +261,15 @@ iput(struct inode *inode) static inline loff_t no_llseek(struct file *file, loff_t offset, int whence) { - return -ESPIPE; + + return (-ESPIPE); +} + +static inline loff_t +noop_llseek(struct linux_file *file, loff_t offset, int whence) +{ + + return (file->_file->f_offset); } #endif /* _LINUX_FS_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706251920.v5PJKDEZ068169>