Yesterday, I started porting Windows C++ file management functions, memory mapping function and multithreading functions to Ubuntu Linux where I used a makefile with g++. Subsequently, I discovered that including <pthread.h> had to be augmented with #include <bits/pthreadtypes.h >. Then , I discovered that the gettimeofday() function was not supported by Ubuntu Linux. I replaced the gettimeofday() function with the time() function followed by localtime() to convert it into struct tm.
Please tell me if there are any more cases of this Ubuntu Linux behavior. Please contrast Ubuntu Linux with Red Hat Linux and Centos Linus in regards to porting Windows C++ file management functions, memory mapping function and multithreading functions.
Any help is greatly appreciated.