Date: Mon, 24 May 1999 14:43:57 +0200 From: Tomaz Borstnar <tomaz.borstnar@over.net> To: freebsd-questions@freebsd.org Subject: ioctls for serial port wtih modem - waiting for CD Message-ID: <4.2.0.54.19990524144013.00a55ed0@193.189.189.100> In-Reply-To: <XFMail.990524221158.keith@apcs.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
How would one write this in more portable way? Allowing it to work on Linux and *BSD at least? if (ioctl(0, TIOCMIWAIT, TIOCM_CD) < 0) { syslog(LOG_WARNING, "waiting for DCD: %m"); unlock(mainconf.lockdir, lc->tty); return -1; } --- FreeBSD doesn't have TIOCMIWAIT. Thanks in advance. Tomaz ---- Tomaz Borstnar <tomaz.borstnar@over.net> "Love is the answer to the final question you ask" - Unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.0.54.19990524144013.00a55ed0>