@@ -638,7 +638,7 @@ static int _modbus_rtu_connect(modbus_t *ctx)
638638 signals and so forth) will affect your process
639639
640640 Timeouts are ignored in canonical input mode or when the
641- NDELAY option is set on the file via open or fcntl */
641+ NONBLOCK option is set on the file via open or fcntl */
642642 flags = O_RDWR | O_NOCTTY | O_NONBLOCK | O_EXCL ;
643643#ifdef O_CLOEXEC
644644 flags |= O_CLOEXEC ;
@@ -816,7 +816,7 @@ static int _modbus_rtu_connect(modbus_t *ctx)
816816 UNIX serial interface drivers provide the ability to
817817 specify character and packet timeouts. Two elements of the
818818 c_cc array are used for timeouts: VMIN and VTIME. Timeouts
819- are ignored in canonical input mode or when the NDELAY
819+ are ignored in canonical input mode or when the NONBLOCK
820820 option is set on the file via open or fcntl.
821821
822822 VMIN specifies the minimum number of characters to read. If
@@ -846,9 +846,9 @@ static int _modbus_rtu_connect(modbus_t *ctx)
846846 VTIME specifies the amount of time to wait for incoming
847847 characters in tenths of seconds. If VTIME is set to 0 (the
848848 default), reads will block (wait) indefinitely unless the
849- NDELAY option is set on the port with open or fcntl.
849+ NONBLOCK option is set on the port with open or fcntl.
850850 */
851- /* Unused because we use open with the NDELAY option */
851+ /* Unused because we use open with the NONBLOCK option */
852852 tios .c_cc [VMIN ] = 0 ;
853853 tios .c_cc [VTIME ] = 0 ;
854854
0 commit comments