Re: Reading external variables from a library (BIND)



Steven G. Kargl wrote:
(snip)

From FreeBSD /usr/include/errno.h,

#ifndef _KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
int * __error(void);
__END_DECLS
#define errno (* __error())
#endif

errno is not required to be an int variable. It is required to be a modifable lvalue.

In K&R2, the closest I have to a copy of the C89
standard, errno is described as an expression.
It is supposed to be close to the final draft of the
standard, similar to what we have for Fortran 2003.

-- glen

.



Relevant Pages

  • Re: Reading external variables from a library (BIND)
    ... It is required to be a modifable lvalue. ... standard, similar to what we have for Fortran 2003. ... Errno is not described as an expression. ... an actual object, or a program defines an identifier with the name errno, ...
    (comp.lang.fortran)
  • Re: The excellent HLA LIB
    ... Next time try looking at the HLA Standard Library source code.. ... procedure newln; @nodisplay; @noframe; ... // Extra item for real output ...
    (alt.lang.asm)
  • Re: [PATCH 2/3] kgdb, mips: add arch support for the kernels kgdb core
    ... {standard input}:809: Error: symbol `breakinst' is already defined ... Subject: kgdb, mips: add arch support for the kernel's kgdb core ... int allocate_irqno ...
    (Linux-Kernel)
  • Re: {V} link failures on Windows (XP)
    ... Assuming appropriate macros supporting the macro PP_CONCAT to allow properly ... Not quite C-standard as you're reimplementing the standard, ... platforms that need this are not standard-compliant anyway. ...
    (rec.games.roguelike.angband)
  • Re: bit order in xx-endian system
    ... and I am not -aware- of any C compilers ... in a case like this is to refer right back to the standard that ... The standards that define DNS headers are always ...
    (comp.lang.c)