[ Previous | Next | Table of 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, 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) ");

Implementation Specifics

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

Related Information

The atexit (exit, atexit, 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.1 General Programming Concepts: Writing and Debugging Programs.


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