File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,17 @@ Printing options is done by `pretty_size_mode` which takes the value and option
34
34
mode. Default mode is human readable, the macros defining the modes are from
35
35
`UNITS_* ` namespace.
36
36
37
+ File path handling
38
+ ------------------
39
+
40
+ Files: :file: `common/path-utils.h `
41
+
42
+ The paths on Linux can be at most PATH_MAX, which is 4096 (:command: `getconf `).
43
+ For easier handling use a local variable like :code: `char path[PATH_MAX] = { 0 }; `
44
+ and for concatenation helpers :code: `path_cat_out() ` or
45
+ :code: `path_cat_out3() ` and check the error values for overflows. There are
46
+ helpers to check file type :code: `path_is_*() `.
47
+
37
48
TODO
38
49
----
39
50
@@ -44,8 +55,6 @@ Undocumented or incomplete APIs:
44
55
* common/device-utils.h
45
56
* common/messages.h
46
57
* common/open-utils.h
47
- * common/path-utils.h
48
58
* common/sort-utils.h
49
59
* common/string-table.h
50
- * common/string-table.h
51
60
* common/task-utils.h
You can’t perform that action at this time.
0 commit comments