lua-users home
lua-l archive

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


On Tue, Apr 03, 2007 at 07:07:07PM -0300, Luiz Henrique de Figueiredo wrote:
> > One issue: SUSv3 (Single Unix Specification, v3) requires you to  
> > either specify RTLD_LOCAL or RTLD_GLOBAL to 'dlopen'.
> 
> That's not what I read from
> 	http://www.opengroup.org/onlinepubs/009695399/functions/dlopen.html

>From the above link:

	To determine the scope of visibility for the symbols loaded with a
	dlopen() invocation, the mode parameter should be a bitwise-inclusive OR
	with one of the following values:
		RTLD_GLOBAL ...
		RTLD_LOCAL ...
	If neither RTLD_GLOBAL nor RTLD_LOCAL are specified, then the default
	behavior is unspecified.
	^^^^^^^^^^^^^^^^^^^^^^^

linux's dlopen(3) says:

  Zero of more of the following values may also be ORed in flag:
    RTLD_GLOBAL ...
	RTLD_LOCAL This  is the converse of RTLD_GLOBAL, and the default if
	  neither flag is specified. ...

Sam