Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abort(3) — CLIX 3.1r7.6.28

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sdb(1)

exit(2)

kill(2)

signal(2)



  abort(3)                            CLIX                            abort(3)



  NAME

    abort - Generates an IOT fault

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    int abort(
      void );

  DESCRIPTION

    The abort() function does the work of exit(); but also, abort() causes
    SIGABRT to be sent to the calling process.  If SIGABRT is not caught or
    ignored, all stdio streams are flushed prior to the signal being sent, and
    a core dump results.

  EXAMPLES

    /* This program stops execution when a 'Q' is typed. */

    #include<stdlib.h>

    main()
    {
         for(;;) {
              if (getchar() == 'Q')
                   abort();
         }
    }


  RETURN VALUES

    The abort() function returns the value of the kill() function.

    If SIGABRT is not caught or ignored, and the current directory is
    writable, a core dump is produced and the message

    abort - core dumped

    is written by the shell.

  RELATED INFORMATION

    Commands:  sdb(1)

    Functions:  exit(2), kill(2), signal(2)



  2/94 - Intergraph Corporation                                              1




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