The file /dev/ptmx is the device node used by applications to open STREAMS-based master pseudo-tty devices. This is a single device node which allows access to multiple devices via the clone(M) driver. Successive open(S) calls to /dev/ptmx return different file descriptors, each referring to a new cloned device.
The master pseudo-tty device opened is used to transfer data between the application and one of the slave pseudo-tty nodes /dev/pts???, where ??? is a 3 digit decimal number with leading zeros.
AT&T STREAMS Programmer's Guide
AT&T STREAMS Primer
SCO OpenServer Release 5.0.6 -- 1 August 2000