]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs/libcurl: polish the single-line descriptions
authorDaniel Stenberg <daniel@haxx.se>
Sat, 29 Jun 2024 22:08:06 +0000 (00:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 30 Jun 2024 14:03:03 +0000 (16:03 +0200)
- use imperative form
- use lowercase
- no period
- unify some phrases
- fix curl_multi_socket and curl_multi_socket_all to keep their own
  descriptions

Closes #14062

27 files changed:
docs/libcurl/curl_easy_cleanup.md
docs/libcurl/curl_easy_duphandle.md
docs/libcurl/curl_easy_escape.md
docs/libcurl/curl_easy_init.md
docs/libcurl/curl_easy_unescape.md
docs/libcurl/curl_easy_upkeep.md
docs/libcurl/curl_escape.md
docs/libcurl/curl_formget.md
docs/libcurl/curl_getdate.md
docs/libcurl/curl_global_init.md
docs/libcurl/curl_global_init_mem.md
docs/libcurl/curl_global_sslset.md
docs/libcurl/curl_multi_fdset.md
docs/libcurl/curl_multi_get_handles.md
docs/libcurl/curl_multi_perform.md
docs/libcurl/curl_multi_poll.md
docs/libcurl/curl_multi_socket.md
docs/libcurl/curl_multi_socket_action.md
docs/libcurl/curl_multi_socket_all.md
docs/libcurl/curl_multi_wait.md
docs/libcurl/curl_multi_waitfds.md
docs/libcurl/curl_multi_wakeup.md
docs/libcurl/curl_share_cleanup.md
docs/libcurl/curl_share_init.md
docs/libcurl/curl_share_setopt.md
docs/libcurl/curl_unescape.md
docs/libcurl/curl_url.md

index e939dddc7237876641c38d9d5c64d981e55703f8..1ce8162d31bc6794e790166ab6aab5aa81b89e2a 100644 (file)
@@ -16,7 +16,7 @@ Protocol:
 
 # NAME
 
-curl_easy_cleanup - End a libcurl easy handle
+curl_easy_cleanup - free an easy handle
 
 # SYNOPSIS
 
index 49d95ad989070cd70a68b8cb9141a944cd74f78e..8c8999cdb36087b0944584507726d76295727220 100644 (file)
@@ -15,7 +15,7 @@ Protocol:
 
 # NAME
 
-curl_easy_duphandle - Clone a libcurl session handle
+curl_easy_duphandle - clone an easy handle
 
 # SYNOPSIS
 
index dfe4bf5f3ae4f9c68b98ac220b940bcde902c323..272d607171d0bff8bf539b1711ffebb70a183587 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_easy_escape - URL encodes the given string
+curl_easy_escape - URL encode a string
 
 # SYNOPSIS
 
index 9d282bdf3cd5cd1ce544bb0bb70218b890417f45..f8ffd95b5033ef12ec198976c1ba3d200599593b 100644 (file)
@@ -17,7 +17,7 @@ Protocol:
 
 # NAME
 
-curl_easy_init - Start a libcurl easy session
+curl_easy_init - create an easy handle
 
 # SYNOPSIS
 
index 00951d96ec398d2483597ee577394096e0aa1899..a99b4e30f6e2f4975f476a8191bcee6bb559ee88 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_easy_unescape - URL decodes the given string
+curl_easy_unescape - URL decode a string
 
 # SYNOPSIS
 
index eec4ed2f402d47fd530e4e4839977d62e5a517c3..c1c7c4a4710f5a0afbafc29fff95e861d051f23b 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_easy_upkeep - Perform any connection upkeep checks.
+curl_easy_upkeep - keep existing connections alive
 
 # SYNOPSIS
 
index d15a4debccefb7ddca80138aa6ce4422a877c47c..4ec3fec91ccd33df5e642b24ca2699bab0857ea7 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_escape - URL encodes the given string
+curl_escape - URL encode a string
 
 # SYNOPSIS
 
index 2ec8d119ccb4643ac571c510b74820a6033f171e..ba8f3b1e25e593d1c6c7ca168be6fa4fe5d93303 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_formget - serialize a previously built multipart form POST chain
+curl_formget - serialize a multipart form POST chain
 
 # SYNOPSIS
 
index 8df080ce9fa756f998dabfd1782a504cbe0a12be..0dae3dc1d1ffd2e9b6eb750b0d42860f576c944e 100644 (file)
@@ -15,7 +15,7 @@ Protocol:
 
 # NAME
 
-curl_getdate - Convert a date string to number of seconds
+curl_getdate - convert date string to number of seconds
 
 # SYNOPSIS
 
index e48a1f36fed15094e4534ee57f3421e5337943d7..bc78d4cdc66bbc0f8333ef654bcd463719707a7c 100644 (file)
@@ -17,7 +17,7 @@ Protocol:
 
 # NAME
 
-curl_global_init - Global libcurl initialization
+curl_global_init - global libcurl initialization
 
 # SYNOPSIS
 
index 229d4d606be62243695b13e065a8ac5dc6609c3c..04e44478141c0a6871702d8d2436469009063b0a 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_global_init_mem - Global libcurl initialization with memory callbacks
+curl_global_init_mem - global libcurl initialization with memory callbacks
 
 # SYNOPSIS
 
index 1fdc2d3201cbcade94a1ad634e4de0139032b552..f688ed2b9c2d5c0004be2b8ea7a3ea7165bb0809 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_global_sslset - Select SSL backend to use with libcurl
+curl_global_sslset - select SSL backend to use
 
 # SYNOPSIS
 
index 78299610c21a5473620d9b6c7fd36947edf00656..640008d36cd3ec746a59b487066a17519e2744a5 100644 (file)
@@ -18,7 +18,7 @@ Protocol:
 
 # NAME
 
-curl_multi_fdset - extracts file descriptor information from a multi handle
+curl_multi_fdset - extract file descriptor information from a multi handle
 
 # SYNOPSIS
 
index a0b4bfb9c5a42acc289a6765a3194206dc787adb..a2544b433d46c03f8bc8ddf860517136edd93b95 100644 (file)
@@ -15,7 +15,7 @@ Protocol:
 
 # NAME
 
-curl_multi_get_handles - returns all added easy handles
+curl_multi_get_handles - return all added easy handles
 
 # SYNOPSIS
 
index eebed6e7d0e076571d0782eb307a4d901c9355cd..c49336b00c0331f05bcc6a41191e430b94c333cd 100644 (file)
@@ -18,7 +18,7 @@ Protocol:
 
 # NAME
 
-curl_multi_perform - reads/writes available data from easy handles
+curl_multi_perform - run all transfers until it would block
 
 # SYNOPSIS
 
index aea2baaad9b3a19ab3898edc42867e1199488ad6..8fe6a96794adc7d72ff2187b1f38d74c279d1413 100644 (file)
@@ -15,7 +15,7 @@ Protocol:
 
 # NAME
 
-curl_multi_poll - polls on all easy handles in a multi handle
+curl_multi_poll - poll on all easy handles in a multi handle
 
 # SYNOPSIS
 
index 4c85d01997b23db0ab2cc4d29cdb5c60e56b01b8..c016a3c216fa40d432e858141be991867f33bbc3 100644 (file)
@@ -16,7 +16,7 @@ Protocol:
 
 # NAME
 
-curl_multi_socket - reads/writes available data
+curl_multi_socket - read/write available data
 
 # SYNOPSIS
 
@@ -24,47 +24,37 @@ curl_multi_socket - reads/writes available data
 #include <curl/curl.h>
 CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t sockfd,
                             int *running_handles);
