Python ctype for using libc.so.6 Linux and libc.dylib Mac OS X

I read about ctypeand using dynamic libraries.

Now I can use libs in:

  • Using windows windll.kernel32
  • Linux using libc.so.6

On Windows, I can open other programs using:

createProcessA(..long_param_list..)

Now I want to do the same for Linux and Mac OSX, but I do not know how to find the correct function name.

On Windows, I use a cdll.msvcrtcall createProcessA.

Does anyone know where to find feature links for Linux and Mac?

In OS X, I used /usr/lib/libc.dylib, but I do not know where to find the information I need.

+3
source share

Source: https://habr.com/ru/post/1712772/


All Articles