diff options
author | wtc%netscape.com <devnull@localhost> | 1999-07-21 18:31:25 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-07-21 18:31:25 +0000 |
commit | 628a00a8bd2d6d94a47755f7bd88d75b5214e41a (patch) | |
tree | 8db1d602ec3b1a12108988b9d92f01960e1d0b0b | |
parent | a316d4963475ef16359fdfadc5603f8b858a2fae (diff) | |
download | nspr-hg-628a00a8bd2d6d94a47755f7bd88d75b5214e41a.tar.gz |
Explain the type pt_SockLen.
-rw-r--r-- | pr/src/pthreads/ptio.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pr/src/pthreads/ptio.c b/pr/src/pthreads/ptio.c index c67f6aa1..3f555600 100644 --- a/pr/src/pthreads/ptio.c +++ b/pr/src/pthreads/ptio.c @@ -194,8 +194,11 @@ static PRBool IsValidNetAddrLen(const PRNetAddr *addr, PRInt32 addr_len) #define PT_DEFAULT_POLL_MSEC 100 /* - * Latest POSIX defines this type as socklen_t. It may also be - * size_t or int. + * pt_SockLen is the type for the length of a socket address + * structure, used in the address length argument to bind, + * connect, accept, getsockname, getpeername, etc. Posix.1g + * defines this type as socklen_t. It is size_t or int on + * most current systems. */ #if defined(HAVE_SOCKLEN_T) \ || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2 \ |