Welcome to mirror list, hosted at ThFree Co, Russian Federation.

psignal.c « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f5fedc9fa01ba12d4f5e9c48447573f9b15b58f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* libc/sys/linux/psignal.c - print signal message to stderr */

/* Copyright 2002, Red Hat Inc. */

#include <stdio.h>
#include <string.h>

void
psignal (int sig, const char *s)
{
  if (s != NULL)
    fprintf (stderr, "%s: %s\n", s, strsignal (sig));
  else
    fprintf (stderr, "%s\n", strsignal (sig));
}