summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-06-23 11:00:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-06-23 11:00:36 +0200
commit14699b6e371fa2dae3a989c9b1ead4f23a285545 (patch)
tree9ac34cd89f25d90633870579d92e9874526fe54c /test-skeleton.c
parentSimplify x86 nearbyint functions. (diff)
downloadglibc-14699b6e371fa2dae3a989c9b1ead4f23a285545.tar.gz
glibc-14699b6e371fa2dae3a989c9b1ead4f23a285545.tar.bz2
glibc-14699b6e371fa2dae3a989c9b1ead4f23a285545.zip
test-skeleton.c: Add write_message function
Diffstat (limited to 'test-skeleton.c')
-rw-r--r--test-skeleton.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-skeleton.c b/test-skeleton.c
index a9ad4ab7e9..49808b3d85 100644
--- a/test-skeleton.c
+++ b/test-skeleton.c
@@ -115,6 +115,16 @@ xrealloc (void *p, size_t n)
return p;
}
+/* Write a message to standard output. Can be used in signal
+ handlers. */
+static void
+__attribute__ ((unused))
+write_message (const char *message)
+{
+ ssize_t unused __attribute__ ((unused));
+ unused = write (STDOUT_FILENO, message, strlen (message));
+}
+
/* List of temporary files. */
struct temp_name_list
{