summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcmdutils/libcmdutils.h
diff options
context:
space:
mode:
authorAndy Stormont <astormont@racktopsystems.com>2013-09-09 17:14:48 +0100
committerRobert Mustacchi <rm@joyent.com>2013-09-13 17:04:07 -0700
commita7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7b (patch)
tree81fa5ca69f00db5d053c62e908b2c6edbf50d58e /usr/src/lib/libcmdutils/libcmdutils.h
parent41599e9fdccb44cc5f17828ab04b3147cefcc4e0 (diff)
downloadillumos-joyent-a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7b.tar.gz
4078 groupadd execs getent unnecessarily
4127 dmake setup could create /etc/skel Reviewed by: Rich Lowe <richlowe@richlowe.net> Reviewed by: Gary Mills <gary_mills@fastmail.fm> Reviewed by: Milan Jurik <milan.jurik@xylab.cz> Reviewed by: Gordon Ross <gwr@nexenta.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/lib/libcmdutils/libcmdutils.h')
-rw-r--r--usr/src/lib/libcmdutils/libcmdutils.h19
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