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) 1988 AT&T */
  27   29  /*        All Rights Reserved   */
  28   30  
  29   31  #ifndef _STDLIB_H
  30   32  #define _STDLIB_H
  31   33  
  32   34  #include <iso/stdlib_iso.h>
↓ open down ↓ 182 lines elided ↑ open up ↑
 215  217  extern int clearenv(void);
 216  218  extern void closefrom(int);
 217  219  extern int daemon(int, int);
 218  220  extern int dup2(int, int);
 219  221  extern int fdwalk(int (*)(void *, int), void *);
 220  222  extern char *qecvt(long double, int, int *, int *);
 221  223  extern char *qfcvt(long double, int, int *, int *);
 222  224  extern char *qgcvt(long double, int, char *);
 223  225  extern char *getcwd(char *, size_t);
 224  226  extern const char *getexecname(void);
      227 +
      228 +#ifndef __GETLOGIN_DEFINED      /* Avoid duplicate in unistd.h */
      229 +#define __GETLOGIN_DEFINED
      230 +#ifndef __USE_LEGACY_LOGNAME__
      231 +#ifdef  __PRAGMA_REDEFINE_EXTNAME
      232 +#pragma redefine_extname getlogin getloginx
      233 +#else   /* __PRAGMA_REDEFINE_EXTNAME */
      234 +extern char *getloginx(void);
      235 +#define getlogin        getloginx
      236 +#endif  /* __PRAGMA_REDEFINE_EXTNAME */
      237 +#endif  /* __USE_LEGACY_LOGNAME__ */
 225  238  extern char *getlogin(void);
      239 +#endif  /* __GETLOGIN_DEFINED */
      240 +
 226  241  extern int getopt(int, char *const *, const char *);
 227  242  extern char *optarg;
 228  243  extern int optind, opterr, optopt;
 229  244  extern char *getpass(const char *);
 230  245  extern char *getpassphrase(const char *);
 231  246  extern int getpw(uid_t, char *);
 232  247  extern int isatty(int);
 233  248  extern void *memalign(size_t, size_t);
 234  249  extern char *ttyname(int);
 235  250  extern char *mkdtemp(char *);
↓ open down ↓ 86 lines elided ↑ open up ↑
 322  337  extern int clearenv();
 323  338  extern void closefrom();
 324  339  extern int daemon();
 325  340  extern int dup2();
 326  341  extern int fdwalk();
 327  342  extern char *qecvt();
 328  343  extern char *qfcvt();
 329  344  extern char *qgcvt();
 330  345  extern char *getcwd();
 331  346  extern char *getexecname();
      347 +
      348 +#ifndef __GETLOGIN_DEFINED      /* Avoid duplicate in unistd.h */
      349 +#define __GETLOGIN_DEFINED
      350 +#ifndef __USE_LEGACY_LOGNAME__
      351 +#ifdef  __PRAGMA_REDEFINE_EXTNAME
      352 +#pragma redefine_extname getlogin getloginx
      353 +#else   /* __PRAGMA_REDEFINE_EXTNAME */
      354 +extern char *getloginx();
      355 +#define getlogin        getloginx
      356 +#endif  /* __PRAGMA_REDEFINE_EXTNAME */
      357 +#endif  /* __USE_LEGACY_LOGNAME__ */
 332  358  extern char *getlogin();
      359 +#endif  /* __GETLOGIN_DEFINED */
      360 +
 333  361  extern int getopt();
 334  362  extern char *optarg;
 335  363  extern int optind, opterr, optopt;
 336  364  extern char *getpass();
 337  365  extern char *getpassphrase();
 338  366  extern int getpw();
 339  367  extern int isatty();
 340  368  extern void *memalign();
 341  369  extern char *ttyname();
 342  370  extern char *mkdtemp();
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX