Add kern_ntp_adjtime(9).
struct timex is not 32-bit safe, it uses longs for members. Provide translation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I'd be tempted to pass timex_copyin and timex_copyout function pointers to kern_ntp_adjtime rather than having duplicate code in sys_ and freebsd32_. That would also simplify a future compat syscall implementation.
sys/kern/kern_ntptime.c | ||
---|---|---|
1089–1109 ↗ | (On Diff #80286) | This looks like it's part of a future syscall revision, not the compat change? |
Comment Actions
Right now it seems there will be no compat syscall, ie struct timex is not going to change.
Do you still want copyin callbacks there ? It is more overhead in code for rather trivial wrappers IMO.