Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix issue #7112 - add core.sys.linux.sys.signalfd module.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Oct 10, 2012
1 parent 7e5d6bd commit 1d21ce3
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions posix.mak
Expand Up @@ -102,6 +102,7 @@ MANIFEST= \
\
src/core/sys/linux/execinfo.d \
src/core/sys/linux/epoll.d \
src/core/sys/linux/sys/signalfd.d \
src/core/sys/linux/sys/xattr.d \
\
src/core/sys/osx/execinfo.d \
Expand Down Expand Up @@ -467,6 +468,7 @@ COPY=\
\
$(IMPDIR)/core/sys/linux/execinfo.d \
$(IMPDIR)/core/sys/linux/epoll.d \
$(IMPDIR)/core/sys/linux/sys/signalfd.d \
$(IMPDIR)/core/sys/linux/sys/xattr.d \
\
$(IMPDIR)/core/sys/osx/execinfo.d \
Expand Down
42 changes: 42 additions & 0 deletions src/core/sys/linux/sys/signalfd.d
@@ -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);
1 change: 1 addition & 0 deletions win32.mak
Expand Up @@ -84,6 +84,7 @@ MANIFEST= \
\
src\core\sys\linux\execinfo.d \
src\core\sys\linux\epoll.d \
src\core\sys\linux\sys\signalfd.d \
src\core\sys\linux\sys\xattr.d \
\
src\core\sys\osx\execinfo.d \
Expand Down
1 change: 1 addition & 0 deletions win64.mak
Expand Up @@ -91,6 +91,7 @@ MANIFEST= \
\
src\core\sys\linux\execinfo.d \
src\core\sys\linux\epoll.d \
src\core\sys\linux\sys\signalfd.d \
src\core\sys\linux\sys\xattr.d \
\
src\core\sys\osx\execinfo.d \
Expand Down

0 comments on commit 1d21ce3

Please sign in to comment.