Home | History | Annotate | Download | only in src

Lines Matching refs:rc

38   ESR_ReturnCode rc;
55 rc = ESR_OUT_OF_MEMORY;
56 PLogError(ESR_rc2str(rc));
62 rc = PtrdIsEnabled(&threadingEnabled);
63 if (rc != ESR_SUCCESS)
65 pfprintf(PSTDERR, L("[%s:%d] PtrdIsEnabled failed with %s\n"), __FILE__, __LINE__, ESR_rc2str(rc));
70 rc = PtrdMonitorCreate(&impl->lock);
71 if (rc != ESR_SUCCESS)
78 return rc;
83 #define LOCK_MUTEX(rc, impl) \
85 CHKLOG(rc, PtrdMonitorLock(impl->lock));
87 #define LOCK_MUTEX(rc, impl)
92 #define CLEANUP_AND_RETURN(rc, impl) \
94 CHKLOG(rc, PtrdMonitorUnlock(impl->lock)); \
99 return rc;
101 #define CLEANUP_AND_RETURN(rc, impl) \
104 return rc;
111 ESR_ReturnCode rc;
114 LOCK_MUTEX(rc, impl);
115 CHKLOG(rc, self->isOpen(self, &isOpen));
117 CHKLOG(rc, self->close(self));
127 rc = PtrdMonitorDestroy(impl->lock);
128 if (rc != ESR_SUCCESS)
138 return rc;
144 ESR_ReturnCode rc;
151 LOCK_MUTEX(rc, impl);
155 rc = ESR_BUFFER_OVERFLOW;
159 CLEANUP_AND_RETURN(rc, impl);
164 ESR_ReturnCode rc;
176 CHKLOG(rc, self->isOpen(self, &isOpen));
179 rc = ESR_OPEN_ERROR;
180 PLogError(L("%s: cannot operate on closed file"), ESR_rc2str(rc));
195 CHKLOG(rc, self->write(self, buffer, sizeof(LCHAR), &len));
198 return rc;