Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    It happened in glibc 2.20. As for what it does, the glibc documentation explains what the intended effect is. Commented Mar 23, 2015 at 0:45
  • the usleep() function is defined in the header file: unistd.h however, per the man page, it is obsoleted, and to use nanosleep instead. the function nanosleep() is defined in the header file: time.h also, the link step. for gcc, needs the '-lrt' parameter Commented Mar 23, 2015 at 1:29
  • @user3629249 This man page for librt suggests that new application development need not specify -lrt, but yes I have moved to nanosleep() now. Commented Mar 23, 2015 at 1:59