mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.4.119
Problem: Vim doesn't work well on OpenVMS. Solution: Fix various problems. (Samuel Ferencik)
This commit is contained in:
@@ -168,7 +168,7 @@ typedef int waitstatus;
|
||||
static pid_t wait4pid __ARGS((pid_t, waitstatus *));
|
||||
|
||||
static int WaitForChar __ARGS((long));
|
||||
#if defined(__BEOS__)
|
||||
#if defined(__BEOS__) || defined(VMS)
|
||||
int RealWaitForChar __ARGS((int, long, int *));
|
||||
#else
|
||||
static int RealWaitForChar __ARGS((int, long, int *));
|
||||
@@ -435,7 +435,6 @@ mch_inchar(buf, maxlen, wtime, tb_change_cnt)
|
||||
/* Process the queued netbeans messages. */
|
||||
netbeans_parse_messages();
|
||||
#endif
|
||||
#ifndef VMS /* VMS: must try reading, WaitForChar() does nothing. */
|
||||
/*
|
||||
* We want to be interrupted by the winch signal
|
||||
* or by an event on the monitored file descriptors.
|
||||
@@ -446,7 +445,6 @@ mch_inchar(buf, maxlen, wtime, tb_change_cnt)
|
||||
handle_resize();
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If input was put directly in typeahead buffer bail out here. */
|
||||
if (typebuf_changed(tb_change_cnt))
|
||||
@@ -5039,6 +5037,7 @@ WaitForChar(msec)
|
||||
return avail;
|
||||
}
|
||||
|
||||
#ifndef VMS
|
||||
/*
|
||||
* Wait "msec" msec until a character is available from file descriptor "fd".
|
||||
* "msec" == 0 will check for characters once.
|
||||
@@ -5338,13 +5337,7 @@ select_eintr:
|
||||
}
|
||||
# endif
|
||||
|
||||
# ifdef OLD_VMS
|
||||
/* Old VMS as v6.2 and older have broken select(). It waits more than
|
||||
* required. Should not be used */
|
||||
ret = 0;
|
||||
# else
|
||||
ret = select(maxfd + 1, &rfds, NULL, &efds, tvp);
|
||||
# endif
|
||||
# ifdef EINTR
|
||||
if (ret == -1 && errno == EINTR)
|
||||
{
|
||||
@@ -5466,8 +5459,6 @@ select_eintr:
|
||||
return (ret > 0);
|
||||
}
|
||||
|
||||
#ifndef VMS
|
||||
|
||||
#ifndef NO_EXPANDPATH
|
||||
/*
|
||||
* Expand a path into all matching files and/or directories. Handles "*",
|
||||
|
Reference in New Issue
Block a user