mirror of
https://github.com/apache/nuttx.git
synced 2025-12-10 12:14:36 +08: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:
committed by
Petro Karashchenko
parent
938a995c92
commit
c6beb35e9e
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user