libs/libc/unistd/lib_getcwd.c: remove stray sched_unlock(). Also fixes several typos.

This commit is contained in:
Juha Niskanen
2019-09-19 06:14:53 -06:00
committed by Gregory Nutt
parent 03ad77f45c
commit 5c853cd1dc
20 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -1332,7 +1332,7 @@ int nx_eventhandler(NXHANDLE handle);
the CPU bandwidth calling nx_eventhandler repeatedly.
<a href="#nxeventnotify"><code>nx_eventnotify()</code></a>
may be called to get a signal event whenever a new incoming server
event is avaiable.
event is available.
</p>
<p>
<b>Input Parameters:</b>
+1 -1
View File
@@ -6528,7 +6528,7 @@ Mem: 29232 5920 23312 23312
for download from the <a href="http://www.microchip.com">MicroChip</a> website, or
</li>
<li>
The Pinguino MIPS ELF toolchain avaiable from the Pinquino <a href="http://code.google.com/p/pinguino32/downloads/list">website</a>.
The Pinguino MIPS ELF toolchain available from the Pinguino <a href="http://code.google.com/p/pinguino32/downloads/list">website</a>.
</li>
<li>
The MIPS SDE toolchain available from the <a href="http://www.mentor.com">Mentor Graphics</a> website.
+1 -1
View File
@@ -19635,7 +19635,7 @@ detailed bugfix information):
order. From Xiang Xiao.
- apps/system/ping and ping6: Change dependency in ping and ping6
Kconfig. These may be implemented in users sockets and, hence,
may need to be avaiable even if ICMP and ICMPv6 sockets are not
may need to be available even if ICMP and ICMPv6 sockets are not
support. From Xiang Xiao.
- apps/system/system: Add 'const' to make function prototype
compatible with OpenGroup.org requirement From Xiang Xiao.
+2 -2
View File
@@ -123,7 +123,7 @@
/* UART interrupt enable register */
#define UART_IER_RDA_IEN (1 << 0) /* Bit 0: Receive data avaiable interrupt enable */
#define UART_IER_RDA_IEN (1 << 0) /* Bit 0: Receive data available interrupt enable */
#define UART_IER_THRE_IEN (1 << 1) /* Bit 1: Transmit holding register empty interrupt enable */
#define UART_IER_RLS_IEN (1 << 2) /* Bit 2: Receive line status interrupt enable */
#define UART_IER_MODEM_IEN (1 << 3) /* Bit 3: Modem status interrupt enable (UART0/1) */
@@ -217,7 +217,7 @@
#define UART_ISR_MODEM_IF (1 << 3) /* Bit 3: Modem interrupt flag (UART0/1) */
#define UART_ISR_TOUT_IF (1 << 4) /* Bit 4: Timeout interrupt flag */
#define UART_ISR_BUF_ERR_IF (1 << 5) /* Bit 5: Buffer error interrupt flag */
#define UART_ISR_RDA_INT (1 << 8) /* Bit 8: Receive data avaiable interrupt indicator */
#define UART_ISR_RDA_INT (1 << 8) /* Bit 8: Receive data available interrupt indicator */
#define UART_ISR_THRE_INT (1 << 9) /* Bit 9: Transmit holding register empty interrupt indicator */
#define UART_ISR_RLS_INT (1 << 10) /* Bit 10: Receive line status interrupt indicator */
#define UART_ISR_MODEM_INT (1 << 11) /* Bit 11: Modem interrupt indicator (UART0/1) */
+1 -1
View File
@@ -1124,7 +1124,7 @@ static int sam_adc_setup(struct adc_dev_s *dev)
#ifdef CONFIG_SAMA5_ADC_DMA
/* Initiate DMA transfers */
priv->ready = true; /* Worker is avaiable */
priv->ready = true; /* Worker is available */
priv->enabled = true; /* Transfers are enabled */
sam_adc_dmastart(priv);
+1 -1
View File
@@ -79,7 +79,7 @@
*/
#if !defined(CONFIG_SCHED_HPWORK)
/* REVISIT: The low priority work queue would be preferred if it is avaiable */
/* REVISIT: The low priority work queue would be preferred if it is available */
# error High priority work queue support is required
#endif
+1 -1
View File
@@ -209,7 +209,7 @@ void board_autoled_off(int led)
*
* If CONFIG_ARCH_LEDS is defined, then NuttX will control both on-board
* LEDs up until the completion of boot.
* The it will continue to control LED2; LED1 is avaiable for application
* The it will continue to control LED2; LED1 is available for application
* use.
*
* If CONFIG_ARCH_LEDS is not defined, then both LEDs are available for
@@ -166,7 +166,7 @@ void board_autoled_off(int led)
* If CONFIG_ARCH_LEDS is defined, then NuttX will control both on-board
* LEDs up until the completion of boot.
* Then it will continue to control LED2;
* LED1 is avaiable for application use.
* LED1 is available for application use.
*
* If CONFIG_ARCH_LEDS is not defined, then both LEDs are available
* for application use.
@@ -237,7 +237,7 @@ void board_autoled_off(int led)
*
* If CONFIG_ARCH_LEDS is defined, then NuttX will control both on-board LEDs up
* until the completion of boot. The it will continue to control LED2; LED1 is
* avaiable for application use.
* available for application use.
*
* If CONFIG_ARCH_LEDS is not defined, then both LEDs are available for application
* use.
+1 -1
View File
@@ -93,7 +93,7 @@ In arch/avr/src/at32uc3/at32uc3b_pinmux.h:
#define PINMUX_USART1_RXD_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 17)
#define PINMUX_USART1_TXD_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 23)
PA17 and PA23 are avaiable from the AVR32DEV1:
PA17 and PA23 are available from the AVR32DEV1:
FUNC GPIO PIN Header 16X2 (J1) MX232 Board
---- ----- ----- ---------------- ------------
+1 -1
View File
@@ -525,7 +525,7 @@ LED Usage
UART Usage
==========
When mounted on the DTX1-4000L EV-kit1 board, serial output is avaiable through
When mounted on the DTX1-4000L EV-kit1 board, serial output is available through
an FT230X device via the FUNC0 and FUNC1 module outputs. If CONFIG_PIC32MX_UART2
is enabled, the src/pic32_boot will configure the UART2 pins as follows:
+1 -1
View File
@@ -68,7 +68,7 @@
* Name: pic32mx_uartinitialize
*
* Description:
* When mounted on the DTX1-4000L EV-kit1 board, serial output is avaiable
* When mounted on the DTX1-4000L EV-kit1 board, serial output is available
* through an FT230X device via the FUNC0 and FUNC1 module outputs.
* If CONFIG_PIC32MX_UART2 is enabled, the src/pic32_boot will configure
* the UART2 pins as follows.
+4 -3
View File
@@ -130,9 +130,10 @@ PIN NAME
P112 Serial Console
===================
The UARTs are not used on the P112 board (the UART signals are avaiable off-board through P14).
The serial console is provided by U7 LT1133, Advanced Low Power 5V RS232 Driver/Receiver
that connects to the P112 via the Z85230 ESCC channel A.
The UARTs are not used on the P112 board (the UART signals are available
off-board through P14). The serial console is provided by U7 LT1133,
Advanced Low Power 5V RS232 Driver/Receiver that connects to the P112 via
the Z85230 ESCC channel A.
Status
======
+1 -1
View File
@@ -1847,7 +1847,7 @@ static inline int fat_getlfname(struct fat_mountpt_s *fs, struct fs_dirent_s *di
fat_getlfnchunk(LDIR_PTRWCHAR12_13(direntry), &lfname[11], 2);
/* Ignore trailing spaces on the "last" directory entry. The
* number of characters avaiable is LDIR_MAXLFNCHARS or that
* number of characters available is LDIR_MAXLFNCHARS or that
* minus the number of trailing spaces on the "last" directory
* entry.
*/
+1 -1
View File
@@ -364,7 +364,7 @@ struct foc_data_s
dq_frame_t i_dq; /* Current in dq frame */
dq_frame_t i_dq_err; /* DQ current error */
dq_frame_t i_dq_ref; /* Currrent dq reference frame */
dq_frame_t i_dq_ref; /* Current dq reference frame */
pid_controller_t id_pid; /* Current d-axis component PI controller */
pid_controller_t iq_pid; /* Current q-axis component PI controller */
+1 -1
View File
@@ -75,7 +75,7 @@ enum nx_initstate_e
OSINIT_MEMORY = 3, /* The memory manager has been initialized */
OSINIT_HARDWARE = 4, /* MCU-specific hardware is initialized. Hardware
* resources such as timers and device drivers are
* now avaiable. Low-level OS services sufficient
* now available. Low-level OS services sufficient
* to support the hardware are also available but
* the OS has not yet completed its full
* initialization. */
+1 -1
View File
@@ -775,7 +775,7 @@ struct pthread_tcb_s
/* Clean-up stack *************************************************************/
#ifdef CONFIG_PTHREAD_CLEANUP
/* tos - The index to the next avaiable entry at the top of the stack.
/* tos - The index to the next available entry at the top of the stack.
* stack - The pre-allocated clean-up stack memory.
*/
+1 -1
View File
@@ -58,7 +58,7 @@
*
* In addition, some SYSLOG device must also be enabled that will provide
* the syslog output "channel. As of this writing, there are two SYSLOG
* devices avaiable:
* devices available:
*
* 1. A RAM SYSLOGing device that will log data into a circular buffer
* that can be dumped using the NSH dmesg command. This device is
+1 -1
View File
@@ -57,7 +57,7 @@ config LIBC_PRINT_LEGACY
---help---
By default, printf (and friends) are implemented using a port from
newlib-nano. That port can be signifcantly smaller, especially if
floating support is enabled. This option may is avaiable, however,
floating support is enabled. This option is available, however,
to revert to the legacy printf version is so desired.
config LIBC_FLOATINGPOINT
+4 -5
View File
@@ -65,8 +65,8 @@
*
* Input Parameters:
* buf - a pointer to the location in which the current working directory
* pathaname is returned.
* size - The size in bytes avaiable at 'buf'
* pathname is returned.
* size - The size in bytes available at 'buf'
*
* Returned Value:
* Upon successful completion, getcwd() returns the 'buf' argument.
@@ -77,11 +77,11 @@
* The 'size' argument is 0 or the 'buf' argument is NULL.
* ERANGE
* The size argument is greater than 0, but is smaller than the length
* of the currrent working directory pathname +1.
* of the current working directory pathname +1.
* EACCES
* Read or search permission was denied for a component of the pathname.
* ENOMEM
* Insufficient storage space is available.
* Insufficient storage space is available.
*
****************************************************************************/
@@ -118,7 +118,6 @@ FAR char *getcwd(FAR char *buf, size_t size)
/* Copy the cwd to the user buffer */
strcpy(buf, pwd);
sched_unlock();
return buf;
}
#endif /* !CONFIG_DISABLE_ENVIRON */