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/head/stdlib.h
          +++ new/usr/src/head/stdlib.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  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   22  /*
       23 + * Copyright (c) 2013 Gary Mills
       24 + *
  23   25   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24   26   */
  25   27  
  26   28  /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  27   29  
  28   30  /*      Copyright (c) 1988 AT&T */
  29   31  /*        All Rights Reserved   */
  30   32  
  31   33  #ifndef _STDLIB_H
  32   34  #define _STDLIB_H
↓ open down ↓ 185 lines elided ↑ open up ↑
 218  220  extern void closefrom(int);
 219  221  extern int daemon(int, int);
 220  222  extern int dup2(int, int);
 221  223  extern int dup3(int, int, int);
 222  224  extern int fdwalk(int (*)(void *, int), void *);
 223  225  extern char *qecvt(long double, int, int *, int *);
 224  226  extern char *qfcvt(long double, int, int *, int *);
 225  227  extern char *qgcvt(long double, int, char *);
 226  228  extern char *getcwd(char *, size_t);
 227  229  extern const char *getexecname(void);
      230 +
      231 +#ifndef __GETLOGIN_DEFINED      /* Avoid duplicate in unistd.h */
      232 +#define __GETLOGIN_DEFINED
      233 +#ifndef __USE_LEGACY_LOGNAME__
      234 +#ifdef  __PRAGMA_REDEFINE_EXTNAME
      235 +#pragma redefine_extname getlogin getloginx
      236 +#else   /* __PRAGMA_REDEFINE_EXTNAME */
      237 +extern char *getloginx(void);
      238 +#define getlogin        getloginx
      239 +#endif  /* __PRAGMA_REDEFINE_EXTNAME */
      240 +#endif  /* __USE_LEGACY_LOGNAME__ */
 228  241  extern char *getlogin(void);
      242 +#endif  /* __GETLOGIN_DEFINED */
      243 +
 229  244  extern int getopt(int, char *const *, const char *);
 230  245  extern char *optarg;
 231  246  extern int optind, opterr, optopt;
 232  247  extern char *getpass(const char *);
 233  248  extern char *getpassphrase(const char *);
 234  249  extern int getpw(uid_t, char *);
 235  250  extern int isatty(int);
 236  251  extern void *memalign(size_t, size_t);
 237  252  extern char *ttyname(int);
 238  253  extern char *mkdtemp(char *);
↓ open down ↓ 87 lines elided ↑ open up ↑
 326  341  extern void closefrom();
 327  342  extern int daemon();
 328  343  extern int dup2();
 329  344  extern int dup3();
 330  345  extern int fdwalk();
 331  346  extern char *qecvt();
 332  347  extern char *qfcvt();
 333  348  extern char *qgcvt();
 334  349  extern char *getcwd();
 335  350  extern char *getexecname();
      351 +
      352 +#ifndef __GETLOGIN_DEFINED      /* Avoid duplicate in unistd.h */
      353 +#define __GETLOGIN_DEFINED
      354 +#ifndef __USE_LEGACY_LOGNAME__
      355 +#ifdef  __PRAGMA_REDEFINE_EXTNAME
      356 +#pragma redefine_extname getlogin getloginx
      357 +#else   /* __PRAGMA_REDEFINE_EXTNAME */
      358 +extern char *getloginx();
      359 +#define getlogin        getloginx
      360 +#endif  /* __PRAGMA_REDEFINE_EXTNAME */
      361 +#endif  /* __USE_LEGACY_LOGNAME__ */
 336  362  extern char *getlogin();
      363 +#endif  /* __GETLOGIN_DEFINED */
      364 +
 337  365  extern int getopt();
 338  366  extern char *optarg;
 339  367  extern int optind, opterr, optopt;
 340  368  extern char *getpass();
 341  369  extern char *getpassphrase();
 342  370  extern int getpw();
 343  371  extern int isatty();
 344  372  extern void *memalign();
 345  373  extern char *ttyname();
 346  374  extern char *mkdtemp();
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX