macro: introduce steal_fd()

parent d9c4e404
......@@ -407,4 +407,11 @@ enum {
__internal_fd__; \
})
#define steal_fd(fd) \
({ \
int _fd_ = (fd); \
(fd) = -EBADF; \
_fd_; \
})
#endif /* __LXC_MACRO_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment