Получить атрибуты сервера
#include <sys/iomgr.h>int iofdinfo( int filedes,unsigned flags,struct _fdinfo *info,char *path,int maxlen );
_FDINFO_FLAG_LOCALPATH
to return only the local path info (i.e. exclude the network path info).NULL
, or a pointer to an struct _fdinfo that contains the connection information defined in <sys/iomgr.h>
. Specify NULL
if it's not required.NULL
if it's not required.libc
The iofdinfo() function retrieves the server's attribute information for the connection referred to by filedes.
The length of the associated filedes pathname.
Если возникла ошибка функция возвращает -1
, код ошибки записывается в errno.
ЗОСРВ «Нейтрино»
struct _fdinfo, iofunc_fdinfo(), iofunc_fdinfo_default(), resmgr_pathname()
Предыдущий раздел: Описание API системной библиотеки