The RETURN VALUE section on the dlsym() page does not state what
the function returns on success, only on failure.

Desired Action

Insert

"Upon successful completion, dlsym() shall return the address of
the named symbol."

before

"If handle does not refer ..."

Tags

No tags attached.

Attached Files

Relationships

Relationships

Notes

(0000148)
geoffclare (manager)2009-07-02 15:48

In view of the recent discussion of XSH 2.12.3, I think that it would
be a good idea to mention functions explicitly in the dlsym()
RETURN VALUE section.

I suggest that instead of inserting the text proposed in the
Desired Action, we should instead insert:

"Upon successful completion, if the named symbol refers to a
function, dlsym() shall return the address of the function
converted from type pointer to function to type pointer to
void, otherwise dlsym() shall return the address of the named
symbol."

(0000209)
Don Cragun (manager)2009-08-27 17:04

The resolution proposed here has been incorporated in a larger set if
changes to dlclose(), dlopen(), and dlsym() in 0000074.