kva_match man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

KVA_MATCH(3SECDB)					     KVA_MATCH(3SECDB)

NAME
       kva_match - look up a key in a key-value array

SYNOPSIS
       cc [ flag... ] file...- lsecdb [ library... ]
       #include <secdb.h>

       char *kva_match(kva_t *kva, char *key);

DESCRIPTION
       The  kva_match()	 function searches a kva_t structure, which is part of
       the  authattr_t, execattr_t, profattr_t, or userattr_t structures.  The
       function	 takes	two  arguments:	 a pointer to a key value array, and a
       key.  If the key is in the array, the function returns a pointer to the
       first  corresponding value that matches that key.  Otherwise, the func‐
       tion returns NULL.

RETURN VALUES
       Upon successful completion, the function returns a pointer to the value
       sought.	Otherwise, it returns NULL.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌───────────────┬─────────────────┐
       │ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
       ├───────────────┼─────────────────┤
       │MT-Level       │ MT-Safe	 │
       └───────────────┴─────────────────┘

SEE ALSO
       getauthattr(3SECDB), getexecattr(3SECDB), getprofattr(3SECDB), getuser‐
       attr(3SECDB)

NOTES
       The kva_match() function returns a pointer to data that already	exists
       in  the	key-value  array. It does not allocate its own memory for this
       pointer but obtains it from the key-value array that is passed  as  its
       first argument.

				 Aug 12, 1999		     KVA_MATCH(3SECDB)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net