Does Cygwin have str2sig/sig2str?

Corinna Vinschen
Thu May 20 19:54:41 GMT 2021

On May 20 09:58, Joel Sherrill wrote:
> Hi
> The next POSIX version is wrapping up and unless something changes will be
> adding str2sig and sig2str. Does Cygwin have those?
> I'm asking to see if we adapt the Cygwin version for general use or have to
> write it from scratch.
> The glibc and Illumos implementations are what you would expect. They just

I don't see glibc defining the above symbols in the master branch.

> use an array of { signal, string_name} and a lookup search.
> Something similar would be OK for newlib.

Cygwin exports two functions with equivalent functionality:

  char *strsignal (int signo);
  int strtosigno (const char *name);

see the file winsup/cygwin/


More information about the Newlib mailing list