Re: Announce: modutils 2.3.9 is available

Jakub Jelinek (jakub@redhat.com)
Sat, 25 Dec 1999 23:20:44 +0100


On Sat, Dec 25, 1999 at 09:45:07PM +1100, Keith Owens wrote:
> Master at ftp://ftp.ocs.com.au/pub/modutils/v2.3.
> Mirror at ftp://oss.sgi.com/pub/mirror/modutils/v2.3.
>
> patch-modutils-2.3.9.gz Patch from modutils 2.3.8 to 2.3.9
> modutils-2.3.9.tar.gz Source tarball, includes RPM spec file
> modutils-2.3.9-1.src.rpm As above, in SRPM format
> modutils-2.3.9-1.i386.rpm Compiled with egcs-2.91.66, glibc 2.1.2
>
> Changelog extract
>
> * Remove devfs.aliases, out of date and to be supplied by
> devfsd, not modutils.
> * util/alias.h (aliaslist): Add ppdev default alias. Tim Waugh
> <tim@cyberelk.demon.co.uk>
> * Redo the way the combined module recognizes its function.
> Suggested by Stepan Kasal, different implementation by Keith Owens.
> * Rationalize the code for common 32/64 bit architectures.
> Keith Owens.

I guess you meant strstr(u.machine, "64"), right?

+ if (!uname (&u) && !strcmp (u.machine, "64"))
+ return depmod_main_64(argc, argv);
+ else
+ return depmod_main_32(argc, argv);

I'm not aware of any uname -m machine which calls itself just 64.
BTW: If you want to rationalize this, you'd perhaps want to make some inline
arch dependent function and use it in the arch dependent code. You don't know
what uname (if different from the standard at all) will use mips64, ppc64
and I'm not sure if ia64 uses ia64 actually at all.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.34 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/