Skip to content

Commit 99b3047

Browse files
thnkslprptastrogeco
authored andcommitted
Fix #1147, Correct code comment typos
1 parent 9c47395 commit 99b3047

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+113
-113
lines changed

Makefile.sample

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ $(FILETGTS):
8383
$(MAKE) -C $(O) $(@)
8484
endif
8585

86-
# The "prep" step requires extra options that are specified via enviroment variables.
86+
# The "prep" step requires extra options that are specified via environment variables.
8787
# Certain special ones should be passed via cache (-D) options to CMake.
8888
# These are only needed for the "prep" target but they are computed globally anyway.
8989
#
90-
# Note this simple makefile just builds for one target, could trivally manage
90+
# Note this simple makefile just builds for one target, could trivially manage
9191
# multiple targets by changing build directory. More complex target
92-
# list examples are provide by cFE..
92+
# list examples are provided by cFE.
9393
PREP_OPTS := -DOSAL_SYSTEM_BSPTYPE=$(BSPTYPE) -DINSTALL_TARGET_LIST=.
9494

9595
ifneq ($(INSTALLPREFIX),)

default_config.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# either in the OSAL or the application which invoked OSAL.
3131
#
3232
# If set FALSE (default), then the OSAL bugcheck macro will evaluate its
33-
# boolean conditional and generate an action if that conditional evaulates
33+
# boolean conditional and generate an action if that conditional evaluates
3434
# false. (The specific action to take is configured via a different
3535
# directive -- see OSAL_CONFIG_BUGCHECK_STRICT).
3636
#
@@ -73,7 +73,7 @@ set(OSAL_CONFIG_BUGCHECK_STRICT FALSE)
7373
#
7474
# Whether to include the Network API
7575
#
76-
# If set TRUE, the the socket abstraction (if applicable on the platform)
76+
# If set TRUE, the socket abstraction (if applicable on the platform)
7777
# will be included. If set FALSE, then all calls to the network API will
7878
# return OS_ERR_NOT_IMPLEMENTED.
7979
#
@@ -276,12 +276,12 @@ set(OSAL_CONFIG_MAX_FILE_NAME 20
276276
CACHE STRING "Maximum Length of file names"
277277
)
278278

279-
# Maximum length for an virtual path name (virtual directory + file)
279+
# Maximum length for a virtual path name (virtual directory + file)
280280
set(OSAL_CONFIG_MAX_PATH_LEN 64
281281
CACHE STRING "Maximum Length of path names"
282282
)
283283

284-
# Maximum length allowed for a object (task,queue....) name
284+
# Maximum length allowed for an object (task,queue....) name
285285
set(OSAL_CONFIG_MAX_API_NAME 20
286286
CACHE STRING "Maximum Length of resource names"
287287
)

src/bsp/generic-linux/src/bsp_start.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void OS_BSP_Unlock_Impl(void)
136136
}
137137
else
138138
{
139-
/* Restore previous cancelability state */
139+
/* Restore previous cancellability state */
140140
pthread_setcancelstate(OS_BSP_GenericLinuxGlobal.AccessCancelState, NULL);
141141
}
142142
}
@@ -212,7 +212,7 @@ int main(int argc, char *argv[])
212212
* Note that the first argument (0) is the command name. The
213213
* first "real" argument is at position 1.
214214
*
215-
* However this still needs to pass it through as the appliction
215+
* However this still needs to pass it through as the application
216216
* might still want to use library "getopt" and this expects the
217217
* first parameter to be this way.
218218
*/

src/bsp/pc-rtems/src/bsp_start.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void OS_BSP_Setup(void)
101101
* Known arguments are handled here, and unknown args are
102102
* saved for the UT application.
103103
*
104-
* Batch mode is intended for non-interative execution.
104+
* Batch mode is intended for non-interactive execution.
105105
*
106106
* It does two things:
107107
* - do not start the shell task
@@ -385,7 +385,7 @@ rtems_task Init(rtems_task_argument ignored)
385385
/* configuration information */
386386

387387
/*
388-
** RTEMS OS Configuration defintions
388+
** RTEMS OS Configuration definitions
389389
*/
390390
#define TASK_INTLEVEL 0
391391
#define CONFIGURE_INIT

src/bsp/shared/inc/bsp-impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ extern OS_BSP_GlobalData_t OS_BSP_Global;
113113
114114
Purpose: Get exclusive access to a BSP-provided service or object
115115
116-
Useful in conjuction with console output functions to avoid strings
116+
Useful in conjunction with console output functions to avoid strings
117117
from multiple tasks getting mixed together in the final output.
118118
119119
------------------------------------------------------------------*/

src/os/inc/osapi-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int32 OS_API_Init(void);
150150
*
151151
* Normally for embedded applications, the OSAL is initialized after boot and will remain
152152
* initialized in memory until the processor is rebooted. However for testing and
153-
* developement purposes, it is potentially useful to reset back to initial conditions.
153+
* development purposes, it is potentially useful to reset back to initial conditions.
154154
*
155155
* For testing purposes, this API is designed/intended to be compatible with the
156156
* UtTest_AddTeardown() routine provided by the UT-Assert subsystem.

