summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-30 13:58:35 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-30 13:58:35 +0000
commit2ab0dda7ce6a3df60da6f002c7402291a5b8c5f8 (patch)
tree612060c21fa810c7626e27e477e34b2d5b215ff4 /ace
parent722e7010452a6283cfc2beeb8bba962d882e5bda (diff)
downloadATCD-2ab0dda7ce6a3df60da6f002c7402291a5b8c5f8.tar.gz
*** empty log message ***
Diffstat (limited to 'ace')
-rw-r--r--ace/OS.i6
-rw-r--r--ace/README1
-rw-r--r--ace/config-chorus.h1
-rw-r--r--ace/config-freebsd-pthread.h8
-rw-r--r--ace/config-freebsd.h6
-rw-r--r--ace/config-win32-common.h2
6 files changed, 17 insertions, 7 deletions
diff --git a/ace/OS.i b/ace/OS.i
index fb67a29f679..434e98d3d36 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -6174,7 +6174,7 @@ ACE_OS::getpid (void)
{
// ACE_TRACE ("ACE_OS::getpid");
#if defined (ACE_WIN32)
- return ::GetCurrentProcessId();
+ return ::GetCurrentProcessId ();
#elif defined (VXWORKS) || defined (CHORUS)
// getpid() is not supported: just one process anyways
return 0;
@@ -6187,10 +6187,10 @@ ACE_INLINE pid_t
ACE_OS::getpgid (pid_t pid)
{
// ACE_TRACE ("ACE_OS::getpid");
-#if defined (ACE_WIN32) || defined (CHORUS)
+#if defined (ACE_LACKS_GETPGID)
ACE_NOTSUP_RETURN (-1);
#elif defined (VXWORKS)
- // getpid() is not supported: just one process anyways
+ // getpid() is not supported, only one process anyway.
return 0;
#else
ACE_OSCALL_RETURN (::getpgid (pid), pid_t, -1);
diff --git a/ace/README b/ace/README
index eb3d21138f8..80e181f4780 100644
--- a/ace/README
+++ b/ace/README
@@ -163,6 +163,7 @@ ACE_LACKS_COND_T Platform lacks condition variables (e.g., Win32 and VxWorks)
ACE_LACKS_CONDATTR_PSHARED Platform has no implementation of pthread_condattr_setpshared(), even though it supports pthreads!
ACE_LACKS_EXEC Platform lacks the exec() family of system calls (e.g., Win32, VxWorks, Chorus)
ACE_LACKS_FILELOCKS Platform lacks file locking mechanism
+ACE_LACKS_GETPGID Platform lacks getpgid() call (e.g., Win32, Chorus, and FreeBSD).
ACE_LACKS_IOSTREAM_SETGET Platforms lacks IOStream get/set operators (e.g., SGI IRIX 6.2).
ACE_LACKS_IOSTREAM_FX iostream header does not declare ipfx (), opfx (), etc.
ACE_LACKS_LINEBUFFERED_STREAMBUF Platform lacks streambuf "linebuffered ()".
diff --git a/ace/config-chorus.h b/ace/config-chorus.h
index 1af130edff5..58dda623766 100644
--- a/ace/config-chorus.h
+++ b/ace/config-chorus.h
@@ -16,6 +16,7 @@
#undef linux
#endif
+#define ACE_LACKS_GETPGID
#define ACE_LACKS_SYSV_SHMEM
#define ACE_LACKS_SYSV_MSG_H
#define ACE_LACKS_KEY_T
diff --git a/ace/config-freebsd-pthread.h b/ace/config-freebsd-pthread.h
index 0f94dad37c6..d52ce2ba2a9 100644
--- a/ace/config-freebsd-pthread.h
+++ b/ace/config-freebsd-pthread.h
@@ -12,16 +12,20 @@
#if !defined (ACE_CONFIG_H)
#define ACE_CONFIG_H
+#if ! defined (__ACE_INLINE__)
+#define __ACE_INLINE__
+#endif /* ! __ACE_INLINE__ */
+
// Platform specific directives
#define FreeBSD
#define _THREAD_SAFE
-
+#define ACE_LACKS_GETPGID
+#define ACE_HAS_SIG_MACROS
// Platform supports POSIX timers via timestruct_t.
#define ACE_HAS_POSIX_TIME
#define ACE_NEEDS_SYSTIME_H
#define ACE_LACKS_STRRECVFD
-#define ACE_HAS_SIG_MACROS
#define ACE_HAS_SIN_LEN
diff --git a/ace/config-freebsd.h b/ace/config-freebsd.h
index 0dcac73c5f5..3b493380f8b 100644
--- a/ace/config-freebsd.h
+++ b/ace/config-freebsd.h
@@ -9,9 +9,13 @@
#if !defined (ACE_CONFIG_H)
#define ACE_CONFIG_H
+#if ! defined (__ACE_INLINE__)
+#define __ACE_INLINE__
+#endif /* ! __ACE_INLINE__ */
+
// Platform specific directives
#define FreeBSD
-
+#define ACE_LACKS_GETPGID
#define ACE_HAS_SIG_MACROS
// Platform supports POSIX timers via timestruct_t.
#define ACE_HAS_POSIX_TIME
diff --git a/ace/config-win32-common.h b/ace/config-win32-common.h
index 40ad777da52..09822ca2001 100644
--- a/ace/config-win32-common.h
+++ b/ace/config-win32-common.h
@@ -11,7 +11,7 @@
// Platform supports pread() and pwrite()
#define ACE_HAS_P_READ_WRITE
-
+#define ACE_LACKS_GETPGID
#define ACE_HAS_THREAD_SAFE_ACCEPT
#define ACE_HAS_EXCEPTIONS
#define ACE_LACKS_SIGACTION