Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0223-Fix-typos-in-erts-etc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0223-Fix-typos-in-erts-etc.patch of Package erlang
From 4be558223ffd4abd339f98256c155bc2c6fb4d01 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" <kianmeng@cpan.org> Date: Tue, 23 Nov 2021 18:20:15 +0800 Subject: [PATCH] Fix typos in erts/etc --- erts/etc/common/erlexec.c | 8 ++++---- erts/etc/common/etc_common.h | 2 +- erts/etc/common/heart.c | 6 +++--- erts/etc/common/inet_gethost.c | 10 +++++----- erts/etc/unix/RELNOTES | 6 +++--- erts/etc/unix/etp-commands.in | 6 +++--- erts/etc/unix/format_man_pages | 2 +- erts/etc/unix/makewhatis | 4 ++-- erts/etc/unix/run_erl.c | 6 +++--- erts/etc/unix/to_erl.c | 2 +- erts/etc/win32/cygwin_tools/mingw/cc.sh | 2 +- erts/etc/win32/cygwin_tools/mingw/coffix.c | 6 +++--- erts/etc/win32/cygwin_tools/vc/cc.sh | 4 ++-- erts/etc/win32/cygwin_tools/vc/coffix.c | 6 +++--- erts/etc/win32/erl_log.c | 2 +- erts/etc/win32/erlsrv/erlsrv_service.c | 2 +- erts/etc/win32/msys_tools/vc/cc.sh | 4 ++-- erts/etc/win32/msys_tools/vc/coffix.c | 6 +++--- erts/etc/win32/nsis/erlang20.nsi | 4 ++-- erts/etc/win32/nsis/find_redist.sh | 2 +- erts/etc/win32/port_entry.c | 2 +- erts/etc/win32/start_erl.c | 2 +- erts/etc/win32/wsl_tools/vc/cc.sh | 6 +++--- erts/etc/win32/wsl_tools/vc/coffix.c | 6 +++--- 24 files changed, 53 insertions(+), 53 deletions(-) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c index e5f8ee6f77..067c398868 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c @@ -1712,7 +1712,7 @@ static char **build_args_from_string(char *string, int allow_comments) { int argc = 0; char **argv = NULL; - int alloced = 0; + int allocated = 0; char **cur_s = NULL; /* Initialized to avoid warning. */ int s_alloced = 0; int s_pos = 0; @@ -1731,15 +1731,15 @@ static char **build_args_from_string(char *string, int allow_comments) if (!p) return NULL; - argv = emalloc(sizeof(char *) * (alloced = 10)); + argv = emalloc(sizeof(char *) * (allocated = 10)); state = Start; for(;;) { switch (state) { case Start: if (!*p) goto done; - if (argc >= alloced - 2) { /* Make room for extra NULL and "--" */ - argv = erealloc(argv, (alloced += 10) * sizeof(char *)); + if (argc >= allocated - 2) { /* Make room for extra NULL and "--" */ + argv = erealloc(argv, (allocated += 10) * sizeof(char *)); } cur_s = argc + argv; *cur_s = NULL; diff --git a/erts/etc/common/etc_common.h b/erts/etc/common/etc_common.h index 93036db200..81f80d636e 100644 --- a/erts/etc/common/etc_common.h +++ b/erts/etc/common/etc_common.h @@ -59,7 +59,7 @@ #include "erl_printf.h" #ifdef __WIN32__ -/* FIXE ME config_win32.h? */ +/* FIXME config_win32.h? */ #define HAVE_STRERROR 1 #define snprintf _snprintf #endif diff --git a/erts/etc/common/heart.c b/erts/etc/common/heart.c index b718a125dc..b0770125b6 100644 --- a/erts/etc/common/heart.c +++ b/erts/etc/common/heart.c @@ -63,7 +63,7 @@ * This program communicates with Erlang through the standard * input and output file descriptors (0 and 1). These descriptors * (and the standard error descriptor 2) must NOT be closed - * explicitely by this program at termination (in UNIX it is + * explicitly by this program at termination (in UNIX it is * taken care of by the operating system itself). * * END OF FILE @@ -335,7 +335,7 @@ int main(int argc, char **argv) { AllocConsole(); conh = freopen("CONOUT$","w",stderr); if (conh != NULL) - fprintf(conh,"console alloced\n"); + fprintf(conh,"console allocated\n"); } debugf("stderr\n"); } @@ -408,7 +408,7 @@ message_loop(erlin_fd, erlout_fd) #endif /* * Maybe heart beat time-out - * If we havn't got anything in 60 seconds we reboot, even if we may + * If we haven't got anything in 60 seconds we reboot, even if we may * have got something in the last 5 seconds. We may end up here if * the system clock is adjusted with more than 55 seconds, but we * regard this as en error and reboot anyway. diff --git a/erts/etc/common/inet_gethost.c b/erts/etc/common/inet_gethost.c index 60a4073d1e..af313e4185 100644 --- a/erts/etc/common/inet_gethost.c +++ b/erts/etc/common/inet_gethost.c @@ -973,7 +973,7 @@ static void main_loop(void) } if (BEE_GREEDY()) { - DEBUGF(4,("Beeing greedy!")); + DEBUGF(4,("Being greedy!")); if ((cw = pick_worker_greedy(domainbuff)) != NULL) { /* Put it in the worker specific que if the domainname matches... */ @@ -1483,7 +1483,7 @@ static int ignore_reply(Worker *pw) #endif /* !WIN32 */ /* - * Domain name "parsing" and worker specific queing + * Domain name "parsing" and worker specific queueing */ static void domaincopy(AddrByte *out, AddrByte *in) { @@ -2333,7 +2333,7 @@ static int read_exact(HANDLE fd, void *vbuff, DWORD nbytes, HANDLE ev) } } } else { - DEBUGF(4,("Read completed syncronously, result %d",ret)); + DEBUGF(4,("Read completed synchronously, result %d",ret)); } if (ret == 0) { DEBUGF(1, ("End of file detected as zero read from pipe.")); @@ -2369,7 +2369,7 @@ static int write_exact(HANDLE fd, AddrByte *buff, DWORD len, HANDLE ev) stat = WriteFile(fd,buff,x,&res,&ov); if (!stat) { if ((err = GetLastError()) == ERROR_IO_PENDING) { - DEBUGF(4,("Overlapped write, waiting for competion...")); + DEBUGF(4,("Overlapped write, waiting for completion...")); WaitForSingleObject(ov.hEvent,INFINITE); stat = GetOverlappedResult(fd,&ov,&res,TRUE); DEBUGF(4,("Overlapped write, completed with status %d," @@ -2383,7 +2383,7 @@ static int write_exact(HANDLE fd, AddrByte *buff, DWORD len, HANDLE ev) } } } else { - DEBUGF(4,("Write completed syncronously, result %d",res)); + DEBUGF(4,("Write completed synchronously, result %d",res)); } if (res < x) { diff --git a/erts/etc/unix/RELNOTES b/erts/etc/unix/RELNOTES index 7b4a1746fe..5f8a1db9d0 100644 --- a/erts/etc/unix/RELNOTES +++ b/erts/etc/unix/RELNOTES @@ -191,9 +191,9 @@ the 4.2 system, but there is a number of incompatibilities. could fail after a large series of printouts without any newlines "\n" at all. --- Formating of floats: a '9' would sometimes become a ':'. +-- Formatting of floats: a '9' would sometimes become a ':'. --- Formating with the use of '*' and negativ size fields now work +-- Formatting with the use of '*' and negative size fields now work as expected. -- The format of the 'EXIT' values is now ALWAYS the same @@ -264,7 +264,7 @@ QNX -- The 4.3 system is not object code compatible with 4.2. This means that all source code has to be recompiled. It is not possible to load 4.2 object code. It is also not - possible to run distribution between 4.3 and erlier versions + possible to run distribution between 4.3 and earlier versions due to the new alive check. -- The external term format has been changed. This will only affect diff --git a/erts/etc/unix/etp-commands.in b/erts/etc/unix/etp-commands.in index fbfb3e5022..bd70ddaba5 100644 --- a/erts/etc/unix/etp-commands.in +++ b/erts/etc/unix/etp-commands.in @@ -1905,7 +1905,7 @@ document etp-stackdump % % Take an Process* and print a stackdump for the process. % The stackdump consists of all pushed values on the stack. -% All code continuation pointers are preceeded with a line +% All code continuation pointers are preceded with a line % of dashes to make the stack frames more visible. %--------------------------------------------------------------------------- end @@ -3385,7 +3385,7 @@ document etp-disasm %--------------------------------------------------------------------------- % etp-fds BeamInstr* (BeamInstr*) % -% Disassemble the instructions inbetween arg0 and arg1, +% Disassemble the instructions between arg0 and arg1, % if no second argument is given only the current % instruction is printed. %--------------------------------------------------------------------------- @@ -4454,7 +4454,7 @@ define etp-lc-dump if 0 <= $etp_lc_dump_thread_locked->id && $etp_lc_dump_thread_locked->id < sizeof(erts_lock_order)/sizeof(erts_lc_lock_order_t) printf " %s:", erts_lock_order[$etp_lc_dump_thread_locked->id].name else - printf " unkown:" + printf " unknown:" end if ($etp_lc_dump_thread_locked->extra & 0x3) == 0x3 etp-1 $etp_lc_dump_thread_locked->extra diff --git a/erts/etc/unix/format_man_pages b/erts/etc/unix/format_man_pages index 0afff13571..00c5a74e61 100644 --- a/erts/etc/unix/format_man_pages +++ b/erts/etc/unix/format_man_pages @@ -92,7 +92,7 @@ case :"$TARGET" in ## /usr/sbin/makewhatis -v $ERL_ROOT/man -c $ERL_ROOT/man > /dev/null 2>&1 if [ ! -x /usr/bin/groff ]; then - echo "Cannot find groff - no formating of manual pages" + echo "Cannot find groff - no formatting of manual pages" exit fi diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c index 8731f54be4..388051dd92 100644 --- a/erts/etc/unix/run_erl.c +++ b/erts/etc/unix/run_erl.c @@ -828,7 +828,7 @@ static int find_next_log_num(void) { /* open_log() * Opens a log file (with given index) for writing. Writing may be - * at the end or a trucnating write, according to flags. + * at the end or a truncating write, according to flags. * A LOGGING STARTED and time stamp message is inserted into the log file */ static int open_log(int log_num, int flags) @@ -988,7 +988,7 @@ static int open_pty_master(char **ptyslave, int *sfdp) /* X is in "pqrs" and Y in "0123456789abcdef" but FreeBSD */ /* and some Linux version has extended this. */ - /* This code could probebly be improved alot. For example look at */ + /* This code could probebly be improved a lot. For example look at */ /* http://www.xcf.berkeley.edu/~ali/K0D/UNIX/PTY/code/pty.c.html */ /* http://www.xcf.berkeley.edu/~ali/K0D/UNIX/PTY/code/upty.h.html */ @@ -1368,7 +1368,7 @@ static int sf_close(int fd) { return close(fd); } -/* Extract any control sequences that are ment only for run_erl +/* Extract any control sequences that are meant only for run_erl * and should not be forwarded to the pty. */ static int extract_ctrl_seq(char* buf, int len) diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c index 17b6cfa98b..81d2ef5738 100644 --- a/erts/etc/unix/to_erl.c +++ b/erts/etc/unix/to_erl.c @@ -487,7 +487,7 @@ int main(int argc, char **argv) } /* - * Reset terminal characterstics + * Reset terminal characteristics * XXX */ tcsetattr(0, TCSADRAIN, &tty_rmode); diff --git a/erts/etc/win32/cygwin_tools/mingw/cc.sh b/erts/etc/win32/cygwin_tools/mingw/cc.sh index 0b321a5099..fd85b74c9d 100755 --- a/erts/etc/win32/cygwin_tools/mingw/cc.sh +++ b/erts/etc/win32/cygwin_tools/mingw/cc.sh @@ -269,7 +269,7 @@ if [ $LINKING = true ]; then *) out_spec="-o $OUTFILE";; esac - # Descide which standard library to link against + # Decide which standard library to link against case $MD in -ML) stdlib="-lLIBC";; diff --git a/erts/etc/win32/cygwin_tools/mingw/coffix.c b/erts/etc/win32/cygwin_tools/mingw/coffix.c index ff3f3de3d1..1e0ecffc37 100644 --- a/erts/etc/win32/cygwin_tools/mingw/coffix.c +++ b/erts/etc/win32/cygwin_tools/mingw/coffix.c @@ -43,7 +43,7 @@ static int v_printf(char *format, ...); char *progname; -int verbouse = 0; +int verbose = 0; int main(int argc, char **argv) { @@ -66,7 +66,7 @@ int main(int argc, char **argv) break; case 'v': case 'V': - verbouse = 1; + verbose = 1; default: fprintf(stderr, "%s: unknown option %s\n", progname, argv[findex]); break; @@ -152,7 +152,7 @@ static int v_printf(char *format, ...) { va_list ap; int ret = 0; - if (verbouse) { + if (verbose) { va_start(ap, format); ret = vfprintf(stdout, format, ap); va_end(ap); diff --git a/erts/etc/win32/cygwin_tools/vc/cc.sh b/erts/etc/win32/cygwin_tools/vc/cc.sh index 9eeb004f0e..9016e24ec1 100755 --- a/erts/etc/win32/cygwin_tools/vc/cc.sh +++ b/erts/etc/win32/cygwin_tools/vc/cc.sh @@ -38,7 +38,7 @@ ERR_FILE=/tmp/cl.exe.$$.2 MD_FORCED=false # If we're preprocession (only) i.e. -E PREPROCESSING=false -# If we're generating dependencies (implies preprocesing) +# If we're generating dependencies (implies preprocessing) DEPENDENCIES=false # If this is supposed to be a debug build DEBUG_BUILD=false @@ -297,7 +297,7 @@ if [ $LINKING = true ]; then *) out_spec="-o $OUTFILE";; esac - # Descide which standard library to link against + # Decide which standard library to link against case $MD in -ML) stdlib="-lLIBC";; diff --git a/erts/etc/win32/cygwin_tools/vc/coffix.c b/erts/etc/win32/cygwin_tools/vc/coffix.c index bf1096c425..48a7ae5822 100644 --- a/erts/etc/win32/cygwin_tools/vc/coffix.c +++ b/erts/etc/win32/cygwin_tools/vc/coffix.c @@ -43,7 +43,7 @@ static int v_printf(char *format, ...); char *progname; -int verbouse = 0; +int verbose = 0; int main(int argc, char **argv) { @@ -66,7 +66,7 @@ int main(int argc, char **argv) break; case 'v': case 'V': - verbouse = 1; + verbose = 1; default: fprintf(stderr, "%s: unknown option %s\n", progname, argv[findex]); break; @@ -152,7 +152,7 @@ static int v_printf(char *format, ...) { va_list ap; int ret = 0; - if (verbouse) { + if (verbose) { va_start(ap, format); ret = vfprintf(stdout, format, ap); va_end(ap); diff --git a/erts/etc/win32/erl_log.c b/erts/etc/win32/erl_log.c index ed2fb294de..25288c00c9 100644 --- a/erts/etc/win32/erl_log.c +++ b/erts/etc/win32/erl_log.c @@ -21,7 +21,7 @@ * erl_log: * * Provides a simple debug log for the Erlang emulator. - * It simples echoes its standard intput to the console. + * It simples echoes its standard input to the console. * * Author: Bjorn Gustavsson * Created: 1996-12-06 diff --git a/erts/etc/win32/erlsrv/erlsrv_service.c b/erts/etc/win32/erlsrv/erlsrv_service.c index 47b9c72690..cf1d005423 100644 --- a/erts/etc/win32/erlsrv/erlsrv_service.c +++ b/erts/etc/win32/erlsrv/erlsrv_service.c @@ -920,7 +920,7 @@ static VOID WINAPI service_main_loop(DWORD argc, wchar_t **argv){ L"The service is not restarted, ignoring OnFail option."); } else { log_error(L"Erlang machine seems to die " - L"continously, not restarted."); + L"continuously, not restarted."); } CloseHandle(eventStop); set_stopped(ERROR_PROCESS_ABORTED); diff --git a/erts/etc/win32/msys_tools/vc/cc.sh b/erts/etc/win32/msys_tools/vc/cc.sh index 0c15139bd5..f1951a9161 100644 --- a/erts/etc/win32/msys_tools/vc/cc.sh +++ b/erts/etc/win32/msys_tools/vc/cc.sh @@ -39,7 +39,7 @@ ERR_FILE=/tmp/cl.exe.$$.2 MD_FORCED=false # If we're preprocession (only) i.e. -E PREPROCESSING=false -# If we're generating dependencies (implies preprocesing) +# If we're generating dependencies (implies preprocessing) DEPENDENCIES=false # If this is supposed to be a debug build DEBUG_BUILD=false @@ -310,7 +310,7 @@ if [ $LINKING = true ]; then *) out_spec="-o $OUTFILE";; esac - # Descide which standard library to link against + # Decide which standard library to link against case $MD in -ML) stdlib="-lLIBC";; diff --git a/erts/etc/win32/msys_tools/vc/coffix.c b/erts/etc/win32/msys_tools/vc/coffix.c index bf1096c425..48a7ae5822 100644 --- a/erts/etc/win32/msys_tools/vc/coffix.c +++ b/erts/etc/win32/msys_tools/vc/coffix.c @@ -43,7 +43,7 @@ static int v_printf(char *format, ...); char *progname; -int verbouse = 0; +int verbose = 0; int main(int argc, char **argv) { @@ -66,7 +66,7 @@ int main(int argc, char **argv) break; case 'v': case 'V': - verbouse = 1; + verbose = 1; default: fprintf(stderr, "%s: unknown option %s\n", progname, argv[findex]); break; @@ -152,7 +152,7 @@ static int v_printf(char *format, ...) { va_list ap; int ret = 0; - if (verbouse) { + if (verbose) { va_start(ap, format); ret = vfprintf(stdout, format, ap); va_end(ap); diff --git a/erts/etc/win32/nsis/erlang20.nsi b/erts/etc/win32/nsis/erlang20.nsi index 907a64b89c..361c7c7b16 100644 --- a/erts/etc/win32/nsis/erlang20.nsi +++ b/erts/etc/win32/nsis/erlang20.nsi @@ -147,7 +147,7 @@ SectionIn 1 RO SetOutPath "$INSTDIR" -; Don't let Users nor Autenticated Users group create new files +; Don't let Users nor Authenticated Users group create new files ; Avoid dll injection when installing to non /Program Files/ dirs StrCmp $INSTDIR $InstallDir cp_files @@ -201,7 +201,7 @@ continue_create: StrCmp $MYTEMP "" 0 done_startmenu -; If startmenu was skipped, this might be unnecessary, but wont hurt... +; If startmenu was skipped, this might be unnecessary, but won't hurt... WriteRegStr HKCU "Software\Ericsson\Erlang\${ERTS_VERSION}" \ "" $INSTDIR WriteRegStr HKCU "${MY_STARTMENUPAGE_REGISTRY_KEY}" \ diff --git a/erts/etc/win32/nsis/find_redist.sh b/erts/etc/win32/nsis/find_redist.sh index deb5480e1a..a4b8437f5c 100755 --- a/erts/etc/win32/nsis/find_redist.sh +++ b/erts/etc/win32/nsis/find_redist.sh @@ -153,7 +153,7 @@ fi # Frantic search through two roots with different # version directories. We want to be very specific about the -# directory structures as we wouldnt want to find the wrong +# directory structures as we wouldn't want to find the wrong # redistributables... #echo $BPATH_LIST diff --git a/erts/etc/win32/port_entry.c b/erts/etc/win32/port_entry.c index 8b1d3a44b8..acb5ec64c0 100644 --- a/erts/etc/win32/port_entry.c +++ b/erts/etc/win32/port_entry.c @@ -23,7 +23,7 @@ ** erlang process is run as a service. ** Note that this entry point is only for ** Console programs, Windowing programs can just route the WM_QUERYENDSESSION -** and WM_ENDSESSION to the default window procedure to aquire the same +** and WM_ENDSESSION to the default window procedure to acquire the same ** functionality. ** ** Creator Patrik Nyblom diff --git a/erts/etc/win32/start_erl.c b/erts/etc/win32/start_erl.c index 07bcd19b81..bcf2c15ef7 100644 --- a/erts/etc/win32/start_erl.c +++ b/erts/etc/win32/start_erl.c @@ -260,7 +260,7 @@ void parse_commandline(void) fprintf(stderr, "NoConfig=TRUE\n"); #endif } else { - fprintf(stderr, "Unkown option: '%S'\n", cmdline); + fprintf(stderr, "Unknown option: '%S'\n", cmdline); exit_help("Unknown command line option"); } break; diff --git a/erts/etc/win32/wsl_tools/vc/cc.sh b/erts/etc/win32/wsl_tools/vc/cc.sh index 15e4e6c8a9..b7c9f693ad 100755 --- a/erts/etc/win32/wsl_tools/vc/cc.sh +++ b/erts/etc/win32/wsl_tools/vc/cc.sh @@ -39,7 +39,7 @@ ERR_FILE=/tmp/cl.exe.$$.2 MD_FORCED=false # If we're preprocession (only) i.e. -E PREPROCESSING=false -# If we're generating dependencies (implies preprocesing) +# If we're generating dependencies (implies preprocessing) DEPENDENCIES=false # If this is supposed to be a debug build DEBUG_BUILD=false @@ -225,7 +225,7 @@ mkdir $TMPOBJDIR WINTMPDIR=`w32_path.sh -w $TMPOBJDIR` -# Sometimes the file server doesn't keep up (paralell file creation) +# Sometimes the file server doesn't keep up (parallel file creation) while true ; do DIR_EXISTS=$(cd /mnt/c; cmd.exe /C "IF EXIST $WINTMPDIR (echo yes) ELSE (echo no)") case $DIR_EXISTS in # Contains trash in the end of string @@ -360,7 +360,7 @@ if [ $LINKING = true ]; then *) out_spec="-o $OUTFILE";; esac - # Descide which standard library to link against + # Decide which standard library to link against case $MD in -ML) stdlib="-lLIBC";; diff --git a/erts/etc/win32/wsl_tools/vc/coffix.c b/erts/etc/win32/wsl_tools/vc/coffix.c index 7428f9cd41..694f0213dd 100755 --- a/erts/etc/win32/wsl_tools/vc/coffix.c +++ b/erts/etc/win32/wsl_tools/vc/coffix.c @@ -43,7 +43,7 @@ static int v_printf(char *format, ...); char *progname; -int verbouse = 0; +int verbose = 0; int main(int argc, char **argv) { @@ -66,7 +66,7 @@ int main(int argc, char **argv) break; case 'v': case 'V': - verbouse = 1; + verbose = 1; default: fprintf(stderr, "%s: unknown option %s\n", progname, argv[findex]); break; @@ -152,7 +152,7 @@ static int v_printf(char *format, ...) { va_list ap; int ret = 0; - if (verbouse) { + if (verbose) { va_start(ap, format); ret = vfprintf(stdout, format, ap); va_end(ap); -- 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