diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-05-07 22:22:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-05-07 22:22:29 +0000 |
commit | 44d5790f7ba3cd6a36544926a4993d19713eacb8 (patch) | |
tree | 14a2eeff32ed0fb05a8a858d20b055548b8401a8 /libgo | |
parent | d839f53b7dfd86250420bce15382c98cbd43b4ec (diff) | |
download | gcc-44d5790f7ba3cd6a36544926a4993d19713eacb8.zip gcc-44d5790f7ba3cd6a36544926a4993d19713eacb8.tar.gz gcc-44d5790f7ba3cd6a36544926a4993d19713eacb8.tar.bz2 |
mksysinfo: Define some more non-trivial TIOC constants.
From-SVN: r210192
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index c4c226b..bb6abfd 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -180,6 +180,18 @@ enum { #ifdef TIOCSCTTY TIOCSCTTY_val = TIOCSCTTY, #endif +#ifdef TIOCGPTN + TIOCGPTN_val = TIOCGPTN, +#endif +#ifdef TIOCSPTLCK + TIOCSPTLCK_val = TIOCSPTLCK, +#endif +#ifdef TIOCGDEV + TIOCGDEV_val = TIOCGDEV, +#endif +#ifdef TIOCSIG + TIOCSIG_val = TIOCSIG, +#endif }; EOF @@ -778,6 +790,26 @@ if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then echo 'const TIOCSCTTY = _TIOCSCTTY_val' >> ${OUT} fi fi +if ! grep '^const TIOCGPTN' ${OUT} >/dev/null 2>&1; then + if grep '^const _TIOCGPTN_val' ${OUT} >/dev/null 2>&1; then + echo 'const TIOCGPTN = _TIOCGPTN_val' >> ${OUT} + fi +fi +if ! grep '^const TIOCSPTLCK' ${OUT} >/dev/null 2>&1; then + if grep '^const _TIOCSPTLCK_val' ${OUT} >/dev/null 2>&1; then + echo 'const TIOCSPTLCK = _TIOCSPTLCK_val' >> ${OUT} + fi +fi +if ! grep '^const TIOCGDEV' ${OUT} >/dev/null 2>&1; then + if grep '^const _TIOCGDEV_val' ${OUT} >/dev/null 2>&1; then + echo 'const TIOCGDEV = _TIOCGDEV_val' >> ${OUT} + fi +fi +if ! grep '^const TIOCSIG' ${OUT} >/dev/null 2>&1; then + if grep '^const _TIOCSIG_val' ${OUT} >/dev/null 2>&1; then + echo 'const TIOCSIG = _TIOCSIG_val' >> ${OUT} + fi +fi # The ioctl flags for terminal control grep '^const _TC[GS]ET' gen-sysinfo.go | \ |