aboutsummaryrefslogtreecommitdiffstats
path: root/common/estream.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-10 17:22:23 +0000
committerWerner Koch <[email protected]>2010-03-10 17:22:23 +0000
commit02566c5856165ae5c85e7deb7adf7eafeea566ad (patch)
tree43fcf64c9bcf329d87efced082309c7c9bd9a2f7 /common/estream.h
parentMerged jnlib into common. (diff)
downloadgnupg-02566c5856165ae5c85e7deb7adf7eafeea566ad.tar.gz
gnupg-02566c5856165ae5c85e7deb7adf7eafeea566ad.zip
Change logging to use estream. The makes logging to a socket also
work on Solaris etc. Further changes required.. This is just a first step.
Diffstat (limited to 'common/estream.h')
-rw-r--r--common/estream.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/common/estream.h b/common/estream.h
index b22c5de43..477aface8 100644
--- a/common/estream.h
+++ b/common/estream.h
@@ -113,11 +113,14 @@
#define es_fwrite _ESTREAM_PREFIX(es_fwrite)
#define es_fgets _ESTREAM_PREFIX(es_fgets)
#define es_fputs _ESTREAM_PREFIX(es_fputs)
+#define es_fputs_unlocked _ESTREAM_PREFIX(es_fputs_unlocked)
#define es_getline _ESTREAM_PREFIX(es_getline)
#define es_read_line _ESTREAM_PREFIX(es_read_line)
#define es_free _ESTREAM_PREFIX(es_free)
-#define es_fprf _ESTREAM_PREFIX(es_fprf)
-#define es_vfprf _ESTREAM_PREFIX(es_vfprf)
+#define es_fprintf _ESTREAM_PREFIX(es_fprintf)
+#define es_fprintf_unlocked _ESTREAM_PREFIX(es_fprintf_unlocked)
+#define es_vfprintf _ESTREAM_PREFIX(es_vfprint)
+#define es_vfprintf_unlocked _ESTREAM_PREFIX(es_vfprint_unlocked)
#define es_setvbuf _ESTREAM_PREFIX(es_setvbuf)
#define es_setbuf _ESTREAM_PREFIX(es_setbuf)
#define es_tmpfile _ESTREAM_PREFIX(es_tmpfile)
@@ -311,6 +314,8 @@ size_t es_fwrite (const void *ES__RESTRICT ptr, size_t size, size_t memb,
char *es_fgets (char *ES__RESTRICT s, int n, estream_t ES__RESTRICT stream);
int es_fputs (const char *ES__RESTRICT s, estream_t ES__RESTRICT stream);
+int es_fputs_unlocked (const char *ES__RESTRICT s,
+ estream_t ES__RESTRICT stream);
ssize_t es_getline (char *ES__RESTRICT *ES__RESTRICT lineptr,
size_t *ES__RESTRICT n,
@@ -323,9 +328,17 @@ void es_free (void *a);
int es_fprintf (estream_t ES__RESTRICT stream,
const char *ES__RESTRICT format, ...)
_ESTREAM_GCC_A_PRINTF(2,3);
+int es_fprintf_unlocked (estream_t ES__RESTRICT stream,
+ const char *ES__RESTRICT format, ...)
+ _ESTREAM_GCC_A_PRINTF(2,3);
+
int es_vfprintf (estream_t ES__RESTRICT stream,
const char *ES__RESTRICT format, va_list ap)
_ESTREAM_GCC_A_PRINTF(2,0);
+int es_vfprintf_unlocked (estream_t ES__RESTRICT stream,
+ const char *ES__RESTRICT format, va_list ap)
+ _ESTREAM_GCC_A_PRINTF(2,0);
+
int es_setvbuf (estream_t ES__RESTRICT stream,
char *ES__RESTRICT buf, int mode, size_t size);
void es_setbuf (estream_t ES__RESTRICT stream, char *ES__RESTRICT buf);