1abort(3C)                Standard C Library Functions                abort(3C)
2
3
4

NAME

6       abort - terminate the process abnormally
7

SYNOPSIS

9       #include <stdlib.h>
10
11       void abort(void);
12
13

DESCRIPTION

15       The  abort()  function  causes  abnormal  process termination to occur,
16       unless the signal SIGABRT is being caught and the signal  handler  does
17       not  return.  The abnormal termination processing includes at least the
18       effect of fclose(3C) on all open streams and message catalogue descrip‐
19       tors,  and  the default actions defined for SIGABRT. The SIGABRT signal
20       is sent to the calling process as if by means of the raise(3C) function
21       with the argument SIGABRT.
22
23
24       The  status made available to wait(3C) or waitpid(3C) by  abort will be
25       that of a process terminated by the SIGABRT signal.   abort will  over‐
26       ride blocking or ignoring the SIGABRT signal.
27

RETURN VALUES

29       The abort() function does not return.
30

ERRORS

32       No errors are defined.
33

USAGE

35       Catching  the signal is intended to provide the application writer with
36       a portable means to abort processing, free from  possible  interference
37       from  any   implementation-provided  library  functions.  If SIGABRT is
38       neither caught nor ignored, and the current directory  is  writable,  a
39       core dump may be produced.
40

ATTRIBUTES

42       See attributes(5) for descriptions of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
49       ├─────────────────────────────┼─────────────────────────────┤
50       │Interface Stability          │Standard                     │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │MT-Level                     │Safe                         │
53       └─────────────────────────────┴─────────────────────────────┘
54

SEE ALSO

56       exit(2),  getrlimit(2),  kill(2),  fclose(3C),  raise(3C),  signal(3C),
57       wait(3C), waitpid(3C), attributes(5), standards(5)
58
59
60
61SunOS 5.11                        24 Jul 2002                        abort(3C)
Impressum