69 lines
2.5 KiB
Groff
69 lines
2.5 KiB
Groff
.\" $NetBSD: bsd_signal.3,v 1.2 2016/06/06 08:27:22 wiz Exp $
|
|
.\"
|
|
.\" Copyright (c) 1980, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)bsd_signal.3 8.3 (Berkeley) 4/19/94
|
|
.\"
|
|
.Dd June 4, 2016
|
|
.Dt BSD_SIGNAL 3
|
|
.Os
|
|
.Sh NAME
|
|
.Nm bsd_signal
|
|
.Nd BSD version of
|
|
.Xr signal 3
|
|
.Sh LIBRARY
|
|
.Lb libc
|
|
.Sh SYNOPSIS
|
|
.In signal.h
|
|
.\" The following is Quite Ugly, but syntactically correct. Don't try to
|
|
.\" fix it.
|
|
.Ft void \*(lp*
|
|
.Fn bsd_signal "int sig" "void \*(lp*func\*(rp\*(lpint\*(rp\*(rp\*(rp\*(lpint"
|
|
.Sh DESCRIPTION
|
|
The
|
|
.Fn bsd_signal
|
|
function provides a partially compatible interface for programs written to
|
|
historical system interfaces.
|
|
.Sh RETURN VALUES
|
|
The previous action is returned on a successful call.
|
|
Otherwise,
|
|
.Dv SIG_ERR
|
|
is returned and the global variable
|
|
.Va errno
|
|
is set to indicate the error.
|
|
.Sh SEE ALSO
|
|
.Xr signal 3
|
|
.Sh STANDARDS
|
|
The
|
|
.Fn bsd_signal
|
|
function conforms to
|
|
.St -p1003.1-2004 .
|
|
It was moved from X/Open to zbase in Issue 4 version 2.
|
|
It first appeared in
|
|
.Nx 8 .
|