summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_fs.h
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-04-24 15:02:11 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-18 22:59:43 +0200
commit3db000a5399fd688ec0d97b38e784778bdd90375 (patch)
tree5a47332b2046084e5b9c6b15a55a229347966e05 /src/nxt_fs.h
parent3501a50ffb93756e145295021ff9313ac77f1ba9 (diff)
downloadunit-3db000a5399fd688ec0d97b38e784778bdd90375.tar.gz
unit-3db000a5399fd688ec0d97b38e784778bdd90375.tar.bz2
fs: Rename nxt_fs_mkdir_parent() => nxt_fs_mkdir_dirname()
"dirname" is the usual way to refer to the directory part of a path name. See for example dirname(1), or the dirname builtin in several languages. Also, in the context of mkdir(), "parents" is used to refer to mkdir -p, which is too similar to "parent", so it can lead to confusion. Tested-by: Andy Postnikov <apostnikov@gmail.com> Tested-by: Andrew Clayton <a.clayton@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_fs.h')
-rw-r--r--src/nxt_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_fs.h b/src/nxt_fs.h
index c8868d80..3ee0928c 100644
--- a/src/nxt_fs.h
+++ b/src/nxt_fs.h
@@ -6,7 +6,7 @@
#define _NXT_FS_H_INCLUDED_
-nxt_int_t nxt_fs_mkdir_parent(const u_char *path, mode_t mode);
+nxt_int_t nxt_fs_mkdir_dirname(const u_char *path, mode_t mode);
nxt_int_t nxt_fs_mkdir_all(const u_char *dir, mode_t mode);