stty(3) Library Functions Manual stty(3)Name
stty, gtty - set and get terminal state
Syntax
#include <sgtty.h>
stty(fd, buf)
int fd;
struct sgttyb *buf;
gtty(fd, buf)
int fd;
struct sgttyb *buf;
Description
This interface has been superseded by
The subroutine sets the state of the terminal associated with fd. The subroutine retrieves the state of the terminal associated with fd.
To set the state of a terminal the call must have write permission.
The call is actually ``ioctl(fd, TIOCSETP, buf)'', while the call is ``ioctl(fd, TIOCGETP, buf)''. See and for an explanation.
Return Values
If the call is successful 0 is returned, otherwise -1 is returned and the global variable errno contains the reason for the failure.
See Alsoioctl(2), tty(4)stty(3)
Check Out this Related Man Page
stty(2) System Calls Manual stty(2)NAME
stty(), gtty() - control terminal device (Bell Version 6 compatibility)
SYNOPSIS
Remarks
These system calls are preserved for backward compatibility with Bell Version 6. They provide as close an approximation as possible to the
old Version 6 functions. All new code should use the and calls described in termio(7).
DESCRIPTION
For certain status settings and status inquiries about terminal devices, the functions and are equivalent to
and
respectively (see ioctl(2) and termio(7).
RETURN VALUE
and return the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If or fails, is set to one of the following values:
[EBADF] is not a valid file descriptor.
[EFAULT] points to an invalid address.
WARNINGS
Obsolescent Interfaces
and are to be obsoleted at a future date.
SEE ALSO stty(1), exec(2), ioctl(2), sttyV6(7), termio(7), tty(7).
TO BE OBSOLETED stty(2)
what does shadowing a file means? for instance gtty process reads /etc/psswd file and "shadow" password file(if it exists). i.e whats the difference between reading it and shadowing. (2 Replies)
Hi there,
Am very very interested in system level programming in C????
Please give me a good site or a sample program to start with..
will be of a great help to me..
Thanks,
Nisha (7 Replies)
Hi,
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)
Dear all,
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)
Hello!
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:
# ./configure
checking for a... (3 Replies)
Please help!
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)
Hi,
I have install tcl and then expect but I am getting below ouput while trying which expect
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.
==============================================================================
# ntpstat
unsynchronised
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)