diff options
Diffstat (limited to 'usr/src/lib/libcmdutils/libcmdutils.h')
-rw-r--r-- | usr/src/lib/libcmdutils/libcmdutils.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/usr/src/lib/libcmdutils/libcmdutils.h b/usr/src/lib/libcmdutils/libcmdutils.h index d1c3a0b193..c315e0fbef 100644 --- a/usr/src/lib/libcmdutils/libcmdutils.h +++ b/usr/src/lib/libcmdutils/libcmdutils.h @@ -22,6 +22,9 @@ * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* + * Copyright (c) 2013 RackTop Systems. + */ /* * Declarations for the functions in libcmdutils. @@ -30,8 +33,6 @@ #ifndef _LIBCMDUTILS_H #define _LIBCMDUTILS_H -#pragma ident "%Z%%M% %I% %E% SMI" - /* * This is a private header file. Applications should not directly include * this file. @@ -125,6 +126,20 @@ extern int add_tnode(avl_tree_t **, dev_t, ino_t); */ extern void destroy_tree(avl_tree_t *); + + + /* user/group id helpers */ + +/* + * Used to get the next available user id in given range. + */ +extern int findnextuid(uid_t, uid_t, uid_t *); + +/* + * Used to get the next available group id in given range. + */ +extern int findnextgid(gid_t, gid_t, gid_t *); + #ifdef __cplusplus } #endif |