36 lines
2.1 KiB
HTML
36 lines
2.1 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - getsockname</TITLE>
|
|
<P>Go to the <A HREF="javascript:if(confirm('http://www.infran.ru/TechInfo/syscalls/syscalls_47.html \n\nThis file was not retrieved by Teleport Pro, because the server reports that an error occurred that prevented retrieval. \n\nDo you want to open it from the server?'))window.location='http://www.infran.ru/TechInfo/syscalls/syscalls_47.html'" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_47.html">previous</A>, <A HREF="syscalls_49.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_49.html">next</A> section.<P>
|
|
<H2><A NAME="SEC48" HREF="syscalls_toc.html#SEC48" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC48">getsockname</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>int getsockname(int <VAR>s</VAR>, struct sockaddr *<VAR>name</VAR>, int *
|
|
<VAR>namelen</VAR>);</CODE>
|
|
<P>
|
|
<H3>PARAMETERS</H3>
|
|
<P>
|
|
<VAR>s</VAR>: [in] the socket accessed.
|
|
<P>
|
|
<VAR>name</VAR>: [out] the buffer where to put the name in.
|
|
<P>
|
|
<VAR>namelen</VAR>: [in out] on entry, the maximum length of <VAR>name</VAR>. On
|
|
return, it contains the actual length of the name.
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
Gets the local socket name.
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
On success zero is returned. On error, -1 is returned and <CODE>errno</CODE> is
|
|
set to one of the following values:
|
|
<P>
|
|
<UL>
|
|
<LI><CODE>EBADF</CODE>, <CODE>ENOTSOCK</CODE>, <CODE>ENOBUFS</CODE> and <CODE>EFAULT</CODE>.
|
|
</UL>
|
|
<P>
|
|
<P>Go to the <A HREF="javascript:if(confirm('http://www.infran.ru/TechInfo/syscalls/syscalls_47.html \n\nThis file was not retrieved by Teleport Pro, because the server reports that an error occurred that prevented retrieval. \n\nDo you want to open it from the server?'))window.location='http://www.infran.ru/TechInfo/syscalls/syscalls_47.html'" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_47.html">previous</A>, <A HREF="syscalls_49.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_49.html">next</A> section.<P>
|