Skip to content

Commit bb13443

Browse files
committed
Update comments about old O_NDELAY
1 parent de0999f commit bb13443

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modbus-rtu.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)