From owner-freebsd-current Sat Jan 30 10:00:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA18189 for freebsd-current-outgoing; Sat, 30 Jan 1999 10:00:58 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lion.plab.ku.dk (lion.plab.ku.dk [130.225.105.49]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA18184 for ; Sat, 30 Jan 1999 10:00:57 -0800 (PST) (envelope-from tobez@lion.plab.ku.dk) Received: (from tobez@localhost) by lion.plab.ku.dk (8.9.2/8.9.1) id TAA69056; Sat, 30 Jan 1999 19:01:31 +0100 (CET) To: freebsd-current@FreeBSD.ORG Subject: sigpending with pthreads - bug or feature? From: Anton Berezin Date: 30 Jan 1999 19:01:31 +0100 Message-ID: <863e4s1vyc.fsf@lion.plab.ku.dk> Lines: 43 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't know whether I should file a bug report on this issue. Consider the following little program: /* t.c */ #include #include 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 The Protein Laboratory, University of Copenhagen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message