Print this page
Add libuserdefs and use in cmd/{oamuser,passwd}

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oamuser/user/funcs.h
          +++ new/usr/src/cmd/oamuser/user/funcs.h
↓ open down ↓ 35 lines elided ↑ open up ↑
  36   36  #define AUTH_SEP        ","
  37   37  #define PROF_SEP        ","
  38   38  #define ROLE_SEP        ","
  39   39  
  40   40  #define MAX_TYPE_LENGTH 64
  41   41  
  42   42  char *getusertype(char *cmdname);
  43   43  
  44   44  int is_role(char *usertype);
  45   45  
       46 +struct userdefs;
       47 +void import_def(struct userdefs *ud);
       48 +void update_def(struct userdefs *ud);
  46   49  void change_key(const char *, char *);
  47   50  void addkey_args(char **, int *);
  48   51  char *getsetdefval(const char *, char *);
  49   52  
  50   53  extern int nkeys;
  51   54  
  52   55  /* create_home() or rm_files() flags */
  53   56  #define MANAGE_ZFS_OPT  "MANAGE_ZFS="
  54   57  #define MANAGE_ZFS      1
  55   58  
  56   59  #ifdef  __cplusplus
  57   60  }
  58   61  #endif
  59   62  
  60   63  #endif  /* _FUNCS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX