summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog-98b3
-rw-r--r--ace/OS.h7
-rw-r--r--ace/OS.i7
3 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog-98b b/ChangeLog-98b
index dcdae452bf9..9bdd455a565 100644
--- a/ChangeLog-98b
+++ b/ChangeLog-98b
@@ -1,5 +1,8 @@
Sun Sep 6 15:49:46 1998 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+ * ace/OS: Added fputs() to ACE_OS. I'm not sure why this was
+ missing...
+
* ace/Makefile (FILES): Moved Priority_Reactor to earlier in
the Makefile to maintain alphabetical order.
diff --git a/ace/OS.h b/ace/OS.h
index eedeef469e6..31521f4f2ee 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -4348,14 +4348,11 @@ public:
// However, we should provide UNICODE version of them.
static FILE *fopen (const char *filename,
const char *mode);
-
#if defined (fdopen)
#undef fdopen
-#endif
-
+#endif /* fdopen */
static FILE *fdopen (ACE_HANDLE handle,
const char *mode);
-
static char *fgets (char *buf,
int size,
FILE *fp);
@@ -4386,6 +4383,8 @@ public:
static char *gets (char *str, int n = 0);
# endif /* ACE_LACKS_GETS */
static int puts (const char *s);
+ static int fputs (const char *s,
+ FILE *stream);
# endif /* ! ACE_HAS_WINCE */
static int fflush (FILE *fp);
diff --git a/ace/OS.i b/ace/OS.i
index 14f02bde3de..7121dfcfadd 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -5167,6 +5167,13 @@ ACE_OS::puts (const char *s)
// ACE_TRACE ("ACE_OS::puts");
ACE_OSCALL_RETURN (::puts (s), int, -1);
}
+
+ACE_INLINE int
+ACE_OS::fputs (const char *s, FILE *stream)
+{
+ // ACE_TRACE ("ACE_OS::puts");
+ ACE_OSCALL_RETURN (::fputs (s, stream), int, -1);
+}
#endif /* ! ACE_HAS_WINCE */
ACE_INLINE ACE_SignalHandler