31 #define PIPE_CAPACITY 65536
52 NS_LOG_FUNCTION (
this);
69 NS_LOG_FUNCTION (
this);
94 NS_LOG_FUNCTION (
this << (
long)buf << len);
95 NS_ASSERT (current != 0);
131 current->
err = EINTR;
137 current->
err = EAGAIN;
149 NS_LOG_FUNCTION (
this << (
long)buf << count);
150 NS_ASSERT (current != 0);
161 ssize_t r =
m_buf.
Read ((uint8_t*)buf, count);
199 current->
err = EINTR;
205 current->
err = EAGAIN;
217 NS_LOG_FUNCTION (
this << current);
218 NS_ASSERT (current != 0);
219 current->
err = ENOTSOCK;
227 NS_LOG_FUNCTION (
this << current);
228 NS_ASSERT (current != 0);
229 current->
err = ENOTSOCK;
235 const void *optval, socklen_t optlen)
238 NS_LOG_FUNCTION (
this << current);
239 NS_ASSERT (current != 0);
240 current->
err = ENOTSOCK;
246 void *optval, socklen_t *optlen)
249 NS_LOG_FUNCTION (
this << current);
250 NS_ASSERT (current != 0);
251 current->
err = ENOTSOCK;
259 NS_LOG_FUNCTION (
this << current);
260 NS_ASSERT (current != 0);
261 current->
err = ENOTSOCK;
269 NS_LOG_FUNCTION (
this << current);
270 NS_ASSERT (current != 0);
271 current->
err = ENOTSOCK;
279 NS_LOG_FUNCTION (
this << current);
280 NS_ASSERT (current != 0);
281 current->
err = EINVAL;
289 NS_LOG_FUNCTION (
this << current);
290 NS_ASSERT (current != 0);
291 current->
err = ENOTSOCK;
299 NS_LOG_FUNCTION (
this << current);
300 NS_ASSERT (current != 0);
301 current->
err = ENOTSOCK;
309 NS_LOG_FUNCTION (
this << current);
310 NS_ASSERT (current != 0);
311 current->
err = ENOTSOCK;
319 NS_LOG_FUNCTION (
this << current);
320 NS_ASSERT (current != 0);
321 current->
err = ENOTSOCK;
329 NS_LOG_FUNCTION (
this << current);
330 NS_ASSERT (current != 0);
331 current->
err = ENOTSOCK;
336 PipeFd::Mmap (
void *start,
size_t length,
int prot,
int flags, off64_t offset)
339 NS_LOG_FUNCTION (
this << current);
340 NS_ASSERT (current != 0);
341 current->
err = EBADF;
349 NS_LOG_FUNCTION (
this << current);
350 NS_ASSERT (current != 0);
351 current->
err = EBADF;
359 NS_LOG_FUNCTION (
this << current);
360 NS_ASSERT (current != 0);
361 current->
err = EBADF;
369 NS_LOG_FUNCTION (
this << current);
370 NS_ASSERT (current != 0);
371 current->
err = EBADF;
388 NS_FATAL_ERROR (
"fcntl not implemented on pipe");
395 const struct itimerspec *new_value,
396 struct itimerspec *old_value)
398 NS_LOG_FUNCTION (
this <<
Current () << flags << new_value << old_value);
401 current->
err = EINVAL;
408 NS_LOG_FUNCTION (
this <<
Current ());
411 current->
err = EINVAL;
418 NS_LOG_FUNCTION (
this <<
Current ());
421 current->
err = EINVAL;