Re: question about V4L2_MEMORY_USERPTR on 64bit applications
From: Eugene Syromiatnikov
Date: Sat Oct 13 2018 - 20:11:47 EST
On Fri, Oct 12, 2018 at 10:52:51AM +0530, tbhardwa@xxxxxxxxxxxxxx wrote:
> (in 64 bit userspace long is 32-bit)
Not on Linux.
$ cat /tmp/c.c
int main(void)
{
return sizeof(long);
}
$ gcc /tmp/c.c
$ ./a.out; echo $?
8
$ file ./a.out
./a.out: ELF 64-bit LSB pie executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /lib64/ld64.so.2, for GNU/Linux 3.10.0, BuildID[sha1]=dad78822e741b7900dc7568222822d5d63c31a6c, not stripped