aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-31 06:16:26 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-31 06:16:26 +0000
commit3f66a0cf1b9c630cb5bb2ea8a9e2068aa4c0c6f9 (patch)
treeb3fad6bde151b2cc0f771d4860e238fbc6fcfa9f
parent48d99185e3c261d7735d446fe467d6d82fc73702 (diff)
downloadglibc-3f66a0cf1b9c630cb5bb2ea8a9e2068aa4c0c6f9.zip
glibc-3f66a0cf1b9c630cb5bb2ea8a9e2068aa4c0c6f9.tar.gz
glibc-3f66a0cf1b9c630cb5bb2ea8a9e2068aa4c0c6f9.tar.bz2
Update.
2001-01-30 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro. * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise. * include/sys/socket.h: Add SA_LEN here for internal use.
-rw-r--r--ChangeLog6
-rw-r--r--bits/sockaddr.h6
-rw-r--r--include/sys/socket.h8
-rw-r--r--sysdeps/generic/bits/sockaddr.h6
-rw-r--r--sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h5
5 files changed, 17 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 762b6f2..0148a86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-30 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro.
+ * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise.
+ * include/sys/socket.h: Add SA_LEN here for internal use.
+
2001-01-29 Ulrich Drepper <drepper@redhat.com>
* malloc/Makefile: Don't build memusagestat if cross-compiling.
diff --git a/bits/sockaddr.h b/bits/sockaddr.h
index 91e923f..f9ad296 100644
--- a/bits/sockaddr.h
+++ b/bits/sockaddr.h
@@ -1,5 +1,5 @@
/* Definition of `struct sockaddr_*' common members. Generic/4.2 BSD version.
- Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995,1996,1997,1998,2000,2001 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
@@ -37,8 +37,4 @@ typedef unsigned short int sa_family_t;
#define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int))
-/* Return the length of a `sockaddr' structure. */
-#define SA_LEN(_x) __libc_sa_len((_x)->sa_family)
-extern int __libc_sa_len (sa_family_t __af) __THROW;
-
#endif /* bits/sockaddr.h */
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 1fc90b6..5e97ddf 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -28,4 +28,12 @@ extern int __send (int __fd, __const void *__buf, size_t __n, int __flags);
Return 0 on success, -1 for errors. */
extern int __connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
+/* Return the length of a `sockaddr' structure. */
+#ifdef _HAVE_SA_LEN
+# define SA_LEN(_x) (_x)->sa_len
+#else
+# define SA_LEN(_x) __libc_sa_len((_x)->sa_family)
+extern int __libc_sa_len (sa_family_t __af) __THROW;
+#endif
+
#endif
diff --git a/sysdeps/generic/bits/sockaddr.h b/sysdeps/generic/bits/sockaddr.h
index 91e923f..f9ad296 100644
--- a/sysdeps/generic/bits/sockaddr.h
+++ b/sysdeps/generic/bits/sockaddr.h
@@ -1,5 +1,5 @@
/* Definition of `struct sockaddr_*' common members. Generic/4.2 BSD version.
- Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995,1996,1997,1998,2000,2001 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
@@ -37,8 +37,4 @@ typedef unsigned short int sa_family_t;
#define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int))
-/* Return the length of a `sockaddr' structure. */
-#define SA_LEN(_x) __libc_sa_len((_x)->sa_family)
-extern int __libc_sa_len (sa_family_t __af) __THROW;
-
#endif /* bits/sockaddr.h */
diff --git a/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h b/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h
index 4d5fa1d..1b1aea1 100644
--- a/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h
+++ b/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h
@@ -1,5 +1,5 @@
/* Definition of `struct sockaddr_*' common members. 4.4 BSD version.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 2001 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
@@ -38,7 +38,4 @@ typedef unsigned char sa_family_t;
#define __SOCKADDR_COMMON_SIZE (2 * sizeof (unsigned char))
-/* Return the length of a `sockaddr' structure. */
-#define SA_LEN(_x) ((_x)->sa_len)
-
#endif /* bits/sockaddr.h */