/* Construct a slave signals structure for setting the DTR and RTS signals as specified.  */
static void stli_mkasysigs(asysigs_t *sp, int dtr, int rts)
/* Construct a slave signals structure for setting the DTR and RTS signals as specified.  */
static void stli_mkasysigs(asysigs_t *sp, int dtr, int rts)
{
	memset(sp, 0, sizeof(asysigs_t));
	if (dtr >= 0) {
		sp->signal |= SG_DTR;
		sp->sigvalue |= ((dtr > 0) ? SG_DTR : 0);
	}
	if (rts >= 0) {
		sp->signal |= SG_RTS;
		sp->sigvalue |= ((rts > 0) ? SG_RTS : 0);
	}
}