POSIX requires that this program have an identical first and last line:

#include <stdio.h>
#include <string.h>
#include <errno.h>
int main (void) {
  char *err = strerror(1000);
  printf ("%s\n", err);
  errno = 2000;
  perror ("hi");
  printf ("%s\n", err);
  return 0;
}

but on cygwin 1.7.7, the perror() corrupts the buffer returned by
strerror().  We should probably fix that in gnulib as part of our perror
module.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to