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
8db6380a
Commit
8db6380a
authored
Apr 03, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mksysinfo.sh: Add some more networking constants.
From-SVN: r186114
parent
572a2f68
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
+17
-3
libgo/config.h.in
+3
-0
libgo/configure
+1
-1
libgo/configure.ac
+1
-1
libgo/mksysinfo.sh
+12
-1
No files found.
libgo/config.h.in
View file @
8db6380a
...
@@ -72,6 +72,9 @@
...
@@ -72,6 +72,9 @@
/* Define to 1 if you have the `mknodat' function. */
/* Define to 1 if you have the `mknodat' function. */
#undef HAVE_MKNODAT
#undef HAVE_MKNODAT
/* Define to 1 if you have the <net/if_arp.h> header file. */
#undef HAVE_NET_IF_ARP_H
/* Define to 1 if you have the <net/if.h> header file. */
/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H
#undef HAVE_NET_IF_H
...
...
libgo/configure
View file @
8db6380a
...
@@ -14508,7 +14508,7 @@ no)
...
@@ -14508,7 +14508,7 @@ no)
;;
;;
esac
esac
for
ac_header
in
sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/reboot.h
for
ac_header
in
sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h
net/if_arp.h
sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/reboot.h
do
:
do
:
as_ac_Header
=
`
$as_echo
"ac_cv_header_
$ac_header
"
|
$as_tr_sh
`
as_ac_Header
=
`
$as_echo
"ac_cv_header_
$ac_header
"
|
$as_tr_sh
`
ac_fn_c_check_header_mongrel
"
$LINENO
"
"
$ac_header
"
"
$as_ac_Header
"
"
$ac_includes_default
"
ac_fn_c_check_header_mongrel
"
$LINENO
"
"
$ac_header
"
"
$as_ac_Header
"
"
$ac_includes_default
"
...
...
libgo/configure.ac
View file @
8db6380a
...
@@ -453,7 +453,7 @@ no)
...
@@ -453,7 +453,7 @@ no)
;;
;;
esac
esac
AC_CHECK_HEADERS(sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/reboot.h)
AC_CHECK_HEADERS(sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h
net/if_arp.h
sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/reboot.h)
AC_CHECK_HEADERS([linux/filter.h linux/netlink.h linux/rtnetlink.h], [], [],
AC_CHECK_HEADERS([linux/filter.h linux/netlink.h linux/rtnetlink.h], [], [],
[#ifdef HAVE_SYS_SOCKET_H
[#ifdef HAVE_SYS_SOCKET_H
...
...
libgo/mksysinfo.sh
View file @
8db6380a
...
@@ -94,6 +94,9 @@ cat > sysinfo.c <<EOF
...
@@ -94,6 +94,9 @@ cat > sysinfo.c <<EOF
#if defined(HAVE_NET_IF_H)
#if defined(HAVE_NET_IF_H)
#include <net/if.h>
#include <net/if.h>
#endif
#endif
#if defined(HAVE_NET_IF_ARP_H)
#include <net/if_arp.h>
#endif
#if defined(HAVE_SYS_MOUNT_H)
#if defined(HAVE_SYS_MOUNT_H)
#include <sys/mount.h>
#include <sys/mount.h>
#endif
#endif
...
@@ -211,7 +214,7 @@ if grep '^const ___WALL = ' gen-sysinfo.go >/dev/null 2>&1 \
...
@@ -211,7 +214,7 @@ if grep '^const ___WALL = ' gen-sysinfo.go >/dev/null 2>&1 \
fi
fi
# Networking constants.
# Networking constants.
egrep
'^const _(AF|SOCK|SOL|SO|IPPROTO|TCP|IP|IPV6)_'
gen-sysinfo.go |
egrep
'^const _(AF|
ARPHRD|
SOCK|SOL|SO|IPPROTO|TCP|IP|IPV6)_'
gen-sysinfo.go |
sed
-e
's/^\(const \)_\([^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
sed
-e
's/^\(const \)_\([^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
grep
'^const _SOMAXCONN'
gen-sysinfo.go |
grep
'^const _SOMAXCONN'
gen-sysinfo.go |
sed
-e
's/^\(const \)_\(SOMAXCONN[^= ]*\)\(.*\)$/\1\2 = _\2/'
\
sed
-e
's/^\(const \)_\(SOMAXCONN[^= ]*\)\(.*\)$/\1\2 = _\2/'
\
...
@@ -710,6 +713,10 @@ grep '^type _rtgenmsg ' gen-sysinfo.go | \
...
@@ -710,6 +713,10 @@ grep '^type _rtgenmsg ' gen-sysinfo.go | \
# The routing message flags.
# The routing message flags.
grep
'^const _RTA'
gen-sysinfo.go |
\
grep
'^const _RTA'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(RTA[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
sed
-e
's/^\(const \)_\(RTA[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
grep
'^const _RTF'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(RTF[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
grep
'^const _RTCF'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(RTCF[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
grep
'^const _RTM'
gen-sysinfo.go |
\
grep
'^const _RTM'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(RTM[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
sed
-e
's/^\(const \)_\(RTM[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
...
@@ -938,6 +945,10 @@ grep '^type _sock_fprog ' gen-sysinfo.go | \
...
@@ -938,6 +945,10 @@ grep '^type _sock_fprog ' gen-sysinfo.go | \
-e
's/_sock_filter/SockFilter/'
\
-e
's/_sock_filter/SockFilter/'
\
>>
${
OUT
}
>>
${
OUT
}
# The GNU/Linux filter flags.
grep
'^const _BPF_'
gen-sysinfo.go |
\
sed
-e
's/^\(const \)_\(BPF_[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
# The Solaris 11 Update 1 _zone_net_addr_t struct.
# The Solaris 11 Update 1 _zone_net_addr_t struct.
grep
'^type _zone_net_addr_t '
gen-sysinfo.go |
\
grep
'^type _zone_net_addr_t '
gen-sysinfo.go |
\
sed
-e
's/_in6_addr/[16]byte/'
\
sed
-e
's/_in6_addr/[16]byte/'
\
...
...
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