[QNX]telnetd: All network ports in use.

telnetd 需要用到 /dev/ttyp0, 请确保 devc-pty 服务已经开启

运行 devc-pty -n5 & 后查看设备节点如下

# ls -l /dev/tt*
crw-rw-rw-  1 root      0            1,   2 Dec 12 15:24 /dev/tty
crw--w----  1 root      0            7,   0 Dec 12 15:24 /dev/ttyp0
crw-rw-rw-  1 root      0            7,   1 Dec 12 15:24 /dev/ttyp1
crw-rw-rw-  1 root      0            7,   2 Dec 12 15:24 /dev/ttyp2
crw-rw-rw-  1 root      0            7,   3 Dec 12 15:24 /dev/ttyp3
crw-rw-rw-  1 root      0            7,   4 Dec 12 15:24 /dev/ttyp4
# 

再次远程 telnetd 即可成功运行

QNX Neutrino (localhost) (ttyp0)

# ls -l 

devc-pty
Pseudo-tty communications manager (QNX Neutrino)


Note You must be root to start this manager.

Syntax:
devc-pty [options] &Runs on:
Neutrino

Options:
-C size
Specify the size of the canonical buffer in bytes (default 256).
-I size
Size of input buffer in bytes (default 256).
-n numptys
Create numptys ptys (default 8).
-O size
Size of output buffer in bytes (default 3 × 512).
-o nodaemon
Don’t call procmgr_daemon() to make the driver run in the background. Use this option if you need to know when the devc-pty device terminates.

Description:
The devc-pty manager is a small pseudo-tty manager for QNX Neutrino. It can support up to 256 ptys, using the naming scheme:

pty[p-zP-T][0-9a-f] for the master device
tty[p-zP-T][0-9a-f] for the slave device

The master and slave device pair share the same letter and hexadecimal digit.

Examples:
Start devc-pty with 32 ptys:

devc-pty -n 32 &