Print this page
2989 Eliminate use of LOGNAME_MAX in ON
1166 useradd have warning with name more 8 chars

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/prstat/prtable.h
          +++ new/usr/src/cmd/prstat/prtable.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 + * Copyright (c) 2013 Gary Mills
       23 + *
  22   24   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   *
  25   27   * Portions Copyright 2009 Chad Mynhier
  26   28   */
  27   29  
  28   30  #ifndef _PRTABLE_H
  29   31  #define _PRTABLE_H
  30   32  
  31   33  #ifdef  __cplusplus
↓ open down ↓ 31 lines elided ↑ open up ↑
  63   65  } zonetbl_t;
  64   66  
  65   67  typedef struct plwp {           /* linked list of pointers to lwps */
  66   68          pid_t           l_pid;
  67   69          id_t            l_lwpid;
  68   70          int             l_active;
  69   71          lwp_info_t      *l_lwp;
  70   72          struct plwp     *l_next;
  71   73  } plwp_t;
  72   74  
  73      -extern void pwd_getname(uid_t, char *, int, int);
       75 +extern void pwd_getname(uid_t, char *, size_t, int, int, size_t);
  74   76  extern void add_uid(uidtbl_t *, char *);
  75   77  extern int has_uid(uidtbl_t *, uid_t);
  76   78  extern void add_element(table_t *, long);
  77   79  extern int has_element(table_t *, long);
  78   80  extern void add_zone(zonetbl_t *, char *);
  79   81  extern int has_zone(zonetbl_t *, zoneid_t);
  80   82  extern void convert_zone(zonetbl_t *);
  81   83  extern int foreach_element(table_t *, void *, void (*)(long, void *));
  82   84  extern void lwpid_init();
  83   85  extern void lwpid_add(lwp_info_t *, pid_t, id_t);
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX