$ ls -l /usr/lib/cpp
-rwxr-xr-x 1 root bin 69140 Feb  9 20:22 /usr/lib/cpp
$ size  /usr/lib/cpp
   text    data     bss     dec     hex filename
  57298    9973   32608   99879   18627 /usr/lib/cpp
$ what /usr/lib/cpp
/usr/lib/cpp:
        open.c 1.1 96/06/07 Copyright 1986 Sun Micro
        vroot.c 1.1 96/06/07 SMI

Seems the same...

---
System Administrator of Southern Federal University Computer Center

Joerg Schilling писал 09.02.2015 20:59:
Alexander Pyhalov <[email protected]> wrote:

/usr/lib/cpp -V
cpp: Software Generation Utilities (SGU) SunOS/SVR4

I get the same text, but different results than you seem to get.

ls -l /tmp/cpp
-rwxr-xr-x   1 joerg    other      69140 Feb 19  2009 /tmp/cpp

size /tmp/cpp
57563 + 9973 + 32615 = 100151

 what /tmp/cpp
/tmp/cpp:
        open.c 1.1 96/06/07 Copyright 1986 Sun Micro
        vroot.c 1.1 96/06/07 SMI


$ /usr/lib/cpp /usr/include/asm/byteorder.h  >/tmp/sun.cpp
"/usr/include/sys/isa_defs.h", line 476: undefined control

$ ./build/prototype/i386/usr/lib/cpp /usr/include/asm/byteorder.h >
/tmp/s.cpp

$ sed -i -e '/^#/d' -e '/^$/d' /tmp/sun.cpp
$ sed -i -e '/^#/d' -e '/^$/d' /tmp/s.cpp

$ diff -u /tmp/sun.cpp  /tmp/s.cpp
--- /tmp/sun.cpp        2015-02-09 20:28:13.113917923 +0300
+++ /tmp/s.cpp  2015-02-09 20:28:16.843525501 +0300
@@ -1,4 +1,6 @@
-typedef signed char            int8_t;
+typedef        struct _label_t { long val[6]; } label_t;
+typedef        unsigned char   lock_t;
+typedef char                   int8_t;
  typedef short                  int16_t;
  typedef int                    int32_t;
  typedef        long long               int64_t;
@@ -10,7 +12,7 @@
  typedef uint64_t               uintmax_t;
  typedef        int                     intptr_t;
  typedef        unsigned int            uintptr_t;
-typedef signed char            int_fast8_t;
+typedef char                   int_fast8_t;


Recompiled Schilly cpp with Studio. Got your results.

--- /tmp/sun.cpp        2015-02-09 20:28:13.113917923 +0300
+++ /tmp/s.cpp  2015-02-09 21:29:04.169507801 +0300
@@ -294,7 +294,7 @@
 typedef        long    fd_mask;
 typedef        long    fds_mask;
 typedef        struct fd_set {
- long fds_bits[(((1024)+(( (sizeof (fds_mask) * 8))-1))/( (sizeof (fds_mask) * 8)))]; + long fds_bits[ (((1024)+(( (sizeof (fds_mask) * 8) )-1))/( (sizeof (fds_mask) * 8) ))];
 } fd_set;
 extern int select(int, fd_set *, fd_set *,
        fd_set *, struct timeval *);



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to