pthread_condattr_getclock.c 337 B

1234567891011121314151617181920
  1. #include "pthread.h"
  2. #include "implement.h"
  3. int
  4. pthread_condattr_getclock (const pthread_condattr_t * attr, clockid_t *clock_id)
  5. {
  6. int result;
  7. if ((attr != NULL && *attr != NULL) && (clock_id != NULL))
  8. {
  9. *clock_id = (*attr)->clock_id;
  10. result = 0;
  11. }
  12. else
  13. {
  14. result = EINVAL;
  15. }
  16. return result;
  17. }