Print this page
4078 groupadd execs getent unnecessarily
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 <Gordon.W.Ross@gmail.com>


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */



  25 
  26 /*
  27  * Declarations for the functions in libcmdutils.
  28  */
  29 
  30 #ifndef _LIBCMDUTILS_H
  31 #define _LIBCMDUTILS_H
  32 
  33 #pragma ident   "%Z%%M% %I%     %E% SMI"
  34 
  35 /*
  36  * This is a private header file.  Applications should not directly include
  37  * this file.
  38  */
  39 
  40 #include <stdio.h>
  41 #include <unistd.h>
  42 #include <stdlib.h>
  43 #include <errno.h>
  44 #include <fcntl.h>


 108  * is already in the search tree).
 109  */
 110 
 111 extern int tnode_compare(const void *, const void *);
 112 
 113 /*
 114  * Used to add a single node (containing the input device id and
 115  * inode number) to the specified search tree.  The calling
 116  * application must set the tree pointer to NULL before calling
 117  * add_tnode() for the first time.
 118  */
 119 extern int add_tnode(avl_tree_t **, dev_t, ino_t);
 120 
 121 /*
 122  * Used to destroy a whole tree (all nodes) without rebalancing.
 123  * The calling application is responsible for setting the tree
 124  * pointer to NULL upon return.
 125  */
 126 extern void destroy_tree(avl_tree_t *);
 127 














 128 #ifdef  __cplusplus
 129 }
 130 #endif
 131 
 132 #endif /* _LIBCMDUTILS_H */


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright (c) 2013 RackTop Systems.
  27  */
  28 
  29 /*
  30  * Declarations for the functions in libcmdutils.
  31  */
  32 
  33 #ifndef _LIBCMDUTILS_H
  34 #define _LIBCMDUTILS_H
  35 
  36 #pragma ident   "%Z%%M% %I%     %E% SMI"
  37 
  38 /*
  39  * This is a private header file.  Applications should not directly include
  40  * this file.
  41  */
  42 
  43 #include <stdio.h>
  44 #include <unistd.h>
  45 #include <stdlib.h>
  46 #include <errno.h>
  47 #include <fcntl.h>


 111  * is already in the search tree).
 112  */
 113 
 114 extern int tnode_compare(const void *, const void *);
 115 
 116 /*
 117  * Used to add a single node (containing the input device id and
 118  * inode number) to the specified search tree.  The calling
 119  * application must set the tree pointer to NULL before calling
 120  * add_tnode() for the first time.
 121  */
 122 extern int add_tnode(avl_tree_t **, dev_t, ino_t);
 123 
 124 /*
 125  * Used to destroy a whole tree (all nodes) without rebalancing.
 126  * The calling application is responsible for setting the tree
 127  * pointer to NULL upon return.
 128  */
 129 extern void destroy_tree(avl_tree_t *);
 130 
 131 
 132 
 133                 /* user/group id helpers */
 134 
 135 /*
 136  * Used to get the next available user id in given range.
 137  */
 138 extern int findnextuid(uid_t, uid_t, uid_t *);
 139 
 140 /*
 141  * Used to get the next available group id in given range.
 142  */
 143 extern int findnextgid(gid_t, gid_t, gid_t *);
 144 
 145 #ifdef  __cplusplus
 146 }
 147 #endif
 148 
 149 #endif /* _LIBCMDUTILS_H */