_Exit() — Terminate a process

Standards

Standards / Extensions C or C++ Dependencies

C99
C11
Single UNIX Specification, Version 3
C++ TR1 C99

both z/OS® V1R7

Format

#define _ISOC99_SOURCE
#include <stdlib.h>

__noreturn__ void _Exit(int status);

General description

When running POSIX(OFF), the _Exit() function is equivalent to exit() with the exception that it does not run atexit() registered routines or signal handlers registered using signal().

When running POSIX(ON), the _Exit() function is equivalent to _exit().

Returned value

The _Exit() function does not return to its caller.

Related information