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:
Xiang Xiao
2022-02-06 00:33:29 +08:00
committed by Petro Karashchenko
parent 938a995c92
commit c6beb35e9e
3 changed files with 5 additions and 3 deletions

View File

@@ -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---

View File

@@ -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()

View File

@@ -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. */