Stephen Reilly wrote:
> The \< and \> will make sure the number is surrounded by whitespace.
> I choose 12 in the first place to show retrieval of a subset and
> omision of its superset i.e. 112 didn't appear in the list. So 1
> gives:
>> grep "\<1\>" errno.h #define EPERM 1 /* Operation not
> permitted */
>> It would be the relevant one which contains all the #defines, not the
> header file with code in it. E.g.
> /services/kernel/kernels/linux-2.4.25/include/asm-i386/errno.h
>> Later, Steve
Ah, but certainly on this debian box there _is_ no one such header file...
diamond at fand:/usr/include/asm-generic(0)$ head -10 errno.h
#ifndef _ASM_GENERIC_ERRNO_H
#define _ASM_GENERIC_ERRNO_H
#include <asm-generic/errno-base.h>
#define EDEADLK 35 /* Resource deadlock would occur */
#define ENAMETOOLONG 36 /* File name too long */
#define ENOLCK 37 /* No record locks available */
#define ENOSYS 38 /* Function not implemented */
#define ENOTEMPTY 39 /* Directory not empty */
diamond at fand:/usr/include/asm-generic(0)$ head -5 errno-base.h
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
Also, as a nit pick, you should not be using the kernel headers, but
rather the headers of the kernel your glibc was compiled against, which
should be under /usr/include/{bits,asm,asm-generic,linux}
Steve
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!