view src/master/dup2-array.h @ 8971:163c3f85a3aa HEAD

namespaces: list=children wasn't working correctly.
author Timo Sirainen <tss@iki.fi>
date Mon, 20 Apr 2009 13:28:00 -0400
parents e4eb71ae8e96
children
line wrap: on
line source

#ifndef DUP2_ARRAY_H
#define DUP2_ARRAY_H

struct dup2 {
	int fd_src, fd_dest;
};
ARRAY_DEFINE_TYPE(dup2, struct dup2);

void dup2_append(ARRAY_TYPE(dup2) *dups, int fd_src, int fd_dest);

int dup2_array(ARRAY_TYPE(dup2) *dups);

#endif