-
-CURLMcode curl_multi_socket_all(CURLM *multi_handle,
-                                int *running_handles);
 ~~~
 
 # DESCRIPTION
 
-These functions are deprecated. Do not use. See
-curl_multi_socket_action(3) instead.
+This function is deprecated. Do not use. See curl_multi_socket_action(3)
+instead.
 
 At return, the integer **running_handles** points to contains the number of
 still running easy handles within the multi handle. When this number reaches
 zero, all transfers are complete/done. Note that when you call
-curl_multi_socket_action(3) on a specific socket and the counter
-decreases by one, it DOES NOT necessarily mean that this exact socket/transfer
-is the one that completed. Use curl_multi_info_read(3) to figure out
-which easy handle that completed.
-
-The curl_multi_socket_action(3) functions inform the application about
-updates in the socket (file descriptor) status by doing none, one, or multiple
-calls to the socket callback function set with the
-CURLMOPT_SOCKETFUNCTION(3) option to curl_multi_setopt(3). They
-update the status with changes since the previous time the callback was
-called.
-
-Get the timeout time by setting the CURLMOPT_TIMERFUNCTION(3) option
-with curl_multi_setopt(3). Your application then gets called with
-information on how long to wait for socket actions at most before doing the
-timeout action: call the curl_multi_socket_action(3) function with the
-**sockfd** argument set to CURL_SOCKET_TIMEOUT. You can also use the
-curl_multi_timeout(3) function to poll the value at any given time, but
-for an event-based system using the callback is far better than relying on
-polling the timeout value.
+curl_multi_socket(3) on a specific socket and the counter decreases by one, it
+DOES NOT necessarily mean that this exact socket/transfer is the one that
+completed. Use curl_multi_info_read(3) to figure out which easy handle that
+completed.
+
+The curl_multi_socket(3) functions inform the application about updates in the
+socket (file descriptor) status by doing none, one, or multiple calls to the
+socket callback function set with the CURLMOPT_SOCKETFUNCTION(3) option to
+curl_multi_setopt(3). They update the status with changes since the previous
+time the callback was called.
+
+Get the timeout time by setting the CURLMOPT_TIMERFUNCTION(3) option with
+curl_multi_setopt(3). Your application then gets called with information on
+how long to wait for socket actions at most before doing the timeout action:
+call the curl_multi_socket_action(3) function with the **sockfd** argument set
+to CURL_SOCKET_TIMEOUT. You can also use the curl_multi_timeout(3) function to
+poll the value at any given time, but for an event-based system using the
+callback is far better than relying on polling the timeout value.
 
 Usage of curl_multi_socket(3) is deprecated, whereas the function is
