mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
39e65e0113
* libc/include/string.h[__linux__]: Add strsignal prototype. * libc/include/sys/lock.h: New file with default locking support. * libc/include/sys/reent.h: Add signal buffer support for strsignal and psignal. * libc/posix/Makefile.am: Add support for readdir_r.c. * libc/posix/Makefile.in: Regenerated. * libc/posix/closedir.c: Add locking support and hash table cleanup. * libc/posix/opendir.c: Add lock support. * libc/posix/readdir.c: Ditto. * libc/posix/rewinddir.c: Ditto. * libc/posix/scandir.c: Ditto. * libc/posix/seekdir.c: Ditto. * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to clean up leftover hash table entries. * libc/posix/readdir_r.c: New file. * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure. * libc/sys/linux/sys/signal.h: Add psignal prototype. * libc/sys/linux/psignal.c: New file. * libc/sys/linux/strsignal.c: Ditto.
16 lines
308 B
C
16 lines
308 B
C
/* 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));
|
|
}
|