zephyr/include/misc
Tomasz Gorochowik c0b30355fb net: sockets: implement getsockname function
From POSIX.1-2017:

The getsockname() function shall retrieve the locally-bound name of the
specified socket, store this address in the sockaddr structure pointed
to by the address argument, and store the length of this address in the
object pointed to by the address_len argument.

The address_len argument points to a socklen_t object which on input
specifies the length of the supplied sockaddr structure, and on output
specifies the length of the stored address. If the actual length of the
address is greater than the length of the supplied sockaddr structure,
the stored address shall be truncated.

If the socket has not been bound to a local name, the value stored in
the object pointed to by address is unspecified.

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
2019-05-17 22:49:32 +03:00
..
__assert.h all: Update reserved function names 2019-03-11 13:48:42 -04:00
byteorder.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
dlist.h include: Make statements evaluate boolean expressions 2019-03-26 22:06:45 -04:00
errno_private.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
fdtable.h net: sockets: implement getsockname function 2019-05-17 22:49:32 +03:00
gcov.h tests: coverage: Add Gcov support. 2019-01-16 06:12:33 -05:00
libc-hooks.h libc: rename _zephyr_fputc to zephyr_fputc 2019-03-12 13:59:06 -05:00
list_gen.h include: Make statements evaluate boolean expressions 2019-03-26 22:06:45 -04:00
math_extras_impl.h misc: Implement math_extras.h function with GCC builtins. 2019-05-14 19:53:30 -05:00
math_extras.h misc: Portable math_extras.h implementations. 2019-05-14 19:53:30 -05:00
mempool_base.h all: Update reserved function names 2019-03-11 13:48:42 -04:00
mempool.h sys_mem_pool: use sys_mutex 2019-04-03 13:47:45 -04:00
mutex.h lib: os: add sys_mutex data type 2019-04-03 13:47:45 -04:00
printk.h subsystems: Rename reserved function names 2019-04-03 17:31:00 -04:00
rb.h C++: Fix compilation error "invalid conversion" 2019-05-03 14:27:07 -04:00
reboot.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ring_buffer.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
sflist.h all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
slist.h include: misc: list_gen: Fix possible undefined behavior 2018-12-07 09:06:34 -05:00
speculation.h doc: fix misspelling in docs and API comments 2019-03-27 15:59:09 -04:00
stack.h kernel: demote K_THREAD_STACK_BUFFER() to private 2019-04-05 16:10:02 -04:00
util.h util: extending UTIL_DEC_N definitions 2019-05-01 10:33:17 -04:00