Where is clone() method in sched.h on Mac OS X

后端 未结 2 763
傲寒
傲寒 2020-12-20 16:47

I can not find clone() in the sched.h header file. Where is it on Mac OS X?

相关标签:
2条回答
  • 2020-12-20 17:28

    clone() is a Linux-specific call and doesn't exist in OSX.

    0 讨论(0)
  • 2020-12-20 17:40

    man 2 clone says:

    The clone() and sys_clone calls are Linux-specific and should not be used in programs intended to be portable.

    0 讨论(0)
提交回复
热议问题