I just checked the fileutils source, as "ls" shows device
numbers.  It uses minor() and major() from <sys/types.h>,
<sys/mkdev.h> or <sys/sysmacros.h> if possible.  That ought to be
the right way.

On Debian libc6-dev_2.1.3-2_i386, <sys/sysmacros.h> defines the
macros, <sys/types.h> includes it when __USE_BSD, and
<sys/mkdev.h> doesn't exist.

Reply via email to