06-01-2011
I didn't know about tcdrain.
I will test it tomorrow.
According to man: The tcdrain() function waits until all output written to the terminal referenced by fildes has been transmitted to the
terminal.
What is called terminal? is it hardware? if it is it's exactly the same as cdc-acm does currently: it controls urbs going to device and doesn't control if urbs are sent really.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi guys i know a litter bit of sco openserver 5.0.6 I got my self a 5.0.7 version.
The problem is how do you install a usb modem?
The way i'm used to doit is by serial port , you know tty1A .
Please guys bear with me
Thanks a lot
Jose. (1 Reply)
Discussion started by: josramon
1 Replies
2. Solaris
Hi,
I have USB Siemens Santis 100 ADSL modem.I need driver for this modem on Solaris 10.Please help me with some info.Platform is x86.Thanks. (2 Replies)
Discussion started by: Upravnik
2 Replies
3. Solaris
Hello There,
I just wanted to know if there is any possible configuration for setting up my external USR USB Modem in Solaris 9 (x86). Any help is definitely appreciated.
Thanks
Khurram Bashir (1 Reply)
Discussion started by: khurram
1 Replies
4. Linux
I have a serial modem connected to a usb port using an adapter cable. The system is a HP DL360. RedHat ES3.0
I am using the device /dev/ttyUSB0
When I issue the command "mgetty ttyUSB0" I get the following output in the log file.
How do I get the system to see the modem.
12/02 14:17:55... (2 Replies)
Discussion started by: jshoovie
2 Replies
5. Solaris
Hello all,
granted that I am an absolute beginner with Solaris, I'd like to use my adsl modem, t's a Zyxel prestige 630.
I managed to install and configure it under Ubuntu using the drivers from Conexant AccessRunner ADSL USB modems with Linux ; is there a chance to do the same under Solaris 10... (0 Replies)
Discussion started by: clalfa
0 Replies
6. UNIX for Dummies Questions & Answers
Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive.
Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies
7. Solaris
In ubuntu etopic i create this udev rules for prolink 3g usb modem:
SUBSYSTEM=="block",
SUBSYSTEM=="scsi",
ATTRS{idVendor}=="1e0e",
ATTRS{idProduct}=="f000",
ACTION=="add",
RUN+="/sbin/modprobe usbserial Vendor=0X1e0e Product=0Xf000"
After plugging the usb modem, ubuntu assigns the ports... (4 Replies)
Discussion started by: shamsat
4 Replies
8. Solaris
hi,
I am new to solaris, i download the solaris 11.2 support library and as well search the google but didn't find any information about how to setup usb 3g modem in solaris 11.2, any one can please help me with giving any information or web link? (6 Replies)
Discussion started by: shamsat
6 Replies
LEARN ABOUT OSX
tcsendbreak
TCSENDBREAK(3) BSD Library Functions Manual TCSENDBREAK(3)
NAME
tcdrain, tcflow, tcflush, tcsendbreak -- line control functions
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <termios.h>
int
tcdrain(int fildes);
int
tcflow(int fildes, int action);
int
tcflush(int fildes, int action);
int
tcsendbreak(int fildes, int duration);
DESCRIPTION
The tcdrain() function waits until all output written to the terminal referenced by fildes has been transmitted to the terminal.
The tcflow() function suspends transmission of data to, or the reception of data from, the terminal referenced by fildes, depending on the
value of action. The value of action must be one of the following:
TCOOFF Suspend output.
TCOON Restart suspended output.
TCIOFF Transmit a STOP character, which is intended to cause the terminal to stop transmitting data to the system. (See the description of
IXOFF in the 'Input Modes' section of termios(4)).
TCION Transmit a START character, which is intended to cause the terminal to start transmitting data to the system. (See the description
of IXOFF in the 'Input Modes' section of termios(4)).
The tcflush() function discards any data written to the terminal referenced by fildes which has not been transmitted to the terminal, or any
data received from the terminal but not yet read, depending on the value of action. The value of action must be one of the following:
TCIFLUSH Flush data received but not read.
TCOFLUSH Flush data written but not transmitted.
TCIOFLUSH Flush both data received but not read and data written but not transmitted.
The tcsendbreak() function transmits a continuous stream of zero-valued bits for four-tenths of a second to the terminal referenced by
fildes. The duration parameter is ignored in this implementation.
RETURN VALUES
Upon successful completion, all of these functions return a value of zero.
ERRORS
If any error occurs, a value of -1 is returned and the global variable errno is set to indicate the error, as follows:
[EBADF] The fildes argument is not a valid file descriptor.
[EINTR] A signal interrupted the tcdrain() function.
[EINVAL] The action argument is not a proper value.
[ENOTTY] The file associated with fildes is not a terminal.
SEE ALSO
tcsetattr(3), termios(4)
STANDARDS
The tcsendbreak(), tcdrain(), tcflush() and tcflow() functions are expected to be compliant with the IEEE Std 1003.1-1988 (``POSIX.1'') spec-
ification.
BSD
June 4, 1993 BSD