OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [doc/] [write.html] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
<html>
2
<body>
3
<pre>
4
NAME
5
       write - write to a file descriptor
6
 
7
SYNOPSIS
8
       ssize_t write(int fd, const void *buf, size_t count);
9
 
10
DESCRIPTION
11
       write  writes  up to count bytes to the file referenced by
12
       the file descriptor fd from the buffer  starting  at  buf.
13
 
14
RETURN VALUE
15
       On success, the number of bytes written are returned (zero
16
       indicates nothing was written).  On error, -1 is returned,
17
       and  errno is set appropriately.
18
 
19
ERRORS
20
       EBADF  fd is not a valid file descriptor or  is  not  open
21
              for writing.
22
 
23
       EINVAL fd is attached to an object which is unsuitable for
24
              writing.
25
 
26
       EPIPE  fd is connected to a socket  whose  reading
27
              end  is closed.
28
 
29
       EAGAIN Non-blocking I/O has been selected using O_NONBLOCK
30
              and  there  was  no room in the pipe or socket con­
31
              nected to fd to write the data immediately.
32
 
33
       EINTR  The call was interrupted before  any
34
              data was written.
35
 
36
       ENOSPC The  device  containing  the file referred to by fd
37
              has no room for the data.
38
 
39
       EIO    A low-level I/O error occurred.
40
</pre>
41
</body>
42
</html>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.