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>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libcmdutils/libcmdutils.h
          +++ new/usr/src/lib/libcmdutils/libcmdutils.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright (c) 2013 RackTop Systems.
       27 + */
  25   28  
  26   29  /*
  27   30   * Declarations for the functions in libcmdutils.
  28   31   */
  29   32  
  30   33  #ifndef _LIBCMDUTILS_H
  31   34  #define _LIBCMDUTILS_H
  32   35  
  33   36  #pragma ident   "%Z%%M% %I%     %E% SMI"
  34   37  
↓ open down ↓ 83 lines elided ↑ open up ↑
 118  121   */
 119  122  extern int add_tnode(avl_tree_t **, dev_t, ino_t);
 120  123  
 121  124  /*
 122  125   * Used to destroy a whole tree (all nodes) without rebalancing.
 123  126   * The calling application is responsible for setting the tree
 124  127   * pointer to NULL upon return.
 125  128   */
 126  129  extern void destroy_tree(avl_tree_t *);
 127  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 +
 128  145  #ifdef  __cplusplus
 129  146  }
 130  147  #endif
 131  148  
 132  149  #endif /* _LIBCMDUTILS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX