public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* errno
@ 2004-05-04  1:26 Albert Cahalan
  2004-05-04  4:14 ` errno Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Albert Cahalan @ 2004-05-04  1:26 UTC (permalink / raw)
  To: linux-kernel mailing list; +Cc: Linus Torvalds, Andrew Morton OSDL

Linus Torvalds writes:

> No, there's something wrong. Nobody should use a global
> "errno" variable, and we should fix the real bug (it's
> probably some buggy system call "interface" function
> that is being used).

According to lib/errno.c it's your fault. (SCO code?)

The obvious fix would be to stuff errno into the
task_struct, hmmm? Then just add this:

#define errno (current->kernel_errno)

Otherwise:

#define errno   Do not use this.



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

end of thread, other threads:[~2004-05-06  1:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-04  1:26 errno Albert Cahalan
2004-05-04  4:14 ` errno Linus Torvalds
2004-05-04  5:58   ` errno Philippe Troin
2004-05-06  1:16     ` errno Philippe Troin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox