Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
Subject: Compaq C++ signals with -std strict_ansi
Date: Tue, 11 May 2004 04:29:04 -0000	[thread overview]
Message-ID: <10a0lkg80cjtq32@corp.supernews.com> (raw)

Consider the trivial C++ program cxx_sig.cpp:

#include <iostream>

#include <sys/types.h>
#include <signal.h>

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


             reply	other threads:[~2004-05-11  4:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-11  4:29 Tim Mooney [this message]
2004-05-12 18:13 ` Compaq C++ signals with -std strict_ansi Tom Woodburn
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox