[net.sources.bugs] How many bits and where they go.

simon@simon_pc.UUCP (Simon Shapiro) (02/18/86)

Tried to mail these results, but 5 different angry mail daemons
told me 'BAD SYSTEM NAME'.  How bad is it?  Anyway here are my results:

-rwx------  1 simon   users     22144 Feb 17 20:36 printbits
-rw-------  1 simon   users      1500 Feb 17 20:33 printbits.c
 Type   Bits   Sizeof   Format
 Char      8        1    2's c.
Short     16        2    2's c.
  Int     32        4    2's c.
 Long     32        4    2's c.

Position   0  1  2  3
    Char   1
   Short   2  1
     Int   4  3  2  1
    Long   4  3  2  1

Int == Long

real	0m0.31s
usr	0m0.05s
sys	0m0.16s

    UID   PID  PPID  C   STIME  TTY  TIME COMMAND
  simon  2552  2436 41 20:38:22  w6  0:00 ps
   root    63     1  3  Feb 16   w1  0:54 cron
 oracle   109     1  3  Feb 16   w7  0:04 oracle
 oracle   110     1  3  Feb 16   w7  0:04 oracle
 oracle   111     1  3  Feb 16   w7  0:09 oracle
 oracle   112     1  3  Feb 16   w7  0:09 oracle

levy@ttrdc.UUCP (Daniel R. Levy) (02/20/86)

In article <128@simon_pc.UUCP>, simon@simon_pc.UUCP (Simon Shapiro) writes:
>Tried to mail these results, but 5 different angry mail daemons
>told me 'BAD SYSTEM NAME'.  How bad is it?  Anyway here are my results:
>
[results]
What kind of machine?
Anyhow, also fearing the furious mail-daemons, I post here what I got on
an AT&T 3B20S (SysVr2):

 Type   Bits   Sizeof   Format
 Char      8        1    unsign
Short     16        2    2's c.
  Int     32        4    2's c.
 Long     32        4    2's c.

Position   0  1  2  3
    Char   1
   Short   2  1
     Int   4  3  2  1
    Long   4  3  2  1

Int == Long
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
						vax135}!ttrdc!levy