mirror of git://gcc.gnu.org/git/gcc.git
parent
14939a5c1d
commit
b059fba469
|
|
@ -42,6 +42,9 @@
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
#undef HAVE_INTTYPES_H
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <linux/ether.h> header file. */
|
||||||
|
#undef HAVE_LINUX_ETHER_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <linux/filter.h> header file. */
|
/* Define to 1 if you have the <linux/filter.h> header file. */
|
||||||
#undef HAVE_LINUX_FILTER_H
|
#undef HAVE_LINUX_FILTER_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14515,7 +14515,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 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
|
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/ether.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"
|
||||||
|
|
|
||||||
|
|
@ -459,7 +459,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 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(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/ether.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
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,9 @@ cat > sysinfo.c <<EOF
|
||||||
#if defined(HAVE_UTIME_H)
|
#if defined(HAVE_UTIME_H)
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(HAVE_LINUX_ETHER_H)
|
||||||
|
#include <linux/ether.h>
|
||||||
|
#endif
|
||||||
#if defined(HAVE_LINUX_REBOOT_H)
|
#if defined(HAVE_LINUX_REBOOT_H)
|
||||||
#include <linux/reboot.h>
|
#include <linux/reboot.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -214,7 +217,7 @@ if grep '^const ___WALL = ' gen-sysinfo.go >/dev/null 2>&1 \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Networking constants.
|
# Networking constants.
|
||||||
egrep '^const _(AF|ARPHRD|SOCK|SOL|SO|IPPROTO|TCP|IP|IPV6)_' gen-sysinfo.go |
|
egrep '^const _(AF|ARPHRD|ETH|IN|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/' \
|
||||||
|
|
@ -461,6 +464,10 @@ fi | sed -e 's/type _dirent64/type Dirent/' \
|
||||||
>> ${OUT}
|
>> ${OUT}
|
||||||
echo "type DIR _DIR" >> ${OUT}
|
echo "type DIR _DIR" >> ${OUT}
|
||||||
|
|
||||||
|
# Values for d_type field in dirent.
|
||||||
|
grep '^const _DT_' gen-sysinfo.go |
|
||||||
|
sed -e 's/^\(const \)_\(DT_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
|
|
||||||
# The rusage struct.
|
# The rusage struct.
|
||||||
rusage=`grep '^type _rusage struct' gen-sysinfo.go`
|
rusage=`grep '^type _rusage struct' gen-sysinfo.go`
|
||||||
if test "$rusage" != ""; then
|
if test "$rusage" != ""; then
|
||||||
|
|
@ -795,15 +802,16 @@ grep '^type _termios ' gen-sysinfo.go | \
|
||||||
# The termios constants.
|
# The termios constants.
|
||||||
for n in IGNBRK BRKINT IGNPAR PARMRK INPCK ISTRIP INLCR IGNCR ICRNL IUCLC \
|
for n in IGNBRK BRKINT IGNPAR PARMRK INPCK ISTRIP INLCR IGNCR ICRNL IUCLC \
|
||||||
IXON IXANY IXOFF IMAXBEL IUTF8 OPOST OLCUC ONLCR OCRNL ONOCR ONLRET \
|
IXON IXANY IXOFF IMAXBEL IUTF8 OPOST OLCUC ONLCR OCRNL ONOCR ONLRET \
|
||||||
OFILL OFDEL NLDLY NL0 NL1 CRDLY CR0 CR1 CR2 CR3 TABDLY BSDLY VTDLY \
|
OFILL OFDEL NLDLY NL0 NL1 CRDLY CR0 CR1 CR2 CR3 CS5 CS6 CS7 CS8 TABDLY \
|
||||||
FFDLY CBAUD CBAUDEX CSIZE CSTOPB CREAD PARENB PARODD HUPCL CLOCAL \
|
BSDLY VTDLY FFDLY CBAUD CBAUDEX CSIZE CSTOPB CREAD PARENB PARODD HUPCL \
|
||||||
LOBLK CIBAUD CMSPAR CRTSCTS ISIG ICANON XCASE ECHO ECHOE ECHOK ECHONL \
|
CLOCAL LOBLK CIBAUD CMSPAR CRTSCTS ISIG ICANON XCASE ECHO ECHOE ECHOK \
|
||||||
ECHOCTL ECHOPRT ECHOKE DEFECHO FLUSHO NOFLSH TOSTOP PENDIN IEXTEN VINTR \
|
ECHONL ECHOCTL ECHOPRT ECHOKE DEFECHO FLUSHO NOFLSH TOSTOP PENDIN IEXTEN \
|
||||||
VQUIT VERASE VKILL VEOF VMIN VEOL VTIME VEOL2 VSWTCH VSTART VSTOP VSUSP \
|
VINTR VQUIT VERASE VKILL VEOF VMIN VEOL VTIME VEOL2 VSWTCH VSTART VSTOP \
|
||||||
VDSUSP VLNEXT VWERASE VREPRINT VDISCARD VSTATUS TCSANOW TCSADRAIN \
|
VSUSP VDSUSP VLNEXT VWERASE VREPRINT VDISCARD VSTATUS TCSANOW TCSADRAIN \
|
||||||
TCSAFLUSH TCIFLUSH TCOFLUSH TCIOFLUSH TCOOFF TCOON TCIOFF TCION B0 B50 \
|
TCSAFLUSH TCIFLUSH TCOFLUSH TCIOFLUSH TCOOFF TCOON TCIOFF TCION B0 B50 \
|
||||||
B75 B110 B134 B150 B200 B300 B600 B1200 B1800 B2400 B4800 B9600 B19200 \
|
B75 B110 B134 B150 B200 B300 B600 B1200 B1800 B2400 B4800 B9600 B19200 \
|
||||||
B38400 B57600 B115200 B230400; do
|
B38400 B57600 B115200 B230400 B460800 B500000 B576000 B921600 B1000000 \
|
||||||
|
B1152000 B1500000 B2000000 B2500000 B3000000 B4000000; do
|
||||||
|
|
||||||
grep "^const _$n " gen-sysinfo.go | \
|
grep "^const _$n " gen-sysinfo.go | \
|
||||||
sed -e 's/^\(const \)_\([^=]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
sed -e 's/^\(const \)_\([^=]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue