*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> msen_from_text (3c)              
Title
Content
Arch
Section
 

Contents


MSEN_FROM_TEXT(3C)					    MSEN_FROM_TEXT(3C)


NAME    [Toc]    [Back]

     msen_from_text, msen_to_text - convert a MSEN string from/to msen_t

SYNOPSIS    [Toc]    [Back]

     #include <sys/mac.h>

     msen_t msen_from_text(const char *argp);
     char * msen_to_text(msen_t	msenp, size_t *len_p);

DESCRIPTION    [Toc]    [Back]

     These routines convert a textual name of a	mandatory sensitvity (MSEN)
     label from/to a msen_t - a	pointer	to a structure representing the
     mandatory sensitivity component of	a MAC label.

     msen_from_text translates a textual description of	a MSEN label into a
     msen_t and	returns	the result.  msen_to_text translates a msen_t into a
     character string describing the MSEN label.  Both of these	routines
     allocate storage for the information returned.  The allocated storage for
     both can be released when no longer needed	by calling msen_free(3c).

     The len_p argument	to msen_to_text	is a pointer to	a size_t that can be
     used to hold the length of	the returned string.  If this argument is not
     NULL, then	the length of the string is placed in this location on return
     from msen_to_text.

RETURN VALUES    [Toc]    [Back]

     If	successful, msen_from_text returns a msen_t. Upon failure
     msen_from_text returns a NULL pointer - a value of	((msen_t)0).

     If	successful, msen_to_text returns a pointer to an allocated null
     terminated	character string containing a representation of	the MSEN
     label.  If	an error occurs, msen_to_text returns a	NULL pointer.

ERRORS    [Toc]    [Back]

     msen_from_text:

     EINVAL	     input text	is invalid

     ENOMEM	     could not allocate	space for new label

     msen_to_text:

     EINVAL	     input label is invalid

     ENOMEM	     could not allocate	space for the return string

SEE ALSO    [Toc]    [Back]

      
      
     msen_dom(3C), msen_equal(3C), msen_free(3C), msen_from_mac(3C)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
mac_valid IRIX validate a MAC, MSEN, or MINT label
mac_size IRIX get the size of a MAC, MSEN, or MINT label
msen_dom IRIX compare two MSEN labels for the dominates/equal relationship
wcstombs Linux convert a wide character string to a multibyte string
wcsrtombs Linux convert a wide character string to a multibyte string
wcsnrtombs Linux convert a wide character string to a multibyte string
mbstowcs Linux convert a multibyte string to a wide character string
mbsrtowcs Linux convert a multibyte string to a wide character string
mbsnrtowcs Linux convert a multibyte string to a wide character string
cap_from_text IRIX convert a POSIX capabilities string to internal form, convert capabilities to a POSIX capabilities string, or
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service