__ateachexit man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



atexit(3C)							    atexit(3C)

NAME
     atexit, __ateachexit - add program termination routine

SYNOPSIS
     #include <stdlib.h>

     int atexit (void (*func)(void));

     int __ateachexit (void (*func)(void));

DESCRIPTION
     atexit adds the function func to a list of functions to be called without
     arguments on normal termination of the program.  Normal termination
     occurs by either a call to the exit system call or a return from main.
     At most 32 functions may be registered by atexit; the functions will be
     called in the reverse order of their registration.

     For sproc processes, atexit is only called when the last member of the
     share group exits, regardless of whether the share group creator has
     returned from main.

     __ateachexit adds the function func to a list of functions to be called
     without arguments on termination of any member of a share group.  Note
     that the last share group member will call functions registered with
     __ateachexit and atexit.

     atexit and __ateachexit return 0 if the registration succeeds, nonzero if
     it fails.

SEE ALSO
     exit(2), sproc(2).

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net