Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
3a21b777
Commit
3a21b777
authored
Oct 28, 2014
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: Add consts for ioctl
TIOCSWINSZ_val, TCGETS_val, TCSETS_val From-SVN: r216807
parent
4bbed9ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
+25
-1
libgo/mksysinfo.sh
+25
-1
No files found.
libgo/mksysinfo.sh
View file @
3a21b777
...
...
@@ -174,6 +174,9 @@ enum {
#ifdef TIOCGWINSZ
TIOCGWINSZ_val = TIOCGWINSZ,
#endif
#ifdef TIOCSWINSZ
TIOCSWINSZ_val = TIOCSWINSZ,
#endif
#ifdef TIOCNOTTY
TIOCNOTTY_val = TIOCNOTTY,
#endif
...
...
@@ -192,6 +195,12 @@ enum {
#ifdef TIOCSIG
TIOCSIG_val = TIOCSIG,
#endif
#ifdef TCGETS
TCGETS_val = TCGETS,
#endif
#ifdef TCSETS
TCSETS_val = TCSETS,
#endif
};
EOF
...
...
@@ -790,6 +799,11 @@ if ! grep '^const TIOCGWINSZ' ${OUT} >/dev/null 2>&1; then
echo
'const TIOCGWINSZ = _TIOCGWINSZ_val'
>>
${
OUT
}
fi
fi
if
!
grep
'^const TIOCSWINSZ'
${
OUT
}
>
/dev/null 2>&1
;
then
if
grep
'^const _TIOCSWINSZ_val'
${
OUT
}
>
/dev/null 2>&1
;
then
echo
'const TIOCSWINSZ = _TIOCSWINSZ_val'
>>
${
OUT
}
fi
fi
if
!
grep
'^const TIOCNOTTY'
${
OUT
}
>
/dev/null 2>&1
;
then
if
grep
'^const _TIOCNOTTY_val'
${
OUT
}
>
/dev/null 2>&1
;
then
echo
'const TIOCNOTTY = _TIOCNOTTY_val'
>>
${
OUT
}
...
...
@@ -822,8 +836,18 @@ if ! grep '^const TIOCSIG' ${OUT} >/dev/null 2>&1; then
fi
# The ioctl flags for terminal control
grep
'^const _TC[GS]ET'
gen-sysinfo.go |
\
grep
'^const _TC[GS]ET'
gen-sysinfo.go |
grep
-v
_val |
\
sed
-e
's/^\(const \)_\(TC[GS]ET[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
if
!
grep
'^const TCGETS'
${
OUT
}
>
/dev/null 2>&1
;
then
if
grep
'^const _TCGETS_val'
${
OUT
}
>
/dev/null 2>&1
;
then
echo
'const TCGETS = _TCGETS_val'
>>
${
OUT
}
fi
fi
if
!
grep
'^const TCSETS'
${
OUT
}
>
/dev/null 2>&1
;
then
if
grep
'^const _TCSETS_val'
${
OUT
}
>
/dev/null 2>&1
;
then
echo
'const TCSETS = _TCSETS_val'
>>
${
OUT
}
fi
fi
# ioctl constants. Might fall back to 0 if TIOCNXCL is missing, too, but
# needs handling in syscalls.exec.go.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment