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
df32732f
Commit
df32732f
authored
13 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mksysinfo: Define more structs.
From-SVN: r186683
parent
c1771a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
libgo/mksysinfo.sh
+50
-0
No files found.
libgo/mksysinfo.sh
View file @
df32732f
...
...
@@ -785,6 +785,22 @@ grep '^type _rtattr ' gen-sysinfo.go | \
-e
's/rta_type/Type/'
\
>>
${
OUT
}
# The in_pktinfo struct.
grep
'^type _in_pktinfo '
gen-sysinfo.go |
\
sed
-e
's/_in_pktinfo/Inet4Pktinfo/'
\
-e
's/ipi_ifindex/Ifindex/'
\
-e
's/ipi_spec_dst/Spec_dst/'
\
-e
's/ipi_addr/Addr/'
\
>>
${
OUT
}
# The in6_pktinfo struct.
grep
'^type _in6_pktinfo '
gen-sysinfo.go |
\
sed
-e
's/_in6_pktinfo/Inet6Pktinfo/'
\
-e
's/ipi6_addr/Addr/'
\
-e
's/ipi6_ifindex/Ifindex/'
\
-e
's/_in6_addr/[16]byte/'
\
>>
${
OUT
}
# The termios struct.
grep
'^type _termios '
gen-sysinfo.go |
\
sed
-e
's/_termios/Termios/'
\
...
...
@@ -962,6 +978,29 @@ grep '^type _sock_fprog ' gen-sysinfo.go | \
grep
'^const _BPF_'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(BPF_[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
# The GNU/Linux nlattr struct.
grep
'^type _nlattr '
gen-sysinfo.go |
\
sed
-e
's/_nlattr/NlAttr/'
\
-e
's/nla_len/Len/'
\
-e
's/nla_type/Type/'
\
>>
${
OUT
}
# The GNU/Linux nlmsgerr struct.
grep
'^type _nlmsgerr '
gen-sysinfo.go |
\
sed
-e
's/_nlmsgerr/NlMsgerr/'
\
-e
's/error/Error/'
\
-e
's/msg/Msg/'
\
>>
${
OUT
}
# The GNU/Linux rtnexthop struct.
grep
'^type _rtnexthop '
gen-sysinfo.go |
\
sed
-e
's/_rtnexthop/RtNexthop/'
\
-e
's/rtnh_len/Len/'
\
-e
's/rtnh_flags/Flags/'
\
-e
's/rtnh_hops/Hops/'
\
-e
's/rtnh_ifindex/Ifindex/'
\
>>
${
OUT
}
# The GNU/Linux netlink flags.
grep
'^const _NETLINK_'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(NETLINK_[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
...
...
@@ -970,6 +1009,17 @@ grep '^const _NETLINK_' gen-sysinfo.go | \
grep
'^const _PACKET_'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(PACKET_[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
# The GNU/Linux inotify_event struct.
grep
'^type _inotify_event '
gen-sysinfo.go |
\
sed
-e
's/_inotify_event/InotifyEvent/'
\
-e
's/wd/Wd/'
\
-e
's/mask/Mask/'
\
-e
's/cookie/Cookie/'
\
-e
's/len/Len/'
\
-e
's/name/Name/'
\
-e
's/\[\]/[0]/'
\
>>
${
OUT
}
# The Solaris 11 Update 1 _zone_net_addr_t struct.
grep
'^type _zone_net_addr_t '
gen-sysinfo.go |
\
sed
-e
's/_in6_addr/[16]byte/'
\
...
...
This diff is collapsed.
Click to expand it.
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