diff options
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/Makefile | 3 | ||||
-rw-r--r-- | sysdeps/unix/make-syscalls.sh | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/Dist | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/netinet/udp.h | 35 |
4 files changed, 40 insertions, 4 deletions
diff --git a/sysdeps/unix/Makefile b/sysdeps/unix/Makefile index 1aea477064..3cef7e735b 100644 --- a/sysdeps/unix/Makefile +++ b/sysdeps/unix/Makefile @@ -287,8 +287,7 @@ $(common-objpfx)sysd-syscalls: $(..)sysdeps/unix/make-syscalls.sh \ $(wildcard $(+sysdep_dirs:%=%/syscalls.list)) for dir in $(+sysdep_dirs); do \ test -f $$dir/syscalls.list && \ - { $(SHELL) $(dir $<)$(notdir $<) \ - $$dir $(object-suffixes) || exit 1; }; \ + { $(SHELL) $(dir $<)$(notdir $<) $$dir || exit 1; }; \ test $$dir = $(..)sysdeps/unix && break; \ done > $@T mv -f $@T $@ diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh index 58e31eb468..93a73802f7 100644 --- a/sysdeps/unix/make-syscalls.sh +++ b/sysdeps/unix/make-syscalls.sh @@ -1,6 +1,6 @@ #! /bin/sh -# Usage: make-syscalls.sh ../sysdeps unix/common +# Usage: make-syscalls.sh ../sysdeps/unix/common # Expects $sysdirs in environment. thisdir=$1; shift @@ -57,7 +57,8 @@ EOF # Emit a compilation rule for this syscall. echo "\ -\$(foreach o,\$(object-suffixes),\$(objpfx)$file\$o): \$(common-objpfx)s-proto.d +\$(foreach o,\$(all-object-suffixes),\$(objpfx)$file\$o): \\ +\$(common-objpfx)s-proto.d (echo '#include <sysdep.h>'; \\ echo 'PSEUDO ($strong, $syscall, $nargs)'; \\ echo ' ret'; \\ diff --git a/sysdeps/unix/sysv/linux/Dist b/sysdeps/unix/sysv/linux/Dist index b757562124..0660b247ef 100644 --- a/sysdeps/unix/sysv/linux/Dist +++ b/sysdeps/unix/sysv/linux/Dist @@ -12,6 +12,7 @@ net/ppp-comp.h net/ppp_defs.h net/route.h netinet/in_systm.h +netinet/udp.h nfs/nfs.h sys/acct.h sys/debugreg.h diff --git a/sysdeps/unix/sysv/linux/netinet/udp.h b/sysdeps/unix/sysv/linux/netinet/udp.h new file mode 100644 index 0000000000..b088838ccb --- /dev/null +++ b/sysdeps/unix/sysv/linux/netinet/udp.h @@ -0,0 +1,35 @@ +/* Copyright (C) 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#ifndef _NETINET_UDP_H +#define _NETINET_UDP_H 1 + +#include <sys/types.h> + +/* The Internet RFC 768 specifies this format for the UDP protocol. */ +struct udphdr + { + u_short uh_sport; /* Source port. */ + u_short uh_dport; /* Destination port. */ + u_short uh_ulen; /* UDP length. */ + u_short uh_sum; /* UDP checksum. */ + }; + +#define SOL_UDP 17 /* UDP level. */ + +#endif /* netinet/udp.h */ |