diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-09-16 18:14:34 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-02 18:23:42 -0800 |
commit | 0ea86a1054b1b9ede7f0a103059629f7027035e4 (patch) | |
tree | 7042433768e56ef5626f4777243c30cd2f158360 /perliol.h | |
parent | 90a44ae623db0999c98093c3bb234c1479755a2c (diff) | |
download | perl-0ea86a1054b1b9ede7f0a103059629f7027035e4.tar.gz |
Record errno value in IO handles
Diffstat (limited to 'perliol.h')
-rw-r--r-- | perliol.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -67,6 +67,14 @@ struct _PerlIO { PerlIOl *next; /* Lower layer */ PerlIO_funcs *tab; /* Functions for this layer */ U32 flags; /* Various flags for state */ + int err; /* Saved errno value */ +#ifdef VMS + unsigned os_err; /* Saved vaxc$errno value */ +#elif defined (OS2) + unsigned long os_err; +#elif defined (WIN32) + DWORD os_err; /* Saved GetLastError() value */ +#endif PerlIOl *head; /* our ultimate parent pointer */ }; |