/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2016 Joyent, Inc.
*/
/*
* Header file to support the signalfd facility. Note that this facility
* is designed to be binary compatible with the Linux signalfd facility, modulo
* the signals themselves; values for constants here should therefore exactly
* match those found in Linux, and this facility shouldn't be extended
* independently of Linux.
*/
#ifndef _SYS_SIGNALFD_H
#define _SYS_SIGNALFD_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* To assure binary compatibility with Linux, these values are fixed at their
* Linux equivalents, not their native ones.
*/
/*
* These ioctl values are specific to the native implementation; applications
* shouldn't be using them directly, and they should therefore be safe to
* change without breaking apps.
*/
typedef struct signalfd_siginfo {
/* additional fields in the future. */
#ifndef _KERNEL
#else
#define SIGNALFDMNRN_SIGNALFD 0
/*
* This holds the proc_t state for a process which is using signalfd.
* Its presence and contents are protected by p_lock.
*/
typedef struct sigfd_proc_state {
void (*sigfd_pollwake_cb)(void *, int);
extern void (*sigfd_exit_helper)();
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SIGNALFD_H */