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

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

Contents


MINT_FROM_TEXT(3C)					    MINT_FROM_TEXT(3C)


NAME    [Toc]    [Back]

     mint_from_text, mint_to_text - convert a MINT string from/to mint_t

SYNOPSIS    [Toc]    [Back]

     #include <sys/mac.h>

     mint_t mint_from_text(const char *argp);
     char * mint_to_text(mint_t	mintp, size_t *len_p);

DESCRIPTION    [Toc]    [Back]

     These routines convert a textual name of a	mandatory integrity (MINT)
     label from/to a mint_t - a	pointer	to a structure representing the
     mandatory integrity component of a	MAC label.

     mint_from_text translates a textual description of	a MINT label into a
     mint_t and	returns	the result.  mint_to_text translates a mint_t into a
     character string describing the MINT 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 mint_free(3c).

     The len_p argument	to mint_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 mint_to_text.

RETURN VALUES    [Toc]    [Back]

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

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

ERRORS    [Toc]    [Back]

     mint_from_text:

     EINVAL	     input text	is invalid

     ENOMEM	     could not allocate	space for new label

     mint_to_text:

     EINVAL	     input label is invalid

     ENOMEM	     could not allocate	space for the return string

SEE ALSO    [Toc]    [Back]

      
      
     mint_dom(3C), mint_equal(3C), mint_free(3C), mint_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
mint_dom IRIX compare two MINT 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