Explorar o código

Fix a bunch of typos

Michał Kowalczyk %!s(int64=4) %!d(string=hai) anos
pai
achega
52786e5f4d

+ 1 - 1
LibOS/shim/include/shim_checkpoint.h

@@ -80,7 +80,7 @@ struct shim_cp_entry
     ptr_t cp_type;  /* entry type */
     union
     {
-        ptr_t cp_val;   /* interger value */
+        ptr_t cp_val;   /* integer value */
         /* originally there is a pointer, now we don't need them */
     } cp_un;
 };

+ 1 - 1
LibOS/shim/include/shim_internal.h

@@ -717,7 +717,7 @@ static inline int __ref_dec (REFTYPE * ref)
 
 #define REF_DEC(ref) __ref_dec(&(ref))
 
-/* interger hash functions */
+/* integer hash functions */
 static inline uint32_t hash32 (uint32_t key)
 {
     key = ~key + (key << 15);

+ 2 - 2
LibOS/shim/src/fs/shim_namei.c

@@ -288,7 +288,7 @@ int __path_lookupat (struct shim_dentry * start, const char * path, int flags,
             start = cur_thread->cwd;
         } else {
             /* Start at the global root if we have no fs and no start dentry.
-             * This shoud only happen as part of initialization.
+             * This should only happen as part of initialization.
              */
             start = dentry_root;
             assert(start);
@@ -608,7 +608,7 @@ int dentry_open (struct shim_handle * hdl, struct shim_dentry * dent,
     char *path;
     struct shim_mount * fs = dent->fs;
 
-    /* I think missing functionality shoudl be treated as EINVAL, or maybe
+    /* I think missing functionality should be treated as EINVAL, or maybe
      * ENOSYS?*/
     if (!fs->d_ops || !fs->d_ops->open) {
         ret = -EINVAL;

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

@@ -384,7 +384,7 @@ struct dirent {
 #define DIRBUF_SIZE     1024
 
 /* 'read' operation for directory stream. Directory stream will not
-   need a 'write' operat4on. */
+   need a 'write' operation. */
 int dir_read (PAL_HANDLE handle, int offset, int count, void * buf)
 {
     void * dent_buf = handle->dir.buf ? : __alloca(DIRBUF_SIZE);

+ 1 - 1
Pal/src/host/Linux-SGX/db_files.c

@@ -455,7 +455,7 @@ static int dir_open (PAL_HANDLE * handle, const char * type, const char * uri,
 #define DIRBUF_SIZE     1024
 
 /* 'read' operation for directory stream. Directory stream will not
-   need a 'write' operat4on. */
+   need a 'write' operation. */
 static int64_t dir_read (PAL_HANDLE handle, uint64_t offset, size_t count,
                          void * buf)
 {

+ 1 - 1
Pal/src/host/Linux/db_files.c

@@ -407,7 +407,7 @@ struct linux_dirent64 {
 #define DIRBUF_SIZE     1024
 
 /* 'read' operation for directory stream. Directory stream will not
-   need a 'write' operat4on. */
+   need a 'write' operation. */
 int64_t dir_read (PAL_HANDLE handle, uint64_t offset, size_t count, void * buf)
 {
     if (offset)

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

@@ -138,7 +138,7 @@ static int dir_open (PAL_HANDLE * handle, const char * type, const char * uri,
 }
 
 /* 'read' operation for directory stream. Directory stream will not
-   need a 'write' operat4on. */
+   need a 'write' operation. */
 int64_t dir_read (PAL_HANDLE handle, uint64_t offset, uint64_t count, void * buf)
 {
     return -PAL_ERROR_NOTIMPLEMENTED;

+ 2 - 2
Pal/src/pal_internal.h

@@ -132,9 +132,9 @@ static inline const struct handle_ops * HANDLE_OPS (PAL_HANDLE handle)
     return pal_handle_ops[_type];
 }
 
-/* interger hash functions defined inline. The algorithm we used here
+/* integer hash functions defined inline. The algorithm we used here
   is based on Robert Jenkins developed in 96', the algorithm has two
-  version, 32-bit one and 64-bit one. */
+  versions, 32-bit one and 64-bit one. */
 static inline uint32_t hash32 (uint32_t key)
 {
     key = ~key + (key << 15);