BTRFS: Implement some space relevant helpers.
[haiku.git] / src / system / libroot / posix / signal / psignal.cpp
blob8e45a9bfd6176de9995c7adf213ab8d6fd22c665
1 /*
2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <signal.h>
9 #include <stdio.h>
10 #include <string.h>
13 void
14 psignal(int signal, const char* message)
16 if (message != NULL && message[0] != '\0')
17 fprintf(stderr, "%s: %s\n", message, strsignal(signal));
18 else
19 fprintf(stderr, "%s\n", strsignal(signal));