diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-06-23 11:00:00 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-06-23 11:00:36 +0200 |
commit | 14699b6e371fa2dae3a989c9b1ead4f23a285545 (patch) | |
tree | 9ac34cd89f25d90633870579d92e9874526fe54c /test-skeleton.c | |
parent | 4e9bf327ad02ed83bded4011af68613e6b03ab33 (diff) | |
download | glibc-14699b6e371fa2dae3a989c9b1ead4f23a285545.tar glibc-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.c | 10 |
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 { |