Выполнить проверки доступа для сообщения _IO_CONNECT_RENAME
#include <sys/iofunc.h>int iofunc_rename( resmgr_context_t *ctp,io_rename_t *msg,iofunc_attr_t *oldattr,iofunc_attr_t *olddattr,iofunc_attr_t *newattr,iofunc_attr_t *newdattr,struct _client_info *info );
NULL
, or a pointer to the iofunc_attr_t structure that describes the characteristics of the parent directory.NULL
, or a pointer to the iofunc_attr_t structure that describes the characteristics of the parent directory of the target.NULL
, or a pointer to a struct _client_info that contains the information about a client connection.libc
The function iofunc_rename() does permission checks for the _IO_CONNECT
message (subtype _IO_CONNECT_RENAME
) for context ctp. The newattr argument is the attribute of the target if it already exists.
This function is similar to iofunc_open(). The iofunc_rename() 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_rename() obtains the client information itself via a call to iofunc_client_info(). It is, of course, more efficient to get the client information once, rather than call this function with NULL
every time.
NULL
was passed in oldattr, olddattr, or newdattr.ЗОСРВ «Нейтрино»
struct _client_info, io_rename_t, struct _io_connect, struct _io_connect_link_reply, struct _io_connect_ftype_reply, iofunc_client_info(), iofunc_open(), resmgr_context_t
Предыдущий раздел: Описание API системной библиотеки