AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Quantum break pc popcnt error10/24/2023 ![]() ![]() ![]() In case I face ENOENT, I retrieve the "PWD" environment variable because I work on CentOS 5.11 and Ubuntu 16.04, and when getcwd fails on CentOS it returns an empty buffer. UPDATE: Code updated with advice from and std::string get_working_dir()Ĭhar * result = getcwd(buf, sizeof(buf)) The link above says that ENOENT means that "The current working directory has been unlinked." but the directory exists. I call getcwd from different threads, but serially and sometimes I face with ENOENT, but I don't know why. In some cases it fails and errno is ENOENT. ![]() I'm using the getcwd function to retrieve the current working directory of my application.
0 Comments
Read More
Leave a Reply. |