As per the comment in my previous topic, my question was answered but I need to make another topic: So I used readlink on /proc/self/exe but is if you want to find the path to the executable. The buffer is yours and has no effect on anything else. My question, how do I change the executable name top/argv[0] shows.
I don't have access to the main
function so no access to argv