Lines Matching defs:error
91 status_t error = ProtocolSocket::Open();
92 if (error != B_OK)
93 RETURN_ERROR(error);
251 status_t error = vfs_read_stat(-1, address->sun_path, true, &st,
253 if (error != B_OK)
254 RETURN_ERROR(error);
290 status_t error;
291 if ((error = fifo->Init()) != B_OK || (error = peerFifo->Init()) != B_OK)
292 return error;
296 error = gSocketModule->spawn_pending_socket(listeningEndpoint->socket,
298 if (error != B_OK)
299 RETURN_ERROR(error);
352 status_t error;
356 error = acquire_sem_etc(fAcceptSemaphore, 1,
358 if (error < B_OK)
362 error = gSocketModule->dequeue_connected(socket, _acceptedSocket);
363 } while (error != B_OK);
365 if (error == B_TIMED_OUT && timeout == 0) {
366 // translate non-blocking timeouts to the correct error code
367 error = B_WOULD_BLOCK;
370 RETURN_ERROR(error);
399 status_t error = _LockConnectedEndpoints(locker, peerLocker);
400 if (error != B_OK)
401 RETURN_ERROR(error);
419 bool notifyRead = (error == B_OK && readable > 0
425 bool notifyWrite = (error != B_OK && writable > 0
458 // Translate non-blocking timeouts to the correct error code.
558 // translate non-blocking timeouts to the correct error code
577 status_t error = _LockConnectedEndpoints(locker, peerLocker);
578 if (error != B_OK)
579 RETURN_ERROR(error);
635 status_t error = _LockConnectedEndpoints(locker, peerLocker);
636 if (error != B_OK)
637 RETURN_ERROR(error);
676 status_t error = _LockConnectedEndpoints(locker, peerLocker);
677 if (error != B_OK)
678 RETURN_ERROR(error);