summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2022-05-24 15:41:49 +0200
committerptrcnull <git@ptrcnull.me>2022-05-24 15:41:49 +0200
commit567ad26afc79149f1d70ec41f5ee867c72c20d57 (patch)
treefc77516931578835b33b92ef216c368338f0f4b6 /libgcompat
parent4d6a5156a6eb7f56b30d93853a872e36dadde81b (diff)
downloadgcompat-567ad26afc79149f1d70ec41f5ee867c72c20d57.tar.gz
gcompat-567ad26afc79149f1d70ec41f5ee867c72c20d57.tar.bz2
gcompat-567ad26afc79149f1d70ec41f5ee867c72c20d57.tar.xz
gcompat-567ad26afc79149f1d70ec41f5ee867c72c20d57.zip
stdio: add __dprintf_chk
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/stdio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgcompat/stdio.c b/libgcompat/stdio.c
index 0ff5feb..d36a118 100644
--- a/libgcompat/stdio.c
+++ b/libgcompat/stdio.c
@@ -234,3 +234,16 @@ char *tmpnam_r(char *s)
return tmpnam(s);
}
+
+int
+__dprintf_chk (int d, int flags, const char *format, ...)
+{
+ va_list arg;
+ int done;
+
+ va_start (arg, format);
+ done = vdprintf (d, format, arg);
+ va_end (arg);
+
+ return done;
+}