io_receivefd(3)

io_receivefd3

Receive a file descriptor over a unix domain socket

Usage

#include <libowfat/io.h>

int64 io_receivefd(int64 sock);

Overview

io_receivefd receives a file descriptor from the Unix Domain socket sock. You can send a descriptor using io_passfd(3).

io_receivefd returns -1 on error or the file descriptor.

The underlying Unix API can send more than one descriptor at the time. This function expects only one descriptor and will return the first one if more than one were sent.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.