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

Technical Reference: Base Operating System and Extensions, Volume 1

fp_flush_imprecise Subroutine

Purpose

Forces imprecise signal delivery.

Library

Standard C Library (libc.a)

Syntax

#include <fptrap.h>

void fp_flush_imprecise ()

Description

The fp_flush_imprecise subroutine forces any imprecise interrupts to be reported. To ensure that no signals are lost when a program voluntarily exits, use this subroutine in combination with the atexit (exit, atexit, _exit, or _Exit Subroutine) subroutine.

Example

The following example illustrates using the atexit subroutine to run the fp_flush_imprecise subroutine before a program exits:

#include <fptrap.h>
#include <stdlib.h>
#include <stdio.h>
  if (0!=atexit(fp_flush_imprecise))
           puts ("Failure in atexit(fp_flush_imprecise) ");

Related Information

The atexit (exit, atexit, _exit, or _Exit Subroutine) subroutine, fp_any_enable, fp_is_enabled, fp_enable_all, fp_enable, fp_disable_all, or fp_disable (fp_any_enable, fp_is_enabled, fp_enable_all, fp_enable, fp_disable_all, or fp_disable Subroutine) subroutine, fp_clr_flag, fp_read_flag, fp_swap_flag, or fpset_flag (fp_clr_flag, fp_set_flag, fp_read_flag, or fp_swap_flag Subroutine) subroutine, fp_cpusync (fp_cpusync Subroutine) subroutine, fp_trap (fp_trap Subroutine) subroutine, sigaction subroutine.

Floating-Point Exceptions in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

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