commit bash-20140612 snapshot

This commit is contained in:
Chet Ramey
2014-06-23 14:58:55 -04:00
parent bbea163ce4
commit 92717e1a6e
13 changed files with 14610 additions and 3 deletions
+30
View File
@@ -4753,6 +4753,11 @@ static struct temp_fifo *fifo_list = (struct temp_fifo *)NULL;
static int nfifo;
static int fifo_list_size;
void
clear_fifo_list ()
{
}
char *
copy_fifo_list (sizep)
int *sizep;
@@ -4891,6 +4896,31 @@ static char *dev_fd_list = (char *)NULL;
static int nfds;
static int totfds; /* The highest possible number of open files. */
void
clear_fifo (i)
int i;
{
if (dev_fd_list[i])
{
dev_fd_list[i] = 0;
nfds--;
}
}
void
clear_fifo_list ()
{
register int i;
if (nfds == 0)
return;
for (i = 0; nfds && i < totfds; i++)
clear_fifo (i);
nfds = 0;
}
char *
copy_fifo_list (sizep)
int *sizep;