Phil Edwards wrote: > always be -1. And I can't get gdb to admit that "errno" exists under Cygwin > (it tells me "no such symbol"), so I have no idea what's wrong there. Try #include <errno.h> Corinna -- Corinna Vinschen Cygwin Developer Cygnus Solutions, a Red Hat company -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com