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
44d5790f
Commit
44d5790f
authored
May 07, 2014
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mksysinfo: Define some more non-trivial TIOC constants.
From-SVN: r210192
parent
d839f53b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
libgo/mksysinfo.sh
+32
-0
No files found.
libgo/mksysinfo.sh
View file @
44d5790f
...
...
@@ -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 |
\
...
...
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