aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-11 09:50:12 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-11 09:50:12 -0700
commitec6dee8bd18b3469d56bd2ed60fd6b029bf6fb6c (patch)
treef5d7333c60824e45b000cf4770e3643e50a3c559 /io.h
parentf2a507c4a7abb6771af48414b5f696a5474c8637 (diff)
Minor cleanup of redirection functions
Diffstat (limited to 'io.h')
-rw-r--r--io.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/io.h b/io.h
index 894e4c28..112d7611 100644
--- a/io.h
+++ b/io.h
@@ -63,8 +63,9 @@ public:
class io_fd_t : public io_data_t
{
public:
- /** fd to redirect specified fd to */
+ /** fd to redirect specified fd to. For example, in 2>&1, old_fd is 1, and io_data_t::fd is 2 */
const int old_fd;
+
/** Whether to close old_fd */
const bool close_old;
@@ -195,13 +196,6 @@ public:
shared_ptr<io_data_t> get_io_for_fd(int fd);
};
-/**
- Remove the specified io redirection from the chain
-*/
-void io_remove(io_chain_t &list, const shared_ptr<const io_data_t> &element);
-
-/** Destroys an io_chain */
-void io_chain_destroy(io_chain_t &chain);
/**
Return the last io redirection in the chain for the specified file descriptor.