• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching defs:error

272 	int error = 0;
277 if ((error = copyin(uattr, &attr, sizeof(pthread_mutexattr_t))))
278 return(error);
283 if ((error = copyin(umutex, &pmutex_sig, sizeof(int))))
284 return(error);
296 if ((error = copyout(&mutexid, ((user_addr_t)((uintptr_t)(addr))), 4)))
300 error = ENOMEM;
307 return(error);
319 int error;
329 error = EINVAL;
334 error = EINVAL;
344 error = 0;
348 return (error);
360 int error;
370 error = EINVAL;
375 error = EINVAL;
386 error = 0;
388 error = EBUSY;
391 return (error);
395 return (error);
407 int error;
417 error = EINVAL;
422 error = EINVAL;
432 error = 0;
436 return (error);
448 int condid, error, cond_sig;
456 if ((error = copyin(uattr, &attr, sizeof(pthread_condattr_t))))
457 return(error);
462 if ((error = copyin(ucond, &cond_sig, sizeof(int))))
463 return(error);
486 if ((error = copyout(&condid, ((user_addr_t)((uintptr_t)(addr))), 4)))
490 error = ENOMEM;
496 return(error);
552 int error;
563 error = EINVAL;
568 error = EINVAL;
578 error = EINVAL;
582 error = EINTR;
585 error = 0;
588 error = EINVAL;
596 return (error);
608 int error;
619 error = EINVAL;
624 error = EINVAL;
634 error = EINVAL;
638 error = EINTR;
641 error = 0;
644 error = EINVAL;
652 return (error);
663 int error;
679 error = EINVAL;
684 error = EINVAL;
694 error = EACCES;
698 error = EINTR;
701 error = 0;
704 error = EINVAL;
713 return (error);
724 int error;
731 if ((error = copyin(uap->abstime, &absts, sizeof(mach_timespec_t ))))
732 return(error);
746 error = EINVAL;
751 error = EINVAL;
761 error = EACCES;
765 error = EINTR;
768 error = 0;
771 error = EINVAL;
780 return (error);
788 int error = 0;
823 #error Need to define a stack address hint for this architecture
848 error = ENOMEM;
863 error = ENOMEM;
945 #error bsdthread_create not defined for this architecture
968 error = EINVAL;
973 KERNEL_DEBUG_CONSTANT(0x9000080 |DBG_FUNC_END, error, (unsigned int)th_pthread, 0, 0, 0);
986 return(error);
1371 #error Need to define a stack address hint for this architecture
1473 int error = 0;
1526 /* If unable to create any threads, return error */
1528 error = EINVAL;
1538 return(error);
1547 int error = 0;
1568 error = workqueue_additem(wq, prio, item);
1583 error = workqueue_removeitem(wq, prio, item);
1608 return(error);
1691 int error = ESRCH;
1703 error = 0;
1710 return (error);
2059 #error setup_wqthread not defined for this architecture