Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <sys/time.h>
  2.  
  3. int getitimer(int which, struct itimerval *curr_value);
  4. int setitimer(int which, const struct itimerval *new_value,
  5. struct itimerval *old_value);
  6.  
  7. setitimer()
  8. The function setitimer() arms or disarms the timer specified by which,
  9. by setting the timer to the value specified by new_value. If old_value
  10. is non-NULL, the buffer it points to is used to return the previous
  11. value of the timer
  12.  
  13. RETURN VALUE
  14. On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement