iofunc_readlink()

Подтвердить способность клиента прочитать символьную ссылку

Прототип:

#include <sys/iofunc.h>
int iofunc_readlink( resmgr_context_t *ctp,
io_readlink_t *msg,
iofunc_attr_t *attr,
struct _client_info *info );

Аргументы:

ctp
A pointer to a resmgr_context_t structure that the resource-manager library uses to pass context information between functions.
msg
A pointer to the io_readlink_t structure that contains the message that the resource manager received.
attr
A pointer to the iofunc_attr_t structure that describes the characteristics of the device that's associated with your resource manager.
info
A pointer to a struct _client_info that contains the information about a client connection.

Библиотека:

libc

Описание:

The iofunc_readlink() helper function supports readlink() requests by verifying that the client can read a symbolic link. It's similar to iofunc_open().

The iofunc_readlink() function checks to see if the client (described by the optional info structure) has access to open the resource (name passed in the msg structure). The attr structure describes the resource's attributes.

The info argument can be passed as NULL, in which case iofunc_readlink() obtains the client information itself via a call to iofunc_client_info(). It is, of course, more efficient to get the client info once, rather than calling this function with NULL every time.

The iofunc_readlink() function handles the readlink verification for the POSIX layer.

Возвращаемое значение:

EBADFSYS
NULL was passed in attr.
EOK
Успешное завершение.

Классификация:

ЗОСРВ «Нейтрино»

Точка остановки потока
Нет
Обработчик прерываний
Нет
Обработчик сигналов
Да
В потоке
Да

Тематические ссылки:

struct _client_info, io_readlink_t, struct _io_connect, struct _io_connect_link_reply, struct _io_connect_ftype_reply, iofunc_open(), readlink(), resmgr_context_t




Предыдущий раздел: Описание API системной библиотеки