mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user