From f393ff40ef49c582f614ff44107d1132753693a1 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 12 May 2007 18:00:57 +1000 Subject: [REDIR] Replace copyfd by savefd and use dup2 elsewhere There are two kinds of users to copyfd, those that want to copy an fd to an exact value and those that want to move an fd to a value >= 10. The former can simply use dup2 directly while the latter share a lot of common code that now constitutes savefd. --- src/redir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/redir.h') diff --git a/src/redir.h b/src/redir.h index f4347ce..2c43511 100644 --- a/src/redir.h +++ b/src/redir.h @@ -45,6 +45,6 @@ union node; void redirect(union node *, int); void popredir(int); void clearredir(int); -int copyfd(int, int); +int savefd(int); int redirectsafe(union node *, int); -- cgit 1.4.1