summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_stdlib.h
diff options
context:
space:
mode:
authorjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-10-28 21:12:30 +0000
committerjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-10-28 21:12:30 +0000
commit151da3b15a9641862452a737deee140617d6589c (patch)
tree6d9fbd227e4a5e4874b8fc1989d7c03f73af047e /ACE/ace/OS_NS_stdlib.h
parent5830508fd91ff7489716d7ff9308568e65d11fe6 (diff)
downloadATCD-151da3b15a9641862452a737deee140617d6589c.tar.gz
ChangeLogTag: Sun Oct 28 21:11:57 UTC 2007 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'ACE/ace/OS_NS_stdlib.h')
-rw-r--r--ACE/ace/OS_NS_stdlib.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_stdlib.h b/ACE/ace/OS_NS_stdlib.h
index b90205fb328..28a0bbdf072 100644
--- a/ACE/ace/OS_NS_stdlib.h
+++ b/ACE/ace/OS_NS_stdlib.h
@@ -275,6 +275,28 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int system (const ACE_TCHAR *s);
+ /// Get the name of the current program
+ ///
+ /// Originally from NetBSD, now found in *BSD, Cygwin, Darwin, etc.
+ ACE_NAMESPACE_INLINE_FUNCTION
+ const char *getprogname ();
+
+#if !defined (ACE_HAS_GETPROGNAME)
+ extern ACE_Export
+ const char *getprogname_emulation ();
+#endif /* !ACE_HAS_GETPROGNAME */
+
+ /// Set the name of the current program
+ ///
+ /// Originally from NetBSD, now found in *BSD, Cygwin, Darwin, etc.
+ ACE_NAMESPACE_INLINE_FUNCTION
+ void setprogname (const char* name);
+
+#if !defined (ACE_HAS_SETPROGNAME)
+ extern ACE_Export
+ void setprogname_emulation (const char* name);
+#endif /* !ACE_HAS_SETPROGNAME */
+
} /* namespace ACE_OS */
ACE_END_VERSIONED_NAMESPACE_DECL