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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [doc/] [getsockname.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
       getsockname - get socket name
6
 
7
SYNOPSIS
8
       #include &lt;network.h&gt;
9
 
10
       int   getsockname(int   s  ,  struct  sockaddr  *  name  ,
11
       socklen_t * namelen )
12
 
13
DESCRIPTION
14
       Getsockname returns the current  name  for  the  specified
15
       socket.   The  namelen  parameter should be initialized to
16
       indicate the amount of  space  pointed  to  by  name.   On
17
       return  it  contains  the actual size of the name returned
18
       (in bytes).
19
 
20
RETURN VALUE
21
       On success, zero is returned.  On error, -1  is  returned,
22
       and  errno  is  set appropriately.  A 0 is returned if the
23
       call succeeds, -1 if it fails.
24
 
25
ERRORS
26
       EBADF   The argument s is not a valid descriptor.
27
 
28
       ENOTSOCK
29
               The argument s is a file, not a socket.
30
 
31
       ENOBUFS Insufficient resources were available in the  sys-
32
               tem to perform the operation.
33
 
34
 
35
</pre>
36
</body>
37
</html>

powered by: WebSVN 2.1.0

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