mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-08 03:02:40 +02:00
commit bash-20140612 snapshot
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user