I want to copy multiple files (ELF executables) from one location to another from a C/C++ Code.
In QNX, I could use "system( "cp
I copy files from USB device to a Flash Disk. Now sometimes, when the USB Device is not available, the thread executing the “cp” command becomes REPLY-blocked on the devb-umass driver.
I used “timer_timeout” API to set a timeout on the REPLY-blocked state but it didn’t worked, system call still waits indefinitely. I think that there must be many kernel calls getting executed in system() API.
Suggest some good alternatives.