Skip site navigation (1)Skip section navigation (2)
Date:      30 Jan 1999 19:01:31 +0100
From:      Anton Berezin <tobez@plab.ku.dk>
To:        freebsd-current@FreeBSD.ORG
Subject:   sigpending with pthreads - bug or feature?
Message-ID:  <863e4s1vyc.fsf@lion.plab.ku.dk>

next in thread | raw e-mail | index | archive | help
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 <tobez@plab.ku.dk>
The Protein Laboratory, University of Copenhagen

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863e4s1vyc.fsf>