Lines Matching refs:errno

124 		return (errno = EINVAL);  in sysevent_evc_bind()
132 return (errno = EINVAL); in sysevent_evc_bind()
137 return (errno = EINVAL); in sysevent_evc_bind()
141 return (errno = EINVAL); in sysevent_evc_bind()
146 return (errno = ENOMEM); in sysevent_evc_bind()
156 if (errno != ENOENT) { in sysevent_evc_bind()
157 ec = errno == EACCES ? EPERM : errno; in sysevent_evc_bind()
159 return (errno = ec); in sysevent_evc_bind()
164 ec = errno == EACCES ? EPERM : errno; in sysevent_evc_bind()
166 return (errno = ec); in sysevent_evc_bind()
183 ec = errno; in sysevent_evc_bind()
186 return (errno = ec); in sysevent_evc_bind()
209 return (errno = EINVAL); in sysevent_evc_unbind()
212 return (errno = EDEADLK); in sysevent_evc_unbind()
227 errcp = errno; in sysevent_evc_unbind()
229 return (errno = errcp); in sysevent_evc_unbind()
240 if (door_revoke(subp->evsub_door_desc) != 0 && errno == EPERM) in sysevent_evc_unbind()
275 return (errno = EINVAL); in sysevent_evc_publish()
280 return (errno = EINVAL); in sysevent_evc_publish()
286 return (errno); in sysevent_evc_publish()
296 ec = errno; in sysevent_evc_publish()
458 return (errno = EINVAL); in sysevent_evc_subscribe_cmn()
463 return (errno = EINVAL); in sysevent_evc_subscribe_cmn()
468 return (errno = EINVAL); in sysevent_evc_subscribe_cmn()
473 return (errno = EINVAL); in sysevent_evc_subscribe_cmn()
477 return (errno = EINVAL); in sysevent_evc_subscribe_cmn()
481 return (errno); /* ENOMEM or EAGAIN */ in sysevent_evc_subscribe_cmn()
485 return (errno); in sysevent_evc_subscribe_cmn()
489 ec = errno; in sysevent_evc_subscribe_cmn()
526 ec = errno; in sysevent_evc_subscribe_cmn()
546 ec = errno; in sysevent_evc_subscribe_cmn()
695 return (errno = EINVAL); in sysevent_evc_unsubscribe()
699 return (errno = EINVAL); in sysevent_evc_unsubscribe()
703 return (errno = EINVAL); in sysevent_evc_unsubscribe()
716 return (errno = EDEADLK); in sysevent_evc_unsubscribe()
726 errcp = errno; in sysevent_evc_unsubscribe()
728 return (errno = errcp); /* EFAULT, ENXIO, EINVAL possible */ in sysevent_evc_unsubscribe()
784 return (errno = EINVAL); in sysevent_evc_control()
789 return (errno = EINVAL); in sysevent_evc_control()
823 rc = errno; in sysevent_evc_control()
828 return (errno = rc); in sysevent_evc_control()
840 return (errno = EINVAL); in sysevent_evc_setpropnvl()
844 return (errno); in sysevent_evc_setpropnvl()
868 return (errno = EINVAL); in sysevent_evc_getpropnvl()
879 return (errno = E2BIG); /* driver refuses to copyout */ in sysevent_evc_getpropnvl()
898 return (errno = ENOMEM); in sysevent_evc_getpropnvl()
916 return (rc ? errno = rc : 0); in sysevent_evc_getpropnvl()