1TCSENDBREAK(3P)            POSIX Programmer's Manual           TCSENDBREAK(3P)
2
3
4

PROLOG

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
11

NAME

13       tcsendbreak — send a break for a specific duration
14

SYNOPSIS

16       #include <termios.h>
17
18       int tcsendbreak(int fildes, int duration);
19

DESCRIPTION

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 thread is blocking SIGTTOU signals or the process is ignor‐
39       ing SIGTTOU signals, the process shall be allowed to perform the opera‐
40       tion, and no signal is sent.
41

RETURN VALUE

43       Upon successful completion, 0 shall be returned. Otherwise, −1 shall be
44       returned and errno set to indicate the error.
45

ERRORS

47       The tcsendbreak() function shall fail if:
48
49       EBADF  The fildes argument is not a valid file descriptor.
50
51       EIO    The process group of the writing process is orphaned, the  call‐
52              ing  thread  is  not  blocking  SIGTTOU,  and the process is not
53              ignoring SIGTTOU.
54
55       ENOTTY The file associated with fildes is not a terminal.
56
57       The following sections are informative.
58

EXAMPLES

60       None.
61

APPLICATION USAGE

63       None.
64

RATIONALE

66       None.
67

FUTURE DIRECTIONS

69       None.
70

SEE ALSO

72       The Base Definitions volume of POSIX.1‐2008, Chapter 11, General Termi‐
73       nal Interface, <termios.h>
74
76       Portions  of  this text are reprinted and reproduced in electronic form
77       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
78       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
79       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
80       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
81       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
82       event of any discrepancy between this version and the original IEEE and
83       The Open Group Standard, the original IEEE and The Open Group  Standard
84       is  the  referee document. The original Standard can be obtained online
85       at http://www.unix.org/online.html .
86
87       Any typographical or formatting errors that appear  in  this  page  are
88       most likely to have been introduced during the conversion of the source
89       files to man page format. To report such errors,  see  https://www.ker
90       nel.org/doc/man-pages/reporting_bugs.html .
91
92
93
94IEEE/The Open Group                  2013                      TCSENDBREAK(3P)
Impressum