summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-06 03:45:41 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-06 03:45:41 +0000
commit5095244257e3c5d9389813ccbcd2187ff6e2e91f (patch)
tree79863b1084bbf5773db8edf30abac4473e3cf831 /sv.h
parent2dd78f96d61cc6382dc72214930c993567209597 (diff)
downloadperl-5095244257e3c5d9389813ccbcd2187ff6e2e91f.tar.gz
Have symbols for the IoTYPEs.
p4raw-id: //depot/perl@6532
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/sv.h b/sv.h
index 6625730e72..d242bf5569 100644
--- a/sv.h
+++ b/sv.h
@@ -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