mirror of
https://github.com/apache/nuttx.git
synced 2026-08-30 21:53:06 +00:00
semaphore: Rename FS_NAMED_SEMPATH to FS_NAMED_SEMAPHORES_VFS_PATH
align with other similiar config which suffix with _VFS_PATH Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
938a995c92
commit
c6beb35e9e
3 changed files with 5 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ config FS_NAMED_SEMAPHORES
|
|||
|
||||
if FS_NAMED_SEMAPHORES
|
||||
|
||||
config FS_NAMED_SEMPATH
|
||||
config FS_NAMED_SEMAPHORES_VFS_PATH
|
||||
string "Path to semaphore storage"
|
||||
default "/var/lock"
|
||||
---help---
|
||||
|
|
|
|||
|
|
@ -114,7 +114,8 @@ FAR sem_t *sem_open(FAR const char *name, int oflags, ...)
|
|||
|
||||
/* Get the full path to the semaphore */
|
||||
|
||||
snprintf(fullpath, MAX_SEMPATH, CONFIG_FS_NAMED_SEMPATH "/%s", name);
|
||||
snprintf(fullpath, MAX_SEMPATH,
|
||||
CONFIG_FS_NAMED_SEMAPHORES_VFS_PATH "/%s", name);
|
||||
|
||||
/* Get the inode for this semaphore. This should succeed if the
|
||||
* semaphore has already been created. In this case, inode_find()
|
||||
|
|
|
|||
|
|
@ -72,7 +72,8 @@ int sem_unlink(FAR const char *name)
|
|||
|
||||
/* Get the full path to the semaphore */
|
||||
|
||||
snprintf(fullpath, MAX_SEMPATH, CONFIG_FS_NAMED_SEMPATH "/%s", name);
|
||||
snprintf(fullpath, MAX_SEMPATH,
|
||||
CONFIG_FS_NAMED_SEMAPHORES_VFS_PATH "/%s", name);
|
||||
|
||||
/* Get the inode for this semaphore. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue