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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [doc/] [getsockname.man] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
NAME
2
       getsockname - get socket name
3
 
4
SYNOPSIS
5
       #include <network.h>
6
 
7
       int   getsockname(int   s  ,  struct  sockaddr  *  name  ,
8
       socklen_t * namelen )
9
 
10
DESCRIPTION
11
       Getsockname returns the current  name  for  the  specified
12
       socket.   The  namelen  parameter should be initialized to
13
       indicate the amount of  space  pointed  to  by  name.   On
14
       return  it  contains  the actual size of the name returned
15
       (in bytes).
16
 
17
RETURN VALUE
18
       On success, zero is returned.  On error, -1  is  returned,
19
       and  errno  is  set appropriately.  A 0 is returned if the
20
       call succeeds, -1 if it fails.
21
 
22
ERRORS
23
       EBADF   The argument s is not a valid descriptor.
24
 
25
       ENOTSOCK
26
               The argument s is a file, not a socket.
27
 
28
       ENOBUFS Insufficient resources were available in the  sys-
29
               tem to perform the operation.
30
 
31
 

powered by: WebSVN 2.1.0

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