aboutsummaryrefslogtreecommitdiffstats
path: root/vms
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:18:27 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:18:27 +0300
commite1ef22d366abd1f9ec95eb495c727d55181c8584 (patch)
treecc0fee624202820eb928e60b6a096362c85ff807 /vms
parentcae8bc6ced84c12590e3554a06a952283735363a (diff)
downloadegawk-e1ef22d366abd1f9ec95eb495c727d55181c8584.tar.gz
egawk-e1ef22d366abd1f9ec95eb495c727d55181c8584.tar.bz2
egawk-e1ef22d366abd1f9ec95eb495c727d55181c8584.zip
Move to 2.15.
Diffstat (limited to 'vms')
-rw-r--r--vms/vms_misc.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/vms/vms_misc.c b/vms/vms_misc.c
index 58231ff4..4d065115 100644
--- a/vms/vms_misc.c
+++ b/vms/vms_misc.c
@@ -139,7 +139,11 @@ vms_devopen( const char *name, int mode )
{
FILE *file = NULL;
- if (strncasecmp(name, "SYS$", 4) == 0) {
+ if (STREQ(name, "/dev/null"))
+ return open("NL:", mode); /* "/dev/null" => "NL:" */
+ else if (STREQ(name, "/dev/tty"))
+ return open("TT:", mode); /* "/dev/tty" => "TT:" */
+ else if (strncasecmp(name, "SYS$", 4) == 0) {
name += 4; /* skip "SYS$" */
if (strncasecmp(name, "INPUT", 5) == 0 && (mode & O_WRONLY) == 0)
file = stdin, name += 5;
@@ -166,16 +170,6 @@ void tzset()
return;
}
-#ifndef __GNUC__
-# ifdef bcopy
-# undef bcopy
-# endif
-void bcopy( const char *src, char *dst, int len )
-{
- (void) memcpy(dst, src, len);
-}
-#endif /*!__GNUC__*/
-
/*----------------------------------------------------------------------*/
#ifdef NO_VMS_ARGS /* real code is in "vms/vms_args.c" */
void vms_arg_fixup( int *argc, char ***argv ) { return; } /* dummy */