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

Re: Shared Libs



Waldi wrote:
>> 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())

Wouldn't the lib then have to keep 'n' data sections corresponding to the
'n' processes currently using the library.

Chris