NAME
t6peek_attr, t6last_attr - examine the security attributes on the next/previous
byte of data
SYNOPSIS
cc [ flags ... ] file ... -lt6
#include <tsix/t6attrs.h>
int t6peek_attr(int fd, t6attr_t attr_ptr, t6mask_t *new_attrs)
int t6last_attr(int fd, t6attr_t attr_ptr, t6mask_t *new_attrs)
DESCRIPTION
t6peek_attr allows a process to peek ahead at the security attributes
of the next byte of data. fd is the descriptor of the endpoint,
attr_ptr specifies a structure in which to store those attributes
the caller wishes to retrieve. new_attrs points to a mask that indicates
which attributes were actually retrieved on return from t6peek_attr
.
t6last_attr allows a process to retrieve the attributes of the last byte of data read from the indicated file descriptor. Its parameters are identical to the t6peek_attr routine.
RETURN VALUE
On successful completion these calls return 0 , place the retrieved
security attributes in the t6attr_t structure, and set
*new_attrs to the mask of those attributes actually returned. If either call
encounters an error, -1 is returned. Errors generated by
t6peek_attr and t6last_attrs are indicated by the global variable
errno .