diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-06 03:45:41 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-06 03:45:41 +0000 |
commit | 5095244257e3c5d9389813ccbcd2187ff6e2e91f (patch) | |
tree | 79863b1084bbf5773db8edf30abac4473e3cf831 /sv.h | |
parent | 2dd78f96d61cc6382dc72214930c993567209597 (diff) | |
download | perl-5095244257e3c5d9389813ccbcd2187ff6e2e91f.tar.gz |
Have symbols for the IoTYPEs.
p4raw-id: //depot/perl@6532
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -734,18 +734,15 @@ Set the length of the string which is in the SV. See C<SvCUR>. #define IoTYPE(sv) ((XPVIO*) SvANY(sv))->xio_type #define IoFLAGS(sv) ((XPVIO*) SvANY(sv))->xio_flags -/* -IoTYPE(sv) is a single character saying what type of I/O connection -this is: - | pipe - - stdin or stdout - < read-only - > write-only - a append - + read and write - s socket - space closed -*/ +/* IoTYPE(sv) is a single character telling the type of I/O connection. */ +#define IoTYPE_RDONLY '<' +#define IoTYPE_WRONLY '>' +#define IoTYPE_RDWR '+' +#define IoTYPE_APPEND 'a' +#define IoTYPE_PIPE '|' +#define IoTYPE_STD '-' /* stdin or stdout */ +#define IoTYPE_SOCKET 's' +#define IoTYPE_CLOSED ' ' /* =for apidoc Am|bool|SvTAINTED|SV* sv |