It's good to see that my querry has kicked off a halluva lot of
response. But hardly any of those was of use. Forgive me if I am worng,
but it seems that the LIH has become a forum for personal mails and
communication! My original problem remains.
BTW, I have tried using /dev/mouse, which should be OK as it is pointed
to /dev/psaux (as many of you have pointed out that /dev/cuaX are a
history) or whatever it might be. Even if the mouse is plugged out, I am
still not able to get the status different from what I get when it is
plugged in!
ioctl(fd, TIOCMGET, &flags); /* fd is the opened device
/dev/mouse */
status = (flags & TIOCM_CTS);
printf("%d\n",status);
Surly, there must be some C and Linux gurus to answer my questions?
Madhurjya
--
----------------------------------------------------------------------
Dr. Madhurjya P. Bora
Office : Home :
Physics Department Flat-2, Unit-12
Gauhati University Gauhati University Campus
Guwahati, Assam 781 014, India. Gauhati University
Guwahati, Assam 781 014, India.
Phone : +91-361-570531 (O)
+91-361-574165 (H)
Fax : +91-361-570133
E-mail : [EMAIL PROTECTED]
[EMAIL PROTECTED]
----------------------------------------------------------------------
-----------------------------------------------------------------------
LIH is all for free speech. But it was created for a purpose - to help
people discuss issues about installing and running Linux. If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.