[Issue 13282] New: __libc_current_sigrtmax is not accessible from module linux
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Aug 11 03:33:08 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13282
Issue ID: 13282
Summary: __libc_current_sigrtmax is not accessible from module
linux
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: NCrashed at gmail.com
Can't use core.sys.posix.signal.SIGRTMIN and core.sys.posix.signal.SIGRTMAX due
error:
```
../../source/daemonize/linux.d(44): Error: function
core.sys.posix.signal.__libc_current_sigrtmax is not accessible from module
linux
../../source/daemonize/linux.d(44): Error: function
core.sys.posix.signal.__libc_current_sigrtmin is not accessible from module
linux
```
They are aliases to private functions:
```
private extern (C) nothrow @nogc
{
int __libc_current_sigrtmin();
int __libc_current_sigrtmax();
}
alias __libc_current_sigrtmin SIGRTMIN;
alias __libc_current_sigrtmax SIGRTMAX;
```
Workaround: export the functions in your code
```
extern (C) nothrow @nogc
{
int __libc_current_sigrtmin();
int __libc_current_sigrtmax();
}
```
Checked on dmd 2.065 and 2.066.0-rc2
--
More information about the Digitalmars-d-bugs
mailing list