From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15163 invoked from network); 2 Mar 1998 01:23:41 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 2 Mar 1998 01:23:41 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.5/8.8.5) id SAA30016 for axp-list@redhat.com; Sun, 1 Mar 1998 18:24:01 -0700 From: Michal Jaegermann Message-Id: <199803020124.SAA30016@ellpspace.math.ualberta.ca> Subject: Re: Modem troubles To: axp-list@redhat.com Date: Sun, 1 Mar 1998 18:24:00 -0700 (MST) In-Reply-To: <01BD4530.D1073860@adialup55.ptld.uswest.net> from "James Woodruff" at Mar 1, 98 04:40:25 pm Content-Type: text > > I have linked /dev/modem to /dev/cua1 > lrwxrwxrwx 1 root root 4 Feb 12 08:55 /dev/modem -> cua1 Ok, once again it looks like it is a time for a periodic post. I wonder when a need for this will vanish. In case somebody wonders Ted Ts'o authored, among other things, a serial port code for Linux. Ah, don't tell me that Red Hat tools set your modem on cuaXX interface as well. Red Hat also could use some reading time once in a while. From: "Theodore Y. Ts'o" To: Tony Nugent Cc: linux-net@vger.rutgers.edu, linux-ppp@vger.rutgers.edu Subject: Re: /dev/cua? Vs /dev/ttyS? (was: Re: co-existance of pppd and mgetty ?) Date: Mon, 13 May 1996 19:51:04 +0200 Status: ROr Date: Mon, 13 May 1996 07:57:09 +1000 From: Tony Nugent Can someone kindly explain the difference between the /dev/cua? and /dev/ttyS? devices? /dev/ttySxx devices are fully POSIX-compliant TTY devices. If you are only going to be using one set of tty devices, you should be using /dev/ttySxx. /dev/cuaXX devices are different from /dev/ttySXX in two ways --- first of all, they will allow you to open the device even if CLOCAL is not set and the O_NONBLOCK flag was not given to the open device. This allows programs that don't use the POSIX-mondated interface for opening /dev/ttySxx devices to be able to use /dev/cuaXX to make outgoing phone calls on their modem (cu stands for "callout", and is taken from SunOS). The second way in which /dev/cuaXX differs from /dev/ttySXX is that if they are used, they will trigger a simplistic kernel-based locking scheme: If /dev/ttySXX is opened by one or more processes, then an attempt to open /dev/cuaXX will return EAGAIN. If /dev/cuaXX is opened by one or more processes, then an attempt to open /dev/ttySXX will result the open blocking until /dev/cuaXX is closed, and the carrier detect line goes high. While this will allow for simple lockouts between a user using a modem for callout and a getty listening on the line for logins, it doesn't work if you need to arbitrate between multiple programs wanting to do dialout --- for example, users wanting to do dialout and UUCP. I originally implemented the cuaXX/ttySXX lockout mechanism back before FSSTND established a standard convention for the use of tty lock files. Now that it's there, people should use the tty lock files and not try using /dev/cuaXX. The only reason why /dev/cuaXX hasn't disappeared yet is for backwards compatibility reasons. - Ted > > Problems: > When I start minicom (with the -s option), minicom launches then hangs during the initialization > of the modem phase. Cannot tell that for sure, as I did not have an opportunity to test it, but I would be not surprised at all if glibs, which follows closesly POSIX standards, would break /dev/cuaXX interfaces for good. On the other hand I cannot exclude that serial ports in 5.0 are simply broken. Just do not know. Michal p.s. Could you please hit once for a while. Lines well over 70 characters in lengths are quite unreadable and not acceptable according to long established customs of netiquette. When confronted with a message with such long lines more often than not I simply chuck it to a bit-bucket without even trying to read it.