Skip to contentSkip to conversation

umode_t?

Linux-ia64 Eric Gillespie 2 participants 3 messages Sep 26, 2001 – Sep 27, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · David Mosberger

Isn't the poinit of AC_CHECK_TYP(umode_t, int) that if umode_t isn't defined already, it will get defined as an "int"?

Yes, but then there are all kinds of casting problems. That needs to be fixed too, for systems without umode_t at all, but it led me to the question about umode_t not being in sys/types.h.

Quoted 3 lines

You'll need to talk to glibc maintainers as to whether umode_t should or should not be defined. I don't keep track of the latest name space rules.

OK, glibc people: Why don't you get umode_t by including sys/types.h? As far as i can tell, you have to include asm/types.h to get it; clearly not an option for an autoconf macro.

Signature · 4 lines
Eric Gillespie, Jr. <*> [email protected]
Software Developer
Progeny Linux Systems - http://progeny.com
"I don't know what a Sawfish Window Manager is."
#1 lore raw
Quoted 3 lines · Eric Gillespie

OK, glibc people: Why don't you get umode_t by including sys/types.h? As far as i can tell, you have to include asm/types.h to get it; clearly not an option for an autoconf macro.

It's none of your business to use this type in user-level code. This is a kernel type.

Signature · 3 lines
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
#2 lore raw
In reply to Eric Gillespie
Quoted 2 lines · Ulrich Drepper

It's none of your business to use this type in user-level code. This is a kernel type.

OK, that's fine with me. I'll send the curves people a patch to drop the use of umode_t.

Thanks.

Signature · 4 lines
Eric Gillespie, Jr. <*> [email protected]
Software Developer
Progeny Linux Systems - http://progeny.com
"I don't know what a Sawfish Window Manager is."