How can I find out which systemcall(s) that a POSIX API invoked in Linux?

61 Views Asked by At

I know that it may invoke one or more systemcalls to implement a POSIX API in Linux, but how to find out which systemcall(s) will been invoked for a specific POSIX API such as memcpy or any other POSIX API?

1

There are 1 best solutions below

0
On

You can use the strace tool to trace the system calls made by a Linux executable.

You could also inspect the C library source.