/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <errno.h>
#include <signal.h>
#include "signalmap.h"
static void signal_init(void);
#pragma init(signal_init)
extern void (*handlers[])();
extern void maphandler(int, int, struct sigcontext *, char *);
extern void (*_siguhandler[])(); /* libucb */
extern void _sigvechandler(int, void*, void*); /* libucb */
extern int maptonewsig();
extern int _sigaction();
extern int maptonewmask();
extern int maptooldmask();
extern int _signal();
extern int _sigprocmask();
extern char *memset();
extern int _sigpending();
typedef struct {
} S5_sigset_t;
typedef struct {
int sa_flags;
void (*sa_handler)();
} S5_sigaction;
int
int sig;
{
int ret;
int newsig;
void (*oldhand)();
void (*oldsiguhand)();
} else {
/*
* _sigvechandler() receives control from the OS.
* It calls through _siguhandler[] to maphandler(),
* which maps the signal number new-to-old, and
* calls the user's handler through handlers[].
*/
else
}
else
}
if (ret == -1) {
}
return (ret);
}
static void
signal_init() {
}
int
int how;
{
int ret;
else {
}
return (ret);
}
int
{
int ret;
return (ret);
}