I have to create a new pair of tty (master and slave) without using forkpty().
In the man of pts(4), it is written that :
When a process opens /dev/ptmx, it gets a file descriptor for a pseudo-terminal master (PTM), and a pseudo-terminal slave (PTS) device is created in the /dev/pts directory.
With a little program in C, I open /dev/ptmx like that :
open("/dev/ptmx", O_RDWR);
But there is no new pty created in /dev/pts/.