summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/netinet/in.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/netinet/in.h')
-rw-r--r--sysdeps/unix/sysv/linux/netinet/in.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/sysdeps/unix/sysv/linux/netinet/in.h b/sysdeps/unix/sysv/linux/netinet/in.h
index 0d0e031de1..86d1274a0c 100644
--- a/sysdeps/unix/sysv/linux/netinet/in.h
+++ b/sysdeps/unix/sysv/linux/netinet/in.h
@@ -24,7 +24,10 @@
#include <sys/socket.h>
#include <linux/in.h>
-/* Standard well-known ports. */
+/* Standard well-known ports. The use of these constants is
+ deprecated. Instead use the contents of the file `/etc/services'
+ or similar databases by using the function getservbyname and
+ getservbyport. */
enum
{
IPPORT_ECHO = 7, /* Echo service. */
@@ -86,13 +89,13 @@ __BEGIN_DECLS
/* Functions to convert between host and network byte order. */
-extern unsigned long int ntohl __P ((unsigned long int));
-extern unsigned short int ntohs __P ((unsigned short int));
-extern unsigned long int htonl __P ((unsigned long int));
-extern unsigned short int htons __P ((unsigned short int));
+extern unsigned long int ntohl __P ((unsigned long int __long_word));
+extern unsigned short int ntohs __P ((unsigned short int __short_word));
+extern unsigned long int htonl __P ((unsigned long int __long_word));
+extern unsigned short int htons __P ((unsigned short int __short_word));
/* Bind socket FD to a privileged IP address SIN. */
-extern int bindresvport __P ((int __fd, struct sockaddr_in * __sin));
+extern int bindresvport __P ((int __fd, struct sockaddr_in * __sock_in));
__END_DECLS
@@ -101,14 +104,14 @@ __END_DECLS
#if __BYTE_ORDER == __BIG_ENDIAN
/* The host byte order is the same as network byte order,
so these functions are all just identity. */
-#undef ntohl
-#define ntohl(x) (x)
-#undef ntohs
-#define ntohs(x) (x)
-#undef htonl
-#define htonl(x) (x)
-#undef htons
-#define htons(x) (x)
+# undef ntohl
+# define ntohl(x) (x)
+# undef ntohs
+# define ntohs(x) (x)
+# undef htonl
+# define htonl(x) (x)
+# undef htons
+# define htons(x) (x)
#endif
#endif /* netinet/in.h */