original c version author uknown to me.
this is just a perl translation and
refinement of that work.
Description:
perl translation of the old classic 'force.c', allowing
you to force input to a terminal device. even though
it saw a lot of illegitimate use in the past, i've found
quite a few legitimate uses for it over the years - the ioctl/fcntl defs are hard-coded at the top and may need to be changed for other systems (consult your ioctl.ph, ioctls.ph and fcntl.ph for the proper values - consult h2ph if you do not have these files in your perl tree)
the Fcntl module has obsoleted fcntl.ph, and is built using the corresponding C libraries as an XS module - probably more reliable. You should import whatever constants you can from there, instead of hard coding. As for ioctl, you're still stuck with translating header files and such.