utempter na 64-bitach
Adam Osuchowski
adwol at zonk.pl
Tue Sep 21 13:42:19 CEST 2010
Jan Rękorajski wrote:
> Czy jesteś tego pewny?
> /usr/include/bits/utmpx.h mówi że coś Ci się pomerdało.
A dokładniej to co mi się pomerdało?
Taki mały test:
$ uname -m
x86_64
$ cat utmpx.c
#include <stdio.h>
#include <utmpx.h>
#include <time.h>
struct utmpx u;
struct timeval tv;
int main()
{
printf("%ld\n%ld\n", sizeof u.ut_tv.tv_sec, sizeof u.ut_tv.tv_usec);
printf("%ld\n%ld\n", sizeof tv.tv_sec, sizeof tv.tv_usec);
return 0;
}
$ cc -O2 -Wall -o utmpx utmpx.c
$ ./utmpx
4
4
8
8
More information about the pld-devel-pl
mailing list