This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #7112 - add core.sys.linux.sys.signalfd module.
- Loading branch information
alexrp
committed
Oct 10, 2012
1 parent
7e5d6bd
commit 1d21ce3
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* D header file for Linux. | ||
* | ||
* Copyright: Copyright Alex Rønne Petersen 2012. | ||
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) | ||
* Authors: Alex Rønne Petersen | ||
*/ | ||
module core.sys.linux.sys.signalfd; | ||
|
||
import core.sys.posix.signal; | ||
|
||
version (linux): | ||
|
||
extern (C): | ||
@system: | ||
nothrow: | ||
|
||
struct signalfd_siginfo | ||
{ | ||
uint ssi_signo; | ||
int ssi_errno; | ||
int ssi_code; | ||
uint ssi_pid; | ||
uint ssi_uid; | ||
int ssi_fd; | ||
uint ssi_tid; | ||
uint ssi_band; | ||
uint ssi_overrun; | ||
uint ssi_trapno; | ||
int ssi_status; | ||
int ssi_int; | ||
ulong ssi_ptr; | ||
ulong ssi_utime; | ||
ulong ssi_stime; | ||
ulong ssi_addr; | ||
ubyte[48] __pad; | ||
} | ||
|
||
enum SFD_CLOEXEC = 0x80000; // 02000000 | ||
enum SFD_NONBLOCK = 0x800; // 04000 | ||
|
||
int signalfd (int __fd, const(sigset_t)* __mask, int __flags); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters