diff options
author | jhb <jhb@FreeBSD.org> | 2005-02-07 18:44:55 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-02-07 18:44:55 +0000 |
commit | 71c05d27c0fe7676964592e1791abed816be1a00 (patch) | |
tree | ff7cc7cc16c891dadf164e579f6845927917f2ef /sys/compat/linux/linux_util.c | |
parent | 2cfc33f9b1a577677860ff7412307ff6ae91fa38 (diff) | |
download | FreeBSD-src-71c05d27c0fe7676964592e1791abed816be1a00.zip FreeBSD-src-71c05d27c0fe7676964592e1791abed816be1a00.tar.gz |
- Tweak kern_msgctl() to return a copy of the requested message queue id
structure in the struct pointed to by the 3rd argument for IPC_STAT and
get rid of the 4th argument. The old way returned a pointer into the
kernel array that the calling function would then access afterwards
without holding the appropriate locks and doing non-lock-safe things like
copyout() with the data anyways. This change removes that unsafeness and
resulting race conditions as well as simplifying the interface.
- Implement kern_foo wrappers for stat(), lstat(), fstat(), statfs(),
fstatfs(), and fhstatfs(). Use these wrappers to cut out a lot of
code duplication for freebsd4 and netbsd compatability system calls.
- Add a new lookup function kern_alternate_path() that looks up a filename
under an alternate prefix and determines which filename should be used.
This is basically a more general version of linux_emul_convpath() that
can be shared by all the ABIs thus allowing for further reduction of
code duplication.
Diffstat (limited to 'sys/compat/linux/linux_util.c')
0 files changed, 0 insertions, 0 deletions