[Bug 865] ISO Comment: __libc_start_main does

[email protected]
Newsgroups gmane.linux.lsb.specification
Message-ID <[email protected]>
not appear to be properly documented.   
X-Bugzilla-Reason: AssignedTo   
 
http://bugs.linuxbase.org/show_bug.cgi?id=865   
 




------- Additional Comments From [email protected]  2005-05-03 14:38 -------
Much of what __libc_start_main does does not need to be specified ... it is
"unspecified initialization" that will vary from implementation to implementation.

The critical things that this interface MUST do are:

+ register the rtld_fini handler to release resources when this dynamic object
exits (need not be registered with __cxa_atexit actually, this *could* be called
in line right at the end)

+ register the fini handler to run at exit (need not actually be registered with
__cxa_atexit, could be called directly after main returns)

+ call the initializer init (if non-null)

+ call main with appropriate arguments

+ call exit with the result from main


The other (mostly unspecified things) that might appear in this page could include:

+ initialize the the threading subsystem

+ provide security checks for SUID programs   
 
--    
Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.