Trying to find POSIX calls made by Qt
-
Hello everyone,
I'm trying to compile a list of POSIX calls made by -QT- Qt for a project; I'm trying to see if -QT- Qt fits a safety profile selected by our customer.
I had thought to run the command "nm" (I'm using Linux) on the compiled libraries, but this didn't prove to be fruitful. Anyone have a simple or clever way of compiling this list?
My second idea was to try to compile each library individually and use -nostdlibs while compiling, but I'm not sure how to go about compiling each library separately.
Thanks,
Phillip -
Under this specific safety protocol, only a certain (albeit still large) subset of the POSIX calls are allowed, and we are attempting to see if Qt will meet that requirement. Hence needed to first make a list of the total set of POSIX calls used.
I will try that though, thanks. Didn't think of ltrace.
-
Fetch the Qt sources and grep them.
@
#!/bin/shunsafeCallList="unsafecall1|unsafecall2|unsafecall3"
find *.cpp | while read sourceFile
do
grep --extended-regexp "$unsafeCallList" $sourceFile
done
@A runtime analysis using strace or ltrace will be difficult, as you have to ensure that every single piece of code is at least run once.