]> granicus.if.org Git - libevent/commitdiff
Spell-check the the headers
authorNick Mathewson <nickm@torproject.org>
Thu, 28 May 2009 15:47:15 +0000 (15:47 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 28 May 2009 15:47:15 +0000 (15:47 +0000)
svn:r1320

15 files changed:
include/event2/buffer.h
include/event2/buffer_compat.h
include/event2/bufferevent.h
include/event2/bufferevent_compat.h
include/event2/bufferevent_struct.h
include/event2/dns.h
include/event2/dns_struct.h
include/event2/event.h
include/event2/event_compat.h
include/event2/event_struct.h
include/event2/http.h
include/event2/http_struct.h
include/event2/rpc.h
include/event2/thread.h
include/event2/util.h

index 4e482596773c196f72e670390cd30edba5d7d98b..41e6a619cb8cdfc734c6efde4ee1bef209777e4c 100644 (file)
@@ -33,7 +33,7 @@
   An evbuffer can be used for preparing data before sending it to
   the network or conversely for reading data from the network.
   Evbuffers try to avoid memory copies as much as possible.  As a
-  result evbuffers can be used to pass data around witout actually
+  result evbuffers can be used to pass data around without actually
   incurring the overhead of copying the data.
 
   A new evbuffer can be allocated with evbuffer_new(), and can be
@@ -163,7 +163,7 @@ size_t evbuffer_get_length(const struct evbuffer *buf);
 /**
    Returns the number of contiguous available bytes in the first buffer chain.
 
-   This is useful when procesing data that might be split into multiple
+   This is useful when processing data that might be split into multiple
    chains, or that might all be in the first chain.  Calls to
    evbuffer_pullup() that cause reallocation and copying of data can thus be
    avoided.
@@ -239,7 +239,7 @@ evbuffer_reserve_space(struct evbuffer *buf, ev_ssize_t size,
 
    @param buf the event buffer in which to reserve space.
    @param vec one or two extents returned by evbuffer_reserve_space.
-   @paramm n_vecs the number of extents.
+   @param n_vecs the number of extents.
    @return 0 on success, -1 on error
    @see evbuffer_reserve_space
 */
@@ -337,7 +337,7 @@ typedef void (*evbuffer_ref_cleanup_cb)(const void *data,
   @param outbuf the output buffer
   @param data the memory to reference
   @param datlen how memory to reference
-  @param cleanupfn callback to be invokved when the memory is no longer
+  @param cleanupfn callback to be invoked when the memory is no longer
        referenced
   @param extra optional argument to the cleanup callback
   @return 0 if successful, or -1 if an error occurred
@@ -458,16 +458,16 @@ struct evbuffer_ptr evbuffer_search(struct evbuffer *buffer, const char *what, s
 
 enum evbuffer_ptr_how {
        /** Sets the pointer to the position; can be called on with an
-           uninitalized evbuffer_ptr. */
+           uninitialized evbuffer_ptr. */
        EVBUFFER_PTR_SET,
        /** Advances the pointer by adding to the current position. */
        EVBUFFER_PTR_ADD
 };
 
 /**
-   Sets the search pointer in the buffer to positiion.
+   Sets the search pointer in the buffer to position.
 
-   If evbuffer_ptr is not initalized.  This function can only be called
+   If evbuffer_ptr is not initialized.  This function can only be called
    with EVBUFFER_PTR_SET.
 
    @param buffer the evbuffer to be search
@@ -522,7 +522,7 @@ int evbuffer_peek(struct evbuffer *buffer, ev_ssize_t len,
     removed from an evbuffer.
 
     An evbuffer may have one or more callbacks set at a time.  The order
-    in which they are exectuded is undefined.
+    in which they are executed is undefined.
 
     A callback function may add more callbacks, or remove itself from the
     list of callbacks, or add or remove data from the buffer.  It may not
@@ -607,7 +607,7 @@ int evbuffer_cb_clear_flags(struct evbuffer *buffer,
        @param cb the callback we want to suspend.
  */
 void evbuffer_cb_suspend(struct evbuffer *buffer, struct evbuffer_cb_entry *cb);
-/** Stop postponing a callback that we posponed with evbuffer_cb_suspend.
+/** Stop postponing a callback that we postponed with evbuffer_cb_suspend.
 
        If data was added to or removed from the buffer while the callback was
        suspended, the callback will get called once now.
@@ -624,7 +624,7 @@ void evbuffer_cb_unsuspend(struct evbuffer *buffer, struct evbuffer_cb_entry *cb
   @param buf the evbuffer to make contiguous
   @param size the number of bytes to make contiguous, or -1 to make the
          entire buffer contiguous.
-  @return a pointer to the contigous memory areay
+  @return a pointer to the contiguous memory array
 */
 
 unsigned char *evbuffer_pullup(struct evbuffer *buf, ev_ssize_t size);
index c953c8e56c58d237f1b0d699f960ebb37d9e96c0..b838e3822a9085f27bb7f882067a488a9ace0358 100644 (file)
@@ -51,7 +51,7 @@ char *evbuffer_readline(struct evbuffer *buffer);
     removed from an evbuffer.
 
     An evbuffer may have one or more callbacks set at a time.  The order
-    in which they are exectuded is undefined.
+    in which they are executed is undefined.
 
     A callback function may add more callbacks, or remove itself from the
     list of callbacks, or add or remove data from the buffer.  It may not
index af75f12ebb884ac8790e8bab931f0e3e65f7d7f8..1c4698727c9b827e3c0ffb228f0571a740c6a643 100644 (file)
@@ -34,7 +34,7 @@
   and one for writing, and callbacks that are invoked under certain
   circumstances.
 
-  libevent provides an abstraction on top of the regular event callbacks.
+  Libevent provides an abstraction on top of the regular event callbacks.
   This abstraction is called a buffered event.  A buffered event provides
   input and output buffers that get filled and drained automatically.  The
   user of a buffered event no longer deals directly with the I/O, but
@@ -100,7 +100,7 @@ struct sockaddr;
 typedef void (*bufferevent_data_cb)(struct bufferevent *bev, void *ctx);
 
 /**
-   type defintion for the error callback of a bufferevent.
+   type definition for the error callback of a bufferevent.
 
    The error callback is triggered if either an EOF condition or another
    unrecoverable error was encountered.
@@ -282,21 +282,21 @@ int bufferevent_read_buffer(struct bufferevent *bufev, struct evbuffer *buf);
 
    The user MUST NOT set the callback on this buffer.
 
-   @param bufev the buffervent from which to get the evbuffer
+   @param bufev the bufferevent from which to get the evbuffer
    @return the evbuffer object for the input buffer
  */
 
 struct evbuffer *bufferevent_get_input(struct bufferevent *bufev);
 
 /**
-   Returns the outut buffer.
+   Returns the output buffer.
 
    The user MUST NOT set the callback on this buffer.
 
    When filters are being used, the filters need to be manually
    triggered if the output buffer was manipulated.
 
-   @param bufev the buffervent from which to get the evbuffer
+   @param bufev the bufferevent from which to get the evbuffer
    @return the evbuffer object for the output buffer
  */
 
@@ -338,7 +338,7 @@ void bufferevent_set_timeouts(struct bufferevent *bufev,
 
   On input, a bufferevent does not invoke the user read callback unless
   there is at least low watermark data in the buffer.   If the read buffer
-  is beyond the high watermark, the buffevent stops reading from the network.
+  is beyond the high watermark, the bufferevent stops reading from the network.
 
   On output, the user write callback is invoked whenever the buffered data
   falls below the low watermark.  Filters that write to this bufev will try
@@ -396,7 +396,7 @@ enum bufferevent_filter_result {
        /** the filter needs to read more data before output */
        BEV_NEED_MORE = 1,
 
-       /** the filter enountered a critical error, no further data
+       /** the filter encountered a critical error, no further data
            can be processed. */
        BEV_ERROR = 2
 };
@@ -412,7 +412,7 @@ enum bufferevent_filter_result {
     @param state Whether we should write data as may be convenient
        (BEV_NORMAL), or flush as much data as we can (BEV_FLUSH),
        or flush as much as we can, possibly including an end-of-stream
-       marker (BEF_FINISH).
+       marker (BEV_FINISH).
     @param ctx A user-supplied pointer.
 
     @return BEV_OK if we wrote some data; BEV_NEED_MORE if we can't
@@ -447,7 +447,7 @@ bufferevent_filter_new(struct bufferevent *underlying,
 /**
    Allocate a pair of linked bufferevents.  The bufferevents behave as would
    two bufferevent_sock instances connected to opposite ends of a
-   socketpair(), except that no internel socketpair is allocated.
+   socketpair(), except that no internal socketpair is allocated.
 
    @param base The event base to associate with the socketpair.
    @param options A set of options for this bufferevent
index c380b6d1d6d2f887305770c75a11e037b08c16a2..798ef0ea00336911437cc436a8c2c924ff9432e2 100644 (file)
@@ -34,7 +34,7 @@
 /**
   Create a new bufferevent for an fd.
 
-  This function is deprecated.  Use buffevent_socket_new and
+  This function is deprecated.  Use bufferevent_socket_new and
   bufferevent_set_callbacks instead.
 
   libevent provides an abstraction on top of the regular event callbacks.
index 8cbec9b4c249a183fa03fe77849bf32bbc2b299c..4498631507ad6aae0232eaa4255de59be6133612 100644 (file)
@@ -30,7 +30,7 @@
 /** @file bufferevent_struct.h
 
   Data structures for bufferevents.  Using these structures may hurt forward
-  compatibility with later versions of libevent: be careful!
+  compatibility with later versions of Libevent: be careful!
 
  */
 
index 28f5c80b502481f86be2bcffc58ade150c4ff92e..8b182fe79e44d32e595e20016eff3394482df49c 100644 (file)
@@ -29,7 +29,7 @@
  * The original DNS code is due to Adam Langley with heavy
  * modifications by Nick Mathewson.  Adam put his DNS software in the
  * public domain.  You can find his original copyright below.  Please,
- * aware that the code as part of libevent is governed by the 3-clause
+ * aware that the code as part of Libevent is governed by the 3-clause
  * BSD license above.
  *
  * This software is Public Domain. To view a copy of the public domain dedication,
@@ -58,7 +58,7 @@
  * (see http://www.imperialviolet.org/page25.html#e498). Otherwise,
  * please continue.
  *
- * This code is based on libevent and you must call event_init before
+ * This code is based on Libevent and you must call event_init before
  * any of the APIs in this file. You must also seed the OpenSSL random
  * source if you are using OpenSSL for ids (see below).
  *
@@ -181,15 +181,15 @@ extern "C" {
 /** The name server refuses to reform the specified operation for policy
  * reasons */
 #define DNS_ERR_REFUSED 5
-/** The reply was truncated or ill-formated */
+/** The reply was truncated or ill-formatted */
 #define DNS_ERR_TRUNCATED 65
 /** An unknown error occurred */
 #define DNS_ERR_UNKNOWN 66
 /** Communication with the server timed out */
 #define DNS_ERR_TIMEOUT 67
-/** The request was cancelled because the DNS subsystem was shut down. */
+/** The request was canceled because the DNS subsystem was shut down. */
 #define DNS_ERR_SHUTDOWN 68
-/** The request was cancelled via a call to evdns_cancel_request */
+/** The request was canceled via a call to evdns_cancel_request */
 #define DNS_ERR_CANCEL 69
 
 #define DNS_IPv4_A 1
@@ -520,9 +520,9 @@ struct evdns_server_question;
 /**
    A callback to implement a DNS server.  The callback function receives a DNS
    request.  It should then optionally add a number of answers to the reply
-   using the evdns_server_request_add_*_reply functinos, before calling either
+   using the evdns_server_request_add_*_reply functions, before calling either
    evdns_server_request_respond to send the reply back, or
-   evdns_server_request_drop to decling to answer the request.
+   evdns_server_request_drop to decline to answer the request.
 
    @param req A newly received request
    @param user_data A pointer that was passed to
index 90fc1fef7e3d534717cacb14c31cc28a98ab7bfe..b78b722b44414cc1929ec0a14c0bf6f220b56af9 100644 (file)
@@ -30,7 +30,7 @@
 /** @file dns_struct.h
 
   Data structures for dns.  Using these structures may hurt forward
-  compatibility with later versions of libevent: be careful!
+  compatibility with later versions of Libevent: be careful!
 
  */
 
index 47a77a363928d381e6be52bf824e52bb82984159..61e23a588a8fbeb7cf124f3c36abd21b02c4d60c 100644 (file)
@@ -93,7 +93,7 @@ int event_reinit(struct event_base *base);
 int event_base_dispatch(struct event_base *);
 
 /**
- Get the kernel event notification mechanism used by libevent.
+ Get the kernel event notification mechanism used by Libevent.
 
  @param eb the event_base structure returned by event_base_new()
  @return a string identifying the kernel event mechanism (kqueue, epoll, etc.)
@@ -101,10 +101,10 @@ int event_base_dispatch(struct event_base *);
 const char *event_base_get_method(struct event_base *);
 
 /**
-   Gets all event notification mechanisms supported by libevent.
+   Gets all event notification mechanisms supported by Libevent.
 
    This functions returns the event mechanism in order preferred by
-   libevent.  Note that this list will include all backends that
+   Libevent.  Note that this list will include all backends that
    Libevent has compiled-in support for, and will not necessarily check
    your OS to see whether it has the required resources.
 
@@ -138,7 +138,7 @@ void event_config_free(struct event_config *cfg);
 
    This can be used to avoid event mechanisms that do not support certain
    file descriptor types.  An application can make use of multiple event
-   bases to accomodate incompatible file descriptor types.
+   bases to accommodate incompatible file descriptor types.
 
    @param cfg the event configuration object
    @param method the event method to avoid
@@ -232,7 +232,7 @@ void event_base_free(struct event_base *);
 #define _EVENT_LOG_ERR   3
 typedef void (*event_log_cb)(int severity, const char *msg);
 /**
-  Redirect libevent's log messages.
+  Redirect Libevent's log messages.
 
   @param cb a function taking two arguments: an integer severity between
      _EVENT_LOG_DEBUG and _EVENT_LOG_ERR, and a string.  If cb is NULL,
@@ -369,7 +369,7 @@ int event_base_loopbreak(struct event_base *);
   Note that using event_assign() request that you have already allocated the
   event struct.  Doing so will often require your code to depend on the size
   of the structure, and will create possible incompatibility with future
-  versions of libevent.  If this seems like a bad idea to you, use event_new()
+  versions of Libevent.  If this seems like a bad idea to you, use event_new()
   and event_free() instead.
 
   @param ev an event struct to be modified
@@ -517,7 +517,7 @@ struct event_base *event_get_base(struct event *ev);
 #endif
 
 /**
-   Get the libevent version.
+   Get the Libevent version.
 
    Note that this will give you the version of the library that you're
    currently linked against, not the version of the headers that you've
@@ -572,17 +572,17 @@ int       event_priority_set(struct event *, int);
 
 #ifndef _EVENT_DISABLE_MM_REPLACEMENT
 /**
- Override the functions that libevent uses for memory management.
+ Override the functions that Libevent uses for memory management.
 
- Usually, libevent uses the standard libc functions malloc, realloc, and
+ Usually, Libevent uses the standard libc functions malloc, realloc, and
  free to allocate memory.  Passing replacements for those functions to
  event_set_mem_functions() overrides this behavior.  To restore the default
  behavior, pass NULLs as the arguments to this function.
 
- Note that all memory returned from libevent will be allocated by the
+ Note that all memory returned from Libevent will be allocated by the
  replacement functions rather than by malloc() and realloc().  Thus, if you
  have replaced those functions, it may not be appropriate to free() memory
- that you get from libevent.
+ that you get from Libevent.
 
  @param malloc_fn A replacement for malloc.
  @param realloc_fn A replacement for realloc
index b59f9f9c02591c3ac321cb15dac9f49c7d5ae087..f83c2e0ea5c30f698583ce895d78290b471b0d39 100644 (file)
@@ -62,7 +62,7 @@ extern "C" {
   used.  Sets the current_base global representing the default base for
   events that have no base associated with them.
 
-  @deprecated This function is deprecated because it relaces the "current"
+  @deprecated This function is deprecated because it replaces the "current"
     event_base, and is totally unsafe for multithreaded use.  The replacement
     is event_base_new().
 
@@ -167,7 +167,7 @@ int event_once(evutil_socket_t , short,
 
 
 /**
-  Get the kernel event notification mechanism used by libevent.
+  Get the kernel event notification mechanism used by Libevent.
 
   @return a string identifying the kernel event mechanism (kqueue, epoll, etc.)
 
@@ -181,16 +181,16 @@ const char *event_get_method(void);
 /**
   Set the number of different event priorities.
 
-  By default libevent schedules all active events with the same priority.
+  By default Libevent schedules all active events with the same priority.
   However, some time it is desirable to process some events with a higher
-  priority than others.  For that reason, libevent supports strict priority
+  priority than others.  For that reason, Libevent supports strict priority
   queues.  Active events with a lower priority are always processed before
   events with a higher priority.
 
   The number of different priorities can be set initially with the
   event_priority_init() function.  This function should be called before the
   first call to event_dispatch().  The event_priority_set() function can be
-  used to assign a priority to an event.  By default, libevent assigns the
+  used to assign a priority to an event.  By default, Libevent assigns the
   middle priority to all events unless their priority is explicitly set.
 
   @deprecated This function is deprecated because it is easily confused by
index d55dbc6252b5c36389aec7bea54058bd23099130..2f0ff7a511262b41abd7afed0758d2aea866b40b 100644 (file)
@@ -65,7 +65,7 @@ extern "C" {
 /* EVLIST_X_ Private space: 0x1000-0xf000 */
 #define EVLIST_ALL     (0xf000 | 0x9f)
 
-/* Fix so that ppl dont have to run with <sys/queue.h> */
+/* Fix so that people don't have to run with <sys/queue.h> */
 #ifndef TAILQ_ENTRY
 #define _EVENT_DEFINED_TQENTRY
 #define TAILQ_ENTRY(type)                                              \
index 12ecddbfd134a8f299bf0ed3f5e2024310fef415..6b175668396ed461b4fb4f0c850401174189a9ac 100644 (file)
@@ -49,7 +49,7 @@ struct event_base;
  *
  * Basic support for HTTP serving.
  *
- * As libevent is a library for dealing with event notification and most
+ * As Libevent is a library for dealing with event notification and most
  * interesting applications are networked today, I have often found the
  * need to write HTTP code.  The following prototypes and definitions provide
  * an application with a minimal interface for making HTTP requests and for
@@ -328,7 +328,7 @@ void evhttp_connection_set_local_port(struct evhttp_connection *evcon,
 void evhttp_connection_set_timeout(struct evhttp_connection *evcon,
     int timeout_in_secs);
 
-/** Sets the retry limit for this connection - -1 repeats indefnitely */
+/** Sets the retry limit for this connection - -1 repeats indefinitely */
 void evhttp_connection_set_retries(struct evhttp_connection *evcon,
     int retry_max);
 
@@ -398,7 +398,7 @@ const char *evhttp_find_header(const struct evkeyvalq *headers,
     const char *key);
 
 /**
-   Removes a header from a list of exisiting headers.
+   Removes a header from a list of existing headers.
 
    @param headers the evkeyvalq object from which to remove a header
    @param key the name of the header to remove
@@ -408,7 +408,7 @@ const char *evhttp_find_header(const struct evkeyvalq *headers,
 int evhttp_remove_header(struct evkeyvalq *headers, const char *key);
 
 /**
-   Adds a header to a list of exisiting headers.
+   Adds a header to a list of existing headers.
 
    @param headers the evkeyvalq object to which to add a header
    @param key the name of the header
index b1ac069eaea41332c35d21377b8484d825f5caa7..ccd9f10b71f0a1a54e043564f88d72a0dfbb070a 100644 (file)
@@ -30,7 +30,7 @@
 /** @file http_struct.h
 
   Data structures for http.  Using these structures may hurt forward
-  compatibility with later versions of libevent: be careful!
+  compatibility with later versions of Libevent: be careful!
 
  */
 
index dfa7966b64a87653426091f22cc473b3c946e0f0..05b06ae40886bb9db202fc362d6f2dcd3c80957b 100644 (file)
@@ -57,7 +57,7 @@ extern "C" {
  * EVRPC_REGISTER(base, SendCommand, Request, Reply,  FunctionCB, arg);
  *
  * when the server receives an appropriately formatted RPC, the user callback
- * is invokved.   The callback needs to fill in the reply structure.
+ * is invoked.   The callback needs to fill in the reply structure.
  *
  * void FunctionCB(EVRPC_STRUCT(SendCommand)* rpc, void *arg);
  *
@@ -514,7 +514,7 @@ evrpc_resume_request(void *vbase, void *ctx, enum EVRPC_HOOK_RESULT res);
 /** adds meta data to request
  *
  * evrpc_hook_add_meta() allows hooks to add meta data to a request. for
- * a client requet, the meta data can be inserted by an outgoing request hook
+ * a client request, the meta data can be inserted by an outgoing request hook
  * and retrieved by the incoming request hook.
  *
  * @param ctx the context provided to the hook call
@@ -532,7 +532,7 @@ void evrpc_hook_add_meta(void *ctx, const char *key,
  * @param ctx the context provided to the hook call
  * @param key a NUL-terminated c-string
  * @param data pointer to a data pointer that will contain the retrieved data
- * @param data_size pointer tothe size of the data
+ * @param data_size pointer to the size of the data
  * @return 0 on success or -1 on failure
  */
 int evrpc_hook_find_meta(void *ctx, const char *key,
index 0879651d5d6224468339168b813a1f38cc401efb..7667ebceaab904431627d320149e27ff30101927 100644 (file)
 
 /** @file thread.h
 
-  Functions for multi-threaded applications using libevent.
+  Functions for multi-threaded applications using Libevent.
 
   When using a multi-threaded application in which multiple threads
-  add and delete events from a single event base, libevent needs to
+  add and delete events from a single event base, Libevent needs to
   lock its data structures.
 
   Like the memory-management function hooks, all of the threading functions
   use them.
 
   A multi-threaded application must provide locking functions to
-  libevent via evthread_set_locking_callback().  Libevent will invoke
+  Libevent via evthread_set_locking_callback().  Libevent will invoke
   this callback whenever a lock needs to be acquired or released.
 
-  The total number of locks employed by libevent can be determined
+  The total number of locks employed by Libevent can be determined
   via the evthread_num_locks() function.  An application must provision
   that many locks.
 
   If the owner of an event base is waiting for events to happen,
-  libevent may signal the thread via a special file descriptor to wake
+  Libevent may signal the thread via a special file descriptor to wake
   up.   To enable this feature, an application needs to provide a
   thread identity function via evthread_set_id_callback().
 
@@ -66,9 +66,9 @@ extern "C" {
 #define EVTHREAD_READ  0x08
 
 /**
-   Sets the functions libevent should use for allocating and freeing
+   Sets the functions Libevent should use for allocating and freeing
    locks.  This needs to be called in addition to
-   evthread_set_locking_callback() before using libevent in a
+   evthread_set_locking_callback() before using Libevent in a
    multi-threaded application.
 
    Locks must be recursive.  That is, it must be safe for a thread to
@@ -81,20 +81,20 @@ void evthread_set_lock_create_callbacks(
     void *(*alloc_fn)(void), void (*free_fn)(void *));
 
 /**
-   Sets the function libevent should use for locking.
+   Sets the function Libevent should use for locking.
 
-   @param locking_fn the function that libevent should invoke to acquire
+   @param locking_fn the function that Libevent should invoke to acquire
      or release a lock.  mode has either EVTHREAD_LOCK or EVTHREAD_UNLOCK
-     set, and in addition, either EVHTREAD_WRITE or EVTREAD_READ.
+     set, and in addition, either EVTHREAD_WRITE or EVTHREAD_READ.
  */
 void evthread_set_locking_callback(
     void (*locking_fn)(int mode, void *lock));
 
 /**
-   Sets the function for derminting the thread id.
+   Sets the function for determining the thread id.
 
    @param base the event base for which to set the id function
-   @param id_fn the identify function libevent should invoke to
+   @param id_fn the identify function Libevent should invoke to
      determine the identity of a thread.
 */
 void evthread_set_id_callback(
@@ -107,17 +107,17 @@ void evthread_set_id_callback(
 int evthread_make_base_notifiable(struct event_base *base);
 
 #ifdef WIN32
-/** Sets up libevent for use with Windows builtin locking and thread ID
-       functions.  Unavailable if libevent is not built for Windows.
+/** Sets up Libevent for use with Windows builtin locking and thread ID
+       functions.  Unavailable if Libevent is not built for Windows.
 
        @return 0 on success, -1 on failure. */
 int evthread_use_windows_threads(void);
 #endif
 
 #ifdef _EVENT_HAVE_PTHREADS
-/** Sets up libevent for use with Pthreadsn locking and thread ID functions.
-       Unavailable if libevent is not build for use with pthreads.  Requires
-       libraries to link against libevent_pthreads as well as libevent.
+/** Sets up Libevent for use with Pthreads locking and thread ID functions.
+       Unavailable if Libevent is not build for use with pthreads.  Requires
+       libraries to link against Libevent_pthreads as well as Libevent.
 
        @return 0 on success, -1 on failure. */
 int evthread_use_pthreads(void);
index 15ca3f313ded9bbbb5be690bfb1b5a759b446f7c..9a9dade6df2893cc775272f78d122a4dd7a03126 100644 (file)
@@ -58,7 +58,7 @@ extern "C" {
  * C99-specified stdint.h.  Shamefully, some platforms do not include
  * stdint.h, so we need to replace it.  (If you are on a platform like this,
  * your C headers are now 10 years out of date.  You should bug them to do
- * somthing about this.)
+ * something about this.)
  *
  * We define:
  *    ev_uint64_t, ev_uint32_t, ev_uint16_t, ev_uint8_t -- unsigned integer
@@ -147,7 +147,7 @@ int evutil_make_socket_nonblocking(evutil_socket_t sock);
     another program will be able to bind this address right after we've
     closed the listener
 
-    @param sock The socket to make reuseabla
+    @param sock The socket to make reusable
     @return 0 on success, -1 on failure
  */
 int evutil_make_listen_socket_reuseable(evutil_socket_t);
@@ -166,7 +166,7 @@ int evutil_make_listen_socket_reuseable(evutil_socket_t);
  * Elsewhere, a socket error is like any other error and is stored in errno.
  * But winsock functions require you to retrieve the error with a special
  * function, and don't let you use strerror for the error codes.  And handling
- * EWOULD block is ... different. */
+ * EWOULDBLOCK is ... different. */
 
 #ifdef WIN32
 /** Return the most recent socket error.  Not idempotent on all platforms. */
@@ -288,7 +288,7 @@ struct sockaddr;
     @param out A struct sockaddr to hold the result.  This should probably be
        a struct sockaddr_storage.
     @param outlen A pointer to the number of bytes that that 'out' can safely
-       hold.  Set to the number of bytes used in 'out' on sucess.
+       hold.  Set to the number of bytes used in 'out' on success.
     @return -1 if the address is not well-formed, if the port is out of range,
        or if out is not large enough to hold the result.  Otherwise returns
        0 on success.