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/lib/libc/port/llib-lc
          +++ new/usr/src/lib/libc/port/llib-lc
↓ 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  /*
  23   23   * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
       25 + * Copyright (c) 2013 Gary Mills
  25   26   */
  26   27  
  27   28  /* LINTLIBRARY */
  28   29  /* PROTOLIB1 */
  29   30  
  30   31  #define __EXTENSIONS__
  31   32  
  32   33  #include <aio.h>
  33   34  #include <alloca.h>
  34   35  #include <attr.h>
↓ open down ↓ 151 lines elided ↑ open up ↑
 186  187      struct group **);
 187  188  int __posix_getpwuid_r(uid_t, struct passwd *, char *, size_t,
 188  189      struct passwd **);
 189  190  int __posix_getpwnam_r(const char *, struct passwd *, char *, size_t,
 190  191      struct passwd **);
 191  192  int __posix_sigwait(const sigset_t * _RESTRICT_KYWD, int * _RESTRICT_KYWD);
 192  193  char *__posix_asctime_r(const struct tm *_RESTRICT_KYWD, char *_RESTRICT_KYWD);
 193  194  char *__posix_ctime_r(const time_t *, char *);
 194  195  int __posix_ttyname_r(int, char *, size_t);
 195  196  int __posix_getlogin_r(char *, int);
      197 +int __posix_getloginx_r(char *, int);
 196  198  
 197  199  /*
 198  200   * XPG4 versions of standard libc routines; these aren't extracted
 199  201   * from the headers above since we cannot #define _XPG4_2.
 200  202   */
 201  203  int __xpg4_putmsg(int, const struct strbuf *, const struct strbuf *, int);
 202  204  int __xpg4_putpmsg(int, const struct strbuf *, const struct strbuf *, int, int);
 203  205  
 204  206  /*
 205  207   * These aren't extracted from the headers above because:
↓ open down ↓ 261 lines elided ↑ open up ↑
 467  469  /* gethostid.c */
 468  470  long gethostid(void);
 469  471  
 470  472  /* gethz.c */
 471  473  int gethz(void);
 472  474  
 473  475  /* getisax.c */
 474  476  uint_t getisax(uint32_t *, uint_t);
 475  477  
 476  478  /* getlogin.c */
      479 +char *getloginx(void);
      480 +char *getloginx_r(char *, int);
      481 +#ifdef  getlogin
      482 +#undef  getlogin
      483 +#endif  /* getlogin */
 477  484  char *getlogin(void);
      485 +#ifdef  getlogin_r
      486 +#undef  getlogin_r
      487 +#endif  /* getlogin_r */
 478  488  char *getlogin_r(char *, int);
 479  489  
 480  490  /* getmntent.c */
 481  491  int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
 482  492  int getmntent(FILE *fd, struct mnttab *mp);
 483  493  
 484  494  /* getnetgrent.c */
 485  495  int setnetgrent(const char *grp);
 486  496  int endnetgrent(void);
 487  497  int getnetgrent(char **machinep, char **namep, char **domainp);
↓ open down ↓ 1299 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX