~ubuntu-branches/ubuntu/wily/man-db/wily-proposed

« back to all changes in this revision

Viewing changes to gnulib/lib/stdlib.in.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-06-24 11:34:02 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20130624113402-6xdn53l2p9qu8yus
Tags: 2.6.4-1
* New upstream release:
  - Document default section list in manual pages (closes: #611007).
  - Quieten most warnings from compiling Gnulib (closes: #668429).
  - The MANLESS environment variable is now treated as if it were a
    default value for the -r option to man: occurrences of the text
    "$MAN_PN" are expanded, and explicitly using the -r option overrides
    the default (closes: #690831).
* Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts.
* Remove maintainer script support for direct upgrades from pre-etch
  (three releases before current stable).
* Breaks/Replaces manpages-zh (<< 1.5.2-1.1); man-db now ships zh_CN
  translations formerly included there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A GNU-like <stdlib.h>.
2
2
 
3
 
   Copyright (C) 1995, 2001-2004, 2006-2012 Free Software Foundation, Inc.
 
3
   Copyright (C) 1995, 2001-2004, 2006-2013 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
20
20
#endif
21
21
@PRAGMA_COLUMNS@
22
22
 
23
 
#if defined __need_malloc_and_calloc
24
 
/* Special invocation convention inside glibc header files.  */
 
23
#if defined __need_system_stdlib_h || defined __need_malloc_and_calloc
 
24
/* Special invocation conventions inside some gnulib header files,
 
25
   and inside some glibc header files, respectively.  */
25
26
 
26
27
#@INCLUDE_NEXT@ @NEXT_STDLIB_H@
27
28
 
87
88
#endif
88
89
 
89
90
#if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
90
 
/* On MacOS X 10.3, only <unistd.h> declares mkstemp.  */
91
 
/* On MacOS X 10.5, only <unistd.h> declares mkstemps.  */
 
91
/* On Mac OS X 10.3, only <unistd.h> declares mkstemp.  */
 
92
/* On Mac OS X 10.5, only <unistd.h> declares mkstemps.  */
92
93
/* On Cygwin 1.7.1, only <unistd.h> declares getsubopt.  */
93
94
/* But avoid namespace pollution on glibc systems and native Windows.  */
94
95
# include <unistd.h>
95
96
#endif
96
97
 
 
98
/* The __attribute__ feature is available in gcc versions 2.5 and later.
 
99
   The attribute __pure__ was added in gcc 2.96.  */
 
100
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
 
101
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
 
102
#else
 
103
# define _GL_ATTRIBUTE_PURE /* empty */
 
104
#endif
 
105
 
97
106
/* The definition of _Noreturn is copied here.  */
98
107
 
99
108
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
138
147
/* Parse a signed decimal integer.
139
148
   Returns the value of the integer.  Errors are not detected.  */
140
149
# if !@HAVE_ATOLL@
141
 
_GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ARG_NONNULL ((1)));
 
150
_GL_FUNCDECL_SYS (atoll, long long, (const char *string)
 
151
                                    _GL_ATTRIBUTE_PURE
 
152
                                    _GL_ARG_NONNULL ((1)));
142
153
# endif
143
154
_GL_CXXALIAS_SYS (atoll, long long, (const char *string));
144
155
_GL_CXXALIASWARN (atoll);
447
458
#if @GNULIB_PTSNAME@
448
459
/* Return the pathname of the pseudo-terminal slave associated with
449
460
   the master FD is open on, or NULL on errors.  */
450
 
# if !@HAVE_PTSNAME@
 
461
# if @REPLACE_PTSNAME@
 
462
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
463
#   undef ptsname
 
464
#   define ptsname rpl_ptsname
 
465
#  endif
 
466
_GL_FUNCDECL_RPL (ptsname, char *, (int fd));
 
467
_GL_CXXALIAS_RPL (ptsname, char *, (int fd));
 
468
# else
 
469
#  if !@HAVE_PTSNAME@
451
470
_GL_FUNCDECL_SYS (ptsname, char *, (int fd));
452
 
# endif
 
471
#  endif
453
472
_GL_CXXALIAS_SYS (ptsname, char *, (int fd));
 
473
# endif
454
474
_GL_CXXALIASWARN (ptsname);
455
475
#elif defined GNULIB_POSIXCHECK
456
476
# undef ptsname
747
767
# endif
748
768
#endif
749
769
 
 
770
#if @GNULIB_SECURE_GETENV@
 
771
/* Look up NAME in the environment, returning 0 in insecure situations.  */
 
772
# if !@HAVE_SECURE_GETENV@
 
773
_GL_FUNCDECL_SYS (secure_getenv, char *,
 
774
                  (char const *name) _GL_ARG_NONNULL ((1)));
 
775
# endif
 
776
_GL_CXXALIAS_SYS (secure_getenv, char *, (char const *name));
 
777
_GL_CXXALIASWARN (secure_getenv);
 
778
#elif defined GNULIB_POSIXCHECK
 
779
# undef secure_getenv
 
780
# if HAVE_RAW_DECL_SECURE_GETENV
 
781
_GL_WARN_ON_USE (secure_getenv, "secure_getenv is unportable - "
 
782
                 "use gnulib module secure_getenv for portability");
 
783
# endif
 
784
#endif
 
785
 
750
786
#if @GNULIB_SETENV@
751
787
/* Set NAME to VALUE in the environment.
752
788
   If REPLACE is nonzero, overwrite an existing value.  */