To reduce code duplication introduce linux_copyout_rusage method. Use it in linux_wait4() system call and move linux_wait4() to the MI path. While here add a prototype for the static bsd_to_linux_rusage().
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
sys/amd64/linux32/linux.h | ||
---|---|---|
783 | const struct rusage *ru? Same below. | |
sys/i386/linux/linux.h | ||
744 | Is this because the Linux struct rusage is exactly the same as the FreeBSD one for i386? (To be honest I'd prefer l_rusage being defined for both architectures and bsd_to_linux_rusage() simply do a copy, but it's just nitpicking; current way works too.) |
sys/amd64/linux32/linux32_machdep.c | ||
---|---|---|
923 | Could this now be moved to common code, eg linux/linux_misc.c? |