Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exit(2)

reentrant(3)



atexit(3C)                     DG/UX R4.11MU05                    atexit(3C)


NAME
       atexit - add program termination routine

SYNOPSIS
       int atexit (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.

       atexit returns 0 if the registration succeeds, nonzero if it fails.

   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |atexit   |     Y         N        N    |
                     +---------+-----------------------------+
SEE ALSO
       exit(2), reentrant(3).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026