print size debugging

This commit is contained in:
Tom Callaway 2017-07-18 09:25:17 -04:00
parent a483cede90
commit 04019fb9ba
2 changed files with 18 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Source0: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse2ver}.tar.gz
#fuse3 sources
Source1: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse3ver}.tar.gz
Source2: %{name}.conf
Source3: printsize.c
Patch1: fuse-3.0.0-More-parentheses.patch
Patch2: fuse-0001-More-parentheses.patch
@ -101,6 +102,11 @@ Common files for FUSE v2 and FUSE v3.
%prep
%setup -q -T -c -n fuse2and3 -a0 -a1
cp %{SOURCE3} .
gcc -o printsize printsize.c
echo "%{_arch}"
./printsize
# fuse 3
pushd lib%{name}-%{name}-%{fuse3ver}
./makeconf.sh

12
printsize.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
#include <sys/types.h>
#include <stdint.h>
void main() {
int sizeof_off_t = sizeof(off_t);
int sizeof_uint64_t = sizeof(uint64_t);
int sizeof_uintptr_t = sizeof(uintptr_t);
printf("Size of off_t is: %d\n", sizeof_off_t);
printf("Size of uint64_t is: %d\n", sizeof_uint64_t);
printf("Size of uintptr_t is: %d\n", sizeof_uintptr_t);
}