Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 93857 invoked from network); 29 Mar 2007 22:46:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 22:46:39 -0000 Received: (qmail 25926 invoked by uid 500); 29 Mar 2007 22:46:46 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 25909 invoked by uid 500); 29 Mar 2007 22:46:46 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 25894 invoked by uid 99); 29 Mar 2007 22:46:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 15:46:46 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 15:46:38 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 943031A983A; Thu, 29 Mar 2007 15:46:18 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r523863 - /incubator/stdcxx/trunk/tests/src/process.cpp Date: Thu, 29 Mar 2007 22:46:18 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070329224618.943031A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Thu Mar 29 15:46:17 2007 New Revision: 523863 URL: http://svn.apache.org/viewvc?view=rev&rev=523863 Log: 2007-03-29 Martin Sebor * process.cpp (, ): Included for kill(), pid_t. (E2BIG, SIGCHLD, SIGHUP, SIGQUIT, SIGKILL): Defined if not defined by system headers. (kill): Declared for EDG eccp demo. Modified: incubator/stdcxx/trunk/tests/src/process.cpp Modified: incubator/stdcxx/trunk/tests/src/process.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/process.cpp?view=diff&rev=523863&r1=523862&r2=523863 ============================================================================== --- incubator/stdcxx/trunk/tests/src/process.cpp (original) +++ incubator/stdcxx/trunk/tests/src/process.cpp Thu Mar 29 15:46:17 2007 @@ -33,13 +33,15 @@ #include +#include // for isspace() +#include // for EACCES, errno +#include // for SIGXXX, kill() #include // for size_t #include // for va_copy, va_list, ... #include // for free(), exit() #include // for strchr() -#include // for isspace() -#include // for EACCES, errno +#include // for pid_t #include // for rw_note(), ... #include // for rw_fprintf() @@ -48,6 +50,46 @@ // use the Windows API on Cygwin # define _WIN32 #endif + +#ifndef E2BIG +# define E2BIG 7 /* AIX, HP-UX, Linux, Solaris */ +#endif + +#ifndef SIGCHLD +# if defined (_RWSTD_OS_AIX) || defined (_RWSTD_OS_OSF) + // AIX, Tru64 +# define SIGCHLD 20 +# elif defined (_RWSTD_OS_LINUX) +# define SIGCHLD 17 +# else + // (System V-based) HP-UX, IRIX, and Solaris +# define SIGCHLD 18 +# endif +#endif + +// all known Unices +#ifndef SIGHUP +# define SIGHUP 1 +#endif + +#ifndef SIGQUIT +# define SIGQUIT 3 +#endif + +#ifndef SIGKILL +# define SIGKILL 9 +#endif + + +#ifdef _RWSTD_EDG_ECCP + +extern "C" { + +int kill (pid_t, int); + +} // extern "C" + +#endif // _RWSTD_EDG_ECCP /**************************************************************************/