[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


abort Subroutine

Purpose

Sends a SIGIOT signal to end the current process.

Library

Standard C Library (libc.a)

Syntax

#include <stdlib.h>

int abort (void)

Description

The abort subroutine sends a SIGIOT signal to the current process to terminate the process and produce a memory dump. If the signal is caught and the signal handler does not return, the abort subroutine does not produce a memory dump.

If the SIGIOT signal is neither caught nor ignored, and if the current directory is writable, the system produces a memory dump in the core file in the current directory and prints an error message.

The abnormal-termination processing includes the effect of the fclose subroutine on all open streams and message-catalog descriptors, and the default actions defined as the SIGIOT signal. The SIGIOT signal is sent in the same manner as that sent by the raise subroutine with the argument SIGIOT.

The status made available to the wait or waitpid subroutine by the abort subroutine is the same as a process terminated by the SIGIOT signal. The abort subroutine overrides blocking or ignoring the SIGIOT signal.

Note: The SIGABRT signal is the same as the SIGIOT signal.

Return Values

The abort subroutine does not return a value.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The exit (exit, atexit, or _exit Subroutine), atexit (exit, atexit, or _exit Subroutine), or _exit (exit, atexit, or _exit Subroutine) subroutine, fclose (fclose or fflush Subroutine) subroutine, kill (kill or killpg Subroutine), or killpg (kill or killpg Subroutine) subroutine, raise subroutine, sigaction, sigvec, signal subroutine, wait or waidtpid subroutine.

The dbx command.

Subroutines Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]