diff options
Diffstat (limited to 'usr/src/head/nss_dbdefs.h')
-rw-r--r-- | usr/src/head/nss_dbdefs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/head/nss_dbdefs.h b/usr/src/head/nss_dbdefs.h index 458715632c..ca5f9abf6e 100644 --- a/usr/src/head/nss_dbdefs.h +++ b/usr/src/head/nss_dbdefs.h @@ -21,6 +21,8 @@ /* * Copyright 2014 Garrett D'Amore <garrett@damore.org> * + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. + * * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * @@ -148,6 +150,7 @@ extern "C" { #define NSS_LINELEN_GROUP ((NSS_BUFSIZ) * 8) #define NSS_LINELEN_HOSTS ((NSS_BUFSIZ) * 8) #define NSS_LINELEN_IPNODES ((NSS_BUFSIZ) * 8) +#define NSS_LINELEN_NETGROUP ((NSS_BUFSIZ) * 32) #define NSS_LINELEN_NETMASKS NSS_BUFSIZ #define NSS_LINELEN_NETWORKS NSS_BUFSIZ #define NSS_LINELEN_PASSWD NSS_BUFSIZ @@ -358,6 +361,12 @@ struct nss_innetgr_args { enum nss_netgr_status status; }; +/* For NSS_DBOP_NETGROUP_BYNAME */ +struct nss_netgrent { + char *netgr_name; + char *netgr_members; +}; + /* * nss_XbyY_buf_t -- structure containing the generic arguments passwd to * getXXXbyYYY_r() and getXXXent_r() routines. The (void *) value points to @@ -779,9 +788,11 @@ extern nss_status_t nss_packed_getkey(void *, size_t, char **, int *, /* * The "real" backend for netgroup (__multi_innetgr, setnetgrent) + * Note: _BYNAME is implemented only in "files" (for now). */ #define NSS_DBOP_NETGROUP_IN (NSS_DBOP_next_iter) #define NSS_DBOP_NETGROUP_SET (NSS_DBOP_NETGROUP_IN + 1) +#define NSS_DBOP_NETGROUP_BYNAME (NSS_DBOP_NETGROUP_SET + 1) /* * The backend for getpublickey and getsecretkey (getkeys) |