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

@@ -20,10 +20,11 @@
  */
 
 /*
  * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ * Copyright (c) 2013 Gary Mills
  */
 
 /* LINTLIBRARY */
 /* PROTOLIB1 */
 

@@ -191,10 +192,11 @@
 int __posix_sigwait(const sigset_t * _RESTRICT_KYWD, int * _RESTRICT_KYWD);
 char *__posix_asctime_r(const struct tm *_RESTRICT_KYWD, char *_RESTRICT_KYWD);
 char *__posix_ctime_r(const time_t *, char *);
 int __posix_ttyname_r(int, char *, size_t);
 int __posix_getlogin_r(char *, int);
+int __posix_getloginx_r(char *, int);
 
 /*
  * XPG4 versions of standard libc routines; these aren't extracted
  * from the headers above since we cannot #define _XPG4_2.
  */

@@ -472,11 +474,19 @@
 
 /* getisax.c */
 uint_t getisax(uint32_t *, uint_t);
 
 /* getlogin.c */
+char *getloginx(void);
+char *getloginx_r(char *, int);
+#ifdef  getlogin
+#undef  getlogin
+#endif  /* getlogin */
 char *getlogin(void);
+#ifdef  getlogin_r
+#undef  getlogin_r
+#endif  /* getlogin_r */
 char *getlogin_r(char *, int);
 
 /* getmntent.c */
 int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
 int getmntent(FILE *fd, struct mnttab *mp);