Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 804
readman Avatar asked Nov 30 '11 01:11

readman


2 Answers

man 2 clone says:

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

like image 89
millimoose Avatar answered Sep 19 '22 15:09

millimoose


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

like image 45
Joe Avatar answered Sep 20 '22 15:09

Joe