From owner-freebsd-questions@freebsd.org Mon Oct 10 22:52:59 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 422B8C0CE49 for ; Mon, 10 Oct 2016 22:52:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CC1628BE for ; Mon, 10 Oct 2016 22:52:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-117-205.dynamic.qsc.de [92.195.117.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 930E9276A9 for ; Tue, 11 Oct 2016 00:52:55 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u9AMqtso002295 for ; Tue, 11 Oct 2016 00:52:55 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 11 Oct 2016 00:52:55 +0200 From: Polytropon To: freebsd-questions@freebsd.org Subject: Re: Call-out ports renamed cuadX -> cuauX -- when? Message-Id: <20161011005255.a54c4215.freebsd@edvax.de> In-Reply-To: <20161011002250.067f2b85.freebsd@edvax.de> References: <20161011002250.067f2b85.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2016 22:52:59 -0000 Addition: On my FreeBSD 8 home system, "man 4 sio" contains the following convention in the FILES section: /dev/ttyd? for callin ports /dev/ttyd?.init /dev/ttyd?.lock corresponding callin initial-state and lock-state devices /dev/cuad? for callout ports /dev/cuad?.init /dev/cuad?.lock corresponding callout initial-state and lock-state devices /etc/rc.d/serial examples of setting the initial-state and lock-state devices The same text is in the 10.3 manpage. But as I said, those do not seem to (automatically?) exist: crw-rw---- 1 uucp dialer 0, 49 2016-10-10 23:49:07 /dev/cuau0 crw-rw---- 1 uucp dialer 0, 50 2016-10-10 23:49:07 /dev/cuau0.init crw-rw---- 1 uucp dialer 0, 51 2016-10-10 23:49:07 /dev/cuau0.lock and: crw------- 1 root wheel 0, 46 2016-10-10 23:49:07 /dev/ttyu0 crw------- 1 root wheel 0, 47 2016-10-10 23:49:07 /dev/ttyu0.init crw------- 1 root wheel 0, 48 2016-10-10 23:49:07 /dev/ttyu0.lock So the naming change mentioned in The FreeBSD Handbook, section 25.2.1. Serial Cables and Ports: Call-out ports are named /dev/cuauN on FreeBSD versions 10.x and higher and /dev/cuadN on FreeBSD versions 9.x and lower. doesn't seem to apply, even though the manpages state something different. I then checked on a FreeBSD 5 system, and guess what I found? Some ttyd files, but no cuad files (but cuaa files, as expected): The version 5.4 "man 4 sio" FILES section states: /dev/ttyd? for callin ports /dev/ttyid? /dev/ttyld? corresponding callin initial-state and lock-state devices /dev/cuaa? for callout ports /dev/cuaia? /dev/cuala? corresponding callout initial-state and lock-state devices And the corresponding files (two serial ports on that machine): crw-rw---- 1 uucp dialer 239, 128 10 Okt 23:29 /dev/cuaa0 crw-rw---- 1 uucp dialer 239, 129 10 Okt 23:29 /dev/cuaa1 crw-rw---- 1 uucp dialer 238, 160 10 Okt 23:29 /dev/cuaia0 crw-rw---- 1 uucp dialer 238, 161 10 Okt 23:29 /dev/cuaia1 crw-rw---- 1 uucp dialer 238, 192 10 Okt 23:29 /dev/cuala0 crw-rw---- 1 uucp dialer 238, 193 10 Okt 23:29 /dev/cuala1 crw------- 1 root wheel 239, 0 10 Okt 23:29 /dev/ttyd0 crw------- 1 root wheel 239, 1 10 Okt 23:29 /dev/ttyd1 crw------- 1 root wheel 238, 32 10 Okt 23:29 /dev/ttyid0 crw------- 1 root wheel 238, 33 10 Okt 23:29 /dev/ttyid1 crw------- 1 root wheel 238, 64 10 Okt 23:29 /dev/ttyld0 crw------- 1 root wheel 238, 65 10 Okt 23:29 /dev/ttyld1 There must be an interesting reason for that. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...