Combine is a simple little program I wrote that 'combines' files, so that reads will read from whichever file happens to have data ready.
You can download the code and the man page if you happen to want someting similar. Here's the man page (from man2html) :
NAME
combine - creates a fifo that when read from merges reads
from passed files
SYNOPSIS
combine fifo filename...
DESCRIPTION
combine creates (or uses an existing) fifo which acts as a
merging of the given files. Each read from the fifo will
result in a read from one of the passed files.
Was created to make my laptop more usable. X uses /dev/mouse
to read ps2 mouse data. /dev/mouse is actually a fifo
created by combine (combine /dev/mouse /dev/psaux
/dev/usb/mouse0) which allows me to use both the built in
and usb mouse which might be attached. Since XFree86 natively
supports multiple input devices it's not needed, but at the
time I didn't know...
OPTIONS
There aren't any at the moment.
BUGS
Errors on system calls should be handled, as opposed to
ignores.
The fifo name should be an option not an argument.