NAME tt_message_uid - retrieve the user identifier attribute from a message SYNOPSIS #include <Tt/tt_c.h> uid_t tt_message_uid(Tt_message m); DESCRIPTION The tt_message_uid() function retrieves the user identifier attribute from the specified message. The ToolTalk service automatically sets the user identifier of a message with the user identifier of the process that created the message. The m argument is the opaque handle for the message involved in this operation. The application should check the tt_message_uid() and tt_message_gid(3) against the User ID and Group ID of the application receiving the messsage. If the UID and/or GID of the application do not match that of the message then the receiving application should consider failing the message with TT_DESKTOP_EACCES. RETURN VALUE Upon successful completion, the tt_message_uid() function returns the user identifier of the message. If the group nobody is returned, the message handle is not valid. SEE ALSO tt_c(5), tt_message_gid(3).
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |