aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/include
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-05-10 11:49:54 +0200
committermarha <marha@users.sourceforge.net>2012-05-10 11:49:54 +0200
commit6231dd66fec697922b164ec03731f04542c2b30e (patch)
tree83bfa2dec8ba2d32860d513b7816dae412712fa5 /xorg-server/include
parent58780b4306bd1254c6c0e65d255630d5c546005f (diff)
parent13a63d4f69c0692539448cb3d8e4a0e1ffdf2183 (diff)
downloadvcxsrv-6231dd66fec697922b164ec03731f04542c2b30e.tar.gz
vcxsrv-6231dd66fec697922b164ec03731f04542c2b30e.tar.bz2
vcxsrv-6231dd66fec697922b164ec03731f04542c2b30e.zip
Merge remote-tracking branch 'origin/released'
Conflicts: xorg-server/os/log.c
Diffstat (limited to 'xorg-server/include')
-rw-r--r--xorg-server/include/Xprintf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/xorg-server/include/Xprintf.h b/xorg-server/include/Xprintf.h
index 414fd46fb..9e8cdc5dc 100644
--- a/xorg-server/include/Xprintf.h
+++ b/xorg-server/include/Xprintf.h
@@ -66,4 +66,16 @@ _X_ATTRIBUTE_PRINTF(2, 0);
#define vasprintf Xvasprintf
#endif
+/*
+ * These functions provide a portable implementation of the linux kernel
+ * scnprintf & vscnprintf routines that return the number of bytes actually
+ * copied during a snprintf, (excluding the final '\0').
+ */
+extern _X_EXPORT int
+Xscnprintf(char *s, int n, const char * _X_RESTRICT_KYWD fmt, ...)
+_X_ATTRIBUTE_PRINTF(3,4);
+extern _X_EXPORT int
+Xvscnprintf(char *s, int n, const char * _X_RESTRICT_KYWD fmt, va_list va)
+_X_ATTRIBUTE_PRINTF(3,0);
+
#endif /* XPRINTF_H */