summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-03-22 10:54:35 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-03-22 10:54:35 +0000
commit4a7d1889681c73a99b9a39d8a3d3760367674002 (patch)
tree1a33a342ee466f59ecae3cb072692193601ba394 /util.c
parent1f47406448f2d51ae8241e146df3675f96b72815 (diff)
downloadperl-4a7d1889681c73a99b9a39d8a3d3760367674002.tar.gz
Die on n-arg open(...,"",xxx,yyy,...)
- redirect pipe cases to PerlProc_popen_list() (which just croaks for now) - die on read/write cases so we can decide what it means later. p4raw-id: //depot/perlio@9294
Diffstat (limited to 'util.c')
-rw-r--r--util.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/util.c b/util.c
index e24a81d19f..25286ac0e1 100644
--- a/util.c
+++ b/util.c
@@ -2309,6 +2309,13 @@ VTOH(vtohs,short)
VTOH(vtohl,long)
#endif
+PerlIO *
+Perl_my_popen_list(pTHX_ char *mode, int n, SV **args)
+{
+ Perl_croak(aTHX_ "List form of piped open not implemented");
+ return (PerlIO *) NULL;
+}
+
/* VMS' my_popen() is in VMS.c, same with OS/2. */
#if (!defined(DOSISH) || defined(HAS_FORK) || defined(AMIGAOS)) && !defined(VMS) && !defined(__OPEN_VM) && !defined(EPOC) && !defined(MACOS_TRADITIONAL)
PerlIO *
@@ -3969,14 +3976,14 @@ Perl_ebcdic_control(pTHX_ int ch)
{
if (ch > 'a') {
char *ctlp;
-
+
if (islower(ch))
ch = toupper(ch);
-
+
if ((ctlp = strchr(controllablechars, ch)) == 0) {
Perl_die(aTHX_ "unrecognised control character '%c'\n", ch);
}
-
+
if (ctlp == controllablechars)
return('\177'); /* DEL */
else