summaryrefslogtreecommitdiffstats
path: root/doc/src/examples/queuedcustomtype.qdoc
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2024-05-09 10:24:02 -0700
committerAhmad Samir <a.samirh78@gmail.com>2024-05-24 21:34:27 +0000
commite32009fc0d48411b835d81b36993828277b5042e (patch)
treeba377e79f84154cb416ff6457be23774f5bd44dd /doc/src/examples/queuedcustomtype.qdoc
parent48aad482a87b5000db6139abf991367013b9aa19 (diff)
QFileSystemEngine::canonicalName: don't use malloc()'ing realpath()HEADdev
It is available in POSIX.1-2008 but is not worth it. The Linux man page says it only works up to PATH_MAX anyway and the POSIX documentation says it's UB if PATH_MAX isn't defined. This cleans up the source code out of these messy #if and should be faster, because we avoid a heap allocation (stack is always faster). Instead, we only relegate the heap version to the case where PATH_MAX isn't defined (i.e., GNU HURD), because in that case the realpath() function can't be used with a stack allocation. Pick-to: 6.7 Change-Id: Ie30a3caf09ef4176bb36fffd17cde1ed5c5dad59 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'doc/src/examples/queuedcustomtype.qdoc')
0 files changed, 0 insertions, 0 deletions