LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Linux should define ENOTSUP
@ 2006-12-06 13:51 Samuel Thibault
  2006-12-06 14:25 ` Arjan van de Ven
  0 siblings, 1 reply; 19+ messages in thread
From: Samuel Thibault @ 2006-12-06 13:51 UTC (permalink / raw)
  To: linux-kernel

Hi,

ENOTSUP is not used at all by linux (though it is defined for parisc),
while as susv3 specifies, ENOTSUP shall be different than EOPNOTSUPP.
Is there a reason for doing so? (except history)

Currently, code like

switch(errno) {
	ENOTSUP:
		foo();
		break;
	EOPNOTSUP:
		bar();
		break;
}
just can't compile...

Is there any way to fix this?  Glibc people don't seem to want to fix it
on their part, see
http://sources.redhat.com/bugzilla/show_bug.cgi?id=2363

Samuel

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-12-07 15:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-06 13:51 Linux should define ENOTSUP Samuel Thibault
2006-12-06 14:25 ` Arjan van de Ven
2006-12-06 14:31   ` Samuel Thibault
2006-12-06 15:17     ` H. Peter Anvin
2006-12-06 20:10       ` Ulrich Drepper
2006-12-06 21:11         ` H. Peter Anvin
2006-12-06 22:34           ` Ulrich Drepper
2006-12-07 13:49     ` Theodore Tso
2006-12-07 13:59       ` Andreas Schwab
2006-12-07 14:15         ` Theodore Tso
2006-12-07 14:30           ` Andreas Schwab
2006-12-07 15:33             ` Ulrich Drepper
2006-12-06 15:16   ` H. Peter Anvin
2006-12-06 15:25     ` Samuel Thibault
2006-12-06 15:26       ` H. Peter Anvin
2006-12-06 15:34         ` Samuel Thibault
2006-12-06 15:35           ` H. Peter Anvin
2006-12-06 16:14             ` Samuel Thibault
2006-12-06 16:44               ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).