1TCSENDBREAK(3P) POSIX Programmer's Manual TCSENDBREAK(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 tcsendbreak - send a break for a specific duration
13
15 #include <termios.h>
16
17 int tcsendbreak(int fildes, int duration);
18
19
21 If the terminal is using asynchronous serial data transmission, tcsend‐
22 break() shall cause transmission of a continuous stream of zero-valued
23 bits for a specific duration. If duration is 0, it shall cause trans‐
24 mission of zero-valued bits for at least 0.25 seconds, and not more
25 than 0.5 seconds. If duration is not 0, it shall send zero-valued bits
26 for an implementation-defined period of time.
27
28 The fildes argument is an open file descriptor associated with a termi‐
29 nal.
30
31 If the terminal is not using asynchronous serial data transmission, it
32 is implementation-defined whether tcsendbreak() sends data to generate
33 a break condition or returns without taking any action.
34
35 Attempts to use tcsendbreak() from a process which is a member of a
36 background process group on a fildes associated with its controlling
37 terminal shall cause the process group to be sent a SIGTTOU signal. If
38 the calling process is blocking or ignoring SIGTTOU signals, the
39 process shall be allowed to perform the operation, and no signal is
40 sent.
41
43 Upon successful completion, 0 shall be returned. Otherwise, -1 shall be
44 returned and errno set to indicate the error.
45
47 The tcsendbreak() function shall fail if:
48
49 EBADF The fildes argument is not a valid file descriptor.
50
51 ENOTTY The file associated with fildes is not a terminal.
52
53
54 The tcsendbreak() function may fail if:
55
56 EIO The process group of the writing process is orphaned, and the
57 writing process is not ignoring or blocking SIGTTOU.
58
59
60 The following sections are informative.
61
63 None.
64
66 None.
67
69 None.
70
72 None.
73
75 The Base Definitions volume of IEEE Std 1003.1-2001, Chapter 11, Gen‐
76 eral Terminal Interface, <termios.h>, <unistd.h>
77
79 Portions of this text are reprinted and reproduced in electronic form
80 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
81 -- Portable Operating System Interface (POSIX), The Open Group Base
82 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
83 Electrical and Electronics Engineers, Inc and The Open Group. In the
84 event of any discrepancy between this version and the original IEEE and
85 The Open Group Standard, the original IEEE and The Open Group Standard
86 is the referee document. The original Standard can be obtained online
87 at http://www.opengroup.org/unix/online.html .
88
89
90
91IEEE/The Open Group 2003 TCSENDBREAK(3P)