src/os/inc/osapi-file.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ int32 OS_chmod(const char *path, uint32 access_mode);
306306
/**
307307
* @brief Obtain information about a file or directory
308308
*
309-
* Returns information about a file or directory in a os_fstat_t structure
309+
* Returns information about a file or directory in an os_fstat_t structure
310310
*
311311
* @param[in] path The file to operate on @nonnull
312312
* @param[out] filestats Buffer to store file information @nonnull
@@ -344,9 +344,9 @@ int32 OS_lseek(osal_id_t filedes, int32 offset, uint32 whence);
344344
*
345345
* Removes a given filename from the drive
346346
*
347-
* @note The behvior of this API on an open file is not defined at the OSAL level
347+
* @note The behavior of this API on an open file is not defined at the OSAL level
348348
* due to dependencies on the underlying OS which may or may not allow the related
349-
* operation based on a varienty of potential configurations. For portability,
349+
* operation based on a variety of potential configurations. For portability,
350350
* it is recommended that applications ensure the file is closed prior to removal.
351351
*
352352
* @param[in] path The file to operate on @nonnull
@@ -368,9 +368,9 @@ int32 OS_remove(const char *path);
368368
* Changes the name of a file, where the source and destination
369369
* reside on the same file system.
370370
*
371-
* @note The behvior of this API on an open file is not defined at the OSAL level
371+
* @note The behavior of this API on an open file is not defined at the OSAL level
372372
* due to dependencies on the underlying OS which may or may not allow the related
373-
* operation based on a varienty of potential configurations. For portability,
373+
* operation based on a variety of potential configurations. For portability,
374374
* it is recommended that applications ensure the file is closed prior to removal.
375375
*
376376
* @param[in] old_filename The original filename @nonnull
@@ -390,9 +390,9 @@ int32 OS_rename(const char *old_filename, const char *new_filename);
390390
/**
391391
* @brief Copies a single file from src to dest
392392
*
393-
* @note The behvior of this API on an open file is not defined at the OSAL level
393+
* @note The behavior of this API on an open file is not defined at the OSAL level
394394
* due to dependencies on the underlying OS which may or may not allow the related
395-
* operation based on a varienty of potential configurations. For portability,
395+
* operation based on a variety of potential configurations. For portability,
396396
* it is recommended that applications ensure the file is closed prior to removal.
397397
*
398398
* @param[in] src The source file to operate on @nonnull
@@ -418,9 +418,9 @@ int32 OS_cp(const char *src, const char *dest);
418418
* If this fails, it falls back to copying the file and removing
419419
* the original.
420420
*
421-
* @note The behvior of this API on an open file is not defined at the OSAL level
421+
* @note The behavior of this API on an open file is not defined at the OSAL level
422422
* due to dependencies on the underlying OS which may or may not allow the related
423-
* operation based on a varienty of potential configurations. For portability,
423+
* operation based on a variety of potential configurations. For portability,
424424
* it is recommended that applications ensure the file is closed prior to removal.
425425
*
426426
* @param[in] src The source file to operate on @nonnull

src/os/inc/osapi-filesys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ int32 OS_FS_GetPhysDriveName(char *PhysDriveName, const char *MountPoint);
270270

271271
/*-------------------------------------------------------------------------------------*/
272272
/**
273-
* @brief Translates a OSAL Virtual file system path to a host Local path
273+
* @brief Translates an OSAL Virtual file system path to a host Local path
274274
*
275275
* Translates a virtual path to an actual system path name
276276
*

src/os/inc/osapi-idmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
*
6767
* The returned value is of the type "unsigned long" for direct use with
6868
* printf-style functions. It is recommended to use the "%lx" conversion
69-
* specifier as the hexidecimal encoding clearly delineates the internal fields.
69+
* specifier as the hexadecimal encoding clearly delineates the internal fields.
7070
*
7171
* @note This provides the raw integer value and is _not_ suitable for use
7272
* as an array index, as the result is not zero-based. See the

src/os/inc/osapi-macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#ifdef OSAL_CONFIG_BUGCHECK_STRICT
5858

5959
/*
60-
* This BUGREPORT implementation aborts the application so that the applicaiton
60+
* This BUGREPORT implementation aborts the application so that the application
6161
* can be debugged immediately. This prints the message direct to stderr, which is
6262
* typically not buffered, so it should appear on the console before the abort occurs,
6363
* but may appear out of order with respect to calls to OS_printf().
@@ -114,7 +114,7 @@
114114
* which may (validly) occur at runtime and do not necessarily indicate bugs in the
115115
* application.
116116
*
117-
* These argument checks are NOT considered a fatal errors. The application
117+
* These argument checks are NOT considered fatal errors. The application
118118
* continues to run normally. This does not report the error on the console.
119119
*
120120
* As such, ARGCHECK actions are always compiled in - not selectable at compile-time.

0 commit comments

Comments
 (0)