stty, gtty - set and get terminal state (defunct)
struct sgttyb *buf;
struct sgttyb *buf;
This interface is obsoleted by ioctl(2).
Stty sets the state of the terminal associated with fd. Gtty retrieves the state of the terminal associated with fd. To set the state of
a terminal the call must have write permission.
The stty call is actually ``ioctl(fd, TIOCSETP, buf)'', while the gtty call is ``ioctl(fd, TIOCGETP, buf)''. See ioctl(2) and tty(4) for
If the call is successful 0 is returned, otherwise -1 is returned and the global variable errno contains the reason for the failure.
SEE ALSO ioctl(2), tty(4)4.2 Berkeley Distribution May 15, 1985 STTY(3C)
Check Out this Related Man Page
TTY(4) Linux Programmer's Manual TTY(4)NAME
tty - controlling terminal
The file /dev/tty is a character file with major number 5 and minor number 0, usually of mode 0666 and owner.group root.tty. It is a syn-
onym for the controlling terminal of a process, if any.
In addition to the ioctl() requests supported by the device that tty refers to, the following ioctl() request is supported:
Detach the current process from its controlling terminal, and remove it from its current process group, without attaching it to a
new process group (that is, set its process group ID to zero). This ioctl() call only works on file descriptors connected to
/dev/tty; this is used by daemon processes when they are invoked by a user at a terminal. The process attempts to open /dev/tty; if
the open succeeds, it detaches itself from the terminal by using TIOCNOTTY, while if the open fails, it is obviously not attached to
a terminal and does not need to detach itself.
SEE ALSO mknod(1), chown(1), getty(1), termios(3), console(4), ttys(4)Linux 1992-01-21 TTY(4)
I have a strange problem. we're trying to connect an IBM pseries, to a Brocade switch, for SAN acess, using a badged emulex card, (IBM FC6239) WE can configure the device to see the fabric. The only problem we have is that the Brocade sees the HBA as storage, and not as a HBA.
We've zoned... (1 Reply)
This is my first post to the forum so hopefully I am doing this right. I have only several months experience with AIX and my previous unix experience has been BSDs and linux. I ran into some issues recently with the HMC vterm for one for the LPAR.
There are two LPARs created on one... (1 Reply)
I have an ESX Server up and running. Now I want to connect a serial device to the COM Port. For that I need the minicom program.
When I try "configure - make - make all" I get some errors. Can someone please explain to me, what the problems are:
checking for a... (3 Replies)
We are upgrading our server to a new Power7/AIX6.1 from Power5/AIX5.3. I have some programs that rely on output of the TOP command to do various things, however, I keep getting an error when I try to re-compile TOP on my new server (see below). I have tried TOP 3.7 (current... (1 Reply)
I have install tcl and then expect but I am getting below ouput while trying which expect
/usr/bin/which: no expect in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
I have copied both in... (6 Replies)
Someone, please help on this issue:-
Note : for security reason i didn't mention hostnames and ips.
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)