lkml.org 
[lkml]   [2003]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Patch?: linux-2.5.59/sound/soundcore.c referenced non-existant errno variable
From
Date
Hi,

"Adam J. Richter" <adam@yggdrasil.com> writes:

> linux-2.5.59/sound/sound_firmware.c attempts to use the
> user level system call interface from the kernel, which I understand
> works on i386 and perhaps all architectures, but requires a variable
> named "errno."

Which is provided in-kernel (not for modules) by 'lib/errno.c'.

> (Actually, it mixed things like close() and sys_close(), but that's
> beside the point.)

Those are provided by <linux/unistd.h>, with __KERNEL_SYSCALLS__
defined.

> I could just declare a "static int errno;" in the file,

That was originally there, but removed in 2.5.57 IIRC.
<linux/unistd.h> has 'extern int errno;' -- so 'static int errno;'
would be a bug.

- Hari
--
Raja R Harinath ------------------------------ harinath@cs.umn.edu
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.072 / U:1.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site