[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/ |
Date: |
Mon, 6 Sep 2004 12:58:17 +0200 |
User-agent: |
KMail/1.5 |
Derek Robert Price wrote:
> >In particular the Woe32 stdio in MSVCRT does not usually set errno upon
> >failure. I.e. it implements the C89 spec, not the POSIX spec.
>
> Now, that could cause problems. I'd have to implement the entire
> STDIO implementation using write and handling my own buffers to work
> around that. S'pose I could probably snag most of the implementation
> from glibc...
It may be easier to just use the Woe32 API instead of errno:
#ifdef _WIN32
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, GetLastError (), 0, buf, sizeof (buf), NULL));
#else
perror (...);
#endif
Bruno
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Derek Robert Price, 2004/09/02
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Paul Eggert, 2004/09/02
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Simon Josefsson, 2004/09/02
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Derek Robert Price, 2004/09/02
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Paul Eggert, 2004/09/02
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Derek Robert Price, 2004/09/03
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Paul Eggert, 2004/09/03
- Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Bruno Haible, 2004/09/04
- Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Derek Robert Price, 2004/09/04
- Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/,
Bruno Haible <=
- Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Derek Robert Price, 2004/09/07
- Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Bruno Haible, 2004/09/04
- Re: [Bug-gnulib] Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Derek Robert Price, 2004/09/04
- Message not available
- Re: CVS update [cvs1-11-x-branch]: /ccvs/src/, Stefan Monnier, 2004/09/02