get user privileges based on host and user name
cc [flag ...] file ...
-kthread -leels [library] ...
DBPriv_t *dbGetUserPriv( char *host,
char *user );
returns the user privileges based on host and user names.
This routine returns a linked list of DBPriv_t
structures each corresponding to a set of privileges for a
host/user pair. Multiple entries can be returned from this
routine if wildcards are used for host or user (that is,
passing NULL or ``any'' for either of those
The DBPriv_t structure is defined in
routine must be called to free the linked list that is
returned from this routine.
The word ``any'' can be used as a wildcard for the
host or user field.
(Input) The IP/Hostname.
(Input) The user name.
On success dbGetUserPriv returns a linked list
of DBPriv_t structures. On failure it returns NULL.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004