HP-UX does not have select.h
PATCH 1/1 HP-UX does not have select.h
HP-UX does not have select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>
---
git-compat-util.h +2 -0
@@ -68,7 +68,9 @@#include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> +#ifndef _HPUX_SOURCE#include <sys/select.h> +#endif #include <assert.h> #include <regex.h> #include <netinet/in.h>
Signature · 8 lines
git-2007-12-17
--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/Quoted 2 lines · H.Merijn Brand
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>
Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
POSIX.1-2001 expects <sys/select.h> declares select(2). With earlier standards, including <sys/time.h>, <sys/types.h> and <unistd.h> would have given it.
HP-UX cannot be the only pre-POSIX system; "#ifndef _HPUX_SOURCE" feels very wrong.
Besides, isn't _HPUX_SOURCE a feature-test macro? Feature test macros are for the application to define, and for the implementation (iow, the header files) to find out what set of names the application wants to see. You are making the application examine the symbol to see what implementation it is on, which feels backwards to me.
Quoted 7 lines · Junio C Hamano
Quoted 2 lines · H.Merijn Brand
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
Probably. but there is so much to be improved :)
Quoted 3 lines
POSIX.1-2001 expects <
sys/select.h> declares select(2). With earlier standards, including <sys/time.h>, <sys/types.h> and <unistd.h> would have given it.
Those three are there. I have 10.20 through 11.23 on PA-RISC and 11.23 on Itanium 2.
10.20, 11.00, and 11.11 (11i v1) do not have sys/select.h. 11.23 and on do have it. The problem for now is that git on HP-UX does not build with HP's C-ANSI-C compiler. I need to use gcc. Up to and including 11.11, I cannot use 4.x, as that has serious problems when used in 64bit mode, so I'm stuck with gcc-3.4.6
Quoted 2 lines
HP-UX cannot be the only pre-POSIX system; "#ifndef
_HPUX_SOURCE" feels very wrong.
HP-UX 11.23/IPC, which is rather recent, does include sys/select.h I didn't sent my HP-UX patch yet for the Makefile, as that is still very premature. It is OK for 11.00, but as I need 64bit on 11.23, because I only have 64bit OpenSSL and other util libraries, the 32bit addition would not work.
Quoted 1 line
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macros
That is defined in GNU gcc. I did not pass it with -D...
Quoted 4 lines
are for the application to define, and for the implementation (iow, the header files) to find out what set of names the application wants to see. You are making the application examine the symbol to see what implementation it is on, which feels backwards to me.
Signature · 5 lines
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/Quoted 7 lines · H.Merijn Brand
Quoted 5 lines · Junio C Hamano
Quoted 2 lines · H.Merijn Brand
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>
Quoted 6 lines
Quoted 2 lines
Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
...
Quoted 1 line
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macrosThat is defined in GNU gcc. I did not pass it with -D...
Actually I changed my mind. I won't be applying this as is.
For the selective inclusion of <sys/select.h>, I would prefer it see it done like the attached.
The main point is to limit the "platform" dependency to configure and Makefile, and keep #ifdef in the actual header files expressed in more generic terms (e.g. "do we need to (and can we) include sys/select.h here?").
I am fuzzy about the uname_S part, so I won't be applying the attached patch either; the attached is for demonstration purposes only.
Makefile +10 -0
@@ -100,6 +100,9 @@ all:: # # Define NO_DEFLATE_BOUND if your zlib does not have deflateBound. # +# Define NO_SYS_SELECT_H if your C library header files do not have <sys/select.h> +# but you do have select(2) (pre POSIX.1-2001 systems, e.g. HP-UX before 11.23). +# # Define NO_R_TO_GCC_LINKER if your gcc does not like "-R/path/lib" # that tells runtime paths to dynamic libraries; # "-Wl,-rpath=/path/lib" is used instead.
@@ -504,6 +507,9 @@ endif ifneq (,$(findstring arm,$(uname_M))) ARM_SHA1 = YesPlease endif +ifeq ($(uname_S),HP-UX) + NO_SYS_SELECT_H = YesPlease +endif -include config.mak.autogen -include config.mak
@@ -676,6 +682,10 @@ ifdef NO_DEFLATE_BOUND BASIC_CFLAGS += -DNO_DEFLATE_BOUND endif +ifdef NO_SYS_SELECT_H + BASIC_CFLAGS += -DNO_SYS_SELECT_H +endif + ifdef PPC_SHA1 SHA1_HEADER = "ppc/sha1.h" LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o
config.mak.in +1 -0
@@ -44,3 +44,4 @@ NO_MKDTEMP=@NO_MKDTEMP@ NO_ICONV=@NO_ICONV@ OLD_ICONV=@OLD_ICONV@ NO_DEFLATE_BOUND=@NO_DEFLATE_BOUND@ +NO_SYS_SELECT_H=@NO_SYS_SELECT_H@
configure.ac +2 -0
@@ -256,6 +256,8 @@ AC_COMPILE_IFELSE(OLDICONVTEST_SRC, OLD_ICONV=UnfortunatelyYes]) AC_SUBST(OLD_ICONV) +AC_CHECK_HEADER([sys/select.h], [], [NO_SYS_SELECT_H=YesPlease]) +AC_SUBST(NO_SYS_SELECT_H) ## Checks for typedefs, structures, and compiler characteristics. AC_MSG_NOTICE([CHECKS for typedefs, structures, and compiler characteristics])
git-compat-util.h +2 -0
@@ -68,7 +68,9 @@#include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> +#ifndef NO_SYS_SELECT_H #include <sys/select.h> +#endif #include <assert.h> #include <regex.h> #include <netinet/in.h>
Quoted 12 lines · Junio C Hamano
Quoted 10 lines · H.Merijn Brand
Quoted 7 lines · Junio C Hamano
Quoted 2 lines · H.Merijn Brand
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
...
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macrosThat is defined in GNU gcc. I did not pass it with -D...
Actually I changed my mind. I won't be applying this as is.
For the selective inclusion of <
sys/select.h>, I would prefer it see it done like the attached.
So do I
Quoted 23 lines
The main point is to limit the "platform" dependency to configure and
Makefile, and keep #ifdef in the actual header files expressed in more generic terms (e.g. "do we need to (and can we) includesys/select.hhere?").I am fuzzy about the
uname_Spart, so I won't be applying the attached patch either; the attached is for demonstration purposes only.Makefile +3
-0@@ -100,6 +100,9 @@ all:: # # Define NO_DEFLATE_BOUND if your zlib does not have deflateBound. # +# Define NO_SYS_SELECT_H if your C library header files do not have <sys/select.h> +# but you do have select(2) (pre POSIX.1-2001 systems, e.g. HP-UX before 11.23). +# # Define NO_R_TO_GCC_LINKER if your gcc does not like "-R/path/lib" # that tells runtime paths to dynamic libraries; # "-Wl,-rpath=/path/lib" is used instead.
Makefile endif · line 512
Quoted 6 lines
Makefile +3
-0@@ -504,6 +507,9 @@ endif ifneq (,$(findstring arm,$(uname_M))) ARM_SHA1 = YesPlease endif +ifeq ($(uname_S),HP-UX) + NO_SYS_SELECT_H = YesPlease +endif
# uname -s HP-UX # uname -r B.11.00 #
Signature · 5 lines
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/Quoted 10 lines · Junio C Hamano
Quoted 8 lines · H.Merijn Brand
Quoted 6 lines · Junio C Hamano
Quoted 2 lines · H.Merijn Brand
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
Quoted 8 lines
Quoted 3 lines
...
Quoted 1 line
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macrosThat is defined in GNU gcc. I did not pass it with -D...
Actually I changed my mind. I won't be applying this as is.
For the selective inclusion of <
sys/select.h>, I would prefer it see it done like the attached.
Is select() actually needed? The one instance in pager.c can easily be replaced by poll(), which I've already done in my own tree. The other one in http.c is only used as a timer, but I don't know how to get rid of that. Maybe a setitimer()/pause() combo?
-- Hannes
Hi,
Quoted 18 lines · Johannes Sixt
Quoted 17 lines · Junio C Hamano
Quoted 4 lines · H.Merijn Brand
Quoted 2 lines · Junio C Hamano
"H.Merijn Brand" <[email protected]> writes:
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
...
Quoted 2 lines
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macrosThat is defined in GNU gcc. I did not pass it with -D...
Actually I changed my mind. I won't be applying this as is.
Quoted 7 lines
Quoted 2 lines
For the selective inclusion of <
sys/select.h>, I would prefer it see it done like the attached.Is
select()actually needed? The one instance inpager.ccan easily be replaced bypoll(), which I've already done in my own tree. The other one inhttp.cis only used as a timer, but I don't know how to get rid of that. Maybe a setitimer()/pause() combo?
I'd be cautious about using poll(). AFAIK MacOSX 10.2.8 does not have poll(), and IIRC I had problems finding it in MinGW, too. I know, we use it in daemon, upload-archive and upload-pack, but these are not typically functions performed by a client, so I would not know if it worked on my (now-dead) iBook, or on msysGit.
Ciao,
Dscho
Quoted 28 lines · Johannes Schindelin
Hi,
Quoted 15 lines · Johannes Sixt
Quoted 14 lines · Junio C Hamano
Quoted 12 lines · H.Merijn Brand
Quoted 6 lines · Junio C Hamano
Quoted 2 lines · H.Merijn Brand
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
...
Quoted 2 lines
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macrosThat is defined in GNU gcc. I did not pass it with -D...
Quoted 8 lines
Quoted 4 lines
Actually I changed my mind. I won't be applying this as is.
For the selective inclusion of <
sys/select.h>, I would prefer it see it done like the attached.Is
select()actually needed? The one instance inpager.ccan easily be replaced bypoll(), which I've already done in my own tree. The other one inhttp.cis only used as a timer, but I don't know how to get rid of that. Maybe a setitimer()/pause() combo?
Quoted 5 lines
I'd be cautious about using
poll(). AFAIK MacOSX 10.2.8 does not havepoll(), and IIRC I had problems finding it in MinGW, too. I know, we use it in daemon, upload-archive and upload-pack, but these are not typically functions performed by a client, so I would not know if it worked on my (now-dead) iBook, or on msysGit.
So what? If we use poll() already in daemon, upload-archive and upload-pack, and no MacOSX 10.2.8 user has spoken up with a proposal for replacement, then yet another use won't raise a complaint, either.
And if it were a problem for msysGit, I wouldn't have suggested it ;) The particular use in pager.c would be inside #ifndef __MINGW32__ #endif anyway.
-- Hannes
Hi,
Quoted 34 lines · Johannes Sixt
Quoted 27 lines · Johannes Schindelin
Quoted 15 lines · Johannes Sixt
Quoted 14 lines · Junio C Hamano
Quoted 12 lines · H.Merijn Brand
Quoted 6 lines · Junio C Hamano
Quoted 2 lines · H.Merijn Brand
HP-UX does not have
select.h, but it offers all select () functionality. The defines are in <sys/types.h> and <X11/fd.h>Will apply the patch as-is for now, only because I do not want major surgery during rc period, but I think is can be improved.
...
Quoted 2 lines
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macrosThat is defined in GNU gcc. I did not pass it with -D...
Quoted 8 lines
Quoted 4 lines
Actually I changed my mind. I won't be applying this as is.
For the selective inclusion of <
sys/select.h>, I would prefer it see it done like the attached.Is
select()actually needed? The one instance inpager.ccan easily be replaced bypoll(), which I've already done in my own tree. The other one inhttp.cis only used as a timer, but I don't know how to get rid of that. Maybe a setitimer()/pause() combo?Quoted 5 lines
I'd be cautious about using
poll(). AFAIK MacOSX 10.2.8 does not havepoll(), and IIRC I had problems finding it in MinGW, too. I know, we use it in daemon, upload-archive and upload-pack, but these are not typically functions performed by a client, so I would not know if it worked on my (now-dead) iBook, or on msysGit.
Quoted 3 lines
So what? If we use
poll()already in daemon, upload-archive and upload-pack, and no MacOSX 10.2.8 user has spoken up with a proposal for replacement, then yet another use won't raise a complaint, either.
daemon, upload-archive and upload-pack are server-side functions, so they are substantially less well tested.
Quoted 3 lines
And if it were a problem for msysGit, I wouldn't have suggested it ;) The particular use in
pager.cwould be inside #ifndef__MINGW32__#endif anyway.
We still did not integrate the 'daemon' branch of 4msysgit, correct?
I'm just wary to replace a tried-and-tested select() with a poll() that I had plenty of problems with.
Ciao,
Dscho
Quoted 7 lines · Johannes Schindelin
Quoted 6 lines · Johannes Sixt
Quoted 5 lines · Johannes Schindelin
I'd be cautious about using
poll(). AFAIK MacOSX 10.2.8 does not havepoll(), and IIRC I had problems finding it in MinGW, too. I know, we use it in daemon, upload-archive and upload-pack, but these are not typically functions performed by a client, so I would not know if it worked on my (now-dead) iBook, or on msysGit.
Quoted 6 lines
Quoted 3 lines
So what? If we use
poll()already in daemon, upload-archive and upload-pack, and no MacOSX 10.2.8 user has spoken up with a proposal for replacement, then yet another use won't raise a complaint, either.daemon, upload-archive and upload-pack are server-side functions, so they are substantially less well tested.
upload-pack is used for local fetches and, therefore, should be well-tested on all systems.
Quoted 5 lines
Quoted 3 lines
And if it were a problem for msysGit, I wouldn't have suggested it ;) The particular use in
pager.cwould be inside #ifndef__MINGW32__#endif anyway.We still did not integrate the 'daemon' branch of 4msysgit, correct?
No, we didn't.
-- Hannes
Quoted 6 lines · Junio C Hamano
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macros are for the application to define, and for the implementation (iow, the header files) to find out what set of names the application wants to see. You are making the application examine the symbol to see what implementation it is on, which feels backwards to me.
#if defined(hpux) || defined(_hpux) || defined(__hpux)
should work ok, although as you say, trying
#if _POSIX_VERSION < 200112
# include <non-POSIX.1-2001 headers> #else # include <sys/select.h> #endif
would probably be more suitable.
Signature · 3 lines
Andreas Ericsson [email protected] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231
Quoted 13 lines · Andreas Ericsson
Quoted 6 lines · Junio C Hamano
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macros are for the application to define, and for the implementation (iow, the header files) to find out what set of names the application wants to see. You are making the application examine the symbol to see what implementation it is on, which feels backwards to me.#if defined(hpux) ||
defined(_hpux)||defined(__hpux)should work ok, although as you say, trying
Quoted 7 lines
#if
_POSIX_VERSION< 200112# include <non-POSIX.1-2001 headers> #else # include <sys/select.h> #endifwould probably be more suitable.
I cannot take credit for having said that (I didn't), but it sounds like a sensible thing to compare _POSIX_VERSION with 200112L. For previous SUS, <sys/time.h> would have defined select(2), but that header file is already included anyway.
Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
---
git-compat-util.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
git-compat-util.h +2 -0
@@ -68,7 +68,9 @@#include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> +#if _POSIX_VERSION >=200112L #include <sys/select.h> +#endif #include <assert.h> #include <regex.h> #include <netinet/in.h>
Quoted 23 lines · Junio C Hamano
Quoted 13 lines · Andreas Ericsson
Quoted 6 lines · Junio C Hamano
Besides, isn't
_HPUX_SOURCEa feature-test macro? Feature test macros are for the application to define, and for the implementation (iow, the header files) to find out what set of names the application wants to see. You are making the application examine the symbol to see what implementation it is on, which feels backwards to me.#if defined(hpux) ||
defined(_hpux)||defined(__hpux)should work ok, although as you say, trying
Quoted 7 lines
#if
_POSIX_VERSION< 200112# include <non-POSIX.1-2001 headers> #else # include <sys/select.h> #endifwould probably be more suitable.
Quoted 7 lines
I cannot take credit for having said that (I didn't), but it sounds like a sensible thing to compare
_POSIX_VERSIONwith 200112L. For previous SUS, <sys/time.h> would have defined select(2), but that header file is already included anyway.Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
Probably not:
HP-UX 10.20, 11.00, 11.11, 11.23/PA, and 11.23/IPF all have:
/usr/include 103 > grep -r POSIX_VERSION *
sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_88
sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93 sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_88)
sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_90)
and the two 11.23 do have select.h
Quoted 19 lines
---
git-compat-util.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)git-compat-util.h +2
-0@@ -68,7 +68,9 @@#include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> +#if _POSIX_VERSION >=200112L #include <sys/select.h> +#endif #include <assert.h> #include <regex.h> #include <netinet/in.h>
Signature · 5 lines
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/Quoted 17 lines · H.Merijn Brand
On Tue, 18 Dec 2007 01:47:53 -0800, Junio C Hamano <[email protected]> wrote:
...Quoted 2 lines
Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
Probably not:
HP-UX 10.20, 11.00, 11.11, 11.23/PA, and 11.23/IPF all have:
/usr/include103 > grep -rPOSIX_VERSION*
sys/unistd.h:# define_POSIX_VERSION_POSIX1_VERSION_88sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93 sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_88)
Quoted 3 lines
sys/unistd.h:# if (
_POSIX_VERSION==_POSIX1_VERSION_90)and the two 11.23 do have
select.h
Does that prove anything? unistd.h seem to define _POSIX_VERSION to various values but we do not see surrounding "#ifdef WE_DO_NOT_KNOW" from the grep output above unfortunately.
If the folllowing actually works I think that is the cleanest fix for this issue (note that I added defined(_POSIX_VERSION) there just to be safe if it is not defined at all).
git-compat-util.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
git-compat-util.h +2 -0
@@ -68,7 +68,9 @@#include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> +#if defined(_POSIX_VERSION) && _POSIX_VERSION >=200112L #include <sys/select.h> +#endif #include <assert.h> #include <regex.h> #include <netinet/in.h>
Quoted 21 lines · Junio C Hamano
Quoted 19 lines · H.Merijn Brand
On Tue, 18 Dec 2007 01:47:53 -0800, Junio C Hamano <[email protected]> wrote:
...Quoted 2 lines
Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
Probably not:
HP-UX 10.20, 11.00, 11.11, 11.23/PA, and 11.23/IPF all have:
/usr/include103 > grep -rPOSIX_VERSION*
sys/unistd.h:# define_POSIX_VERSION_POSIX1_VERSION_88sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93 sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_88)sys/unistd.h:# if (
_POSIX_VERSION==_POSIX1_VERSION_90)
Quoted 5 lines
Quoted 1 line
and the two 11.23 do have
select.hDoes that prove anything?
unistd.hseem to define_POSIX_VERSIONto various values but we do not see surrounding "#ifdefWE_DO_NOT_KNOW" from the grep output above unfortunately.
What I tried to demonstrate is that I have no clue about the actual value of this define, and if values like 88, 90, and 93 (7, 102, and 103) do have any relation with the higher value of 200112L that you use.
Also because these are the *only* _POSIX_VERSION defines in the entire include tree, and 11.23 does have a select.h, which makes the patch below to be not OK on 11.23. I'm not stating that HP follows the rules in any correct way, but if this is to be sure that select.h gets included if the OS supports it, it will fail.
Quoted 21 lines
If the folllowing actually works I think that is the cleanest fix for this issue (note that I added
defined(_POSIX_VERSION)there just to be safe if it is not defined at all).git-compat-util.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)git-compat-util.h +2
-0@@ -68,7 +68,9 @@#include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> +#if defined(_POSIX_VERSION) && _POSIX_VERSION >=200112L #include <sys/select.h> +#endif #include <assert.h> #include <regex.h> #include <netinet/in.h>
Signature · 5 lines
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/Quoted 33 lines · H.Merijn Brand
Quoted 21 lines · Junio C Hamano
Quoted 19 lines · H.Merijn Brand
On Tue, 18 Dec 2007 01:47:53 -0800, Junio C Hamano <[email protected]> wrote:
...Quoted 2 lines
Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
Probably not:
HP-UX 10.20, 11.00, 11.11, 11.23/PA, and 11.23/IPF all have:
/usr/include103 > grep -rPOSIX_VERSION*
sys/unistd.h:# define_POSIX_VERSION_POSIX1_VERSION_88sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93 sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_88)sys/unistd.h:# if (
_POSIX_VERSION==_POSIX1_VERSION_90)Quoted 5 lines
Quoted 1 line
and the two 11.23 do have
select.hDoes that prove anything?
unistd.hseem to define_POSIX_VERSIONto various values but we do not see surrounding "#ifdefWE_DO_NOT_KNOW" from the grep output above unfortunately.What I tried to demonstrate is that I have no clue about the actual value of this define, and if values like 88, 90, and 93 (7, 102, and 103) do have any relation with the higher value of 200112L that you use.
Quoted 9 lines
Also because these are the *only*
_POSIX_VERSIONdefines in the entire include tree, and 11.23 does have aselect.h, which makes the patch below to be not OK on 11.23. I'm not stating that HP follows the rules in any correct way, but if this is to be sure thatselect.hgets included if the OS supports it, it will fail.Quoted 3 lines
If the folllowing actually works I think that is the cleanest fix for this issue (note that I added
defined(_POSIX_VERSION)there just to be safe if it is not defined at all).
But your grep did not catch their definition of _POSIX1_VERSION_$YEAR which are used to define the actual value of _POSIX_VERSION.
Quoted 41 lines · Junio C Hamano
Quoted 39 lines · H.Merijn Brand
Quoted 21 lines · Junio C Hamano
Quoted 19 lines · H.Merijn Brand
On Tue, 18 Dec 2007 01:47:53 -0800, Junio C Hamano <[email protected]> wrote:
...Quoted 2 lines
Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
Probably not:
HP-UX 10.20, 11.00, 11.11, 11.23/PA, and 11.23/IPF all have:
/usr/include103 > grep -rPOSIX_VERSION*
sys/unistd.h:# define_POSIX_VERSION_POSIX1_VERSION_88sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93 sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_88)sys/unistd.h:# if (
_POSIX_VERSION==_POSIX1_VERSION_90)Quoted 5 lines
Quoted 1 line
and the two 11.23 do have
select.hDoes that prove anything?
unistd.hseem to define_POSIX_VERSIONto various values but we do not see surrounding "#ifdefWE_DO_NOT_KNOW" from the grep output above unfortunately.What I tried to demonstrate is that I have no clue about the actual value of this define, and if values like 88, 90, and 93 (7, 102, and 103) do have any relation with the higher value of 200112L that you use.
Also because these are the *only*
_POSIX_VERSIONdefines in the entire include tree, and 11.23 does have aselect.h, which makes the patch below to be not OK on 11.23. I'm not stating that HP follows the rules in any correct way, but if this is to be sure thatselect.hgets included if the OS supports it, it will fail.
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
If the folllowing actually works I think that is the cleanest fix for this issue (note that I added
defined(_POSIX_VERSION)there just to be safe if it is not defined at all).But your grep did not catch their definition of _POSIX1_VERSION_$YEAR which are used to define the actual value of
_POSIX_VERSION.
If it is used to *define* _POSIX_VERSION, it should have come up too, wouldn't it?
The only define that comes close to something like YYYYMM is:
X11/Xosdefs.h:#define X_POSIX_C_SOURCE 199300L
usr/include 111 > grep -r POSIX.*YEAR .
Exit 1
/usr/include 112 > grep -P -r 'POSIX.*\b(19\d\d|200\d)' .
./sys/buf.h:#if (_POSIX_C_SOURCE >= 199309)
./sys/buf.h:#endif /* (_POSIX_C_SOURCE >= 199309) */
./sys/stdsyms.h:/* XPG3 semantics gets POSIX.1-1988 semantics by default */ ./sys/stdsyms.h: * This usage is obsolescent, "-D_POSIX_C_SOURCE=199506" is preferred */
./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199506) && !defined(_INCLUDE_POSIX1C_SOURCE) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199506 && !_INCLUDE_POSIX1C_SOURCE */ ./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199506) && !defined(_REENTRANT) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199506 && !_REENTRANT */ ./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199309) && !defined(_INCLUDE_POSIX4_SOURCE) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199309 && !_INCLUDE_POSIX4_SOURCE */ ./sys/unistd.h:# define _POSIX1_VERSION_88 198808L /* We support POSIX.1-1988 */ ./sys/unistd.h:# define _POSIX1_VERSION_90 199009L /* We support POSIX.1-1990 */ ./sys/unistd.h:# define _POSIX1_VERSION_93 199309L /* We support POSIX.1b-1993 */ ./sys/unistd.h:# if !defined(_POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 199309L) ./sys/unistd.h:# else /* _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L */ ./sys/unistd.h:# endif /* _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L */ ./sys/unistd.h:/* Symbolic constants for sysconf() variables defined by POSIX.1-1988: 0-7 */ ./sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ ./sys/unistd.h:/* Symbolic constants for sysconf() variables added by POSIX.1-1990: 100-199 */ ./sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ ./sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ ./sys/unistd.h:# define _POSIX2_VERSION 199209L /* IEEE POSIX.2-1992 base standard */ ./sys/unistd.h:# define _POSIX2_C_VERSION 199209L /* IEEE POSIX.2-1992 C language binding */
./limits.h:# define _POSIX_CLOCKRES_MIN 20000000 /* The CLOCK_REALTIME clock
./X11/Xosdefs.h:#define X_POSIX_C_SOURCE 199300L
./dce/cdsclerk.h:#if _POSIX_C_SOURCE >= 199506L
./dce/rpcexc.h:#if _POSIX_C_SOURCE >= 199506L
./dce/stubbase.h:#if _POSIX_C_SOURCE >= 199506L
Signature · 5 lines
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/Quoted 11 lines · H.Merijn Brand
Quoted 8 lines
Quoted 5 lines
Also because these are the *only*
_POSIX_VERSIONdefines in the entire include tree, and 11.23 does have aselect.h, which makes the patch below to be not OK on 11.23. I'm not stating that HP follows the rules in any correct way, but if this is to be sure thatselect.hgets included if the OS supports it, it will fail....
But your grep did not catch their definition of _POSIX1_VERSION_$YEAR which are used to define the actual value of_POSIX_VERSION.If it is used to *define*
_POSIX_VERSION, it should have come up too, wouldn't it?
Sorry, I should re-read your grep output. It is possible that I am quite confused.
Your grep session begins like this:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
/usr/include103 > grep -rPOSIX_VERSION*
sys/unistd.h:# define_POSIX_VERSION_POSIX1_VERSION_88sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93
Now, if they had
#define _POSIX1_VERSION_88 198808L
#define _POSIX1_VERSION_90 199009L
#define _POSIX1_VERSION_93 199309L
#define _POSIX1_VERSION_95 199506L
#define _POSIX1_VERSION_01 200112Lelsewhere in their include files, then
(1) "grep -r POSIX_VERSION *" wouldn't have matched them;
(2) not all of the three output form sys/unistd.h could be in effect at the same time. There may be #ifdef around it to control which definition is used, but your "grep" wouldn't have shown them either.
Maybe HP-UX include files #ifdef the definition of _POSIX_VERSION depending on what is asked for with feature test macros? We do not define _POSIX_C_SOURCE to 200112L but we do define _XOPEN_SOURCE to 600. According to:
http://www.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_02.html
this should be sufficient to ask for POSIX.1-2001 features.
But in any case, 88/90/93 are all too old (predates 2001-12) so if these three definitions are only possible values in their include files, then we wouldn't see _POSIX_VERSION set to 200112L. That is unfortunate. It seems we need to go back to that "NO_SYS_SELECT_H=YesPlease" thing.
Quoted 9 lines · H.Merijn Brand
Quoted 8 lines · Junio C Hamano
Quoted 7 lines · H.Merijn Brand
Quoted 6 lines · Junio C Hamano
Quoted 5 lines · H.Merijn Brand
On Tue, 18 Dec 2007 01:47:53 -0800, Junio C Hamano <[email protected]> wrote:
...Quoted 2 lines
Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Probably not:
HP-UX 10.20, 11.00, 11.11, 11.23/PA, and 11.23/IPF all have:
/usr/include103 > grep -rPOSIX_VERSION*
sys/unistd.h:# define_POSIX_VERSION_POSIX1_VERSION_88sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93
Please, note that the defines are _POSIX1_VERSION_*
^
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_88)sys/unistd.h:# if (
_POSIX_VERSION==_POSIX1_VERSION_90)
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
and the two 11.23 do have
select.h[...]
If it is used to *define*
_POSIX_VERSION, it should have come up too, wouldn't it?The only define that comes close to something like YYYYMM is:
No, it's not the only one. The _POSIX1_VERSION_* macros we are looking for are there below and they are defined this way too (did you miss them because of the trailing comment?)
Quoted 10 lines
X11/Xosdefs.h:#define
X_POSIX_C_SOURCE199300Lusr/include 111 > grep -r POSIX.*YEAR .
Exit 1
/usr/include112 > grep -P -r 'POSIX.*\b(19\d\d|200\d)' .
./sys/buf.h:#if (_POSIX_C_SOURCE>= 199309)
./sys/buf.h:#endif /* (_POSIX_C_SOURCE>= 199309) */
./sys/stdsyms.h:/* XPG3 semantics gets POSIX.1-1988 semantics by default */./sys/stdsyms.h: * This usage is obsolescent, "-D_POSIX_C_SOURCE=199506" is preferred */
Quoted 9 lines
./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199506) && !defined(_INCLUDE_POSIX1C_SOURCE) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199506 && !_INCLUDE_POSIX1C_SOURCE */ ./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199506) && !defined(_REENTRANT) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199506 && !_REENTRANT */ ./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199309) && !defined(_INCLUDE_POSIX4_SOURCE) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199309 && !_INCLUDE_POSIX4_SOURCE */ ./sys/unistd.h:# define _POSIX1_VERSION_88 198808L /* We support POSIX.1-1988 */ ./sys/unistd.h:# define _POSIX1_VERSION_90 199009L /* We support POSIX.1-1990 */ ./sys/unistd.h:# define _POSIX1_VERSION_93 199309L /* We support POSIX.1b-1993 */
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ And they are defined HERE.
Obviously, there is no value for the 2001 standard, so if this is from HP-UX version that already has sys/select.h, it does not claim conformance to the posix standard. But than it might be that sys/select.h is not required, so the test might still work.
Quoted 15 lines
./sys/unistd.h:# if !defined(_POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 199309L) ./sys/unistd.h:# else /* _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L */ ./sys/unistd.h:# endif /* _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L */ ./sys/unistd.h:/* Symbolic constants for sysconf() variables defined by POSIX.1-1988: 0-7 */ ./sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ ./sys/unistd.h:/* Symbolic constants for sysconf() variables added by POSIX.1-1990: 100-199 */ ./sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ ./sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ ./sys/unistd.h:# define _POSIX2_VERSION 199209L /* IEEE POSIX.2-1992 base standard */ ./sys/unistd.h:# define _POSIX2_C_VERSION 199209L /* IEEE POSIX.2-1992 C language binding */./limits.h:# define
_POSIX_CLOCKRES_MIN20000000 /* TheCLOCK_REALTIMEclock
./X11/Xosdefs.h:#defineX_POSIX_C_SOURCE199300L
./dce/cdsclerk.h:#if_POSIX_C_SOURCE>= 199506L
./dce/rpcexc.h:#if_POSIX_C_SOURCE>= 199506L
./dce/stubbase.h:#if_POSIX_C_SOURCE>= 199506L
Signature · 1 line
Jan 'Bulb' Hudec <[email protected]>
Quoted 14 lines · Jan Hudec
Quoted 13 lines · H.Merijn Brand
Quoted 12 lines · Junio C Hamano
Quoted 11 lines · H.Merijn Brand
Quoted 10 lines · Junio C Hamano
Quoted 9 lines · H.Merijn Brand
On Tue, 18 Dec 2007 01:47:53 -0800, Junio C Hamano <[email protected]> wrote:
...Quoted 2 lines
Merijn, discarding the earlier patch I did to configure it out for HP-UX, does the following patch based on Andreas's idea work for you?
Probably not:
HP-UX 10.20, 11.00, 11.11, 11.23/PA, and 11.23/IPF all have:
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
/usr/include103 > grep -rPOSIX_VERSION*
sys/unistd.h:# define_POSIX_VERSION_POSIX1_VERSION_88sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_90 sys/unistd.h:# define _POSIX_VERSION _POSIX1_VERSION_93Please, note that the defines are _POSIX1_VERSION_*
^
Ow. good catch. Sorry, yes, missed that.
Quoted 9 lines
Quoted 9 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ sys/unistd.h:# if (_POSIX_VERSION == _POSIX1_VERSION_88)sys/unistd.h:# if (
_POSIX_VERSION==_POSIX1_VERSION_90)and the two 11.23 do have
select.h[...]
Quoted 8 lines
Quoted 4 lines
If it is used to *define*
_POSIX_VERSION, it should have come up too, wouldn't it?The only define that comes close to something like YYYYMM is:
No, it's not the only one. The _POSIX1_VERSION_* macros we are looking for are there below and they are defined this way too (did you miss them because of the trailing comment?)
No, because of the trailing _88, _90, and _93
Quoted 19 lines
Quoted 10 lines
X11/Xosdefs.h:#define
X_POSIX_C_SOURCE199300Lusr/include 111 > grep -r POSIX.*YEAR .
Exit 1
/usr/include112 > grep -P -r 'POSIX.*\b(19\d\d|200\d)' .
./sys/buf.h:#if (_POSIX_C_SOURCE>= 199309)
./sys/buf.h:#endif /* (_POSIX_C_SOURCE>= 199309) */
./sys/stdsyms.h:/* XPG3 semantics gets POSIX.1-1988 semantics by default */./sys/stdsyms.h: * This usage is obsolescent, "-D_POSIX_C_SOURCE=199506" is preferred */Quoted 9 lines
./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199506) && !defined(_INCLUDE_POSIX1C_SOURCE) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199506 && !_INCLUDE_POSIX1C_SOURCE */ ./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199506) && !defined(_REENTRANT) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199506 && !_REENTRANT */ ./sys/stdsyms.h:# if (_POSIX_C_SOURCE >= 199309) && !defined(_INCLUDE_POSIX4_SOURCE) ./sys/stdsyms.h:# endif /* _POSIX_C_SOURCE >= 199309 && !_INCLUDE_POSIX4_SOURCE */ ./sys/unistd.h:# define _POSIX1_VERSION_88 198808L /* We support POSIX.1-1988 */ ./sys/unistd.h:# define _POSIX1_VERSION_90 199009L /* We support POSIX.1-1990 */ ./sys/unistd.h:# define _POSIX1_VERSION_93 199309L /* We support POSIX.1b-1993 */
Quoted 7 lines
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ And they are defined HERE.
Obviously, there is no value for the 2001 standard, so if this is from HP-UX version that already has
sys/select.h, it does not claim conformance to the posix standard. But than it might be thatsys/select.his not required, so the test might still work.
Good explanation
Quoted 15 lines
Quoted 15 lines
./sys/unistd.h:# if !defined(_POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 199309L) ./sys/unistd.h:# else /* _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L */ ./sys/unistd.h:# endif /* _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L */ ./sys/unistd.h:/* Symbolic constants for sysconf() variables defined by POSIX.1-1988: 0-7 */ ./sys/unistd.h:# define _SC_1_VERSION_88 7 /* _POSIX_VERSION: Date of POSIX.1-1988 */ ./sys/unistd.h:/* Symbolic constants for sysconf() variables added by POSIX.1-1990: 100-199 */ ./sys/unistd.h:# define _SC_1_VERSION_90 102 /* _POSIX_VERSION: Date of POSIX.1-1990 */ ./sys/unistd.h:# define _SC_1_VERSION_93 103 /* _POSIX_VERSION: Date of POSIX.1b-1993 */ ./sys/unistd.h:# define _POSIX2_VERSION 199209L /* IEEE POSIX.2-1992 base standard */ ./sys/unistd.h:# define _POSIX2_C_VERSION 199209L /* IEEE POSIX.2-1992 C language binding */./limits.h:# define
_POSIX_CLOCKRES_MIN20000000 /* TheCLOCK_REALTIMEclock
./X11/Xosdefs.h:#defineX_POSIX_C_SOURCE199300L
./dce/cdsclerk.h:#if_POSIX_C_SOURCE>= 199506L
./dce/rpcexc.h:#if_POSIX_C_SOURCE>= 199506L
./dce/stubbase.h:#if_POSIX_C_SOURCE>= 199506L
Signature · 5 lines
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/