From 8563978799a3476556314e1e842df7d981594d7c Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 21 Nov 2005 09:40:30 +0000 Subject: regen. --- doc/pkgsrc.html | 88 ++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 74 insertions(+), 14 deletions(-) (limited to 'doc/pkgsrc.html') diff --git a/doc/pkgsrc.html b/doc/pkgsrc.html index d7e9a9e65b9..c14430f4828 100644 --- a/doc/pkgsrc.html +++ b/doc/pkgsrc.html @@ -870,7 +870,11 @@ alink="#0000FF"> defines
15.4.2. Getting a list of CPP + "#cpp-list-examples">15.4.2. Examples of CPP + defines for some platforms
+ +
15.4.3. Getting a list of CPP defines
@@ -6331,7 +6335,11 @@ nbftp% chmod 755 . defines
15.4.2. Getting a list of CPP + "#cpp-list-examples">15.4.2. Examples of CPP + defines for some platforms
+ +
15.4.3. Getting a list of CPP defines
@@ -11623,7 +11631,11 @@ nbftp% chmod 755 .
15.4.1. CPP defines
-
15.4.2. +
15.4.2. Examples of CPP + defines for some platforms
+ +
15.4.3. Getting a list of CPP defines
@@ -12983,9 +12995,9 @@ nbftp% chmod 755 .
     #include <sys/param.h>
     #if (defined(BSD) && BSD >= 199306)
-      /* your BSD-specific code goes here */
+      /* BSD-specific code goes here */
     #else
-      /* non-BSD-specific code */
+      /* non-BSD-specific code goes here */
     #endif
 
@@ -12998,7 +13010,7 @@ nbftp% chmod 755 . Linux linux, __linux, __linux__ NetBSD __NetBSD__ OpenBSD __OpenBSD__ - Solaris sun, __sun (GCC and SunPro), __sun__ (only GCC) + Solaris sun, __sun @@ -13032,28 +13044,76 @@ nbftp% chmod 755 .
     GCC         __GNUC__ (major version), __GNUC_MINOR__
+    SunPro      __SUNPRO_C (0x570 for version 5.7)
 
+
+
+
+
+

15.4.2. Examples of + CPP defines for some platforms

+
+
+
+ +

The list of the CPP identification macros for + hardware and operating system may depend on the + compiler that is used. The following list contains some + examples that may help you to choose the right ones. + For example, if you want to conditionally compile code + on Solaris, don't use __sun__, as the SunPro compiler does + not define it. Use __sun + instead.

+ +
+
+
SunPro 5.7 + Solaris 8 + + SPARC
+ +
+

__SVR4, __sparc, __sun, __unix, sparc, sun, + unix.

+
+ +
GCC 4 + Solaris 8 + + SPARC
+ +
+

__ELF__, __sparc, __sparc__, __sun, __sun__, + __SVR4, __svr4__, __unix, __unix__, sparc, sun, + unix.

+
+
+
+
+

15.4.2. Getting a list of CPP + "cpp-list">15.4.3. Getting a list of CPP defines

-

When your system uses the GNU C Compiler, you can - get a list of symbols that are defined by default, e.g. - to identify the platform, with the following - command:

+

If your system uses the GNU C Compiler, you can get + a list of symbols that are defined by default, e.g. to + identify the platform, with the following command:

     gcc -E -dM - < /dev/null 
 
+ +

On other systems you may get the list by using the + system's syscall trace utility (ktrace, truss, strace) + to have a look which arguments are passed to the actual + compiler.

@@ -14778,9 +14838,9 @@ looks fine.

Depending on the supplied command line arguments (see - pkglint(1)), more verbose checks will be performed. Use - e.g. pkglint - -v for a very verbose check.

+ pkglint(1)), more checks will be performed. Use e.g. + pkglint -Call + -Wall for a very thorough check.

-- cgit v1.2.3