I don't know whether I should file a bug report on this issue.

Consider the following little program:

        /* t.c */
        #include <stdio.h>
        #include <signal.h>

        int
        main( void)
        {
           sigset_t set;
           sigpending( &set);
           return 0;
        }

Compiling and running it:

        $ cc t.c
        $ ./a.out
        $

And trying to do the same with threads:

        $ cc -pthread t.c
        /var/tmp/ccs690421.o: In function `main':
        /var/tmp/ccs690421.o(.text+0x1a): undefined reference to `sigpending'
        $

However,

        $ nm /usr/lib/libc_r.a | grep sigpending
        sigpending.o:
        00000040 T _thread_sys_sigpending
        $

Apparently this one is not documented anywhere.  Is it a missing alias
then?  Or is one simply not allowed to use sigpending() with threads?

-- 
Anton Berezin <to...@plab.ku.dk>
The Protein Laboratory, University of Copenhagen

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to