Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0729-Fix-typos-in-erts-emulator-drivers.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0729-Fix-typos-in-erts-emulator-drivers.patch of Package erlang
From 4ac0ae38b1562cdd89e7d9870d5242991121ba63 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" <kianmeng@cpan.org> Date: Tue, 23 Nov 2021 18:12:09 +0800 Subject: [PATCH] Fix typos in erts/emulator/drivers --- erts/emulator/drivers/common/inet_drv.c | 22 ++++++++++----------- erts/emulator/drivers/common/ram_file_drv.c | 4 ++-- erts/emulator/drivers/unix/ttsl_drv.c | 6 +++--- erts/emulator/drivers/win32/ttsl_drv.c | 4 ++-- erts/emulator/drivers/win32/win_con.c | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index 00421d0c73..712e23fc31 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -1148,7 +1148,7 @@ typedef struct { unsigned long recv_cnt; /* number of packets received */ unsigned long recv_max; /* maximum packet size received */ double recv_avg; /* average packet size received */ - double recv_dvi; /* avarage deviation from avg_size */ + double recv_dvi; /* average deviation from avg_size */ #ifdef ARCH_64 Uint64 send_oct; /* number of octets sent, 64 bits */ #else @@ -1775,7 +1775,7 @@ static int load_inet_get_address #define INET_DRV_CACHE_LINE_MASK (INET_DRV_CACHE_LINE_SIZE - 1) /* -** Binary Buffer Managment +** Binary Buffer Management ** We keep a stack of usable buffers */ #define BUFFER_STACK_SIZE 14 @@ -3491,7 +3491,7 @@ static int compile_ancillary_data(struct msghdr *mhdr, break; } default: - /* Unknow socket option */ + /* Unknown socket option */ return 1; } #undef COMPILE_ANCILLARY_DATA_ITEM @@ -5573,7 +5573,7 @@ static ErlDrvSSizeT inet_ctl_ifget(inet_descriptor* desc, else { struct sockadd_in* ap; /* emulate netmask, - * (wasted stuff since noone uses classes) + * (wasted stuff since no one uses classes) */ buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_NETMASK; @@ -6982,7 +6982,7 @@ static char* sctp_get_initmsg(struct sctp_initmsg* ini, char* curr) } /* "sctp_get_sendparams": -** Parses (from the command buffer) the 6 user-sprcified parms of +** Parses (from the command buffer) the 6 user-specified params of ** "sctp_sndrcvinfo": ** stream(u16), flags(u16), ppid(u32), context(u32), ** timetoleave(u32), assoc_id @@ -7510,7 +7510,7 @@ static int sctp_set_opts(inet_descriptor* desc, char* ptr, int len) if (pmtud_disable) cflags |= SPP_PMTUD_DISABLE; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY - /* The followings are missing in FreeBSD 7.1 */ + /* The following are missing in FreeBSD 7.1 */ sackdelay_enable =eflags& SCTP_FLAG_SACDELAY_ENABLE; sackdelay_disable=eflags& SCTP_FLAG_SACDELAY_DISABLE; if (sackdelay_enable && sackdelay_disable) @@ -8251,7 +8251,7 @@ static ErlDrvSSizeT sctp_fill_opts(inet_descriptor* desc, return (Errno); \ } while(0) - /* Spec is a name parmeter */ + /* Spec is a name parameter */ # define PLACE_FOR(Spec, Index, N) \ do { \ int need; \ @@ -8789,7 +8789,7 @@ static ErlDrvSSizeT sctp_fill_opts(inet_descriptor* desc, i = LOAD_INT (spec, i, ap.spp_hbinterval); i = LOAD_INT (spec, i, ap.spp_pathmaxrxt); - /* The following fields are not suported in SOLARIS10, + /* The following fields are not supported in SOLARIS10, ** so put 0s for "spp_pathmtu", "spp_sackdelay", ** and empty list for "spp_flags": */ @@ -11165,7 +11165,7 @@ static int winsock_event_select(inet_descriptor *desc, int flags, int on) return -1; } - /* Now, WSAEventSelect() is trigged only when the queue goes from + /* Now, WSAEventSelect() is triggered only when the queue goes from full to empty or from empty to full; therefore we need an extra test to see whether it is writeable, readable or closed... */ if ((desc->event_mask & FD_WRITE)) { @@ -12099,7 +12099,7 @@ done: } #endif /* HAVE_SENDFILE */ -/* socket ready for ouput: +/* socket ready for output: ** 1. INET_STATE_CONNECTING => non block connect ? ** 2. INET_STATE_CONNECTED => write output */ @@ -12820,7 +12820,7 @@ static void packet_inet_timeout(ErlDrvData e) ** input should be: Family Address buffer . ** For UDP, buffer (after Address) is just data to be sent. ** For SCTP, buffer contains a list representing 2 items: -** (1) 6 parms for sctp_sndrcvinfo, as in sctp_get_sendparams(); +** (1) 6 params for sctp_sndrcvinfo, as in sctp_get_sendparams(); ** (2) 0+ real data bytes. ** There is no destination address -- SCTP send is performed over ** an existing association, using "sctp_sndrcvinfo" specified. diff --git a/erts/emulator/drivers/common/ram_file_drv.c b/erts/emulator/drivers/common/ram_file_drv.c index a954c8cd48..accb981b58 100644 --- a/erts/emulator/drivers/common/ram_file_drv.c +++ b/erts/emulator/drivers/common/ram_file_drv.c @@ -129,11 +129,11 @@ struct erl_drv_entry ram_file_driver_entry = { /* A File is represented as a array of bytes, this array is reallocated when needed. A possibly better implementation - whould be to have a vector of blocks. This may be implemented + would be to have a vector of blocks. This may be implemented when we have the commandv/driver_outputv */ typedef struct ram_file { - ErlDrvPort port; /* the associcated port */ + ErlDrvPort port; /* the associated port */ int flags; /* flags read/write */ ErlDrvBinary* bin; /* binary to hold binary file */ char* buf; /* buffer start (in binary) */ diff --git a/erts/emulator/drivers/unix/ttsl_drv.c b/erts/emulator/drivers/unix/ttsl_drv.c index a1f0a64945..7108b8bb07 100644 --- a/erts/emulator/drivers/unix/ttsl_drv.c +++ b/erts/emulator/drivers/unix/ttsl_drv.c @@ -82,7 +82,7 @@ char *tgetstr(char* cap, char** buf); char *tgoto(char* cm, int col, int line); int tputs(char* cp, int affcnt, int (*outc)(int c)); -/* Terminal capabilites in which we are interested. */ +/* Terminal capabilities in which we are interested. */ static char *capbuf; static char *up, *down, *left, *right; static int cols, xn; @@ -947,7 +947,7 @@ static int put_chars(byte *s, int l) } /* - * Move the current postition forwards or backwards within the current + * Move the current position forwards or backwards within the current * line. We know about padding. */ static int move_rel(int n) @@ -1546,7 +1546,7 @@ static int tty_reset(int fd) /* of terminal device */ /* * Signal handler to cope with signals so that we can reset the tty - * to the orignal settings + * to the original settings */ #ifdef ERTS_NOT_USED diff --git a/erts/emulator/drivers/win32/ttsl_drv.c b/erts/emulator/drivers/win32/ttsl_drv.c index 8d59682766..b55f5f6acb 100644 --- a/erts/emulator/drivers/win32/ttsl_drv.c +++ b/erts/emulator/drivers/win32/ttsl_drv.c @@ -489,7 +489,7 @@ static void ttysl_from_erlang(ErlDrvData ttysl_data, char* buf, ErlDrvSizeT coun if (buf[0] == OP_PUTC_SYNC) { /* On windows we do a blocking write to the tty so we just - send the ack immidiately. If at some point in the future + send the ack immediately. If at some point in the future someone has a problem with tty output being blocking this has to be changed. */ ErlDrvTermData spec[] = { @@ -568,7 +568,7 @@ static int put_chars(byte *s, int l) } /* - * Move the current postition forwards or backwards within the current + * Move the current position forwards or backwards within the current * line. We know about padding. */ static int move_rel(int n) diff --git a/erts/emulator/drivers/win32/win_con.c b/erts/emulator/drivers/win32/win_con.c index bbb3772f85..0169fa4cab 100644 --- a/erts/emulator/drivers/win32/win_con.c +++ b/erts/emulator/drivers/win32/win_con.c @@ -1903,7 +1903,7 @@ void LogFileWrite(TCHAR *buf, int num_chars) to = *((int *)buf); buf += (sizeof(int)/sizeof(TCHAR))-1; num_chars -= 2 * (sizeof(int)/sizeof(TCHAR)); - // Wont seek in Unicode file, sorry... + // Won't seek in Unicode file, sorry... // fseek(logfile,to-from *sizeof(TCHAR),SEEK_CUR); break; default: -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor