[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared Libs



Hi Jens,

> Have you thought about global variables *in the application* that must be
> accessed by functions *in the library*?  "errno" is an example for this.

errno doesn't have to be a global variable, this is often solved with
a macro:

int *	__libc_errno __P((void));
#define	errno	(*__libc_errno())


Waldi