summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-05-05 03:07:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:46 -0500
commit78359305491f869af13622153bdf21cdb0cc2459 (patch)
tree2e10536e57788167d73b30ba38d1771c32769d0d /source3/script
parent5910e397d3f2d49c3ec13e064f402137205031a8 (diff)
downloadsamba-78359305491f869af13622153bdf21cdb0cc2459.tar.gz
samba-78359305491f869af13622153bdf21cdb0cc2459.tar.bz2
samba-78359305491f869af13622153bdf21cdb0cc2459.zip
r15447: Teach "smbd -b" to emit the sizes of a few more types that
might be interesting. Push the spacing across a bit so that it all lines up nicely. (This used to be commit efd961e4eefb774c7bdaef098e2b67062a7dffd3)
Diffstat (limited to 'source3/script')
-rw-r--r--source3/script/mkbuildoptions.awk23
1 files changed, 15 insertions, 8 deletions
diff --git a/source3/script/mkbuildoptions.awk b/source3/script/mkbuildoptions.awk
index 9c22662310..1e7b74b8d9 100644
--- a/source3/script/mkbuildoptions.awk
+++ b/source3/script/mkbuildoptions.awk
@@ -242,14 +242,21 @@ END {
# add code to display the various type sizes
print " /* Output the sizes of the various types */";
print " output(screen, \"\\nType sizes:\\n\");";
- print " output(screen, \" sizeof(char): %lu\\n\",(unsigned long)sizeof(char));";
- print " output(screen, \" sizeof(int): %lu\\n\",(unsigned long)sizeof(int));";
- print " output(screen, \" sizeof(long): %lu\\n\",(unsigned long)sizeof(long));";
- print " output(screen, \" sizeof(uint8): %lu\\n\",(unsigned long)sizeof(uint8));";
- print " output(screen, \" sizeof(uint16): %lu\\n\",(unsigned long)sizeof(uint16));";
- print " output(screen, \" sizeof(uint32): %lu\\n\",(unsigned long)sizeof(uint32));";
- print " output(screen, \" sizeof(short): %lu\\n\",(unsigned long)sizeof(short));";
- print " output(screen, \" sizeof(void*): %lu\\n\",(unsigned long)sizeof(void*));";
+ print " output(screen, \" sizeof(char): %lu\\n\",(unsigned long)sizeof(char));";
+ print " output(screen, \" sizeof(int): %lu\\n\",(unsigned long)sizeof(int));";
+ print " output(screen, \" sizeof(long): %lu\\n\",(unsigned long)sizeof(long));";
+ print "#if HAVE_LONGLONG"
+ print " output(screen, \" sizeof(long long): %lu\\n\",(unsigned long)sizeof(long long));";
+ print "#endif"
+ print " output(screen, \" sizeof(uint8): %lu\\n\",(unsigned long)sizeof(uint8));";
+ print " output(screen, \" sizeof(uint16): %lu\\n\",(unsigned long)sizeof(uint16));";
+ print " output(screen, \" sizeof(uint32): %lu\\n\",(unsigned long)sizeof(uint32));";
+ print " output(screen, \" sizeof(short): %lu\\n\",(unsigned long)sizeof(short));";
+ print " output(screen, \" sizeof(void*): %lu\\n\",(unsigned long)sizeof(void*));";
+ print " output(screen, \" sizeof(size_t): %lu\\n\",(unsigned long)sizeof(size_t));";
+ print " output(screen, \" sizeof(off_t): %lu\\n\",(unsigned long)sizeof(off_t));";
+ print " output(screen, \" sizeof(ino_t): %lu\\n\",(unsigned long)sizeof(ino_t));";
+ print " output(screen, \" sizeof(dev_t): %lu\\n\",(unsigned long)sizeof(dev_t));";
##################################################
# add code to give information about modules