print size debugging
This commit is contained in:
parent
a483cede90
commit
04019fb9ba
@ -13,6 +13,7 @@ Source0: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse2ver}.tar.gz
|
|||||||
#fuse3 sources
|
#fuse3 sources
|
||||||
Source1: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse3ver}.tar.gz
|
Source1: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse3ver}.tar.gz
|
||||||
Source2: %{name}.conf
|
Source2: %{name}.conf
|
||||||
|
Source3: printsize.c
|
||||||
|
|
||||||
Patch1: fuse-3.0.0-More-parentheses.patch
|
Patch1: fuse-3.0.0-More-parentheses.patch
|
||||||
Patch2: fuse-0001-More-parentheses.patch
|
Patch2: fuse-0001-More-parentheses.patch
|
||||||
@ -101,6 +102,11 @@ Common files for FUSE v2 and FUSE v3.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -T -c -n fuse2and3 -a0 -a1
|
%setup -q -T -c -n fuse2and3 -a0 -a1
|
||||||
|
|
||||||
|
cp %{SOURCE3} .
|
||||||
|
gcc -o printsize printsize.c
|
||||||
|
echo "%{_arch}"
|
||||||
|
./printsize
|
||||||
|
|
||||||
# fuse 3
|
# fuse 3
|
||||||
pushd lib%{name}-%{name}-%{fuse3ver}
|
pushd lib%{name}-%{name}-%{fuse3ver}
|
||||||
./makeconf.sh
|
./makeconf.sh
|
||||||
|
12
printsize.c
Normal file
12
printsize.c
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user