@@ -638,7 +638,7 @@ static int _modbus_rtu_connect(modbus_t *ctx)
638
638
signals and so forth) will affect your process
639
639
640
640
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 */
642
642
flags = O_RDWR | O_NOCTTY | O_NONBLOCK | O_EXCL ;
643
643
#ifdef O_CLOEXEC
644
644
flags |= O_CLOEXEC ;
@@ -816,7 +816,7 @@ static int _modbus_rtu_connect(modbus_t *ctx)
816
816
UNIX serial interface drivers provide the ability to
817
817
specify character and packet timeouts. Two elements of the
818
818
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
820
820
option is set on the file via open or fcntl.
821
821
822
822
VMIN specifies the minimum number of characters to read. If
@@ -846,9 +846,9 @@ static int _modbus_rtu_connect(modbus_t *ctx)
846
846
VTIME specifies the amount of time to wait for incoming
847
847
characters in tenths of seconds. If VTIME is set to 0 (the
848
848
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.
850
850
*/
851
- /* Unused because we use open with the NDELAY option */
851
+ /* Unused because we use open with the NONBLOCK option */
852
852
tios .c_cc [VMIN ] = 0 ;
853
853
tios .c_cc [VTIME ] = 0 ;
854
854
0 commit comments