I'm writing a program to be run from the Linux user space which spawns another process. Ho开发者_StackOverflow社区w can it determine which files were modified by the spawned process after it completes?
Call it under strace and parse the output you care about.
Inject your own replacement for fopen(3)
that records the names and modes.
Maybe g++ itself spawns other processes? Than "strace -fF -efile program" plus some filtering will probably help you.
精彩评论