Структура, характеризующая сообщения менеджера ресурсов типа _IO_OPENFD
#include <sys/iofunc.h>
struct _io_openfd {
uint16_t type;
uint16_t combine_len;
uint32_t ioflag;
uint16_t sflag;
uint16_t xtype;
struct _msg_info info;
uint32_t reserved2;
uint32_t key;
};
typedef union {
struct _io_openfd i;
} io_openfd_t;
Данная структура ассоциирована с сообщениями менеджера ресурсов типа _IO_OPENFD
. Поле i определяет входящие данные (поступающие в менеджер ресурсов).
The i member is a structure of type _io_openfd
that contains the following members:
- type
-
_IO_OPENFD
. - combine_len
- If the message is a combine message,
_IO_COMBINE_FLAG
is set in this member. - ioflag
- How the client wants to open the file; a combination of the following bits:
- _IO_FLAG_RD
- permit the file to be read.
- _IO_FLAG_WR
- permit the file to be written.
- O_APPEND
- cause each record that's written to be written at the end of the file.
- O_TRUNC
- if the file exists, truncate it to contain no data. This flag has no effect if the file doesn't exist.
- sflag
- How the client wants the file to be shared; a combination of the following bits:
- SH_COMPAT
- set compatibility mode.
- SH_DENYRW
- prevent read or write access to the file.
- SH_DENYWR
- prevent write access to the file.
- SH_DENYRD
- prevent read access to the file.
- SH_DENYNO
- permit both read and write access to the file.
- xtype
- Extended type information that can change the behavior of an I/O function. One of:
- _IO_OPENFD_NONE
- no extended type information.
- _IO_OPENFD_PIPE
- a pipe is being opened.
- _IO_OPENFD_RESERVED
- reserved
- info
- A pointer to a struct _msg_info that contains information about the message received by the resource manager.
- key
- Reserved for future use.
ЗОСРВ «Нейтрино»
resmgr_io_funcs_t, iofunc_openfd_default(), iofunc_openfd()
Предыдущий раздел: Описание API системной библиотеки