| TIOCSSOFTCAR(2const) | TIOCSSOFTCAR(2const) |
TIOCGSOFTCAR, TIOCSSOFTCAR - marking a line as local
Standard C library (libc, -lc)
#include <asm/termbits.h> /* Definition of TIOC*SOFTCAR constants */ #include <sys/ioctl.h>
int ioctl(int fd, TIOCGSOFTCAR, int *argp); int ioctl(int fd, TIOCSSOFTCAR, const int *argp);
If the CLOCAL flag for a line is off, the hardware carrier detect (DCD) signal is significant, and an open(2) of the corresponding terminal will block until DCD is asserted, unless the O_NONBLOCK flag is given. If CLOCAL is set, the line behaves as if DCD is always asserted. The software carrier flag is usually turned on for local devices, and is off for lines with modems.
On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.
| 2024-06-13 | Linux man-pages 6.9.1 |