Home | History | Annotate | only in /src/lib/libc/termios
History log of /src/lib/libc/termios
RevisionDateAuthorComments
 1.5 25-Oct-2017  kre Implement tcgetwinsize() and tcsetwinsize() in libc, with access
via <termios.h> (and document them.) Bump libc minor number for them.

Arrange for "struct winsize" to become visible in <termios.h>

Fix stty(1) so that "cols" is reported as the arg to set number of columns,
and "columns" is the alias, rather than the other way around, as "cols" is
what has been added to POSIX.

This is to conform with updates to be included in 1003.1 issue 8
(whenever that gets published) currently available at:
http://austingroupbugs.net/view.php?id=1053 (see note 3863)
http://austingroupbugs.net/view.php?id=1151 (see note 3856)
 1.4 14-Feb-1998  kleink Add tcgetsid.c (for thorpej).
 1.3 14-Feb-1998  thorpej Add tcgetsid.3
 1.2 25-Apr-1995  christos Fix typo...
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.8 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.7 07-Aug-2003  agc branches: 1.7.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.6 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.5 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.4 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.3 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 25-Apr-1995  jtc branches: 1.1.4;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.7.56.1 30-Oct-2012  yamt sync with head
 1.8 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.7 07-Aug-2003  agc branches: 1.7.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.6 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.5 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.4 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.3 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 25-Apr-1995  jtc branches: 1.1.4;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.7.56.1 30-Oct-2012  yamt sync with head
 1.10 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.9 07-Aug-2003  agc branches: 1.9.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.7 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.6 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.5 18-Aug-1998  msaitoh clear IMAXBEL bit (fixes PR#2703)
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.9.56.1 30-Oct-2012  yamt sync with head
 1.8 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.7 07-Aug-2003  agc branches: 1.7.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.6 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.5 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.4 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.3 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 25-Apr-1995  jtc branches: 1.1.4;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.7.56.1 30-Oct-2012  yamt sync with head
 1.8 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.7 07-Aug-2003  agc branches: 1.7.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.6 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.5 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.4 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.3 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 25-Apr-1995  jtc branches: 1.1.4;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.7.56.1 30-Oct-2012  yamt sync with head
 1.8 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.7 07-Aug-2003  agc branches: 1.7.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.6 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.5 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.4 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.3 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 25-Apr-1995  jtc branches: 1.1.4;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.4.1 20-Sep-1996  jtc snapshot namespace cleanup: net, etc.
 1.7.56.1 30-Oct-2012  yamt sync with head
 1.9 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.8 07-Aug-2003  agc branches: 1.8.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.6 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.8.56.1 30-Oct-2012  yamt sync with head
 1.9 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.8 07-Aug-2003  agc branches: 1.8.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.6 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.8.56.1 30-Oct-2012  yamt sync with head
 1.10 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.9 07-Aug-2003  agc branches: 1.9.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.7 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.6 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.5 12-Feb-1999  kleink <sys/fcntl.h> -> <fcntl.h>
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.9.56.1 30-Oct-2012  yamt sync with head
 1.10 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.9 07-Aug-2003  agc branches: 1.9.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 30-Sep-2001  lukem don't bother checking _DIAGASSERT(fd != -1), since the underlying
ioctl(2) will check it and return EBADF, and i got sick of the warnings
from programs like sshd which occassionally call isatty() with bad fds.
 1.7 22-Jan-2000  mycroft branches: 1.7.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.6 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.7.6.1 08-Oct-2001  nathanw Catch up to -current.
 1.9.56.1 30-Oct-2012  yamt sync with head
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.10 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.9 29-Apr-2002  simonb Remove <sys/types.h> from synopsis, as per latest SUS/Posix specs.
 1.8 07-Feb-2002  ross Generate <>& symbolically.
 1.7 05-Feb-1998  perry branches: 1.7.12;
add LIBRARY section to man page
 1.6 05-Feb-1998  perry remove illegal quotes from .Dd directives
 1.5 02-Feb-1998  perry merge lite-2
 1.4 22-Jul-1997  mikel xref setpgid(2), not nonexistent setpgid(3)
 1.3 14-Jul-1997  kleink Add missing `STANDARDS' compliance statements. As we #define _POSIX_VERSION
to 199009L, bump existing statements to 1003.1-1990.
 1.2 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.1 25-Apr-1995  jtc branches: 1.1.1;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.1.1 02-Feb-1998  perry import lite-2
 1.7.12.3 21-Jun-2002  nathanw Catch up to -current.
 1.7.12.2 22-Mar-2002  nathanw Catch up to -current.
 1.7.12.1 08-Mar-2002  nathanw Catch up to -current.
 1.10 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.9 01-Dec-2004  dsl branches: 1.9.50;
Change a returned value of -1 (NO_PGID) to (uint)(pid_t)~0u >> 1 (0x7fffffff)
to satisfy the SuSv3/POSIX-2004/etc requirement that "If there is no
foreground process group, tcgetpgrp() shall return a value greater than 1
that does not match the process group ID of any existing process group."
Should fix PR standards/28493 and zsh.
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.6 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.9.50.1 30-Oct-2012  yamt sync with head
 1.6 19-Dec-2019  leot tcgetsid() is defined in <termios.h>, not <sys/types.h> or <unistd.h>.
 1.5 07-Aug-2003  agc branches: 1.5.98;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.4 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.3 01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.2 07-Feb-2002  ross Generate <>& symbolically.
 1.1 14-Feb-1998  thorpej branches: 1.1.12;
Implement tcgetsid(3) - get session ID associated with a controlling
terminal, per XPG4.2.
 1.1.12.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.12.2 22-Mar-2002  nathanw Catch up to -current.
 1.1.12.1 08-Mar-2002  nathanw Catch up to -current.
 1.5.98.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.6 07-Aug-2003  agc branches: 1.6.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.5 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.4 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.3 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.2 15-Feb-1998  thorpej Sigh, pasto.
 1.1 14-Feb-1998  thorpej Implement tcgetsid(3) - get session ID associated with a controlling
terminal, per XPG4.2.
 1.6.56.1 30-Oct-2012  yamt sync with head
 1.2 30-Oct-2017  wiz Remove empty Fd. Use minus for return value. End list. Sort SEE ALSO.
 1.1 25-Oct-2017  kre Implement tcgetwinsize() and tcsetwinsize() in libc, with access
via <termios.h> (and document them.) Bump libc minor number for them.

Arrange for "struct winsize" to become visible in <termios.h>

Fix stty(1) so that "cols" is reported as the arg to set number of columns,
and "columns" is the alias, rather than the other way around, as "cols" is
what has been added to POSIX.

This is to conform with updates to be included in 1003.1 issue 8
(whenever that gets published) currently available at:
http://austingroupbugs.net/view.php?id=1053 (see note 3863)
http://austingroupbugs.net/view.php?id=1151 (see note 3856)
 1.1 25-Oct-2017  kre Implement tcgetwinsize() and tcsetwinsize() in libc, with access
via <termios.h> (and document them.) Bump libc minor number for them.

Arrange for "struct winsize" to become visible in <termios.h>

Fix stty(1) so that "cols" is reported as the arg to set number of columns,
and "columns" is the alias, rather than the other way around, as "cols" is
what has been added to POSIX.

This is to conform with updates to be included in 1003.1 issue 8
(whenever that gets published) currently available at:
http://austingroupbugs.net/view.php?id=1053 (see note 3863)
http://austingroupbugs.net/view.php?id=1151 (see note 3856)
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.7 07-Feb-2002  ross Generate <>& symbolically.
 1.6 16-Sep-2001  wiz Punctuation nits.
 1.5 05-Feb-1998  perry branches: 1.5.12;
add LIBRARY section to man page
 1.4 05-Feb-1998  perry remove illegal quotes from .Dd directives
 1.3 02-Feb-1998  perry merge lite-2
 1.2 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.1 25-Apr-1995  jtc branches: 1.1.1;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.1.1 02-Feb-1998  perry import lite-2
 1.5.12.3 22-Mar-2002  nathanw Catch up to -current.
 1.5.12.2 08-Mar-2002  nathanw Catch up to -current.
 1.5.12.1 08-Oct-2001  nathanw Catch up to -current.
 1.10 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.9 07-Aug-2003  agc branches: 1.9.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.7 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.6 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.5 15-Nov-1998  christos delint:
- argsused for len
- use nanosleep instead of select to delay.
 1.4 31-Mar-1998  kleink Remove some unnecessary header file inclusions (<sys/tty.h> was one them!).
 1.3 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 25-Apr-1995  jtc branches: 1.1.4;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.9.56.1 30-Oct-2012  yamt sync with head
 1.13 22-Mar-2010  joerg Use .In for header files instead of .Ar Pa and variations.
 1.12 01-May-2004  wiz Mention that cfmakeraw needs an initialized termios structure.
Addresses PR 25371.
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.10 10-May-2003  wiz Misc. fixes from jmc@openbsd.
 1.9 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.8 07-Feb-2002  ross Generate <>& symbolically.
 1.7 09-Jan-2002  kleink Improve wording a bit; from John Heasley in PR lib/15194.
 1.6 16-Sep-2001  wiz Punctuation nits.
 1.5 05-Feb-1998  perry branches: 1.5.12;
add LIBRARY section to man page
 1.4 02-Feb-1998  perry merge lite-2
 1.3 01-Oct-1997  kleink Sync prototype of cfsetspeed() with code; from Matthias Scheler
<tron@lyssa.owl.de> in PR misc/4192.
 1.2 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.1 25-Apr-1995  jtc branches: 1.1.1;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.1.1 02-Feb-1998  perry import lite-2
 1.5.12.4 22-Mar-2002  nathanw Catch up to -current.
 1.5.12.3 08-Mar-2002  nathanw Catch up to -current.
 1.5.12.2 28-Jan-2002  nathanw Catch up to -current.
 1.5.12.1 08-Oct-2001  nathanw Catch up to -current.
 1.9 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.8 07-Aug-2003  agc branches: 1.8.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7 22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.6 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.8.56.1 30-Oct-2012  yamt sync with head
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.9 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.8 29-Apr-2002  simonb Remove <sys/types.h> from synopsis, as per latest SUS/Posix specs.
 1.7 07-Feb-2002  ross Generate <>& symbolically.
 1.6 05-Feb-1998  perry branches: 1.6.12;
add LIBRARY section to man page
 1.5 02-Feb-1998  perry merge lite-2
 1.4 22-Jul-1997  mikel xref setpgid(2), not nonexistent setpgid(3)
 1.3 14-Jul-1997  kleink Add missing `STANDARDS' compliance statements. As we #define _POSIX_VERSION
to 199009L, bump existing statements to 1003.1-1990.
 1.2 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.1 25-Apr-1995  jtc branches: 1.1.1;
Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.1.1.1 02-Feb-1998  perry import lite-2
 1.6.12.3 21-Jun-2002  nathanw Catch up to -current.
 1.6.12.2 22-Mar-2002  nathanw Catch up to -current.
 1.6.12.1 08-Mar-2002  nathanw Catch up to -current.
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.7 22-Jan-2000  mycroft branches: 1.7.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.6 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5 16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.4 21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3 13-Jul-1997  christos Fix RCSID's
 1.2 26-Jun-1995  jtc branches: 1.2.4;
Strip out unneeded header files
 1.1 25-Apr-1995  jtc Initial checkin of termios directory. The code used to be in
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
 1.2.4.1 17-Sep-1996  jtc snapshot namespace cleanup: termios
 1.7.6.1 21-Jun-2002  nathanw Catch up to -current.
 1.1 25-Oct-2017  kre Implement tcgetwinsize() and tcsetwinsize() in libc, with access
via <termios.h> (and document them.) Bump libc minor number for them.

Arrange for "struct winsize" to become visible in <termios.h>

Fix stty(1) so that "cols" is reported as the arg to set number of columns,
and "columns" is the alias, rather than the other way around, as "cols" is
what has been added to POSIX.

This is to conform with updates to be included in 1003.1 issue 8
(whenever that gets published) currently available at:
http://austingroupbugs.net/view.php?id=1053 (see note 3863)
http://austingroupbugs.net/view.php?id=1151 (see note 3856)

RSS XML Feed