diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-21 03:38:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-21 03:38:46 +0000 |
commit | 1df0647c668645268b1b9c0246b91cad709e3708 (patch) | |
tree | 5665c29c7daa5aaee70dc18d33019e9fd576346e /src/common/compat.c | |
parent | 7b022eda9c43c897e50c3b03a8201c132f76229c (diff) | |
download | tor-1df0647c668645268b1b9c0246b91cad709e3708.tar.gz tor-1df0647c668645268b1b9c0246b91cad709e3708.zip |
r18291@catbus: nickm | 2008-02-20 22:35:32 -0500
Resolve all DOCDOC issues, and document some other undocumented code, and fix a changelog entry.
svn:r13638
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index cb88864f27..f789b8310d 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -489,7 +489,10 @@ touch_file(const char *fname) #undef DEBUG_SOCKET_COUNTING #ifdef DEBUG_SOCKET_COUNTING +/** A bitarray of all fds that should be passed to tor_socket_close(). Only + * used if DEBUG_SOCKET_COUNTING is defined. */ static bitarray_t *open_sockets = NULL; +/** The size of <b>open_sockets</b>, in bits. */ static int max_socket = -1; #endif @@ -547,6 +550,8 @@ tor_close_socket(int s) } #ifdef DEBUG_SOCKET_COUNTING +/** Helper: if DEBUG_SOCKET_COUNTING is enabled, remember that <b>s</b> is + * now an open socket. */ static INLINE void mark_socket_open(int s) { |