-equivalent to curl_multi_socket_action(3) with **ev_bitmask** set to
-0.
-
-Force libcurl to (re-)check all its internal sockets and transfers instead of
-just a single one by calling curl_multi_socket_all(3). Note that there
-should not be any reason to use this function.
+equivalent to curl_multi_socket_action(3) with **ev_bitmask** set to 0.
 
 # EXAMPLE
 
@@ -86,8 +76,7 @@ int main(void)
 This function was added in libcurl 7.15.4, and is deemed stable since
 7.16.0.
 
-curl_multi_socket(3) is deprecated, use
-curl_multi_socket_action(3) instead!
+curl_multi_socket(3) is deprecated, use curl_multi_socket_action(3) instead!
 
 # RETURN VALUE
 
index c7faa7637267a4e986162aa976474cd4c2ebbe57..7b547cfa45d85057a7b6804f90e7706ec0743b48 100644 (file)
@@ -16,7 +16,7 @@ Protocol:
 
 # NAME
 
-curl_multi_socket_action - reads/writes available data given an action
+curl_multi_socket_action - read/write available data given an action
 
 # SYNOPSIS
 
index 4c85d01997b23db0ab2cc4d29cdb5c60e56b01b8..6b95fc3932b1b8f6060b75f727460c882b5111a4 100644 (file)
@@ -16,14 +16,12 @@ Protocol:
 
 # NAME
 
-curl_multi_socket - reads/writes available data
+curl_multi_socket_all - reads/writes available data for all easy handles
 
 # SYNOPSIS
 
 ~~~c
 #include <curl/curl.h>
-CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t sockfd,
-                            int *running_handles);
 
 CURLMcode curl_multi_socket_all(CURLM *multi_handle,
                                 int *running_handles);
