Browse Source

Fix a bunch of typos

Michał Kowalczyk 4 years ago
parent
commit
62cbf79603

+ 1 - 1
LibOS/shim/src/elf/shim_rtld.c

@@ -442,7 +442,7 @@ static struct link_map* __map_elf_object(struct shim_handle* file, const void* f
                 }
 
                 if (l->nloadcmds >= MAX_LOADCMDS) {
-                    errstring = "too many load commamds";
+                    errstring = "too many load commands";
                     goto call_lose;
                 }
 

+ 1 - 1
Pal/src/host/FreeBSD/db_exception.c

@@ -343,7 +343,7 @@ static void _DkGenericSighandler (int signum, siginfo_t * info,
                                   ucontext_t * uc)
 {
 #if 0
-    /* reseurrect this code if signal handler if giving segmentation fault */
+    /* resurrect this code if signal handler is giving segmentation fault */
 
     if (signum == SIGSEGV) {
         int pid = INLINE_SYSCALL(getpid, 0);

+ 1 - 1
Pal/src/host/FreeBSD/db_exception2.c

@@ -265,7 +265,7 @@ static void _DkGenericSighandler (int signum, siginfo_t * info,
                                   struct ucontext * uc)
 {
 #if BLOCK_SIGFUALT == 1
-    /* reseurrect this code if signal handler if giving segmentation fault */
+    /* resurrect this code if signal handler is giving segmentation fault */
     if (signum == SIGSEGV) {
         int pid = INLINE_SYSCALL(getpid, 0);
         exception_msg[17] = '0' + pid / 10000;

+ 1 - 1
Pal/src/host/Skeleton/db_events.c

@@ -33,7 +33,7 @@ int _DkEventCreate (PAL_HANDLE * event, bool initialState, bool isnotification)
 
 void _DkEventDestroy (PAL_HANDLE handle)
 {
-    /* need to be implemented */
+    /* needs to be implemented */
 }
 
 int _DkEventSet (PAL_HANDLE event, int wakeup)

+ 2 - 2
Pal/src/host/Skeleton/db_exception.c

@@ -41,9 +41,9 @@ int (*_DkExceptionHandlers[PAL_EVENT_NUM_BOUND])(int, PAL_UPCALL, int) = {
 };
 
 void _DkRaiseFailure(int error) {
-    /* need to be implemented */
+    /* needs to be implemented */
 }
 
 void _DkExceptionReturn(void* event) {
-    /* need to be implemented */
+    /* needs to be implemented */
 }

+ 2 - 2
Pal/src/host/Skeleton/db_main.c

@@ -48,7 +48,7 @@ unsigned long _DkGetAllocationAlignment (void)
 void _DkGetAvailableUserAddressRange (PAL_PTR * start, PAL_PTR * end,
                                       PAL_PTR * hole_start, PAL_PTR * hole_end)
 {
-    /* need to be implemented */
+    /* needs to be implemented */
 }
 
 PAL_NUM _DkGetProcessId (void)
@@ -63,6 +63,6 @@ PAL_NUM _DkGetHostId (void)
 
 int _DkGetCPUInfo (PAL_CPU_INFO * ci)
 {
-    /* need to be implemented */
+    /* needs to be implemented */
     return 0;
 }

+ 1 - 1
Pal/src/host/Skeleton/db_streams.c

@@ -29,7 +29,7 @@
 #include "pal_internal.h"
 
 void _DkPrintConsole(const void* buf, int size) {
-    /* need to be implemented */
+    /* needs to be implemented */
 }
 
 /* _DkStreamUnmap for internal use. Unmap stream at certain memory address.

+ 2 - 2
Pal/src/host/Skeleton/db_threading.c

@@ -41,12 +41,12 @@ int _DkThreadDelayExecution(unsigned long* duration) {
 /* PAL call DkThreadYieldExecution. Yield the execution
    of the current thread. */
 void _DkThreadYieldExecution(void) {
-    /* need to be implemented */
+    /* needs to be implemented */
 }
 
 /* _DkThreadExit for internal use: Thread exiting */
 noreturn void _DkThreadExit(void) {
-    /* need to be implemented */
+    /* needs to be implemented */
     while (true) {
         /* nothing */
     }