D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7112 - Add function in core.sys.posix.signal
Summary: Add function in core.sys.posix.signal
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: Alex Rønne Petersen
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2011-12-15 01:55 UTC by bioinfornatics
Modified: 2015-06-09 05:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bioinfornatics 2011-12-15 01:55:14 UTC
Dear,
they are  away to add this c interface from sys/signalfd.h :
extern (System){
    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;
        short   __pad[48];
    }
    /* Flags for signalfd.  */
    enum SFD_CLOEXEC  = octal!2000000;
    enum SFD_NONBLOCK = octal!4000;
    extern int signalfd (int __fd, const sigset_t * __mask, int __flags);
}



thanks
Comment 1 Alex Rønne Petersen 2012-10-09 17:54:59 UTC
This needs to be added to a separate signalfd header module for Linux only. I'll look into it.
Comment 2 Alex Rønne Petersen 2012-10-09 18:11:14 UTC
https://github.com/D-Programming-Language/druntime/pull/315
Comment 3 github-bugzilla 2012-10-14 19:18:34 UTC
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/1d21ce334f9481ae9eaed190f78793944a0ca8ea
Fix issue #7112 - add core.sys.linux.sys.signalfd module.

https://github.com/D-Programming-Language/druntime/commit/168c1ec0b77368ee9fb881125e0684ca3e101ec7
Merge pull request #315 from alexrp/signalfd-linux

Fix issue #7112 - add core.sys.linux.sys.signalfd module.