www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13282] New: __libc_current_sigrtmax is not accessible from

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 puremagic.com
          Reporter: NCrashed 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

--
Aug 11 2014