*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> bsd_signal (2)              



NAME    [Toc]    [Back]

       bsd_signal - Interface to simplified signal facilities

SYNOPSIS    [Toc]    [Back]

       #include <signal.h>

       void (*bsd_signal(
               int sig,
               void (*function) (int)))(int );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       bsd_signal():  XSH4.2, XSH5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Defines  the  signal.   Specifies  the address of a signal

DESCRIPTION    [Toc]    [Back]

       The bsd_signal() function provides a partially  compatible
       interface for programs written to historical system interfaces.

       The handler function should be declared as follows (sig is
       the signal number).

       void handler (int sig);

       The  behavior  of bsd_signal() is undefined if the handler
       function takes more than one argument, or an argument of a
       different type.

       The  bsd_signal() function is a direct replacement for the
       BSD signal() function  in  simple  applications  that  are
       installing a single-argument signal handler. If the application
 is installing a BSD  signal  handler  that  expects
       more than one argument, the application has to be modified
       to use sigaction(). The bsd_signal() function differs from
       signal()  in  that  the  SA_RESTART  flag  is  set and the
       SA_RESETHAND will be clear when  the  libsys5  version  of
       bsd_signal()  is  used.  The  state  of these flags is not
       specified for signal().

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, bsd_signal() returns the  previous
  action  for sig. Otherwise, SIG_ERR is returned and
       errno is set to indicate the error.

ERRORS    [Toc]    [Back]

       Refer to sigaction(2).

SEE ALSO    [Toc]    [Back]

       Functions: sigaction(2), signal(2), sigaddset(3),  sigemptyset(3)

       Standards: standards(5)

[ Back ]
 Similar pages
Name OS Title
signal NetBSD simplified software signal facilities
signal OpenBSD simplified software signal facilities
signal FreeBSD simplified software signal facilities
signal IRIX simplified software signal facilities (4.3BSD)
sigaction OpenBSD software signal facilities
sigvec NetBSD software signal facilities
sigvec Linux BSD software signal facilities
sigvector HP-UX software signal facilities
sigaction FreeBSD software signal facilities
sigvec OpenBSD software signal facilities
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service