Commit c5f6dbf6 by Ian Lance Taylor

mksysinfo.sh: Handle TIOCGPGRP if too complex for -dump-go-spec.

    
    Reviewed-on: https://go-review.googlesource.com/16580

From-SVN: r229676
parent ec3838a7
e9550aa81d38ada037f675f50cbc09e6f1c35c12 3b06572039eb525abfecce15f066ad6ab0fdea05
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -183,6 +183,9 @@ enum { ...@@ -183,6 +183,9 @@ enum {
#ifdef TIOCSCTTY #ifdef TIOCSCTTY
TIOCSCTTY_val = TIOCSCTTY, TIOCSCTTY_val = TIOCSCTTY,
#endif #endif
#ifdef TIOCGPGRP
TIOCGPGRP_val = TIOCGPGRP,
#endif
#ifdef TIOCSPGRP #ifdef TIOCSPGRP
TIOCSPGRP_val = TIOCSPGRP, TIOCSPGRP_val = TIOCSPGRP,
#endif #endif
...@@ -920,6 +923,11 @@ if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then ...@@ -920,6 +923,11 @@ if ! grep '^const TIOCSCTTY' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCSCTTY = _TIOCSCTTY_val' >> ${OUT} echo 'const TIOCSCTTY = _TIOCSCTTY_val' >> ${OUT}
fi fi
fi fi
if ! grep '^const TIOCGPGRP' ${OUT} >/dev/null 2>&1; then
if grep '^const _TIOCGPGRP_val' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCGPGRP = _TIOCGPGRP_val' >> ${OUT}
fi
fi
if ! grep '^const TIOCSPGRP' ${OUT} >/dev/null 2>&1; then if ! grep '^const TIOCSPGRP' ${OUT} >/dev/null 2>&1; then
if grep '^const _TIOCSPGRP_val' ${OUT} >/dev/null 2>&1; then if grep '^const _TIOCSPGRP_val' ${OUT} >/dev/null 2>&1; then
echo 'const TIOCSPGRP = _TIOCSPGRP_val' >> ${OUT} echo 'const TIOCSPGRP = _TIOCSPGRP_val' >> ${OUT}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment