mirror of
https://github.com/curl/curl.git
synced 2026-08-12 15:50:55 +03:00
tidy-up: OS names
Use these words and casing more consistently across text, comments and one curl tool output: AIX, ALPN, ANSI, BSD, Cygwin, Darwin, FreeBSD, GitHub, HP-UX, Linux, macOS, MS-DOS, MSYS, MinGW, NTLM, POSIX, Solaris, UNIX, Unix, Unicode, WINE, WebDAV, Win32, winbind, WinIDN, Windows, Windows CE, Winsock. Mostly OS names and a few more. Also a couple of other minor text fixups. Closes #14360
This commit is contained in:
parent
a4ad7dc5a3
commit
f81f351b9a
146 changed files with 355 additions and 358 deletions
|
|
@ -28,7 +28,7 @@
|
|||
#include <netinet/in.h>
|
||||
#endif
|
||||
#ifdef _XOPEN_SOURCE_EXTENDED
|
||||
/* This define is "almost" required to build on HPUX 11 */
|
||||
/* This define is "almost" required to build on HP-UX 11 */
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETDB_H
|
||||
|
|
@ -143,7 +143,7 @@ static const char *win32_strerror(int err, char *buf, size_t buflen)
|
|||
return buf;
|
||||
}
|
||||
|
||||
/* use instead of perror() on generic windows */
|
||||
/* use instead of perror() on generic Windows */
|
||||
void win32_perror(const char *msg)
|
||||
{
|
||||
char buf[512];
|
||||
|
|
@ -166,7 +166,7 @@ void win32_init(void)
|
|||
|
||||
if(err) {
|
||||
perror("Winsock init failed");
|
||||
logmsg("Error initialising winsock -- aborting");
|
||||
logmsg("Error initialising Winsock -- aborting");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
@ -190,7 +190,7 @@ void win32_cleanup(void)
|
|||
_flushall();
|
||||
}
|
||||
|
||||
/* socket-safe strerror (works on WinSock errors, too */
|
||||
/* socket-safe strerror (works on Winsock errors, too */
|
||||
const char *sstrerror(int err)
|
||||
{
|
||||
static char buf[512];
|
||||
|
|
@ -550,7 +550,7 @@ static void exit_signal_handler(int signum)
|
|||
* They are included for ANSI compatibility. Therefore, you can set
|
||||
* signal handlers for these signals by using signal, and you can also
|
||||
* explicitly generate these signals by calling raise. Source:
|
||||
* https://docs.microsoft.com/de-de/cpp/c-runtime-library/reference/signal
|
||||
* https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/signal
|
||||
*/
|
||||
static BOOL WINAPI ctrl_event_handler(DWORD dwCtrlType)
|
||||
{
|
||||
|
|
@ -690,7 +690,7 @@ static SIGHANDLER_T set_signal(int signum, SIGHANDLER_T handler,
|
|||
void install_signal_handlers(bool keep_sigalrm)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
/* setup windows exit event before any signal can trigger */
|
||||
/* setup Windows exit event before any signal can trigger */
|
||||
exit_event = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||
if(!exit_event)
|
||||
logmsg("cannot create exit event");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue