summaryrefslogtreecommitdiff
path: root/private_include
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavier.delcampo@orain.io>2020-09-23 12:23:08 +0200
committerXavier Del Campo Romero <xavier.delcampo@orain.io>2020-09-23 12:29:30 +0200
commit3de04d477f7fcf5fb1c5b217c53ef5d6683b5966 (patch)
tree50ec69f1c971164b6683b36956da57a8848d6a82 /private_include
parent09282eefd060f910ca2e70dc7c84788a106c215e (diff)
downloadmkdir_r-3de04d477f7fcf5fb1c5b217c53ef5d6683b5966.tar.gz
Move away from recursion-based algorithm
Previous implementation could not be realiable for embedded applications since it used recursion and allocated a buffer for each folder in the tree. Now, one single allocation is made, duplicating the original string so it can be tokenized. A check which ensures each element from the tree is a directory has also been added. On the other hand, errno is now set when standard functions don't.
Diffstat (limited to 'private_include')
0 files changed, 0 insertions, 0 deletions