PORTABILITY
author viric@llimona
Mon, 12 Nov 2007 09:57:46 +0100
changeset 140 0b99d94818d1
parent 121 7a42c36de0d0
child 172 224b503838de
permissions -rw-r--r--
Added the web page.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
121
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     1
ANSI C and POSIX
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     2
-------------------------
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     3
The code should compile without any warning in a system providing an ANSI C
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     4
compiler and a Single Unix Specification rev 5 library. I tried only with glibc.
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     5
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     6
If you find any inconsistency between the code and this statement, please let
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     7
know the auther.
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     8
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
     9
Compilers
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    10
-------------------------
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    11
(Lluís) I could compile easily with gcc.
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    12
I could also compile with tcc 0.9.22 if I change the features to
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    13
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D__STRICT_ANSI__
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    14
But the linking didn't work with tcc.
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    15
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    16
HP-UX 10.2 in PA-RISC
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    17
-------------------------
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    18
(Lluís) I could compile changing the #include for sys/select.h in server.c to
7a42c36de0d0 Added notes about portability.
viric@llimona
parents:
diff changeset
    19
sys/time.h. I also had to use gcc instead of the system's cc.