diff options
author | phk <phk@FreeBSD.org> | 2002-05-02 21:53:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-05-02 21:53:39 +0000 |
commit | 8cabbc69f8956b00513042eca9ddaa55c2966ce7 (patch) | |
tree | c91d14f309ff4f85cd5b476ff4079d5e22f12ce7 | |
parent | 0cca4360890ee025afec23ec5a12edcf62cbda1d (diff) | |
download | FreeBSD-src-8cabbc69f8956b00513042eca9ddaa55c2966ce7.zip FreeBSD-src-8cabbc69f8956b00513042eca9ddaa55c2966ce7.tar.gz |
As promised make the hack for sizeof(struct disklabel) on alpha annoying.
Run make world (or recompile whatever program whines) to get rid of warning.
Compat bits will be removed entirely in about two weeks.
-rw-r--r-- | sys/kern/sys_generic.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 4ce45b1..66ee891 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -652,14 +652,25 @@ ioctl(td, uap) } #ifdef __alpha__ + { + int annoy = 1; + if (com == DIOCGDINFO_ALPHAHACK) com = DIOCGDINFO; - if (com == DIOCSDINFO_ALPHAHACK) + else if (com == DIOCSDINFO_ALPHAHACK) com = DIOCSDINFO; - if (com == DIOCWDINFO_ALPHAHACK) + else if (com == DIOCWDINFO_ALPHAHACK) com = DIOCWDINFO; - if (com == DIOCGDVIRGIN_ALPHAHACK) + else if (com == DIOCGDVIRGIN_ALPHAHACK) com = DIOCGDVIRGIN; + else + annoy = 0; + if (annoy) { + uprintf("Recompile this program, it uses obsolete ioctls.\n"); + printf("Program using uses obsolete ioctls used, recompile.\n"); + tsleep(&annoy, PPAUSE, "syncer", 15 * hz); + } + } #endif switch (com) { |