From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b329d9dd775a1991,start X-Google-Attributes: gidfa528,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Tim Mooney Newsgroups: comp.unix.tru64 Subject: Compaq C++ signals with -std strict_ansi Date: Tue, 11 May 2004 04:29:04 -0000 Organization: Greymoon Consulting Message-ID: <10a0lkg80cjtq32@corp.supernews.com> X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: mooney@zorak.(none) (Tim Mooney) X-Complaints-To: abuse@supernews.com Xref: controlnews3.google.com comp.unix.tru64:39 Consider the trivial C++ program cxx_sig.cpp: #include #include #include int main(int argc, char * argv[]) { kill(0, SIGPIPE); } The program makes no sense, but it illustrates the problem I'm seeing: when compiling using the Compaq C++ compiler and `-std strict_ansi', the signal.h in /usr/lib/cmplrs/cxx/V6.5-041/include is eventually including signal_cname_impl, and only the stripped-down set of signals from that header file are visible (SIGPIPE and SIGCHLD, among many others, are not defined). In addition, certain functions that would be declared in the C signal.h aren't present, specifically kill(). Can anyone explain why `-std strict_ansi' has such a stripped down set of defines and declarations when signal.h is included? Thanks, Tim -- Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J6, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164