linuxolator: utimes implementation

Scot Hetzel swhetzel at gmail.com
Thu Dec 14 03:33:42 PST 2006


While I was running the the tests for ltp-full-20061121, I noticed
that the utimes function wasn't implemented in the linuxolator.

I looked up the man page and found that it was similar to the utime
function, except that it allows a program to set an inode down to the
microsecond.

Merging together the linux_utime and freebsd32_utimes functions, I was
able to create the linux_utimes function.

But when I compile the linux module in /sys/module/linux, I get this error:

/usr/src/7x/sys-patched/modules/linux/../../compat/linux/linux_misc.c:
In function `linux_utimes':
/usr/src/7x/sys-patched/modules/linux/../../compat/linux/linux_misc.c:792:
error: storage size of 'ltv' isn't known
/usr/src/7x/sys-patched/modules/linux/../../compat/linux/linux_misc.c:792:
warning: unused variable `ltv'
*** Error code 1

At line 792 ltv is defined as:

       struct l_timeval ltv[2];

Attached is the patch for linux_utimes.  Any ideals as to how to fix
this problem?

Scot

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux_utimes.patch
Type: text/x-diff
Size: 7835 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20061214/7911aff9/linux_utimes.bin


More information about the freebsd-emulation mailing list