Hello mtk Just looking at this page: http://man7.org/linux/man-pages/man3/realpath.3.html I expect realpath could set errno to ENOMEM if malloc failed. POSIX page says ENOMEM too: http://pubs.opengroup.org/onlinepubs/009695399/functions/realpath.html Best regards, Jon -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html