aboutsummaryrefslogtreecommitdiff
path: root/src/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/__fclose_ca.c8
-rw-r--r--src/stdio/__fdopen.c8
-rw-r--r--src/stdio/__fmodeflags.c8
-rw-r--r--src/stdio/__fopen_rb_ca.c8
-rw-r--r--src/stdio/__lockfile.c8
-rw-r--r--src/stdio/__overflow.c8
-rw-r--r--src/stdio/__stdio_close.c8
-rw-r--r--src/stdio/__stdio_exit.c8
-rw-r--r--src/stdio/__stdio_read.c8
-rw-r--r--src/stdio/__stdio_seek.c8
-rw-r--r--src/stdio/__stdio_write.c8
-rw-r--r--src/stdio/__stdout_write.c8
-rw-r--r--src/stdio/__toread.c8
-rw-r--r--src/stdio/__towrite.c8
-rw-r--r--src/stdio/__uflow.c8
-rw-r--r--src/stdio/asprintf.c8
-rw-r--r--src/stdio/clearerr.c8
-rw-r--r--src/stdio/dprintf.c8
-rw-r--r--src/stdio/ext.c8
-rw-r--r--src/stdio/ext2.c8
-rw-r--r--src/stdio/fclose.c8
-rw-r--r--src/stdio/feof.c8
-rw-r--r--src/stdio/ferror.c8
-rw-r--r--src/stdio/fflush.c8
-rw-r--r--src/stdio/fgetc.c8
-rw-r--r--src/stdio/fgetln.c8
-rw-r--r--src/stdio/fgetpos.c8
-rw-r--r--src/stdio/fgets.c8
-rw-r--r--src/stdio/fgetwc.c8
-rw-r--r--src/stdio/fgetws.c8
-rw-r--r--src/stdio/fileno.c8
-rw-r--r--src/stdio/flockfile.c8
-rw-r--r--src/stdio/fmemopen.c8
-rw-r--r--src/stdio/fopen.c8
-rw-r--r--src/stdio/fopencookie.c8
-rw-r--r--src/stdio/fprintf.c8
-rw-r--r--src/stdio/fputc.c8
-rw-r--r--src/stdio/fputs.c8
-rw-r--r--src/stdio/fputwc.c8
-rw-r--r--src/stdio/fputws.c8
-rw-r--r--src/stdio/fread.c8
-rw-r--r--src/stdio/freopen.c8
-rw-r--r--src/stdio/fscanf.c8
-rw-r--r--src/stdio/fseek.c8
-rw-r--r--src/stdio/fsetpos.c8
-rw-r--r--src/stdio/ftell.c8
-rw-r--r--src/stdio/ftrylockfile.c8
-rw-r--r--src/stdio/funlockfile.c8
-rw-r--r--src/stdio/fwide.c8
-rw-r--r--src/stdio/fwprintf.c8
-rw-r--r--src/stdio/fwrite.c8
-rw-r--r--src/stdio/fwscanf.c8
-rw-r--r--src/stdio/getc.c8
-rw-r--r--src/stdio/getc_unlocked.c8
-rw-r--r--src/stdio/getchar.c8
-rw-r--r--src/stdio/getchar_unlocked.c8
-rw-r--r--src/stdio/getdelim.c8
-rw-r--r--src/stdio/getline.c8
-rw-r--r--src/stdio/gets.c8
-rw-r--r--src/stdio/getw.c8
-rw-r--r--src/stdio/getwc.c8
-rw-r--r--src/stdio/getwchar.c8
-rw-r--r--src/stdio/ofl.c8
-rw-r--r--src/stdio/ofl_add.c8
-rw-r--r--src/stdio/open_memstream.c8
-rw-r--r--src/stdio/open_wmemstream.c8
-rw-r--r--src/stdio/pclose.c8
-rw-r--r--src/stdio/perror.c8
-rw-r--r--src/stdio/popen.c8
-rw-r--r--src/stdio/printf.c8
-rw-r--r--src/stdio/putc.c8
-rw-r--r--src/stdio/putc_unlocked.c8
-rw-r--r--src/stdio/putchar.c8
-rw-r--r--src/stdio/putchar_unlocked.c8
-rw-r--r--src/stdio/puts.c8
-rw-r--r--src/stdio/putw.c8
-rw-r--r--src/stdio/putwc.c8
-rw-r--r--src/stdio/putwchar.c8
-rw-r--r--src/stdio/remove.c8
-rw-r--r--src/stdio/rename.c8
-rw-r--r--src/stdio/rewind.c8
-rw-r--r--src/stdio/scanf.c8
-rw-r--r--src/stdio/setbuf.c8
-rw-r--r--src/stdio/setbuffer.c8
-rw-r--r--src/stdio/setlinebuf.c8
-rw-r--r--src/stdio/setvbuf.c8
-rw-r--r--src/stdio/snprintf.c8
-rw-r--r--src/stdio/sprintf.c8
-rw-r--r--src/stdio/sscanf.c8
-rw-r--r--src/stdio/stderr.c8
-rw-r--r--src/stdio/stdin.c8
-rw-r--r--src/stdio/stdout.c8
-rw-r--r--src/stdio/swprintf.c8
-rw-r--r--src/stdio/swscanf.c8
-rw-r--r--src/stdio/tempnam.c8
-rw-r--r--src/stdio/tmpfile.c8
-rw-r--r--src/stdio/tmpnam.c8
-rw-r--r--src/stdio/ungetc.c8
-rw-r--r--src/stdio/ungetwc.c8
-rw-r--r--src/stdio/vasprintf.c8
-rw-r--r--src/stdio/vdprintf.c8
-rw-r--r--src/stdio/vfprintf.c8
-rw-r--r--src/stdio/vfscanf.c8
-rw-r--r--src/stdio/vfwprintf.c8
-rw-r--r--src/stdio/vfwscanf.c8
-rw-r--r--src/stdio/vprintf.c8
-rw-r--r--src/stdio/vscanf.c8
-rw-r--r--src/stdio/vsnprintf.c8
-rw-r--r--src/stdio/vsprintf.c8
-rw-r--r--src/stdio/vsscanf.c8
-rw-r--r--src/stdio/vswprintf.c8
-rw-r--r--src/stdio/vswscanf.c8
-rw-r--r--src/stdio/vwprintf.c8
-rw-r--r--src/stdio/vwscanf.c8
-rw-r--r--src/stdio/wprintf.c8
-rw-r--r--src/stdio/wscanf.c8
116 files changed, 928 insertions, 0 deletions
diff --git a/src/stdio/__fclose_ca.c b/src/stdio/__fclose_ca.c
index e0b12a15..fc7ff8fc 100644
--- a/src/stdio/__fclose_ca.c
+++ b/src/stdio/__fclose_ca.c
@@ -4,3 +4,11 @@ int __fclose_ca(FILE *f)
{
return f->close(f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__fdopen.c b/src/stdio/__fdopen.c
index 116e78e5..5b1cd9aa 100644
--- a/src/stdio/__fdopen.c
+++ b/src/stdio/__fdopen.c
@@ -59,3 +59,11 @@ FILE *__fdopen(int fd, const char *mode)
}
weak_alias(__fdopen, fdopen);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__fmodeflags.c b/src/stdio/__fmodeflags.c
index da9f23b6..4829d551 100644
--- a/src/stdio/__fmodeflags.c
+++ b/src/stdio/__fmodeflags.c
@@ -14,3 +14,11 @@ int __fmodeflags(const char *mode)
if (*mode == 'a') flags |= O_APPEND;
return flags;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__fopen_rb_ca.c b/src/stdio/__fopen_rb_ca.c
index 183a5d55..5638f1eb 100644
--- a/src/stdio/__fopen_rb_ca.c
+++ b/src/stdio/__fopen_rb_ca.c
@@ -20,3 +20,11 @@ FILE *__fopen_rb_ca(const char *filename, FILE *f, unsigned char *buf, size_t le
return f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__lockfile.c b/src/stdio/__lockfile.c
index 0f60a149..82d17e57 100644
--- a/src/stdio/__lockfile.c
+++ b/src/stdio/__lockfile.c
@@ -21,3 +21,11 @@ void __unlockfile(FILE *f)
if (a_swap(&f->lock, 0) & MAYBE_WAITERS)
__wake(&f->lock, 1, 1);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__overflow.c b/src/stdio/__overflow.c
index e65a594d..6618a50f 100644
--- a/src/stdio/__overflow.c
+++ b/src/stdio/__overflow.c
@@ -8,3 +8,11 @@ int __overflow(FILE *f, int _c)
if (f->write(f, &c, 1)!=1) return EOF;
return c;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__stdio_close.c b/src/stdio/__stdio_close.c
index 30291328..5a6147f6 100644
--- a/src/stdio/__stdio_close.c
+++ b/src/stdio/__stdio_close.c
@@ -12,3 +12,11 @@ int __stdio_close(FILE *f)
{
return syscall(SYS_close, __aio_close(f->fd));
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__stdio_exit.c b/src/stdio/__stdio_exit.c
index a5e42c67..e6d24946 100644
--- a/src/stdio/__stdio_exit.c
+++ b/src/stdio/__stdio_exit.c
@@ -23,3 +23,11 @@ void __stdio_exit(void)
}
weak_alias(__stdio_exit, __stdio_exit_needed);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__stdio_read.c b/src/stdio/__stdio_read.c
index ea675da3..2db85e6c 100644
--- a/src/stdio/__stdio_read.c
+++ b/src/stdio/__stdio_read.c
@@ -22,3 +22,11 @@ size_t __stdio_read(FILE *f, unsigned char *buf, size_t len)
if (f->buf_size) buf[len-1] = *f->rpos++;
return len;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__stdio_seek.c b/src/stdio/__stdio_seek.c
index 326ab9bc..aa62f1dd 100644
--- a/src/stdio/__stdio_seek.c
+++ b/src/stdio/__stdio_seek.c
@@ -5,3 +5,11 @@ off_t __stdio_seek(FILE *f, off_t off, int whence)
{
return __lseek(f->fd, off, whence);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__stdio_write.c b/src/stdio/__stdio_write.c
index d2d89475..8821f842 100644
--- a/src/stdio/__stdio_write.c
+++ b/src/stdio/__stdio_write.c
@@ -32,3 +32,11 @@ size_t __stdio_write(FILE *f, const unsigned char *buf, size_t len)
iov[0].iov_len -= cnt;
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__stdout_write.c b/src/stdio/__stdout_write.c
index dd1ec60f..692d0519 100644
--- a/src/stdio/__stdout_write.c
+++ b/src/stdio/__stdout_write.c
@@ -9,3 +9,11 @@ size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
f->lbf = -1;
return __stdio_write(f, buf, len);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__toread.c b/src/stdio/__toread.c
index f142ff09..fa6bee6b 100644
--- a/src/stdio/__toread.c
+++ b/src/stdio/__toread.c
@@ -17,3 +17,11 @@ hidden void __toread_needs_stdio_exit()
{
__stdio_exit_needed();
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c
index 4c9c66ae..09a6f5ac 100644
--- a/src/stdio/__towrite.c
+++ b/src/stdio/__towrite.c
@@ -21,3 +21,11 @@ hidden void __towrite_needs_stdio_exit()
{
__stdio_exit_needed();
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/__uflow.c b/src/stdio/__uflow.c
index 2a88bca6..3cbc6b01 100644
--- a/src/stdio/__uflow.c
+++ b/src/stdio/__uflow.c
@@ -9,3 +9,11 @@ int __uflow(FILE *f)
if (!__toread(f) && f->read(f, &c, 1)==1) return c;
return EOF;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/asprintf.c b/src/stdio/asprintf.c
index 4ec83534..7def0b49 100644
--- a/src/stdio/asprintf.c
+++ b/src/stdio/asprintf.c
@@ -11,3 +11,11 @@ int asprintf(char **s, const char *fmt, ...)
va_end(ap);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/clearerr.c b/src/stdio/clearerr.c
index 3bf94d30..b2a70d58 100644
--- a/src/stdio/clearerr.c
+++ b/src/stdio/clearerr.c
@@ -8,3 +8,11 @@ void clearerr(FILE *f)
}
weak_alias(clearerr, clearerr_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/dprintf.c b/src/stdio/dprintf.c
index 93082ee7..351aeae9 100644
--- a/src/stdio/dprintf.c
+++ b/src/stdio/dprintf.c
@@ -10,3 +10,11 @@ int dprintf(int fd, const char *restrict fmt, ...)
va_end(ap);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ext.c b/src/stdio/ext.c
index 1fd95490..00d6859a 100644
--- a/src/stdio/ext.c
+++ b/src/stdio/ext.c
@@ -55,3 +55,11 @@ int __fpurge(FILE *f)
}
weak_alias(__fpurge, fpurge);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ext2.c b/src/stdio/ext2.c
index 34162780..8d10254c 100644
--- a/src/stdio/ext2.c
+++ b/src/stdio/ext2.c
@@ -22,3 +22,11 @@ void __fseterr(FILE *f)
{
f->flags |= F_ERR;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c
index d594532b..6c5d503a 100644
--- a/src/stdio/fclose.c
+++ b/src/stdio/fclose.c
@@ -36,3 +36,11 @@ int fclose(FILE *f)
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/feof.c b/src/stdio/feof.c
index 56da6b91..5adb3dfb 100644
--- a/src/stdio/feof.c
+++ b/src/stdio/feof.c
@@ -12,3 +12,11 @@ int feof(FILE *f)
weak_alias(feof, feof_unlocked);
weak_alias(feof, _IO_feof_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ferror.c b/src/stdio/ferror.c
index d692eed9..28414ee8 100644
--- a/src/stdio/ferror.c
+++ b/src/stdio/ferror.c
@@ -12,3 +12,11 @@ int ferror(FILE *f)
weak_alias(ferror, ferror_unlocked);
weak_alias(ferror, _IO_ferror_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fflush.c b/src/stdio/fflush.c
index b0094376..41d55bec 100644
--- a/src/stdio/fflush.c
+++ b/src/stdio/fflush.c
@@ -45,3 +45,11 @@ int fflush(FILE *f)
}
weak_alias(fflush, fflush_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c
index 2578afcc..b7d02339 100644
--- a/src/stdio/fgetc.c
+++ b/src/stdio/fgetc.c
@@ -5,3 +5,11 @@ int fgetc(FILE *f)
{
return do_getc(f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fgetln.c b/src/stdio/fgetln.c
index 5748435d..1af05a4e 100644
--- a/src/stdio/fgetln.c
+++ b/src/stdio/fgetln.c
@@ -19,3 +19,11 @@ char *fgetln(FILE *f, size_t *plen)
FUNLOCK(f);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fgetpos.c b/src/stdio/fgetpos.c
index 392f7323..345efb29 100644
--- a/src/stdio/fgetpos.c
+++ b/src/stdio/fgetpos.c
@@ -7,3 +7,11 @@ int fgetpos(FILE *restrict f, fpos_t *restrict pos)
*(long long *)pos = off;
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fgets.c b/src/stdio/fgets.c
index 4a100b39..e7e2db13 100644
--- a/src/stdio/fgets.c
+++ b/src/stdio/fgets.c
@@ -47,3 +47,11 @@ char *fgets(char *restrict s, int n, FILE *restrict f)
}
weak_alias(fgets, fgets_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fgetwc.c b/src/stdio/fgetwc.c
index aa10b818..3111da46 100644
--- a/src/stdio/fgetwc.c
+++ b/src/stdio/fgetwc.c
@@ -66,3 +66,11 @@ wint_t fgetwc(FILE *f)
weak_alias(__fgetwc_unlocked, fgetwc_unlocked);
weak_alias(__fgetwc_unlocked, getwc_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fgetws.c b/src/stdio/fgetws.c
index 195cb435..3d5e012c 100644
--- a/src/stdio/fgetws.c
+++ b/src/stdio/fgetws.c
@@ -26,3 +26,11 @@ wchar_t *fgetws(wchar_t *restrict s, int n, FILE *restrict f)
}
weak_alias(fgetws, fgetws_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fileno.c b/src/stdio/fileno.c
index 0bd0e988..3b8fc97f 100644
--- a/src/stdio/fileno.c
+++ b/src/stdio/fileno.c
@@ -14,3 +14,11 @@ int fileno(FILE *f)
}
weak_alias(fileno, fileno_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/flockfile.c b/src/stdio/flockfile.c
index 8e220651..624503d4 100644
--- a/src/stdio/flockfile.c
+++ b/src/stdio/flockfile.c
@@ -7,3 +7,11 @@ void flockfile(FILE *f)
__lockfile(f);
__register_locked_file(f, __pthread_self());
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fmemopen.c b/src/stdio/fmemopen.c
index 343e3e3f..1fe20c75 100644
--- a/src/stdio/fmemopen.c
+++ b/src/stdio/fmemopen.c
@@ -125,3 +125,11 @@ FILE *fmemopen(void *restrict buf, size_t size, const char *restrict mode)
return __ofl_add(&f->f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fopen.c b/src/stdio/fopen.c
index 80bc341e..a10c0292 100644
--- a/src/stdio/fopen.c
+++ b/src/stdio/fopen.c
@@ -29,3 +29,11 @@ FILE *fopen(const char *restrict filename, const char *restrict mode)
__syscall(SYS_close, fd);
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fopencookie.c b/src/stdio/fopencookie.c
index da042fe8..40a2b71c 100644
--- a/src/stdio/fopencookie.c
+++ b/src/stdio/fopencookie.c
@@ -133,3 +133,11 @@ FILE *fopencookie(void *cookie, const char *mode, cookie_io_functions_t iofuncs)
/* Add new FILE to open file list */
return __ofl_add(&f->f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fprintf.c b/src/stdio/fprintf.c
index 948743f7..9cfbdc53 100644
--- a/src/stdio/fprintf.c
+++ b/src/stdio/fprintf.c
@@ -10,3 +10,11 @@ int fprintf(FILE *restrict f, const char *restrict fmt, ...)
va_end(ap);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c
index f364ed38..9f8aac5d 100644
--- a/src/stdio/fputc.c
+++ b/src/stdio/fputc.c
@@ -5,3 +5,11 @@ int fputc(int c, FILE *f)
{
return do_putc(c, f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fputs.c b/src/stdio/fputs.c
index 1cf344f2..9632dfa5 100644
--- a/src/stdio/fputs.c
+++ b/src/stdio/fputs.c
@@ -8,3 +8,11 @@ int fputs(const char *restrict s, FILE *restrict f)
}
weak_alias(fputs, fputs_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fputwc.c b/src/stdio/fputwc.c
index 789fe9c9..becd3b46 100644
--- a/src/stdio/fputwc.c
+++ b/src/stdio/fputwc.c
@@ -38,3 +38,11 @@ wint_t fputwc(wchar_t c, FILE *f)
weak_alias(__fputwc_unlocked, fputwc_unlocked);
weak_alias(__fputwc_unlocked, putwc_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fputws.c b/src/stdio/fputws.c
index 0ed02f1c..d08a850e 100644
--- a/src/stdio/fputws.c
+++ b/src/stdio/fputws.c
@@ -27,3 +27,11 @@ int fputws(const wchar_t *restrict ws, FILE *restrict f)
}
weak_alias(fputws, fputws_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fread.c b/src/stdio/fread.c
index a2116da6..f486aea6 100644
--- a/src/stdio/fread.c
+++ b/src/stdio/fread.c
@@ -36,3 +36,11 @@ size_t fread(void *restrict destv, size_t size, size_t nmemb, FILE *restrict f)
}
weak_alias(fread, fread_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/freopen.c b/src/stdio/freopen.c
index 1641a4c5..97b8f53f 100644
--- a/src/stdio/freopen.c
+++ b/src/stdio/freopen.c
@@ -51,3 +51,11 @@ fail:
fclose(f);
return NULL;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fscanf.c b/src/stdio/fscanf.c
index f639e118..6e8e97bf 100644
--- a/src/stdio/fscanf.c
+++ b/src/stdio/fscanf.c
@@ -12,3 +12,11 @@ int fscanf(FILE *restrict f, const char *restrict fmt, ...)
}
weak_alias(fscanf, __isoc99_fscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fseek.c b/src/stdio/fseek.c
index c7425802..c3bfc35e 100644
--- a/src/stdio/fseek.c
+++ b/src/stdio/fseek.c
@@ -46,3 +46,11 @@ int fseek(FILE *f, long off, int whence)
}
weak_alias(__fseeko, fseeko);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fsetpos.c b/src/stdio/fsetpos.c
index 779cb3cc..d6e3bf39 100644
--- a/src/stdio/fsetpos.c
+++ b/src/stdio/fsetpos.c
@@ -4,3 +4,11 @@ int fsetpos(FILE *f, const fpos_t *pos)
{
return __fseeko(f, *(const long long *)pos, SEEK_SET);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ftell.c b/src/stdio/ftell.c
index 1e1a08d8..957825d6 100644
--- a/src/stdio/ftell.c
+++ b/src/stdio/ftell.c
@@ -37,3 +37,11 @@ long ftell(FILE *f)
}
weak_alias(__ftello, ftello);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ftrylockfile.c b/src/stdio/ftrylockfile.c
index 50650585..0c75c15c 100644
--- a/src/stdio/ftrylockfile.c
+++ b/src/stdio/ftrylockfile.c
@@ -44,3 +44,11 @@ int ftrylockfile(FILE *f)
__register_locked_file(f, self);
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/funlockfile.c b/src/stdio/funlockfile.c
index 44d8b0df..cc2b2cc7 100644
--- a/src/stdio/funlockfile.c
+++ b/src/stdio/funlockfile.c
@@ -11,3 +11,11 @@ void funlockfile(FILE *f)
f->lockcount--;
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fwide.c b/src/stdio/fwide.c
index 8bab634a..4c5973c4 100644
--- a/src/stdio/fwide.c
+++ b/src/stdio/fwide.c
@@ -14,3 +14,11 @@ int fwide(FILE *f, int mode)
FUNLOCK(f);
return mode;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fwprintf.c b/src/stdio/fwprintf.c
index 9ce4f010..fa1879da 100644
--- a/src/stdio/fwprintf.c
+++ b/src/stdio/fwprintf.c
@@ -11,3 +11,11 @@ int fwprintf(FILE *restrict f, const wchar_t *restrict fmt, ...)
va_end(ap);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fwrite.c b/src/stdio/fwrite.c
index 7a567b2c..9ee88ef7 100644
--- a/src/stdio/fwrite.c
+++ b/src/stdio/fwrite.c
@@ -36,3 +36,11 @@ size_t fwrite(const void *restrict src, size_t size, size_t nmemb, FILE *restric
}
weak_alias(fwrite, fwrite_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/fwscanf.c b/src/stdio/fwscanf.c
index 530bb7c7..7ebb65e4 100644
--- a/src/stdio/fwscanf.c
+++ b/src/stdio/fwscanf.c
@@ -13,3 +13,11 @@ int fwscanf(FILE *restrict f, const wchar_t *restrict fmt, ...)
}
weak_alias(fwscanf,__isoc99_fwscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getc.c b/src/stdio/getc.c
index 8409fc23..2bfb4255 100644
--- a/src/stdio/getc.c
+++ b/src/stdio/getc.c
@@ -7,3 +7,11 @@ int getc(FILE *f)
}
weak_alias(getc, _IO_getc);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getc_unlocked.c b/src/stdio/getc_unlocked.c
index b38dad16..e3c8f4c7 100644
--- a/src/stdio/getc_unlocked.c
+++ b/src/stdio/getc_unlocked.c
@@ -7,3 +7,11 @@ int (getc_unlocked)(FILE *f)
weak_alias (getc_unlocked, fgetc_unlocked);
weak_alias (getc_unlocked, _IO_getc_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getchar.c b/src/stdio/getchar.c
index df395ca9..754080fc 100644
--- a/src/stdio/getchar.c
+++ b/src/stdio/getchar.c
@@ -5,3 +5,11 @@ int getchar(void)
{
return do_getc(stdin);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getchar_unlocked.c b/src/stdio/getchar_unlocked.c
index 355ac318..549c01e3 100644
--- a/src/stdio/getchar_unlocked.c
+++ b/src/stdio/getchar_unlocked.c
@@ -4,3 +4,11 @@ int getchar_unlocked(void)
{
return getc_unlocked(stdin);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getdelim.c b/src/stdio/getdelim.c
index df114441..d917e39e 100644
--- a/src/stdio/getdelim.c
+++ b/src/stdio/getdelim.c
@@ -81,3 +81,11 @@ ssize_t getdelim(char **restrict s, size_t *restrict n, int delim, FILE *restric
}
weak_alias(getdelim, __getdelim);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getline.c b/src/stdio/getline.c
index 476d0b09..325019d0 100644
--- a/src/stdio/getline.c
+++ b/src/stdio/getline.c
@@ -4,3 +4,11 @@ ssize_t getline(char **restrict s, size_t *restrict n, FILE *restrict f)
{
return getdelim(s, n, '\n', f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/gets.c b/src/stdio/gets.c
index 17963b93..cd219198 100644
--- a/src/stdio/gets.c
+++ b/src/stdio/gets.c
@@ -13,3 +13,11 @@ char *gets(char *s)
FUNLOCK(stdin);
return s;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getw.c b/src/stdio/getw.c
index 73d2c0d5..55d6bb48 100644
--- a/src/stdio/getw.c
+++ b/src/stdio/getw.c
@@ -6,3 +6,11 @@ int getw(FILE *f)
int x;
return fread(&x, sizeof x, 1, f) ? x : EOF;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getwc.c b/src/stdio/getwc.c
index a5008f0e..a545b262 100644
--- a/src/stdio/getwc.c
+++ b/src/stdio/getwc.c
@@ -5,3 +5,11 @@ wint_t getwc(FILE *f)
{
return fgetwc(f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/getwchar.c b/src/stdio/getwchar.c
index bd89e0ec..b58af598 100644
--- a/src/stdio/getwchar.c
+++ b/src/stdio/getwchar.c
@@ -7,3 +7,11 @@ wint_t getwchar(void)
}
weak_alias(getwchar, getwchar_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ofl.c b/src/stdio/ofl.c
index aad3d171..44c0d1a6 100644
--- a/src/stdio/ofl.c
+++ b/src/stdio/ofl.c
@@ -16,3 +16,11 @@ void __ofl_unlock()
{
UNLOCK(ofl_lock);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ofl_add.c b/src/stdio/ofl_add.c
index d7de9f15..2a56eaa8 100644
--- a/src/stdio/ofl_add.c
+++ b/src/stdio/ofl_add.c
@@ -9,3 +9,11 @@ FILE *__ofl_add(FILE *f)
__ofl_unlock();
return f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/open_memstream.c b/src/stdio/open_memstream.c
index 600d2770..f27306de 100644
--- a/src/stdio/open_memstream.c
+++ b/src/stdio/open_memstream.c
@@ -97,3 +97,11 @@ FILE *open_memstream(char **bufp, size_t *sizep)
return __ofl_add(&f->f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/open_wmemstream.c b/src/stdio/open_wmemstream.c
index b8ae4a79..872b96c9 100644
--- a/src/stdio/open_wmemstream.c
+++ b/src/stdio/open_wmemstream.c
@@ -104,3 +104,11 @@ FILE *open_wmemstream(wchar_t **bufp, size_t *sizep)
return __ofl_add(&f->f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/pclose.c b/src/stdio/pclose.c
index 080a4262..1cdd14db 100644
--- a/src/stdio/pclose.c
+++ b/src/stdio/pclose.c
@@ -11,3 +11,11 @@ int pclose(FILE *f)
if (r<0) return __syscall_ret(r);
return status;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/perror.c b/src/stdio/perror.c
index d0943f26..5368ef54 100644
--- a/src/stdio/perror.c
+++ b/src/stdio/perror.c
@@ -28,3 +28,11 @@ void perror(const char *msg)
FUNLOCK(f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/popen.c b/src/stdio/popen.c
index 3ec83394..65816bf8 100644
--- a/src/stdio/popen.c
+++ b/src/stdio/popen.c
@@ -59,3 +59,11 @@ fail:
errno = e;
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/printf.c b/src/stdio/printf.c
index cebfe404..f6ae7330 100644
--- a/src/stdio/printf.c
+++ b/src/stdio/printf.c
@@ -10,3 +10,11 @@ int printf(const char *restrict fmt, ...)
va_end(ap);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/putc.c b/src/stdio/putc.c
index 4744d978..8a6ecafc 100644
--- a/src/stdio/putc.c
+++ b/src/stdio/putc.c
@@ -7,3 +7,11 @@ int putc(int c, FILE *f)
}
weak_alias(putc, _IO_putc);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/putc_unlocked.c b/src/stdio/putc_unlocked.c
index 10071312..9d2d5c0b 100644
--- a/src/stdio/putc_unlocked.c
+++ b/src/stdio/putc_unlocked.c
@@ -7,3 +7,11 @@ int (putc_unlocked)(int c, FILE *f)
weak_alias(putc_unlocked, fputc_unlocked);
weak_alias(putc_unlocked, _IO_putc_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/putchar.c b/src/stdio/putchar.c
index f044f169..76c18883 100644
--- a/src/stdio/putchar.c
+++ b/src/stdio/putchar.c
@@ -5,3 +5,11 @@ int putchar(int c)
{
return do_putc(c, stdout);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/putchar_unlocked.c b/src/stdio/putchar_unlocked.c
index 8b5d0603..eb4fa1b7 100644
--- a/src/stdio/putchar_unlocked.c
+++ b/src/stdio/putchar_unlocked.c
@@ -4,3 +4,11 @@ int putchar_unlocked(int c)
{
return putc_unlocked(c, stdout);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/puts.c b/src/stdio/puts.c
index 5a38a49b..9f7ca211 100644
--- a/src/stdio/puts.c
+++ b/src/stdio/puts.c
@@ -8,3 +8,11 @@ int puts(const char *s)
FUNLOCK(stdout);
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/putw.c b/src/stdio/putw.c
index 0ff9d7fb..a29c617a 100644
--- a/src/stdio/putw.c
+++ b/src/stdio/putw.c
@@ -5,3 +5,11 @@ int putw(int x, FILE *f)
{
return (int)fwrite(&x, sizeof x, 1, f)-1;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/putwc.c b/src/stdio/putwc.c
index 4bb74733..a87562b9 100644
--- a/src/stdio/putwc.c
+++ b/src/stdio/putwc.c
@@ -5,3 +5,11 @@ wint_t putwc(wchar_t c, FILE *f)
{
return fputwc(c, f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/putwchar.c b/src/stdio/putwchar.c
index b249c4ac..301c062e 100644
--- a/src/stdio/putwchar.c
+++ b/src/stdio/putwchar.c
@@ -7,3 +7,11 @@ wint_t putwchar(wchar_t c)
}
weak_alias(putwchar, putwchar_unlocked);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/remove.c b/src/stdio/remove.c
index 942e301a..9a3270dc 100644
--- a/src/stdio/remove.c
+++ b/src/stdio/remove.c
@@ -17,3 +17,11 @@ int remove(const char *path)
#endif
return __syscall_ret(r);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/rename.c b/src/stdio/rename.c
index f540adb6..40ad9c49 100644
--- a/src/stdio/rename.c
+++ b/src/stdio/rename.c
@@ -12,3 +12,11 @@ int rename(const char *old, const char *new)
return syscall(SYS_renameat2, AT_FDCWD, old, AT_FDCWD, new, 0);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/rewind.c b/src/stdio/rewind.c
index 6f4b58b5..7e25890e 100644
--- a/src/stdio/rewind.c
+++ b/src/stdio/rewind.c
@@ -7,3 +7,11 @@ void rewind(FILE *f)
f->flags &= ~F_ERR;
FUNLOCK(f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/scanf.c b/src/stdio/scanf.c
index bd77699c..52c2fe6e 100644
--- a/src/stdio/scanf.c
+++ b/src/stdio/scanf.c
@@ -12,3 +12,11 @@ int scanf(const char *restrict fmt, ...)
}
weak_alias(scanf,__isoc99_scanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/setbuf.c b/src/stdio/setbuf.c
index 74ad7834..59524a3c 100644
--- a/src/stdio/setbuf.c
+++ b/src/stdio/setbuf.c
@@ -4,3 +4,11 @@ void setbuf(FILE *restrict f, char *restrict buf)
{
setvbuf(f, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/setbuffer.c b/src/stdio/setbuffer.c
index 71233d2e..51bd1bb9 100644
--- a/src/stdio/setbuffer.c
+++ b/src/stdio/setbuffer.c
@@ -5,3 +5,11 @@ void setbuffer(FILE *f, char *buf, size_t size)
{
setvbuf(f, buf, buf ? _IOFBF : _IONBF, size);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/setlinebuf.c b/src/stdio/setlinebuf.c
index b93c4d6a..b94920f9 100644
--- a/src/stdio/setlinebuf.c
+++ b/src/stdio/setlinebuf.c
@@ -5,3 +5,11 @@ void setlinebuf(FILE *f)
{
setvbuf(f, 0, _IOLBF, 0);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/setvbuf.c b/src/stdio/setvbuf.c
index 523dddc8..7259a9d3 100644
--- a/src/stdio/setvbuf.c
+++ b/src/stdio/setvbuf.c
@@ -27,3 +27,11 @@ int setvbuf(FILE *restrict f, char *restrict buf, int type, size_t size)
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/snprintf.c b/src/stdio/snprintf.c
index 771503b2..f9f1ca89 100644
--- a/src/stdio/snprintf.c
+++ b/src/stdio/snprintf.c
@@ -11,3 +11,11 @@ int snprintf(char *restrict s, size_t n, const char *restrict fmt, ...)
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/sprintf.c b/src/stdio/sprintf.c
index 9dff524c..0a5bdb66 100644
--- a/src/stdio/sprintf.c
+++ b/src/stdio/sprintf.c
@@ -10,3 +10,11 @@ int sprintf(char *restrict s, const char *restrict fmt, ...)
va_end(ap);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/sscanf.c b/src/stdio/sscanf.c
index f2ac2f5d..a7bcd309 100644
--- a/src/stdio/sscanf.c
+++ b/src/stdio/sscanf.c
@@ -12,3 +12,11 @@ int sscanf(const char *restrict s, const char *restrict fmt, ...)
}
weak_alias(sscanf,__isoc99_sscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/stderr.c b/src/stdio/stderr.c
index f2bc4648..019e3d40 100644
--- a/src/stdio/stderr.c
+++ b/src/stdio/stderr.c
@@ -16,3 +16,11 @@ hidden FILE __stderr_FILE = {
};
FILE *const stderr = &__stderr_FILE;
FILE *volatile __stderr_used = &__stderr_FILE;
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/stdin.c b/src/stdio/stdin.c
index 5aa5262c..9ac3b95d 100644
--- a/src/stdio/stdin.c
+++ b/src/stdio/stdin.c
@@ -15,3 +15,11 @@ hidden FILE __stdin_FILE = {
};
FILE *const stdin = &__stdin_FILE;
FILE *volatile __stdin_used = &__stdin_FILE;
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/stdout.c b/src/stdio/stdout.c
index 4985a417..83daa82b 100644
--- a/src/stdio/stdout.c
+++ b/src/stdio/stdout.c
@@ -16,3 +16,11 @@ hidden FILE __stdout_FILE = {
};
FILE *const stdout = &__stdout_FILE;
FILE *volatile __stdout_used = &__stdout_FILE;
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/swprintf.c b/src/stdio/swprintf.c
index f75eb112..bf50e92a 100644
--- a/src/stdio/swprintf.c
+++ b/src/stdio/swprintf.c
@@ -11,3 +11,11 @@ int swprintf(wchar_t *restrict s, size_t n, const wchar_t *restrict fmt, ...)
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/swscanf.c b/src/stdio/swscanf.c
index 03d572da..fddac27d 100644
--- a/src/stdio/swscanf.c
+++ b/src/stdio/swscanf.c
@@ -12,3 +12,11 @@ int swscanf(const wchar_t *restrict s, const wchar_t *restrict fmt, ...)
}
weak_alias(swscanf,__isoc99_swscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/tempnam.c b/src/stdio/tempnam.c
index 0c65b1f0..8bd1e60e 100644
--- a/src/stdio/tempnam.c
+++ b/src/stdio/tempnam.c
@@ -45,3 +45,11 @@ char *tempnam(const char *dir, const char *pfx)
}
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/tmpfile.c b/src/stdio/tmpfile.c
index 2fa8803f..c3e543cc 100644
--- a/src/stdio/tmpfile.c
+++ b/src/stdio/tmpfile.c
@@ -27,3 +27,11 @@ FILE *tmpfile(void)
}
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/tmpnam.c b/src/stdio/tmpnam.c
index 71dc8bb1..ed690a1f 100644
--- a/src/stdio/tmpnam.c
+++ b/src/stdio/tmpnam.c
@@ -25,3 +25,11 @@ char *tmpnam(char *buf)
}
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ungetc.c b/src/stdio/ungetc.c
index bc629d4c..7bf58d93 100644
--- a/src/stdio/ungetc.c
+++ b/src/stdio/ungetc.c
@@ -18,3 +18,11 @@ int ungetc(int c, FILE *f)
FUNLOCK(f);
return (unsigned char)c;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/ungetwc.c b/src/stdio/ungetwc.c
index 9edf366f..08c76bf8 100644
--- a/src/stdio/ungetwc.c
+++ b/src/stdio/ungetwc.c
@@ -33,3 +33,11 @@ wint_t ungetwc(wint_t c, FILE *f)
*ploc = loc;
return c;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vasprintf.c b/src/stdio/vasprintf.c
index 08251bc2..07eec655 100644
--- a/src/stdio/vasprintf.c
+++ b/src/stdio/vasprintf.c
@@ -13,3 +13,11 @@ int vasprintf(char **s, const char *fmt, va_list ap)
if (l<0 || !(*s=malloc(l+1U))) return -1;
return vsnprintf(*s, l+1U, fmt, ap);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vdprintf.c b/src/stdio/vdprintf.c
index 3b9c093b..89bdc2db 100644
--- a/src/stdio/vdprintf.c
+++ b/src/stdio/vdprintf.c
@@ -9,3 +9,11 @@ int vdprintf(int fd, const char *restrict fmt, va_list ap)
};
return vfprintf(&f, fmt, ap);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c
index 497c5e19..1afb79ef 100644
--- a/src/stdio/vfprintf.c
+++ b/src/stdio/vfprintf.c
@@ -701,3 +701,11 @@ int vfprintf(FILE *restrict f, const char *restrict fmt, va_list ap)
va_end(ap2);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vfscanf.c b/src/stdio/vfscanf.c
index b78a374d..229a8efc 100644
--- a/src/stdio/vfscanf.c
+++ b/src/stdio/vfscanf.c
@@ -337,3 +337,11 @@ match_fail:
}
weak_alias(vfscanf,__isoc99_vfscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c
index 59d5471b..cafdccc0 100644
--- a/src/stdio/vfwprintf.c
+++ b/src/stdio/vfwprintf.c
@@ -370,3 +370,11 @@ int vfwprintf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap)
va_end(ap2);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vfwscanf.c b/src/stdio/vfwscanf.c
index 82f48604..4691ab16 100644
--- a/src/stdio/vfwscanf.c
+++ b/src/stdio/vfwscanf.c
@@ -330,3 +330,11 @@ match_fail:
}
weak_alias(vfwscanf,__isoc99_vfwscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vprintf.c b/src/stdio/vprintf.c
index 30d2bffa..3b9a5802 100644
--- a/src/stdio/vprintf.c
+++ b/src/stdio/vprintf.c
@@ -4,3 +4,11 @@ int vprintf(const char *restrict fmt, va_list ap)
{
return vfprintf(stdout, fmt, ap);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vscanf.c b/src/stdio/vscanf.c
index 9d46ab09..54ee3d02 100644
--- a/src/stdio/vscanf.c
+++ b/src/stdio/vscanf.c
@@ -7,3 +7,11 @@ int vscanf(const char *restrict fmt, va_list ap)
}
weak_alias(vscanf,__isoc99_vscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vsnprintf.c b/src/stdio/vsnprintf.c
index b3510a63..d69993a6 100644
--- a/src/stdio/vsnprintf.c
+++ b/src/stdio/vsnprintf.c
@@ -53,3 +53,11 @@ int vsnprintf(char *restrict s, size_t n, const char *restrict fmt, va_list ap)
*c.s = 0;
return vfprintf(&f, fmt, ap);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vsprintf.c b/src/stdio/vsprintf.c
index c57349d4..7c692f0c 100644
--- a/src/stdio/vsprintf.c
+++ b/src/stdio/vsprintf.c
@@ -5,3 +5,11 @@ int vsprintf(char *restrict s, const char *restrict fmt, va_list ap)
{
return vsnprintf(s, INT_MAX, fmt, ap);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vsscanf.c b/src/stdio/vsscanf.c
index 4d6d259b..18517652 100644
--- a/src/stdio/vsscanf.c
+++ b/src/stdio/vsscanf.c
@@ -25,3 +25,11 @@ int vsscanf(const char *restrict s, const char *restrict fmt, va_list ap)
}
weak_alias(vsscanf,__isoc99_vsscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vswprintf.c b/src/stdio/vswprintf.c
index fc223cf2..c4ef6273 100644
--- a/src/stdio/vswprintf.c
+++ b/src/stdio/vswprintf.c
@@ -59,3 +59,11 @@ int vswprintf(wchar_t *restrict s, size_t n, const wchar_t *restrict fmt, va_lis
sw_write(&f, 0, 0);
return r>=n ? -1 : r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vswscanf.c b/src/stdio/vswscanf.c
index 00b614bc..8bdc995d 100644
--- a/src/stdio/vswscanf.c
+++ b/src/stdio/vswscanf.c
@@ -36,3 +36,11 @@ int vswscanf(const wchar_t *restrict s, const wchar_t *restrict fmt, va_list ap)
}
weak_alias(vswscanf,__isoc99_vswscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vwprintf.c b/src/stdio/vwprintf.c
index eeeecdc7..40382ee3 100644
--- a/src/stdio/vwprintf.c
+++ b/src/stdio/vwprintf.c
@@ -5,3 +5,11 @@ int vwprintf(const wchar_t *restrict fmt, va_list ap)
{
return vfwprintf(stdout, fmt, ap);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/vwscanf.c b/src/stdio/vwscanf.c
index 5a3931e1..ccfc2cf5 100644
--- a/src/stdio/vwscanf.c
+++ b/src/stdio/vwscanf.c
@@ -8,3 +8,11 @@ int vwscanf(const wchar_t *restrict fmt, va_list ap)
}
weak_alias(vwscanf,__isoc99_vwscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/wprintf.c b/src/stdio/wprintf.c
index 342cd979..a3065c18 100644
--- a/src/stdio/wprintf.c
+++ b/src/stdio/wprintf.c
@@ -11,3 +11,11 @@ int wprintf(const wchar_t *restrict fmt, ...)
va_end(ap);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stdio/wscanf.c b/src/stdio/wscanf.c
index 4dfec25d..c4030f7a 100644
--- a/src/stdio/wscanf.c
+++ b/src/stdio/wscanf.c
@@ -13,3 +13,11 @@ int wscanf(const wchar_t *restrict fmt, ...)
}
weak_alias(wscanf,__isoc99_wscanf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif