Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does C "Sleep" function (capital "S") do on a Mac?

Tags:

sleep

xcode

macos

Note the capital "S" in Sleep. Sleep with a capital "S" is a standard function that sleeps milliseconds on the PC. On Mac OS X, there is no such symbol. However, the Xcode linking environment seems to find something to link it to. What is it?

like image 345
ddyer Avatar asked Jan 22 '23 08:01

ddyer


1 Answers

Well, it’s an old old Carbon function (in the CoreServices / OSServices framework) that puts the computer to sleep. I can’t find any documentation.

  • Sleep and Xcode
like image 56
Josh Lee Avatar answered Jan 26 '23 05:01

Josh Lee