Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/compat



Module Name:    src
Committed By:   dsl
Date:           Sat Feb  2 21:54:01 UTC 2008

Modified Files:
        src/sys/compat/linux/common: linux_fcntl.h linux_fcntl64.c linux_file.c
        src/sys/compat/linux32/common: linux32_fcntl.c

Log Message:
Fix the linux32 emulations of fcntl() locking.
The 64bit linux emulation versions can't be used because the lock structure
alignment and field sizes all differ.
Since there need to be 4 different versions of the linux struct flock, and
amd64 kernel needs 3 of them compiled in, rather than replicating the same
code block twice more, move the body of the code into a few #defines
that can be expanded with the correct types in the linux[32]_sys_fcntl[64]()
functions.
Should fix problems running progams like skype running under linux32
emulation on amd64.


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 src/sys/compat/linux/common/linux_fcntl.h
cvs rdiff -r1.1 -r1.2 src/sys/compat/linux/common/linux_fcntl64.c
cvs rdiff -r1.91 -r1.92 src/sys/compat/linux/common/linux_file.c
cvs rdiff -r1.4 -r1.5 src/sys/compat/linux32/common/linux32_fcntl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index