DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

dbGetdbPriv(3dba)


dbGetdbPriv -- get database privileges based on host, user and database name

Synopsis

cc [flag ...] file ... -kthread -leels [library] ...
#include <eelsdba.h>

DBPriv_t *dbGetdbPriv( char *host, char *user, char *database )

Description

dbGetdbPriv returns the database privileges based on host, user and database names. This routine returns a linked list of DBPriv_t structures each corresponding to a set of privileges for a host/user/database triple. Multiple entries can be returned from this routine if wildcards are used for host, user, or database (that is, passing NULL or ``any'' for any of those fields). The DBPriv_t structure is defined in /usr/include/eelsdba.h. The dbFreePriv(3dba) 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, user or database field.

Arguments


host
(Input) The IP/Hostname.

user
(Input) The user name.

database
(Input) The database name.

Return values

On success dbGetdbPriv returns a linked list of DBPriv_t structures. On failure it returns NULL.

References

dbFreePriv(3dba), Intro(3dba)


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004