@@ -31,62 +29,34 @@ CURLMcode curl_multi_socket_all(CURLM *multi_handle,
 
 # DESCRIPTION
 
-These functions are deprecated. Do not use. See
-curl_multi_socket_action(3) instead.
+This function is deprecated. Do not use. See curl_multi_socket_action(3)
+instead.
 
 At return, the integer **running_handles** points to contains the number of
 still running easy handles within the multi handle. When this number reaches
-zero, all transfers are complete/done. Note that when you call
-curl_multi_socket_action(3) on a specific socket and the counter
-decreases by one, it DOES NOT necessarily mean that this exact socket/transfer
-is the one that completed. Use curl_multi_info_read(3) to figure out
-which easy handle that completed.
-
-The curl_multi_socket_action(3) functions inform the application about
-updates in the socket (file descriptor) status by doing none, one, or multiple
-calls to the socket callback function set with the
-CURLMOPT_SOCKETFUNCTION(3) option to curl_multi_setopt(3). They
-update the status with changes since the previous time the callback was
-called.
-
-Get the timeout time by setting the CURLMOPT_TIMERFUNCTION(3) option
-with curl_multi_setopt(3). Your application then gets called with
-information on how long to wait for socket actions at most before doing the
-timeout action: call the curl_multi_socket_action(3) function with the
-**sockfd** argument set to CURL_SOCKET_TIMEOUT. You can also use the
-curl_multi_timeout(3) function to poll the value at any given time, but
-for an event-based system using the callback is far better than relying on
-polling the timeout value.
-
-Usage of curl_multi_socket(3) is deprecated, whereas the function is
-equivalent to curl_multi_socket_action(3) with **ev_bitmask** set to
-0.
+zero, all transfers are complete/done.
 
 Force libcurl to (re-)check all its internal sockets and transfers instead of
-just a single one by calling curl_multi_socket_all(3). Note that there
-should not be any reason to use this function.
+just a single one by calling curl_multi_socket_all(3). Note that there should
+not be any reason to use this function.
 
 # EXAMPLE
 
 ~~~c
 int main(void)
 {
-  /* the event-library gets told when there activity on the socket 'fd',
-     which we translate to a call to curl_multi_socket_action() */
   int running;
   int rc;
-  int fd;
   CURLM *multi;
-  rc = curl_multi_socket(multi, fd, &running);
+  rc = curl_multi_socket_all(multi, &running);
 }
 ~~~
 
 # AVAILABILITY
 
-This function was added in libcurl 7.15.4, and is deemed stable since
-7.16.0.
+This function was added in libcurl 7.15.4, and is deemed stable since 7.16.0.
 
-curl_multi_socket(3) is deprecated, use
+curl_multi_socket_all(3) is deprecated, use
 curl_multi_socket_action(3) instead!
 
 # RETURN VALUE
index 7440d7b3d9013c60be966580ff49378a25d6c6a1..d86b7d4ebe0f0b3917d8afe00c5991641648ff4a 100644 (file)
@@ -14,7 +14,7 @@ Protocol:
 
 # NAME
 
-curl_multi_wait - polls on all easy handles in a multi handle
+curl_multi_wait - poll on all easy handles in a multi handle
 
 # SYNOPSIS
 
index 3e4c260915a48c3a85ab4510f72700e4c9e81845..c2231b95972a51be6342d3f9f82a52bcd0b51be6 100644 (file)
@@ -15,7 +15,7 @@ Protocol:
 
 # NAME
 
-curl_multi_waitfds - extracts file descriptor information from a multi handle
+curl_multi_waitfds - extract file descriptor information from a multi handle
 
 # SYNOPSIS
 
index cadaeaa31b8df3cc63de04ceea88487408fafc14..26a013454e60c623cdd9954ad6f34334cb289683 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_multi_wakeup - wakes up a sleeping curl_multi_poll call
+curl_multi_wakeup - wake up a sleeping curl_multi_poll call
 
 # SYNOPSIS
 
index 36acc6f08b845841dcf431ff69541baa9fdee820..4173abf1d5383489cf2527d6188ab6062fc66824 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_share_cleanup - Clean up a shared object
+curl_share_cleanup - close a shared object
 
 # SYNOPSIS
 
index 2e74dfed859fa035219ef7c2d3caceb60d7d5d35..ab8d574a4c6e9473adcd9112894a5605830cab62 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_share_init - Create a shared object
+curl_share_init - create a share object
 
 # SYNOPSIS
 
index 166f5f6ba495488a085bf938b0d85f50d2af3953..c2ef90d4f47e9140de259cdb0b2969c5a40bda40 100644 (file)
@@ -13,7 +13,7 @@ Protocol:
 
 # NAME
 
-curl_share_setopt - Set options for a shared object
+curl_share_setopt - set options for a shared object
 
 # SYNOPSIS
 
index adcce8b14fde55eab5d88478d320c54a9dab0086..6eda0e70b0d475575e2f6df7fa15b90e7d772202 100644 (file)
@@ -15,7 +15,7 @@ Protocol:
 
 # NAME
 
-curl_unescape - URL decodes the given string
+curl_unescape - URL decode a string
 
 # SYNOPSIS
 
index acab43d88c8a51939437d6ada21493197ecb1da2..708f0ce7d7ee7127bca867ef7d5403ca0c4bf63d 100644 (file)
@@ -17,7 +17,7 @@ Protocol:
 
 # NAME
 
-curl_url - returns a new URL handle
+curl_url - create a URL handle
 
 # SYNOPSIS